:root {
  --bg: #06070d;
  --bg-alt: #0b0f1c;
  --surface: rgba(15, 21, 38, 0.78);
  --surface-solid: #0d1220;
  --surface-hover: rgba(24, 33, 58, 0.92);
  --border: rgba(148, 163, 184, 0.14);
  --border-accent: rgba(244, 63, 94, 0.38);
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --crimson: #f43f5e;
  --crimson-deep: #e11d48;
  --amber: #f59e0b;
  --emerald: #10b981;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 24px 60px -18px rgba(244, 63, 94, 0.24);
  --shadow-card: 0 20px 44px -20px rgba(0, 0, 0, 0.75);
  --max-w: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(244, 63, 94, 0.14), transparent 60%),
    radial-gradient(50rem 36rem at 10% 20%, rgba(245, 158, 11, 0.08), transparent 60%),
    radial-gradient(48rem 40rem at 50% 100%, rgba(99, 102, 241, 0.08), transparent 65%);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(6, 7, 13, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex-shrink: 0;
}

.brand-sub {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep) 60%, #be123c);
  color: #fff;
  box-shadow: 0 10px 28px -8px rgba(244, 63, 94, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -8px rgba(244, 63, 94, 0.7);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 22px;
  background: rgba(10, 14, 24, 0.98);
  border-bottom: 1px solid var(--border);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-soft);
  font-weight: 500;
}

.mobile-drawer a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* Hero Section */
.hero {
  padding: 68px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.28);
  color: #fda4af;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 12px var(--crimson);
}

h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

.hero h1 {
  font-size: clamp(2.35rem, 4.4vw, 3.7rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(125deg, #ffffff 10%, #fda4af 52%, #fbbf24 98%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 590px;
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.stat-item strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--text);
}

.stat-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Vertical Phone Showcase for D200 */
.showcase-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

.showcase-glow {
  position: absolute;
  width: 340px;
  height: 440px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.34), rgba(245, 158, 11, 0.14) 55%, transparent 75%);
  filter: blur(42px);
  z-index: 0;
  animation: pulseGlow 7s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1) translateY(0); opacity: 0.85; }
  50% { transform: scale(1.06) translateY(-8px); opacity: 1; }
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 312px;
  border-radius: 38px;
  padding: 12px;
  background: linear-gradient(160deg, #1e293b, #090d16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 32px 70px -18px rgba(0, 0, 0, 0.88), var(--shadow-glow);
}

.phone-screen {
  position: relative;
  height: 560px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 22%, rgba(244, 63, 94, 0.38), transparent 52%),
    radial-gradient(circle at 20% 55%, rgba(245, 158, 11, 0.22), transparent 55%),
    linear-gradient(180deg, #151b30 0%, #090b12 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 16px;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
}

.pill-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 7, 13, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 600;
  color: #f8fafc;
}

.pill-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
}

.phone-stage {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.phone-meta {
  flex: 1;
}

.phone-code {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(244, 63, 94, 0.24);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fecdd3;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.phone-meta h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.phone-meta p {
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.45;
  margin-bottom: 10px;
}

.sub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.sub-chips span {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.phone-watch-btn {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--crimson), #fb7185);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.phone-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  padding-bottom: 6px;
}

.rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.66rem;
  color: var(--text-soft);
}

.rail-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
}

.phone-art {
  margin: auto 0;
  display: grid;
  place-items: center;
  opacity: 0.92;
}

.play-emblem {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.22);
  border: 1px solid rgba(244, 63, 94, 0.55);
  display: grid;
  place-items: center;
  box-shadow: 0 0 40px rgba(244, 63, 94, 0.35);
}

/* Sections */
.section {
  padding: 74px 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-label {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fda4af;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Studio Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  background: var(--surface-hover);
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(245, 158, 11, 0.12));
  border: 1px solid rgba(244, 63, 94, 0.28);
  display: grid;
  place-items: center;
  color: #fda4af;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* Flagship App Spotlight + Companion Apps */
.flagship-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: center;
  padding: 36px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 63, 94, 0.18), transparent 55%),
    linear-gradient(160deg, rgba(16, 23, 42, 0.94), rgba(10, 14, 26, 0.96));
  border: 1px solid rgba(244, 63, 94, 0.32);
  box-shadow: var(--shadow-glow);
  margin-bottom: 24px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

.badge-flagship {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.42);
  color: #fda4af;
}

.badge-amber {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 20px 0 24px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.feature-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson);
  flex-shrink: 0;
}

.flagship-spec-box {
  background: rgba(6, 7, 13, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.88rem;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row span:first-child {
  color: var(--text-muted);
}

.spec-row strong {
  color: var(--text);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.app-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.app-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Contact Card */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.contact-email-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  margin: 18px 0;
  flex-wrap: wrap;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(6, 7, 13, 0.75);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
}

.input:focus {
  outline: none;
  border-color: var(--crimson);
}

textarea.input {
  min-height: 104px;
  resize: vertical;
}

/* Legal Document Pages */
.legal-hero {
  padding: 54px 0 34px;
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  margin: 10px 0 12px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 42px 0 72px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.legal-toc h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.legal-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-soft);
  transition: background 0.16s ease, color 0.16s ease;
}

.legal-toc a:hover,
.legal-toc a.active {
  background: rgba(244, 63, 94, 0.14);
  color: #fda4af;
}

.legal-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
}

.legal-section {
  scroll-margin-top: 96px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: 1.38rem;
  margin-bottom: 12px;
  color: #fff;
}

.legal-section h3 {
  font-size: 1.04rem;
  margin: 16px 0 8px;
  color: #fda4af;
}

.legal-section p {
  color: var(--text-soft);
  margin-bottom: 12px;
}

.legal-section ul {
  margin: 10px 0 14px 20px;
  color: var(--text-soft);
}

.legal-section li {
  margin-bottom: 7px;
}

.callout-box {
  background: rgba(244, 63, 94, 0.09);
  border: 1px solid rgba(244, 63, 94, 0.28);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 14px 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.legal-table th {
  color: #fda4af;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
}

.legal-table td {
  color: var(--text-soft);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(6, 7, 13, 0.9);
  padding: 46px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 34px;
}

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.16s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #0f172a;
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #ecfdf5;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .flagship-card,
  .contact-box,
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .pillars-grid,
  .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .legal-toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-actions .btn-outline {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero {
    padding: 44px 0 38px;
  }
  .hero-stats,
  .pillars-grid,
  .apps-grid,
  .feature-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .legal-body {
    padding: 24px 20px;
  }
  .flagship-card,
  .contact-box {
    padding: 24px;
  }
}
