/* ───────── Tokens ───────── */
:root {
  --paper: #ffffff;
  --mist: #f2f4f9;
  --line: #e2e6ef;
  --ink: #16181d;
  --muted: #5d6273;
  --cobalt: #2f54eb;
  --cobalt-ink: #ffffff;
  --sun: #ffd43b;
  --leaf: #1fb57a;
  --pare: #ee722b;
  --tile-empty: #e9ecf3;
  --phone: #16181d;
  --screen: #f7f8fb;

  --radius-lg: 28px;
  --radius-md: 18px;
  --wrap: 1120px;
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121419;
    --mist: #1a1d24;
    --line: #2a2e38;
    --ink: #f2f3f6;
    --muted: #a3a8b8;
    --cobalt: #6f8bff;
    --cobalt-ink: #0d1020;
    --tile-empty: #262a34;
    --phone: #050608;
    --screen: #1c1f27;
  }
}
:root[data-theme="dark"] {
  --paper: #121419;
  --mist: #1a1d24;
  --line: #2a2e38;
  --ink: #f2f3f6;
  --muted: #a3a8b8;
  --cobalt: #6f8bff;
  --cobalt-ink: #0d1020;
  --tile-empty: #262a34;
  --phone: #050608;
  --screen: #1c1f27;
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

.skip {
  position: absolute; left: 16px; top: -48px;
  background: var(--ink); color: var(--paper);
  padding: 8px 14px; border-radius: 10px; z-index: 100; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.brand-sm { font-size: 18px; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 16px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta { color: var(--ink); border: 1.5px solid var(--line); padding: 8px 16px; border-radius: 999px; }
.nav-links .nav-cta:hover { border-color: var(--ink); }
@media (max-width: 520px) {
  .nav-links { gap: 16px; font-size: 15px; }
  .nav-links li:first-child { display: none; }
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 26px; border-radius: 999px;
  font: 600 17px/1 var(--font); text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--cobalt); color: var(--cobalt-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--cobalt) 88%, var(--ink)); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* ───────── Hero ───────── */
.hero { padding: 56px 0 96px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 80px); font-weight: 800; letter-spacing: -0.035em; max-width: 13ch; }
.lead { margin-top: 24px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Phone home screen — the signature element */
.phone {
  justify-self: center;
  width: 300px; padding: 12px;
  background: var(--phone);
  border-radius: 48px;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(22, 24, 29, .45);
  transform: rotate(3deg);
}
.phone-screen { background: var(--screen); border-radius: 37px; padding: 14px 18px 16px; aspect-ratio: 9 / 18.5; display: flex; flex-direction: column; }
.status { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; padding: 2px 8px 18px; }
.status-dots { display: flex; gap: 3px; }
.status-dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: block; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 14px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; }
.tile img, .tile b { width: 100%; aspect-ratio: 1; border-radius: 26%; display: block; }
.tile span { line-height: 1; height: 11px; }
.tile-live img { box-shadow: 0 0 0 1px rgba(22, 24, 29, .06), 0 6px 14px -6px rgba(238, 114, 43, .55); }
.tile-soon b { border: 2px dashed color-mix(in srgb, var(--cobalt) 55%, transparent); background: color-mix(in srgb, var(--cobalt) 7%, transparent); }
.tile-soon span { color: var(--cobalt); }
.tile-empty b { background: var(--tile-empty); }
.dock { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 12px; border-radius: 26px; background: color-mix(in srgb, var(--tile-empty) 60%, transparent); }
.dock b { aspect-ratio: 1; border-radius: 26%; background: var(--tile-empty); display: block; }

/* One orchestrated load moment: the home screen fills in */
@media (prefers-reduced-motion: no-preference) {
  .tile { animation: pop .5s cubic-bezier(.2, .9, .3, 1.3) both; }
  .tile:nth-child(1)  { animation-delay: .25s; }
  .tile:nth-child(2)  { animation-delay: .40s; }
  .tile:nth-child(3)  { animation-delay: .48s; }
  .tile:nth-child(4)  { animation-delay: .56s; }
  .tile:nth-child(n+5) { animation-delay: .66s; }
  @keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
}

@media (max-width: 900px) {
  .hero { padding: 32px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .phone { width: 272px; transform: rotate(2deg); }
}

/* ───────── Sections ───────── */
.section { padding: 104px 0; }
.section-tint { background: var(--mist); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); }
.section-head p { color: var(--muted); }
@media (max-width: 520px) { .section { padding: 72px 0; } }

/* Apps */
.apps { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.app-card {
  display: flex; gap: 28px; align-items: flex-start;
  padding: 36px; border-radius: var(--radius-lg);
  background: var(--mist);
}
.app-icon { width: 96px; height: 96px; border-radius: 22px; flex: none; box-shadow: 0 0 0 1px rgba(22, 24, 29, .06), 0 12px 24px -12px rgba(238, 114, 43, .5); }
.app-body h3 { font-size: 34px; }
.app-tag { margin-top: 6px; font-weight: 600; color: var(--pare); }
.app-body > p:not(.app-tag) { margin-top: 14px; color: var(--muted); max-width: 48ch; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 18px; border-radius: 14px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-weight: 600; font-size: 16px; line-height: 1.05;
}
.store[hidden] { display: none; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: .75; }
.soon-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px dashed var(--line);
  color: var(--muted);
  font-size: 15px; font-weight: 600;
}
.soon-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.soon-pill[hidden] { display: none; }

.next-card {
  padding: 36px; border-radius: var(--radius-lg);
  border: 2px dashed var(--line);
  display: flex; flex-direction: column;
}
.next-icons { display: flex; gap: 10px; margin-bottom: 28px; }
.next-icons b { width: 52px; height: 52px; border-radius: 14px; border: 2px dashed color-mix(in srgb, var(--cobalt) 55%, transparent); background: color-mix(in srgb, var(--cobalt) 7%, transparent); }
.next-card h3 { font-size: 26px; }
.next-card p { margin-top: 10px; color: var(--muted); }
.text-link { margin-top: auto; padding-top: 24px; font-weight: 600; color: var(--cobalt); text-underline-offset: 4px; }

@media (max-width: 900px) {
  .apps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .app-card { flex-direction: column; padding: 28px 22px; gap: 20px; }
  .app-icon { width: 80px; height: 80px; border-radius: 18px; }
  .next-card { padding: 28px 22px; }
}

/* Studio */
.studio-head { max-width: 760px; }
.studio-head h2 { font-size: clamp(32px, 4vw, 48px); }
.studio-head p { margin-top: 20px; color: var(--muted); max-width: 60ch; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; }
.values h3 { font-size: 22px; margin-top: 18px; }
.values p { margin-top: 8px; color: var(--muted); font-size: 17px; }
.v-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; }
.v-icon svg { width: 26px; height: 26px; }
.v-blue  { background: color-mix(in srgb, var(--cobalt) 14%, transparent); color: var(--cobalt); }
.v-sun   { background: color-mix(in srgb, var(--sun) 35%, transparent); color: color-mix(in srgb, #b8860b 80%, var(--ink)); }
.v-green { background: color-mix(in srgb, var(--leaf) 16%, transparent); color: var(--leaf); }
.made-in { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-weight: 500; }
@media (max-width: 800px) { .values { grid-template-columns: 1fr; gap: 36px; margin-top: 48px; } }

/* Contact */
.contact-inner { text-align: center; }
.contact h2 { font-size: clamp(30px, 4vw, 48px); max-width: 18ch; margin: 0 auto; }
.contact p { margin-top: 14px; color: var(--muted); }
.contact-mail {
  display: inline-block; margin-top: 32px;
  font-size: clamp(24px, 4.5vw, 44px); font-weight: 700; letter-spacing: -0.02em;
  color: var(--cobalt); text-decoration: none;
  border-bottom: 3px solid color-mix(in srgb, var(--cobalt) 30%, transparent);
  transition: border-color .15s;
  overflow-wrap: anywhere;
}
.contact-mail:hover { border-color: var(--cobalt); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.copy { font-size: 15px; color: var(--muted); }
