/* ==========================================================================
   JK Codes — jkcodes.app
   Hand-built, no framework, no build step.
   Graphite + gold house style; each app carries its own accent (--app).
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("../fonts/sora-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --bg: #0a0c12;
  --bg-2: #0f121a;
  --surface: #141823;
  --surface-2: #1a1f2c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f2ee;
  --text-2: #b4b9c6;
  --muted: #7d8494;
  --gold: #f2c572;
  --gold-2: #ffe3a6;
  --gold-3: #d89a3e;
  --gold-ink: #3a2a0c;
  --app: var(--gold);
  --app-soft: rgba(242, 197, 114, 0.14);
  --radius: 20px;
  --radius-sm: 12px;
  --font-body: "Inter", -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: "Sora", "Inter", -apple-system, "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(242, 197, 114, 0.35); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--gold); color: var(--gold-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; z-index: 100; transition: top 0.2s; }
.skip:focus { top: 12px; }

.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.wrap--narrow { width: min(820px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- ambient background ---------- */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(242, 197, 114, 0.13), transparent 60%),
    radial-gradient(800px 600px at 100% 20%, rgba(70, 105, 180, 0.12), transparent 60%),
    radial-gradient(700px 700px at 50% 110%, rgba(242, 197, 114, 0.06), transparent 60%),
    var(--bg);
}
.ambient::after {
  content: ""; position: absolute; inset: 0; opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.ambient::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 20%, transparent 100%);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(10, 12, 18, 0.62);
  border-bottom: 1px solid var(--line);
}
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-weight: 500; font-size: 15px; transition: color 0.2s, background 0.2s; }
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); background: transparent; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform 0.25s, opacity 0.25s; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; } .nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.25s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); color: var(--gold-ink); box-shadow: 0 8px 30px -10px rgba(242, 197, 114, 0.55); }
.btn--primary:hover { box-shadow: 0 14px 34px -10px rgba(242, 197, 114, 0.7); }
.btn--app { background: var(--app); color: #fff; box-shadow: 0 8px 30px -10px var(--app); }
.btn--app:hover { box-shadow: 0 14px 34px -10px var(--app); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.btn--store { padding: 11px 18px 11px 14px; background: #0f121a; border-color: var(--line-2); color: var(--text); text-align: left; gap: 12px; }
.btn--store:hover { border-color: rgba(255, 255, 255, 0.3); background: #151925; }
.btn--store svg { width: 26px; height: 26px; }
.btn--store small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 3px; }
.btn--store b { display: block; font-size: 15.5px; font-weight: 600; }
.btn--store > span { display: flex; flex-direction: column; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; pointer-events: none; }
.btn--soon { border-style: dashed; }

/* ---------- pills, eyebrows ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow--app { color: var(--app); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); font-size: 13px; font-weight: 500; color: var(--text-2); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #5cd494; box-shadow: 0 0 0 4px rgba(92, 212, 148, 0.18); }
.pill .dot--soon { background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 197, 114, 0.18); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-size: 13.5px; color: var(--text-2); }
.chip svg { width: 15px; height: 15px; color: var(--app); }
.chip b { color: var(--text); font-weight: 600; }

/* ---------- hero (home) ---------- */
.hero { padding: clamp(72px, 12vw, 140px) 0 clamp(48px, 8vw, 96px); position: relative; overflow-x: clip; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.2vw, 78px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin: 20px 0 22px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--gold-2), var(--gold) 45%, #c78b3b 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 28px 36px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); }

/* icon cluster in hero */
.cluster { position: relative; aspect-ratio: 1; max-width: 460px; margin-inline: auto; width: 100%; }
.cluster__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.12); animation: spin 80s linear infinite; }
.cluster__ring--2 { inset: 17%; border-style: solid; border-color: rgba(255,255,255,0.06); animation-direction: reverse; animation-duration: 60s; }
.cluster__core { position: absolute; left: 50%; top: 50%; width: 30%; transform: translate(-50%, -50%); border-radius: 26%; box-shadow: 0 30px 80px -20px rgba(242, 197, 114, 0.5), 0 0 0 1px rgba(255,255,255,0.08); }
.orb {
  position: absolute; width: 22%; aspect-ratio: 1; border-radius: 24%; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.8), 0 0 60px -20px var(--app);
  transition: transform 0.5s var(--ease), box-shadow 0.4s;
  animation: float 7s ease-in-out infinite;
}
.orb:hover { transform: scale(1.08) rotate(-2deg); box-shadow: 0 30px 60px -18px rgba(0,0,0,0.8), 0 0 80px -12px var(--app); }
.orb img, .orb svg { width: 100%; height: 100%; }
.orb--1 { left: 3%; top: 16%; animation-delay: -1s; }
.orb--2 { right: 3%; top: 16%; animation-delay: -3s; }
.orb--3 { left: 14%; bottom: 3%; animation-delay: -5s; }
.orb--4 { right: 14%; bottom: 3%; animation-delay: -2s; }
.orb--5 { left: 39%; top: -2%; animation-delay: -4s; }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head h2 { font-size: clamp(30px, 4vw, 46px); margin-top: 14px; max-width: 20ch; }
.section__head p { color: var(--text-2); max-width: 46ch; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__head--center h2 { max-width: 24ch; }

/* ---------- app cards (home) ---------- */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.app-card {
  --app-soft: color-mix(in srgb, var(--app) 14%, transparent);
  position: relative; display: grid; grid-template-columns: 1fr 190px; gap: 24px;
  padding: 30px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.45s var(--ease);
}
.app-card::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: radial-gradient(520px 260px at 0% 0%, var(--app-soft), transparent 65%); opacity: 0.85; transition: opacity 0.4s; }
.app-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--app), transparent 70%); opacity: 0.9; }
.app-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--app) 40%, var(--line-2)); box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--app) 60%, transparent), 0 20px 50px -30px rgba(0,0,0,0.9); }
.app-card__top { display: flex; align-items: center; gap: 16px; }
.app-card__icon { width: 64px; height: 64px; border-radius: 18px; flex: none; box-shadow: 0 12px 30px -12px var(--app), 0 0 0 1px rgba(255,255,255,0.08); overflow: hidden; }
.app-card__icon img, .app-card__icon svg { width: 100%; height: 100%; }
.app-card h3 { font-size: 24px; letter-spacing: -0.02em; }
.app-card__platform { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--app); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 5px; }
.app-card__platform svg { width: 14px; height: 14px; }
.app-card__body { display: flex; flex-direction: column; min-width: 0; }
.app-card__tag { margin: 18px 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 18.5px; letter-spacing: -0.015em; line-height: 1.3; }
.app-card p.desc { color: var(--text-2); font-size: 15.5px; }
.app-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.app-card__meta span::before { content: "•"; margin-right: 8px; color: var(--app); }
.app-card__meta span:first-child::before { content: none; }
.app-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 22px; }
.app-card__actions .btn { padding: 11px 16px; font-size: 14px; }
.app-card__shot { position: relative; align-self: end; margin: -30px -30px -30px 0; padding-top: 24px; display: flex; align-items: flex-end; justify-content: flex-end; }
.app-card__shot img { width: 170px; border-radius: 22px 0 0 0; border: 1px solid var(--line-2); border-right: 0; border-bottom: 0; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.9); transition: transform 0.6s var(--ease); }
.app-card:hover .app-card__shot img { transform: translateY(-8px); }
.app-card__shot--wide { align-items: center; }
.app-card__shot--wide img { width: 240px; border-radius: 12px 0 0 12px; border-bottom: 1px solid var(--line-2); margin-right: -50px; }

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle { padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,0.025); border: 1px solid var(--line); transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease); }
.principle:hover { border-color: var(--line-2); background: rgba(255,255,255,0.045); transform: translateY(-4px); }
.principle__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--app-soft); color: var(--gold); margin-bottom: 20px; border: 1px solid rgba(242,197,114,0.25); }
.principle__icon svg { width: 22px; height: 22px; }
.principle h3 { font-size: 19px; margin-bottom: 10px; }
.principle p { color: var(--text-2); font-size: 15.5px; }

/* ---------- platform strip ---------- */
.platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.platform { display: flex; align-items: center; gap: 20px; padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent); }
.platform__logo { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,0.05); border: 1px solid var(--line-2); flex: none; }
.platform__logo svg { width: 26px; height: 26px; }
.platform h3 { font-size: 18px; }
.platform p { color: var(--text-2); font-size: 14.5px; margin-top: 4px; }
.platform--soon { opacity: 0.7; border-style: dashed; }

/* ---------- contact ---------- */
.contact { border-radius: 28px; padding: clamp(36px, 6vw, 64px); text-align: center; position: relative; overflow: hidden; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(242,197,114,0.08), rgba(242,197,114,0.02)); }
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 0%, rgba(242,197,114,0.18), transparent 70%); pointer-events: none; }
.contact h2 { font-size: clamp(28px, 4vw, 42px); position: relative; }
.contact p { color: var(--text-2); max-width: 52ch; margin: 14px auto 0; position: relative; }
.contact .mail { display: inline-flex; margin-top: 26px; font-family: var(--font-display); font-size: clamp(20px, 3vw, 28px); font-weight: 700; letter-spacing: -0.02em; position: relative; background: linear-gradient(120deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact .mail:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.contact .aliases { margin-top: 18px; font-size: 14px; color: var(--muted); position: relative; }

/* ---------- footer ---------- */
.footer { padding: 48px 0 40px; border-top: 1px solid var(--line); margin-top: 40px; font-size: 14px; color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h3 { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; }
.footer li { margin-bottom: 9px; }
.footer a:hover { color: var(--text); }
.footer__brand p { margin-top: 14px; max-width: 32ch; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }

/* ==========================================================================
   Product page
   ========================================================================== */
.phero { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 72px); overflow-x: clip; }
.phero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.phero__icon { width: 92px; height: 92px; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px -20px var(--app), 0 0 0 1px rgba(255,255,255,0.1); margin-bottom: 26px; }
.phero__icon img, .phero__icon svg { width: 100%; height: 100%; }
.phero h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 800; letter-spacing: -0.035em; margin: 14px 0 18px; }
.phero h1 .grad { background: linear-gradient(120deg, #fff, var(--app)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phero .lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); max-width: 52ch; }
.phero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.phero__note { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.phero .chips { margin-top: 26px; }

/* app window / device frames */
.frame { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 50px 100px -40px rgba(0,0,0,0.9), 0 0 80px -30px var(--app); }
.frame img { width: 100%; }
.frame--glow::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); border-radius: inherit; }
.phero__visual { position: relative; }
.phero__visual .floating { position: absolute; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.9); background: var(--surface); animation: float 8s ease-in-out infinite; }
.phero__visual .floating img { width: 100%; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); cursor: zoom-in; transition: transform 0.4s var(--ease), border-color 0.3s; }
.gallery figure:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--app) 45%, var(--line-2)); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption { padding: 12px 14px; font-size: 13.5px; color: var(--text-2); }
.gallery--windows img { aspect-ratio: auto; object-fit: contain; background: #f3f3f3; padding: 14px; }
.gallery--windows figure { cursor: default; }
.gallery--phone img { aspect-ratio: auto; object-fit: contain; background: #0f121a; }
.gallery--phone figure { cursor: default; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); width: auto; }
dialog.lightbox::backdrop { background: rgba(5, 6, 10, 0.86); backdrop-filter: blur(6px); }
dialog.lightbox img { border-radius: 14px; max-height: 88vh; width: auto; max-width: 100%; }
dialog.lightbox button { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10,12,18,0.7); color: #fff; cursor: pointer; font-size: 20px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)); transition: border-color 0.3s, transform 0.4s var(--ease); }
.feature:hover { border-color: color-mix(in srgb, var(--app) 40%, var(--line-2)); transform: translateY(-3px); }
.feature__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--app) 16%, transparent); color: var(--app); margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--app) 30%, transparent); }
.feature__icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 15px; }
.feature--wide { grid-column: span 2; }

/* split section (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--flip > :first-child { order: 2; }
.split h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 14px; }
.split p { color: var(--text-2); margin-top: 16px; }
.split ul { margin-top: 20px; display: grid; gap: 12px; }
.split li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 15.5px; }
.split li svg { width: 20px; height: 20px; flex: none; color: var(--app); margin-top: 3px; }
.split li b { color: var(--text); font-weight: 600; }

/* spec table */
.spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; border-top: 1px solid var(--line); }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec dt { color: var(--muted); margin: 0; }
.spec dd { margin: 0; text-align: right; color: var(--text); font-weight: 500; }

/* pricing */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.price__card { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); position: relative; overflow: hidden; }
.price__card--hi { border-color: color-mix(in srgb, var(--app) 45%, var(--line-2)); }
.price__card--hi::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 100% 0%, color-mix(in srgb, var(--app) 18%, transparent), transparent 70%); pointer-events: none; }
.price__card h3 { font-size: 20px; }
.price__big { font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 4px; }
.price__big small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.price__card p { color: var(--text-2); font-size: 15px; }
.price__card ul { margin-top: 18px; display: grid; gap: 10px; }
.price__card li { display: flex; gap: 10px; font-size: 15px; color: var(--text-2); }
.price__card li svg { width: 18px; height: 18px; color: var(--app); flex: none; margin-top: 3px; }
.price__card .btn { margin-top: 24px; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.025); transition: border-color 0.3s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--app); font-weight: 400; transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p, .faq details > ul { padding: 0 22px 20px; color: var(--text-2); font-size: 15.5px; }
.faq details > ul { list-style: disc; padding-left: 42px; }

/* product CTA band */
.band { border-radius: 28px; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; border: 1px solid color-mix(in srgb, var(--app) 40%, var(--line-2)); background: radial-gradient(700px 320px at 0% 0%, color-mix(in srgb, var(--app) 22%, transparent), transparent 70%), linear-gradient(180deg, var(--surface), var(--bg-2)); position: relative; overflow: hidden; }
.band h2 { font-size: clamp(28px, 4vw, 42px); }
.band p { color: var(--text-2); margin-top: 12px; max-width: 46ch; }
.band__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.crumbs a:hover { color: var(--text); }
.crumbs span::before { content: "/"; margin-right: 8px; opacity: 0.5; }

/* ==========================================================================
   Prose (privacy pages)
   ========================================================================== */
.prose { padding: clamp(48px, 8vw, 96px) 0; }
.prose h1 { font-size: clamp(34px, 5vw, 54px); margin: 12px 0 10px; }
.prose .updated { color: var(--muted); font-size: 14px; }
.prose h2 { font-size: 24px; margin: 44px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 18px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text-2); font-size: 16.5px; }
.prose p + p { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 24px; margin: 12px 0; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(242,197,114,0.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--gold); }
.prose .callout { margin: 24px 0; padding: 22px 24px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--app) 35%, var(--line-2)); background: color-mix(in srgb, var(--app) 9%, transparent); }
.prose .callout p { color: var(--text); }
.prose .callout strong { color: var(--app); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.prose th { color: var(--text); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.prose .table-wrap { overflow-x: auto; }
.prose code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.9em; background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 6px; color: var(--text); }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound h1 { font-size: clamp(60px, 14vw, 140px); line-height: 1; background: linear-gradient(120deg, var(--gold-2), var(--gold-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound p { color: var(--text-2); margin: 14px 0 28px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .apps { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature--wide { grid-column: span 2; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero__grid, .phero__grid, .split, .band { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .cluster { max-width: 340px; margin-top: 24px; }
  .band__cta { justify-content: flex-start; }
  .nav__toggle { display: inline-flex; }
  .nav__links { position: absolute; left: 0; right: 0; top: var(--nav-h); flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 4px; background: rgba(10,12,18,0.96); border-bottom: 1px solid var(--line); display: none; }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 14px; font-size: 16px; }
  .section__head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .wrap, .wrap--narrow { width: calc(100% - 32px); }
  .app-card { grid-template-columns: 1fr; padding: 24px; }
  .app-card__shot { display: none; }
  .principles, .features, .gallery, .platforms, .price, .footer__grid, .spec { grid-template-columns: 1fr; }
  .feature--wide { grid-column: auto; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 20px 28px; }
  .stat b { font-size: 26px; }
  .btn--store { width: 100%; }
  .phero__cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 720px) { .gallery--phone { grid-template-columns: 1fr 1fr; } }
