﻿/* ============================================================
   Dev Studios — styles.css
   Plain CSS, no build step, no framework.
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:            #1C1C1E;
  --fg:            #ffffff;
  --fg-60:         rgba(255,255,255,0.6);
  --fg-40:         rgba(255,255,255,0.4);
  --fg-30:         rgba(255,255,255,0.3);
  --fg-10:         rgba(255,255,255,0.1);
  --accent:        #FF7244;
  --accent-hover:  #FF8A66;
  --accent-strong: #FF4305;

  --radius:    1rem;
  --container: 1536px;
  --pad-x:     1.25rem;
  --ease:      cubic-bezier(0.645, 0.045, 0.355, 1);
}
@media (min-width: 768px)  { :root { --pad-x: 2rem; } }
@media (min-width: 1024px) { :root { --pad-x: 4rem; } }

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, 'system-ui', 'Segoe UI', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding-left: 1.25rem; }
svg { display: block; }

/* App wrapper */
.app {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Layout helper */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn--outline {
  border: 1px solid var(--fg-30);
  color: var(--fg);
}
.btn--outline:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--fg);
}
.btn--large { padding: 1rem 2rem; font-size: 1rem; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  transition: background 0.5s, backdrop-filter 0.5s;
}
.header.is-scrolled {
  background: rgba(28,28,30,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}
@media (min-width: 768px) { .header__inner { height: 6rem; } }

.header__logo img {
  height: 20px;
  width: auto;
}
@media (min-width: 768px) { .header__logo img { height: 24px; } }

/* Nav */
.nav {
  display: none;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
  margin-right: 2rem;
}
@media (min-width: 768px) { .nav { display: flex; } }

.nav__link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--fg-60);
  transition: color 0.3s;
  padding: 0;
  display: inline-block;
}
.nav__link:hover { color: var(--fg); }
.nav__link--active { color: var(--fg); }
.nav__link--active .nav__underline { width: 100%; }

.nav__underline {
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav__link:hover .nav__underline { width: 100%; }

.nav__item-wrap { position: relative; }
.nav__link--disabled {
  color: var(--fg-30);
  cursor: not-allowed;
}
.nav__link--disabled:hover { color: var(--fg-30); }

/* "Coming soon" tooltip on the disabled Insights nav item */
.nav__item-wrap::after {
  content: 'Coming soon';
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  white-space: nowrap;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,114,68,0.1);
  border: 1px solid rgba(255,114,68,0.25);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav__item-wrap:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Header CTA */
.header__cta { display: none; }
@media (min-width: 768px) { .header__cta { display: inline-block; } }

/* Burger button */
.header__burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  position: relative;
}
@media (min-width: 768px) { .header__burger { display: none; } }

.burger-icon {
  position: absolute;
  width: 22px; height: 22px;
  color: var(--fg);
  transition: opacity 0.3s, transform 0.3s;
}
.burger-icon--close { opacity: 0; transform: rotate(-90deg); }
.header__burger[aria-expanded="true"] .burger-icon--open { opacity: 0; transform: rotate(90deg); }
.header__burger[aria-expanded="true"] .burger-icon--close { opacity: 1; transform: rotate(0); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 20;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  animation: fade-in 0.3s var(--ease);
}
.mobile-menu__panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: 80%;
  max-width: 320px;
  background: var(--bg);
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: slide-in 0.4s var(--ease);
}
.mobile-menu__link {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--fg-60);
  padding: 0.5rem 0;
  text-align: left;
  display: block;
}
.mobile-menu__link--disabled {
  color: var(--fg-30);
  cursor: not-allowed;
  position: relative;
}
/* "Coming soon" badge inline with the mobile disabled link */
.mobile-menu__link--disabled::after {
  content: 'Coming soon';
  display: inline-block;
  margin-left: 0.6rem;
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,114,68,0.1);
  border: 1px solid rgba(255,114,68,0.25);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  vertical-align: middle;
  line-height: 1.4;
}
.mobile-menu__link--active { color: var(--fg); }
.mobile-menu__cta { align-self: flex-start; margin-top: 1rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 5rem;
}
@media (min-width: 768px) { .hero { padding-top: 0; } }

/* Native video background — covers full hero like object-fit:cover */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  z-index: 0;
  pointer-events: none;
}

/* Dark canvas-style overlay (matches live site: solid #1C1C1E at 50% opacity) */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: #1C1C1E;
  opacity: 0.5;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero__content-inner { max-width: 56rem; }

/* ============================================================
   GRADIENT TEXT WIPE — applied to every heading span.
   Starts ghostly (position 100%) → sweeps to solid white (0%).
   ============================================================ */
.wipe-text {
  display: block;
  background: linear-gradient(to right, #ffffff 50%, rgba(255,255,255,0.1) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* transition is triggered by JS adding .is-revealed */
  transition: background-position 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.wipe-text.is-revealed {
  background-position: 0% 0;
}

/* H1 hero title */
.hero__title-mask {
  overflow: hidden;
  margin: 0;
  padding-bottom: 1em;
}
.hero__title-inner {
  font-size: 2.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 300;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}
@media (min-width: 768px) {
  .hero__title-inner { font-size: clamp(2.5rem, 8vw, 6rem); }
}

/* Scroll-down button */
.hero__scroll {
  position: absolute;
  left: var(--pad-x);
  bottom: 3rem;
  z-index: 2;
}
.hero__scroll-ring {
  width: 40px;
  height: 40px;
  border: 1px solid var(--fg-30);
  border-radius: 9999px;
  color: var(--fg-60);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, color 0.3s;
}
.hero__scroll:hover .hero__scroll-ring {
  border-color: var(--accent);
  color: var(--accent);
}
.hero__scroll-ring svg {
  width: 16px; height: 16px;
  animation: bounce 1.5s ease-in-out infinite;
}

/* ============================================================
   FEATURES — Section 2
   ============================================================ */
.features {
  padding: 2.5rem 0;
}
@media (min-width: 768px)  { .features { padding: 8rem 0; } }
@media (min-width: 1024px) { .features { padding: 10rem 0; } }

/* Lede heading */
.features__lede-wrap {
  max-width: 64rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .features__lede-wrap { margin-bottom: 7rem; } }

.features__lede {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 300;
}
@media (min-width: 768px)  { .features__lede { font-size: 2rem; } }
@media (min-width: 1280px) { .features__lede { font-size: 2.75rem; } }

.features__lede-inner { display: block; }

/* Desktop 4-col grid — hidden on mobile, visible on lg+ */
.features__grid {
  display: none;
}
@media (min-width: 1024px) {
  .features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
}

/* Mobile carousel — visible on mobile, hidden on lg+ */
.features__carousel {
  display: block;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}
@media (min-width: 1024px) { .features__carousel { display: none; } }

.features__track {
  display: flex;
  transition: transform 0.4s var(--ease);
  will-change: transform;
}
.features__slide {
  min-width: 100%;
  padding-right: 1rem;
}

/* Swipe hint */
.features__swipe-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--fg-40);
  font-size: 0.75rem;
  font-weight: 300;
  margin-top: 2rem;
  transition: opacity 0.5s;
}
.features__swipe-hint svg { color: var(--fg-40); }

/* Dot navigation */
.features__dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3rem;
}
.features__dot {
  width: 5rem;
  height: 2px;
  padding: 0.75rem 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
}
.features__dot::after {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 100%; height: 2px;
  background: var(--fg-30);
  transition: background 0.3s;
}
.features__dot:hover::after { background: rgba(255,255,255,0.5); }
.features__dot--active::after { background: var(--accent) !important; }

/* Feature card (shared between grid and carousel) */
.feature__title {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 1rem;
  overflow: hidden;
}
@media (min-width: 768px) { .feature__title { font-size: 1.5rem; } }
.feature__title span { display: block; }

.feature__desc {
  font-size: 0.875rem;
  color: var(--fg-60);
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
}
@media (min-width: 768px) { .feature__desc { font-size: 1rem; } }

.hl { color: #FE4303; }

/* ============================================================
   EXTRA FEATURES — Section 3
   ============================================================ */
.extra {
  border-top: 1px solid var(--fg-10);
  padding: 6rem 0;
}
@media (min-width: 768px)  { .extra { padding: 8rem 0; } }
@media (min-width: 1024px) { .extra { padding: 10rem 0; } }

/* Shared row layout */
.extra__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .extra__row {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .extra__row--reverse .extra__text  { order: 2; }
  .extra__row--reverse .extra__media { order: 1; }
}

.extra__heading {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
}
@media (min-width: 768px)  { .extra__heading { font-size: 2rem; } }
@media (min-width: 1024px) { .extra__heading { font-size: 2.25rem; } }

.extra__body {
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--fg);
}
@media (min-width: 768px)  { .extra__body { font-size: 1.5rem; } }
@media (min-width: 1024px) { .extra__body { font-size: 1.875rem; } }

.extra__cta {
  font-size: 1.125rem;
  color: var(--accent);
  text-decoration: underline;
  font-weight: 300;
  transition: color 0.3s;
  padding: 0;
}
.extra__cta:hover { color: var(--accent-hover); }

.extra__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.extra__media img,
.extra__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile stack — visible on mobile, hidden on lg+ */
.extra__mobile {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
@media (min-width: 1024px) { .extra__mobile { display: none; } }

/* Desktop carousel — hidden on mobile, visible on lg+ */
.extra__desktop {
  display: none;
  position: relative;
}
@media (min-width: 1024px) { .extra__desktop { display: block; } }

/* Entrance animation — only active once JS adds .will-animate class */
.extra__desktop.will-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.extra__desktop.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.extra__carousel-viewport {
  overflow: hidden;
  width: 100%;
}
.extra__carousel-track {
  display: flex;
  transition: transform 0.5s var(--ease);
  will-change: transform;
  align-items: flex-start;
}
.extra__carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Dot navigation (matches features carousel dot style) */
.extra__dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3rem;
}
.extra__dot {
  width: 5rem;
  height: 2px;
  padding: 0.75rem 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
}
.extra__dot::after {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 100%; height: 2px;
  background: var(--fg-30);
  transition: background 0.3s;
}
.extra__dot:hover::after { background: rgba(255,255,255,0.5); }
.extra__dot--active::after { background: var(--accent) !important; }

/* ============================================================
   ABOUT — Section 4
   ============================================================ */
.about {
  padding: 3rem 0;
  border-top: 1px solid var(--fg-10);
}
@media (min-width: 768px)  { .about { padding: 8rem 0; } }
@media (min-width: 1024px) { .about { padding: 10rem 0; } }

.about__header {
  margin-bottom: 2rem;
  overflow: hidden;
}
@media (min-width: 768px) { .about__header { margin-bottom: 6rem; } }

.about__title {
  font-size: 1.875rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0;
}
@media (min-width: 768px)  { .about__title { font-size: 2.5rem; } }
@media (min-width: 1024px) { .about__title { font-size: 3rem; } }

/* About title uses the same wipe-text class (added in HTML) */

.about__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--fg-10);
}
@media (min-width: 768px) {
  .about__item {
    grid-template-columns: 1fr 3fr 8fr;
    gap: 2rem;
    padding: 3rem 0;
  }
}

.about__num {
  color: var(--fg-30);
  font-size: 0.875rem;
  font-weight: 300;
}
.about__heading {
  font-size: 1.125rem;
  font-weight: 300;
  grid-column: 2 / -1;
}
@media (min-width: 768px) {
  .about__heading { font-size: 1.25rem; grid-column: auto; margin-bottom: 0; }
}
.about__body {
  grid-column: 1 / -1;
  color: var(--fg-60);
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}
@media (min-width: 768px) {
  .about__body { grid-column: auto; font-size: 1rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--fg-10);
}
@media (min-width: 768px) { .footer { padding: 4rem 0; } }

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

.footer__logo img {
  height: 20px;
  width: auto;
  margin-bottom: 0.75rem;
}
.footer__copy {
  color: var(--fg-40);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) { .footer__links { gap: 2rem; } }

.footer__link {
  font-size: 0.875rem;
  color: var(--fg-60);
  font-weight: 300;
  transition: color 0.3s;
}
.footer__link:hover { color: var(--fg); }

.footer__icon svg { width: 20px; height: 20px; }
.footer__icon--disabled { color: var(--fg-30); cursor: not-allowed; }
.footer__icon--disabled:hover { color: var(--fg-30); }

/* ============================================================
   PANELS (contact + privacy)
   ============================================================ */
.panel { position: fixed; inset: 0; z-index: 40; }
.panel[hidden] { display: none; }
.panel__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  animation: fade-in 0.3s var(--ease);
}
.panel__sheet {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: 100%;
  max-width: 32rem;
  background: var(--bg);
  overflow-y: auto;
  animation: slide-in 0.4s var(--ease);
  z-index: 1;
}
.panel__sheet--wide { max-width: 42rem; }
.panel__close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 40px; height: 40px;
  border: 1px solid var(--fg-30);
  border-radius: 9999px;
  color: var(--fg-60);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, color 0.3s;
}
.panel__close:hover { border-color: var(--accent); color: var(--accent); }
.panel__close svg { width: 16px; height: 16px; }

.panel__body { padding: 6rem 2rem 3rem; }
@media (min-width: 768px) { .panel__body { padding: 6rem 3rem 3rem; } }

.panel__title {
  font-size: 1.875rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .panel__title { font-size: 2.25rem; } }

.panel__lede {
  color: var(--fg-60);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.panel__success { padding: 3rem 0; }
.panel__success-title { font-size: 1.25rem; font-weight: 300; }
.panel__success-sub { color: var(--fg-60); font-size: 0.875rem; margin-top: 0.5rem; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form { display: flex; flex-direction: column; gap: 1.5rem; }
.form__row { display: block; }
.form__input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--fg-30);
  padding: 1rem 0;
  color: var(--fg);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
  display: block;
}
.form__input::placeholder { color: var(--fg-40); }
.form__input:focus { border-bottom-color: var(--fg-60); }

/* ============================================================
   PRIVACY POLICY TEXT
   ============================================================ */
.policy {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 300;
}
.policy section { margin-bottom: 2rem; }
.policy h3 { color: var(--fg); font-size: 1.125rem; font-weight: 300; margin-bottom: 0.75rem; }
.policy p { margin-bottom: 0.5rem; }
.policy ul { padding-left: 1.25rem; }
.policy ul li { margin-bottom: 0.25rem; }
.policy__list p { margin-bottom: 0.75rem; padding-left: 0.75rem; }
.policy__list strong { font-weight: 400; color: var(--fg); }
.policy__list span { color: var(--fg-60); }
.policy__updated { border-top: 1px solid var(--fg-10); padding-top: 1rem; color: var(--fg-60); font-size: 0.75rem; }

/* ============================================================
   ANIMATIONS & KEYFRAMES
   ============================================================ */
@keyframes fade-in  { from { opacity: 0; }           to { opacity: 1; } }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}

/* Lock scroll when panel/menu is open */
body.is-locked { overflow: hidden; }
