:root {
  --bg: #080808;
  --bg-elevated: #111111;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f2eb;
  --text-muted: rgba(245, 242, 235, 0.62);
  --text-faint: rgba(245, 242, 235, 0.38);
  --accent: #5b7cff;
  --accent-soft: rgba(91, 124, 255, 0.14);
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --header-height: 76px;
  --section-space: clamp(88px, 12vw, 140px);
  --container: min(1200px, calc(100vw - 48px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 8, 8, 0.82);
  border-color: var(--border);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: var(--container);
  margin: 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.logo-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.logo-suffix {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-left: 0.2em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}

.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.header-cta:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.nav-mobile {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-mobile[hidden] {
  display: none;
}

.nav-link--email {
  color: var(--text-faint);
  font-size: 13px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}

.btn--primary:hover {
  background: #fff;
}

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

.btn--outline {
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.04);
}

.btn--sm {
  padding: 10px 16px;
  font-size: 13px;
}

.btn--full {
  width: 100%;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-height) + 48px) 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: auto;
  top: 8%;
  right: 5%;
  width: min(560px, 45vw);
  height: min(560px, 45vw);
  background: radial-gradient(circle, rgba(91, 124, 255, 0.2), transparent 68%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-inner {
  width: var(--container);
  margin: 0 auto;
  flex: 1;
  display: flex;
  align-items: center;
  padding-bottom: 48px;
}

.hero-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 46%);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vw, 96px);
}

.hero-top {
  display: flex;
  align-items: flex-start;
}

.hero-brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-brand-name {
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.hero-brand-sub {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 32px);
}

.hero-headline {
  max-width: 16ch;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
}

.hero-actions .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  width: min(100%, 480px);
}

.hero-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.hero-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-role {
  font-size: 12px;
  color: var(--text-faint);
}

.hero-card-name {
  font-size: 15px;
  font-weight: 600;
}

.hero-card-link {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  transition: background 0.2s ease;
}

.hero-card-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Hero 3D phone */

.hero-phone-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(420px, 52vh, 620px);
  pointer-events: none;
}

.hero-phone-orbit {
  position: absolute;
  width: min(420px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(91, 124, 255, 0.22) 0%,
    rgba(91, 124, 255, 0.06) 42%,
    transparent 70%
  );
  filter: blur(8px);
  animation: orbitPulse 5s ease-in-out infinite;
}

.hero-phone-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}

.hero-phone-float {
  animation: phoneFloat 5.5s ease-in-out infinite;
  transform-style: preserve-3d;
}

.hero-phone-3d {
  position: relative;
  transform: rotateY(var(--phone-rotate-y, -26deg)) rotateX(var(--phone-rotate-x, 8deg));
  transform-style: preserve-3d;
  transition: transform 0.35s ease-out;
}

.hero-phone-frame {
  position: relative;
  width: clamp(220px, 22vw, 280px);
  aspect-ratio: 9 / 19.2;
  padding: clamp(10px, 1.2vw, 12px);
  border-radius: clamp(36px, 4vw, 44px);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 18%,
    rgba(0, 0, 0, 0.92) 55%,
    rgba(20, 20, 20, 0.98) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -8px 20px rgba(0, 0, 0, 0.55),
    -28px 32px 70px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(91, 124, 255, 0.12);
  transform-style: preserve-3d;
}

.hero-phone-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #1c1c1c, #050505);
  transform: translateZ(-14px);
  box-shadow: -18px 24px 40px rgba(0, 0, 0, 0.45);
}

.hero-phone-frame::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.05) 40%,
    rgba(255, 255, 255, 0.12)
  );
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.hero-phone-btn {
  position: absolute;
  background: linear-gradient(180deg, #2a2a2a, #111);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-phone-btn--silent {
  left: -3px;
  top: 22%;
  width: 3px;
  height: 28px;
  transform: translateZ(8px);
}

.hero-phone-btn--volume {
  left: -3px;
  top: 32%;
  width: 3px;
  height: 48px;
  transform: translateZ(8px);
}

.hero-phone-screen-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: clamp(28px, 3.2vw, 34px);
  overflow: hidden;
  background: #000;
  transform: translateZ(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 26px;
  border-radius: 18px;
  background: #000;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-phone-camera {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4a6088, #0a0f18 70%);
}

.hero-phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero-phone-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.04) 22%,
    transparent 48%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-phone-shadow {
  position: absolute;
  left: 50%;
  bottom: -12%;
  width: 72%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 70%);
  transform: translateX(-42%) rotateX(78deg) translateZ(-40px);
  filter: blur(10px);
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@keyframes orbitPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-phone-float,
  .hero-phone-orbit {
    animation: none;
  }

  .hero-phone-3d {
    transition: none;
  }
}

.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.marquee-track span {
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Sections */

.section {
  width: var(--container);
  margin: 0 auto;
  padding: var(--section-space) 0;
}

.section-head {
  margin-bottom: clamp(40px, 6vw, 64px);
  max-width: 720px;
}

.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.section-title--center {
  text-align: center;
  max-width: 18ch;
  margin: 0 auto 48px;
}

.section-lead {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 56ch;
}

.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-lead--center {
  margin-left: auto;
  margin-right: auto;
}

/* Company overview */

.section--company {
  border-top: 1px solid var(--border);
}

.app-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.app-preview-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.app-preview-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.app-preview-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--border);
}

.app-preview-logo--light,
.product-logo--light,
.feature-logo--light {
  object-fit: contain;
  background: #fff;
}

.app-preview-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 6px;
}

.app-preview-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.app-preview-arrow {
  margin-left: auto;
  font-size: 20px;
  color: var(--text-faint);
}

/* Product sections */

.section--product {
  border-top: 1px solid var(--border);
}

.product-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
  margin-bottom: clamp(40px, 6vw, 56px);
}

.product-logo {
  width: clamp(80px, 10vw, 96px);
  height: clamp(80px, 10vw, 96px);
  border-radius: 22px;
  border: 1px solid var(--border);
  object-fit: cover;
}

.product-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.product-intro .btn {
  margin-top: 4px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(20px, 3vw, 24px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.feature-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--border);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.product-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.product-download p {
  font-size: 15px;
  color: var(--text-muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.footer-legal-btn {
  margin-top: 20px;
}

/* Legal page */

.legal-page .legal-main {
  width: var(--container);
  margin: 0 auto;
  padding: calc(var(--header-height) + 48px) 0 var(--section-space);
}

.legal-page-head {
  max-width: 720px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.legal-back {
  margin-top: 24px;
}

.legal-doc {
  padding: clamp(28px, 4vw, 40px) 0;
  border-top: 1px solid var(--border);
}

.legal-doc h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  margin-bottom: 8px;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 72ch;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-body h3 {
  color: var(--text);
  font-size: 17px;
  margin-top: 12px;
}

.legal-body ul {
  padding-left: 20px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body a {
  color: var(--accent);
}

.site-footer--compact {
  padding-top: 32px;
}

.site-footer--compact .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-legal-link {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-legal-link:hover {
  color: var(--text);
}

.legal-controls {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 40px);
  margin-bottom: 20px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.legal-control-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: min(100%, 280px);
}

.legal-control-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.legal-app-tabs,
.legal-doc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legal-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.legal-tab img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.legal-tab--light img {
  object-fit: contain;
  background: #fff;
}

.legal-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.legal-tab.is-active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
  color: var(--text);
}

.legal-tab--doc {
  padding: 10px 20px;
}

.legal-context {
  font-size: 14px;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.legal-context strong {
  color: var(--text-muted);
  font-weight: 600;
}

.legal-panel[hidden] {
  display: none;
}

.legal-panel.is-active {
  display: block;
}

.legal-body-intro {
  margin-bottom: 4px;
}

.legal-callouts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 20px;
}

.legal-callout {
  padding: clamp(16px, 2.5vw, 20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.legal-callout--accent {
  border-color: rgba(91, 124, 255, 0.28);
  background: rgba(91, 124, 255, 0.06);
}

.legal-callout h4 {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.legal-callout p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* App showcase */

.section--app {
  border-top: 1px solid var(--border);
}

.app-showcase {
  position: relative;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.device-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at 50% 0%, rgba(91, 124, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.device-viewport {
  overflow: hidden;
  width: min(360px, 72vw);
}

.device-track {
  display: flex;
  list-style: none;
  transform: translateX(calc(var(--active-index, 0) * -100%));
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.device-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px 12px;
  opacity: 0.45;
  transform: scale(0.94);
  transition: opacity 0.45s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.device-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.device-frame {
  width: min(280px, 68vw);
  aspect-ratio: 9 / 19.5;
}

.device-phone {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  padding: 12px;
  background: linear-gradient(180deg, #1a1a1a, #050505);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.device-phone-screen {
  position: absolute;
  inset: 12px;
  border-radius: 26px;
  background: var(--screen-image, linear-gradient(135deg, #5b7cff, #8ea4ff));
  background-size: cover;
  background-position: center;
}

.device-phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  border-radius: 16px;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 1;
}

.device-phone-camera {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2a3555;
}

.device-phone-speaker {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #222;
}

.device-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.device-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.device-dot.is-active {
  transform: scale(1.5);
  background: var(--text);
}

.device-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(8, 8, 8, 0.72);
  color: var(--text);
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.device-nav:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(calc(-50% - 1px));
}

.device-nav--prev {
  left: 16px;
}

.device-nav--next {
  right: 16px;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  min-height: 280px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.project-card-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.project-card-meta h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.project-card-meta p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Stats */

.section--stats {
  border-top: 1px solid var(--border);
  text-align: center;
}

.stats-label {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
}

.stat-value {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* Features */

.section--features {
  border-top: 1px solid var(--border);
}

.feature-list {
  display: flex;
  flex-direction: column;
}

.feature-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: clamp(20px, 4vw, 40px);
  padding: clamp(28px, 4vw, 40px) 0;
  border-top: 1px solid var(--border);
}

.feature-item:last-child {
  border-bottom: 1px solid var(--border);
}

.feature-num {
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

.feature-body h3 {
  font-size: clamp(22px, 3vw, 30px);
  font-family: var(--serif);
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.15;
}

.feature-body p {
  color: var(--text-muted);
  max-width: 62ch;
  font-size: 16px;
}

/* Benefits */

.section--benefits {
  border-top: 1px solid var(--border);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.benefit-block {
  margin-top: 28px;
}

.benefit-block h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.benefit-block p {
  color: var(--text-muted);
  max-width: 48ch;
}

.chat-mock {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

.chat-bubble {
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  max-width: 88%;
}

.chat-bubble--user {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.chat-bubble--brand {
  align-self: flex-end;
  background: var(--accent-soft);
  border: 1px solid rgba(91, 124, 255, 0.22);
}

.benefits-metrics {
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(circle at 100% 0%, rgba(91, 124, 255, 0.12), transparent 45%),
    rgba(255, 255, 255, 0.02);
}

.metrics-eyebrow {
  font-size: 13px;
  color: var(--text-faint);
}

.metrics-big {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
  margin: 8px 0 28px;
}

.metric-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.metric-card {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
}

.metric-card h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.metric-card p {
  font-size: 13px;
  color: var(--text-muted);
}

.metric-badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.metric-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-pills li {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

/* Process */

.section--process {
  border-top: 1px solid var(--border);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-step {
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.process-num {
  display: block;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.process-step h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
}

.process-step p {
  font-size: 14px;
  color: var(--text-muted);
}

/* FAQ */

.section--faq {
  border-top: 1px solid var(--border);
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  font-size: clamp(18px, 2.5vw, 22px);
  font-family: var(--serif);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--sans);
  font-size: 22px;
  color: var(--text-faint);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 0 24px;
  color: var(--text-muted);
  max-width: 72ch;
}

.faq-item a {
  color: var(--accent);
  text-decoration: underline;
}

/* Legal */

.section--legal {
  border-top: 1px solid var(--border);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.legal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  padding: clamp(24px, 3vw, 32px);
}

.legal-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.legal-content {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  color: var(--text-muted);
}

.legal-content h4 {
  color: var(--text);
  font-size: 15px;
  margin-top: 8px;
}

.legal-content ul {
  padding-left: 18px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--accent);
}

.legal-content::-webkit-scrollbar {
  width: 6px;
}

.legal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

/* Contact */

.section--contact {
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-points {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-points li {
  color: var(--text-muted);
  max-width: 48ch;
}

.contact-points strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.contact-founder {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.contact-founder img {
  border-radius: 50%;
  border: 1px solid var(--border);
}

.contact-founder-name {
  font-weight: 600;
}

.contact-founder-role {
  font-size: 13px;
  color: var(--text-faint);
}

.contact-founder .btn {
  margin-left: auto;
}

.contact-form {
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-title {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 4px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(91, 124, 255, 0.45);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
}

.form-note a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(48px, 6vw, 72px) 24px 32px;
}

.footer-top {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-tagline {
  margin-top: 16px;
  color: var(--text-muted);
  max-width: 36ch;
  font-size: 15px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  width: var(--container);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
}

/* Responsive */

@media (max-width: 1024px) {
  .app-preview-grid {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-phone-scene {
    order: -1;
    min-height: clamp(340px, 48vw, 460px);
    margin-bottom: 8px;
  }

  .hero-phone-3d {
    --phone-rotate-y: -16deg;
    --phone-rotate-x: 6deg;
  }

  .stats-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-grid,
  .contact-grid,
  .legal-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .section-head--split {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .nav-desktop,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-headline {
    max-width: none;
  }

  .app-preview-grid,
  .feature-grid,
  .project-cards,
  .stats-grid,
  .process-grid,
  .footer-nav {
    grid-template-columns: 1fr;
  }

  .product-header {
    grid-template-columns: 1fr;
  }

  .product-logo {
    width: 80px;
    height: 80px;
  }

  .feature-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .device-nav {
    width: 40px;
    height: 40px;
  }

  .device-nav--prev {
    left: 8px;
  }

  .device-nav--next {
    right: 8px;
  }

  .contact-founder {
    flex-wrap: wrap;
  }

  .contact-founder .btn {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --container: calc(100vw - 32px);
  }

  .hero {
    padding-top: calc(var(--header-height) + 24px);
  }

  .hero-actions {
    flex-wrap: wrap;
  }
}
