/* ==========================================================================
   Editor's Choice Apps: website styles
   Brand: #1D4ED8 blue · #7DD3FC sky · #0B1220 ink · Sora (display) + Inter (text)
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --brand: #1D4ED8;
  --brand-strong: #1E40AF;
  --brand-bright: #3B82F6;
  --sky: #7DD3FC;
  --ink: #0B1220;

  --bg: #FFFFFF;
  --bg-alt: #F5F7FC;
  --surface: #FFFFFF;
  --surface-2: #F1F4FB;
  --border: #E3E8F2;
  --border-strong: #CED7E6;
  --text: #0B1220;
  --text-2: #3A4762;
  --muted: #66748C;
  --accent: #1D4ED8;               /* brand-coloured text: links, eyebrows, "Apps" */
  --accent-soft: rgba(29, 78, 216, .08);
  --ring: rgba(59, 130, 246, .28);
  --success: #059669;
  --success-soft: rgba(5, 150, 105, .1);
  --warn: #B45309;
  --warn-soft: rgba(217, 119, 6, .12);
  --header-bg: rgba(255, 255, 255, .8);
  --footer-bg: #0B1220;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .05), 0 2px 6px rgba(11, 18, 32, .04);
  --shadow-md: 0 12px 32px -12px rgba(15, 35, 95, .18);
  --shadow-lg: 0 28px 60px -24px rgba(15, 35, 95, .28);
  --grad: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 55%, #38BDF8 100%);
  --grad-text: linear-gradient(92deg, #1D4ED8 0%, #3B82F6 50%, #0EA5E9 100%);

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1220;
    --bg-alt: #0D1628;
    --surface: #111B2F;
    --surface-2: #17233C;
    --border: #1F2C47;
    --border-strong: #2C3C5E;
    --text: #EAF0FA;
    --text-2: #B3C0D8;
    --muted: #8291AC;
    --accent: #7DD3FC;
    --accent-soft: rgba(125, 211, 252, .1);
    --ring: rgba(125, 211, 252, .3);
    --success: #34D399;
    --success-soft: rgba(52, 211, 153, .12);
    --warn: #FBBF24;
    --warn-soft: rgba(251, 191, 36, .12);
    --header-bg: rgba(11, 18, 32, .75);
    --footer-bg: #070D19;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, .55);
    --shadow-lg: 0 28px 60px -24px rgba(0, 0, 0, .7);
    --grad-text: linear-gradient(92deg, #60A5FA 0%, #7DD3FC 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1220;
  --bg-alt: #0D1628;
  --surface: #111B2F;
  --surface-2: #17233C;
  --border: #1F2C47;
  --border-strong: #2C3C5E;
  --text: #EAF0FA;
  --text-2: #B3C0D8;
  --muted: #8291AC;
  --accent: #7DD3FC;
  --accent-soft: rgba(125, 211, 252, .1);
  --ring: rgba(125, 211, 252, .3);
  --success: #34D399;
  --success-soft: rgba(52, 211, 153, .12);
  --warn: #FBBF24;
  --warn-soft: rgba(251, 191, 36, .12);
  --header-bg: rgba(11, 18, 32, .75);
  --footer-bg: #070D19;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, .55);
  --shadow-lg: 0 28px 60px -24px rgba(0, 0, 0, .7);
  --grad-text: linear-gradient(92deg, #60A5FA 0%, #7DD3FC 100%);
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { text-wrap: balance; font-family: var(--font-display); line-height: 1.15; letter-spacing: -.025em; margin: 0; font-weight: 700; color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(125, 211, 252, .45); color: inherit; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.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-link { position: absolute; left: 16px; top: -100px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 600; }
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 3. Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: .8125rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before, .eyebrow::after { font-weight: 700; color: var(--sky); }
.eyebrow::before { content: "<"; }
.eyebrow::after { content: "/>"; }
:root[data-theme="dark"] .eyebrow::before, :root[data-theme="dark"] .eyebrow::after { color: var(--brand-bright); }

.h2 { font-size: clamp(1.875rem, 1.15rem + 2.6vw, 2.875rem); margin-top: 14px; }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--text-2); margin-top: 16px; max-width: 62ch; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 4. Buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: .9375rem; font-weight: 600; line-height: 1; white-space: nowrap;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .icon-arrow { transition: transform .2s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn--sm { --h: 40px; padding: 0 16px; font-size: .875rem; }
.btn--lg { --h: 54px; padding: 0 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(29, 78, 216, .75), inset 0 1px 0 rgba(255, 255, 255, .16); }
.btn--primary:hover { background: var(--brand-strong); transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(29, 78, 216, .8), inset 0 1px 0 rgba(255, 255, 255, .16); }
:root[data-theme="dark"] .btn--primary { background: #2563EB; }
:root[data-theme="dark"] .btn--primary:hover { background: #1D4ED8; }
.btn--ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--accent); }
.btn--light { background: #fff; color: var(--ink); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.btn--light:hover { transform: translateY(-1px); background: #EEF4FF; }
.btn--glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); }

.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; flex: none;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.icon-btn .icon { width: 20px; height: 20px; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgba(15, 35, 95, .4); }
.nav { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -.025em; color: var(--text); white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 9px; transition: transform .35s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand__accent { color: var(--accent); }
.brand--light { color: #fff; }
.brand--light .brand__accent { color: var(--sky); }

.nav__menu { margin-left: auto; }
.nav__links { display: flex; gap: 4px; list-style: none; padding: 0; }
.nav__links a { display: block; padding: 8px 14px; border-radius: 999px; font-size: .9375rem; font-weight: 500; color: var(--text-2); transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__links a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html:not(.js) .theme-toggle { display: none; }

.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 40px -24px rgba(11, 18, 32, .35);
  padding: 8px 0 24px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  animation: menu-in .25s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__links { list-style: none; padding: 0; margin-bottom: 20px; }
.mobile-menu__links a { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid var(--border); font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.mobile-menu__links a .icon { color: var(--muted); transition: transform .2s; }
.mobile-menu__links a:hover .icon { transform: translateX(3px); color: var(--accent); }
.mobile-menu__links a[aria-current="page"] { color: var(--accent); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* The full nav needs ~920px: drop the CTA first (Contact is in the nav), then switch to the menu button */
@media (max-width: 1080px) {
  .nav__cta { display: none; }
}
@media (max-width: 960px) {
  .nav__menu { display: none; }
  .menu-toggle { display: inline-grid; }
  .nav__actions { margin-left: auto; }
}
@media (max-width: 360px) {
  .brand { font-size: .9375rem; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
}

/* ---------- 6. Sections & layout ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.section--tight { padding-top: clamp(32px, 5vw, 56px); }
.section--alt { background: var(--bg-alt); }
.section--cta { padding-top: 0; }
.section--alt + .section--cta { padding-top: clamp(48px, 6vw, 72px); background: linear-gradient(var(--bg-alt), var(--bg)); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--row > div { max-width: 640px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- 7. Hero ---------- */
.hero { padding-top: 12px; }
.hero-panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center;
  min-height: min(720px, calc(100svh - var(--header-h) - 24px));
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  border-radius: clamp(24px, 3vw, 36px);
  color: #DCE6F7;
  background:
    radial-gradient(55% 70% at 85% 20%, rgba(59, 130, 246, .55), transparent 65%),
    radial-gradient(45% 55% at 5% 100%, rgba(125, 211, 252, .22), transparent 70%),
    radial-gradient(40% 40% at 50% 50%, rgba(29, 78, 216, .25), transparent 70%),
    linear-gradient(160deg, #0C1D46 0%, #0B1220 70%);
  box-shadow: 0 40px 80px -40px rgba(11, 18, 32, .6);
}
.hero-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
}
:root[data-theme="dark"] .hero-panel { box-shadow: inset 0 0 0 1px var(--border); }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  font-size: .8125rem; font-weight: 500; color: #DCE6F7;
}
.pill__dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(125, 211, 252, .16); }
.pill__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 12px var(--sky); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.8); } }

.hero h1 { margin-top: 22px; color: #fff; font-size: clamp(2.375rem, 1.3rem + 4.2vw, 4.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.hero h1 .grad-text { background-image: linear-gradient(92deg, #93C5FD 0%, #7DD3FC 60%, #A5F3FC 100%); }
.hero .lead { color: #B6C4E0; margin-top: 20px; max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; padding: 0; list-style: none; font-size: .875rem; font-weight: 500; color: #B6C4E0; }
.hero__checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__checks .icon { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: rgba(125, 211, 252, .16); color: var(--sky); stroke-width: 3; }

/* Device mock-ups */
.hero-visual { position: relative; display: grid; place-items: center; --pw: clamp(196px, 19vw, 248px); }
.device-stage { position: relative; width: calc(var(--pw) * 1.62); height: calc(var(--pw) * 2.3); }
.bracket { position: absolute; top: 50%; width: calc(var(--pw) * .3); height: auto; fill: none; stroke: var(--sky); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 18px rgba(125, 211, 252, .55)); opacity: .9; z-index: 0; }
.bracket--l { left: calc(var(--pw) * -.36); transform: translateY(-62%); }
.bracket--r { right: calc(var(--pw) * -.36); transform: translateY(-38%); }

.phone {
  position: absolute; width: var(--pw); aspect-ratio: 9 / 19.2;
  padding: calc(var(--pw) * .035); border-radius: calc(var(--pw) * .16);
  background: linear-gradient(150deg, #33415F 0%, #0A0F1C 35%, #0A0F1C 70%, #2A3550 100%);
  box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .08);
  font-size: calc(var(--pw) / 26);
}
.phone--main { left: 0; top: 0; z-index: 2; transform: rotate(-4deg); animation: float-a 7s ease-in-out infinite; }
.phone--back { right: 0; top: 13%; z-index: 1; transform: rotate(7deg) scale(.9); animation: float-b 8s ease-in-out infinite; }
@keyframes float-a { 50% { transform: rotate(-4deg) translateY(-10px); } }
@keyframes float-b { 50% { transform: rotate(7deg) scale(.9) translateY(8px); } }

.phone__screen {
  position: relative; height: 100%; overflow: hidden;
  display: flex; flex-direction: column; gap: 1.1em;
  padding: 4em 1.4em 1.3em; border-radius: calc(var(--pw) * .125);
  background: #F3F6FD; color: #0B1220; font-family: var(--font-body); line-height: 1.3;
}
.phone__screen--dark { background: linear-gradient(180deg, #111C36, #0B1220); color: #EAF0FA; }
.phone__island { position: absolute; top: 1em; left: 50%; width: 8.4em; height: 2.3em; transform: translateX(-50%); border-radius: 2em; background: #04070E; }
.ui-status { position: absolute; top: 1.35em; left: 2.4em; right: 2.2em; display: flex; justify-content: space-between; align-items: center; font-size: 1.05em; font-weight: 700; }
.ui-status__bars { display: flex; gap: .2em; align-items: flex-end; }
.ui-status__bars i { width: .3em; background: currentColor; border-radius: .1em; }
.ui-status__bars i:nth-child(1) { height: .45em; } .ui-status__bars i:nth-child(2) { height: .65em; } .ui-status__bars i:nth-child(3) { height: .85em; }
.ui-status__bars b { width: 1.9em; height: .9em; margin-left: .35em; border: .12em solid currentColor; border-radius: .25em; position: relative; }
.ui-status__bars b::after { content: ""; position: absolute; inset: .1em .5em .1em .1em; background: currentColor; border-radius: .1em; }

.ui-head { display: flex; justify-content: space-between; align-items: center; }
.ui-head small { display: block; font-size: 1.1em; color: #66748C; }
.ui-head strong { display: block; font-family: var(--font-display); font-size: 1.75em; letter-spacing: -.02em; }
.phone__screen--dark .ui-head small { color: #8291AC; }
.ui-avatar { width: 3.4em; height: 3.4em; border-radius: 50%; background: linear-gradient(135deg, #7DD3FC, #1D4ED8); box-shadow: 0 0 0 .25em #fff; }

.ui-ai { position: relative; overflow: hidden; padding: 1.5em; border-radius: 1.8em; color: #fff; background: linear-gradient(140deg, #1D4ED8 0%, #3B82F6 60%, #38BDF8 100%); box-shadow: 0 1.2em 2.4em -1.2em rgba(29, 78, 216, .8); }
.ui-ai::after { content: ""; position: absolute; right: -3em; top: -3em; width: 9em; height: 9em; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.ui-ai__title { display: flex; align-items: center; gap: .6em; font-family: var(--font-display); font-size: 1.45em; font-weight: 700; }
.ui-ai__title .icon { width: 1.1em; height: 1.1em; }
.ui-ai p { margin-top: .5em; font-size: 1.1em; opacity: .85; }
.ui-input { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; margin-top: 1.1em; padding: .55em .55em .55em 1.1em; border-radius: 1.4em; background: rgba(255, 255, 255, .2); font-size: 1.1em; }
.ui-input span:first-child { opacity: .85; }
.ui-send { width: 2.5em; height: 2.5em; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #1D4ED8; }
.ui-send .icon { width: 1.3em; height: 1.3em; stroke-width: 2.6; }

.ui-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; }
.ui-tile { display: flex; flex-direction: column; align-items: center; gap: .55em; padding: 1em .4em; border-radius: 1.4em; background: #fff; font-size: 1.05em; font-weight: 600; box-shadow: 0 .4em 1.2em rgba(15, 35, 95, .06); }
.ui-tile span { width: 3.1em; height: 3.1em; display: grid; place-items: center; border-radius: 1em; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); }
.ui-tile .icon { width: 1.5em; height: 1.5em; }
.ui-label { font-family: var(--font-display); font-size: 1.2em; font-weight: 700; }
.ui-row { display: flex; align-items: center; gap: 1em; padding: .9em 1em; border-radius: 1.3em; background: #fff; }
.ui-row__icon { width: 3em; height: 3em; flex: none; display: grid; place-items: center; border-radius: .9em; background: #EAF0FF; color: #1D4ED8; }
.ui-row__icon .icon { width: 1.4em; height: 1.4em; }
.ui-row strong { display: block; font-size: 1.15em; }
.ui-row small { font-size: 1em; color: #66748C; }
.ui-row__check { margin-left: auto; color: #10B981; }
.ui-row__check .icon { width: 1.5em; height: 1.5em; }
.ui-tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: 1em; border-radius: 1.6em; background: #fff; box-shadow: 0 .4em 1.2em rgba(15, 35, 95, .06); }
.ui-tabbar i { width: 2em; height: 2em; border-radius: .7em; background: #E3E8F2; }
.ui-tabbar i.on { background: #1D4ED8; }

.ui-ring { position: relative; width: 13em; height: 13em; margin: .4em auto 0; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#7DD3FC 0 74%, rgba(255, 255, 255, .08) 0); }
.ui-ring::before { content: ""; position: absolute; inset: 1.3em; border-radius: 50%; background: #0F1A33; }
.ui-ring div { position: relative; text-align: center; }
.ui-ring strong { display: block; font-family: var(--font-display); font-size: 2.2em; letter-spacing: -.03em; }
.ui-ring small { font-size: 1.05em; color: #8291AC; }
.ui-bars { display: flex; align-items: flex-end; gap: .7em; height: 9em; padding: 1.1em; border-radius: 1.4em; background: rgba(255, 255, 255, .05); }
.ui-bars i { flex: 1; height: var(--h); border-radius: .5em; background: linear-gradient(#7DD3FC, #1D4ED8); }
.ui-bars i:nth-child(5) { background: linear-gradient(#fff, #7DD3FC); }
.ui-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; }
.ui-stat { padding: 1em 1.1em; border-radius: 1.3em; background: rgba(255, 255, 255, .06); }
.ui-stat strong { display: block; font-family: var(--font-display); font-size: 1.5em; }
.ui-stat small { font-size: 1em; color: #8291AC; }

.float-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px 8px 8px; border-radius: 14px;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  font-size: .8125rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55);
  animation: chip 6s ease-in-out infinite;
}
.float-chip > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--grad); }
.float-chip .icon { width: 16px; height: 16px; }
.float-chip--1 { top: 1%; right: calc(var(--pw) * -.18); }
.float-chip--2 { bottom: 14%; left: calc(var(--pw) * -.5); animation-delay: -2s; }
.float-chip--3 { bottom: 24%; right: calc(var(--pw) * -.34); animation-delay: -4s; }
.float-chip--3 > span { background: linear-gradient(135deg, #059669, #34D399); }
@keyframes chip { 50% { transform: translateY(-8px); } }

@media (max-width: 1040px) {
  .hero-panel { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { margin-top: 24px; }
}
@media (max-width: 560px) {
  .hero-visual { --pw: 172px; margin-top: 8px; }
  .float-chip { font-size: .75rem; padding: 6px 10px 6px 6px; }
  .float-chip > span { width: 24px; height: 24px; }
  .float-chip--1 { right: -12px; }
  .float-chip--2 { left: -20px; }
  .float-chip--3 { right: -24px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- 8. Tech marquee ---------- */
.tech { padding: clamp(40px, 6vw, 64px) 0 0; }
.tech__label { text-align: center; font-size: .875rem; font-weight: 500; color: var(--muted); }
.marquee { margin-top: 22px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track ul { display: flex; gap: 14px; padding: 0 7px; list-style: none; }
.marquee__track li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-family: var(--font-display); font-size: .9375rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.marquee__track li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- 9. Cards & bento ---------- */
.card {
  position: relative; overflow: hidden;
  padding: clamp(24px, 3vw, 32px); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand-bright) 35%, var(--border)); }
.card h3 { margin-top: 20px; font-size: 1.25rem; }
.card p { margin-top: 10px; color: var(--text-2); }
.icon-tile { width: 48px; height: 48px; display: grid; place-items: center; flex: none; border-radius: 14px; color: #fff; background: var(--grad); box-shadow: 0 10px 22px -10px rgba(29, 78, 216, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.icon-tile .icon { width: 24px; height: 24px; }
.icon-tile--soft { color: var(--accent); background: var(--accent-soft); box-shadow: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.tag { padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 600; }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card--wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.card--glow::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, .18), transparent 70%); pointer-events: none; }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; grid-template-columns: 1fr; }
}
.bento .card--full { grid-column: 1 / -1; }

.code-window { border-radius: 16px; background: #0B1220; border: 1px solid #1F2C47; box-shadow: var(--shadow-md); overflow: hidden; font-family: var(--font-mono); font-size: .8125rem; line-height: 1.75; color: #B3C0D8; }
.code-window__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #1F2C47; background: #0E1729; }
.code-window__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2C3C5E; }
.code-window__bar i:nth-child(1) { background: #F87171; } .code-window__bar i:nth-child(2) { background: #FBBF24; } .code-window__bar i:nth-child(3) { background: #34D399; }
.code-window__bar span { margin-left: 8px; font-size: .75rem; color: #8291AC; }
.code-window pre { margin: 0; padding: 14px 16px; overflow-x: auto; white-space: pre; }
.code-window .k { color: #7DD3FC; } .code-window .t { color: #93C5FD; } .code-window .f { color: #C4B5FD; } .code-window .s { color: #86EFAC; } .code-window .c { color: #64748B; }

.release { display: grid; gap: 10px; padding: 0; list-style: none; }
.release li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); font-size: .875rem; color: var(--text-2); }
.release b { font-family: var(--font-mono); font-size: .75rem; padding: 3px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.release li .icon { margin-left: auto; color: var(--success); }
.release li:last-child { border-style: dashed; }
.release li:last-child .icon { color: var(--muted); }

/* ---------- 10. App / project cards ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .app-grid { grid-template-columns: 1fr; } }
.app-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--g1) 40%, var(--border)); }
.app-card__top {
  position: relative; display: flex; align-items: flex-end; justify-content: space-between; height: 150px; padding: 22px 24px;
  background:
    radial-gradient(80% 120% at 0% 100%, color-mix(in srgb, var(--g1) 30%, transparent), transparent 70%),
    radial-gradient(70% 100% at 100% 0%, color-mix(in srgb, var(--g2) 26%, transparent), transparent 70%),
    var(--surface-2);
}
.app-card__top::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--text) 10%, transparent) 1px, transparent 1px); background-size: 16px 16px; -webkit-mask-image: linear-gradient(to left, #000, transparent 70%); mask-image: linear-gradient(to left, #000, transparent 70%); }
.app-icon { position: relative; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 22px; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 18px 30px -14px var(--g1), inset 0 1px 0 rgba(255, 255, 255, .3); transform: translateY(42px); transition: transform .35s var(--ease); }
.app-card:hover .app-icon { transform: translateY(38px) rotate(-4deg); }
.app-icon .icon { width: 36px; height: 36px; }
.badge { position: relative; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--success-soft); color: var(--success); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--soon { background: var(--warn-soft); color: var(--warn); }
.app-card__body { display: flex; flex-direction: column; flex: 1; padding: 58px 24px 24px; }
.app-card__meta { font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.app-card h3 { margin-top: 6px; font-size: 1.3125rem; }
.app-card p { margin-top: 10px; color: var(--text-2); font-size: .9375rem; }
.app-card__features { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; font-size: .875rem; color: var(--text-2); }
.app-card__features li { display: flex; gap: 8px; align-items: flex-start; }
.app-card__features .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); stroke-width: 2.5; }
.app-card__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.store-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); font-size: .8125rem; font-weight: 600; color: var(--text); transition: background-color .2s, border-color .2s, color .2s; }
.store-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.store-btn .icon { width: 15px; height: 15px; }
.store-btn--disabled { color: var(--muted); border-style: dashed; pointer-events: none; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.chip { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-size: .875rem; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .count { margin-left: 6px; opacity: .65; font-variant-numeric: tabular-nums; }
.empty { grid-column: 1 / -1; padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.empty-state {
  position: relative; isolation: isolate; overflow: hidden; grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px);
  border-radius: var(--radius-lg); border: 1px dashed var(--border-strong);
  background: radial-gradient(60% 80% at 50% 0%, var(--accent-soft), transparent 70%), var(--surface);
}
.empty-state::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, #000, transparent 75%);
}
.empty-state__icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 22px; color: #fff; background: var(--grad); box-shadow: 0 18px 32px -14px rgba(29, 78, 216, .7), inset 0 1px 0 rgba(255, 255, 255, .3); }
.empty-state__icon .icon { width: 34px; height: 34px; }
.empty-state .badge { align-self: center; margin-top: 22px; }
.empty-state h3 { margin-top: 14px; font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); }
.empty-state p { max-width: 52ch; margin-top: 10px; color: var(--text-2); }
.empty-state .btn { margin-top: 26px; }

/* ---------- 11. Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 0; list-style: none; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .3s, transform .3s var(--ease); }
.step:hover { border-color: color-mix(in srgb, var(--brand-bright) 40%, var(--border)); transform: translateY(-3px); }
.step__top { display: flex; align-items: center; justify-content: space-between; }
.step__num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.step h3 { margin-top: 22px; font-size: 1.1875rem; }
.step p { margin-top: 8px; color: var(--text-2); font-size: .9375rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -21px; width: 22px; height: 2px; background: linear-gradient(90deg, var(--border-strong), transparent); }
@media (max-width: 960px) { .step::after { display: none; } }

/* ---------- 12. Feature list ---------- */
.features-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature h3 { margin-top: 16px; font-size: 1.0625rem; }
.feature p { margin-top: 6px; font-size: .9375rem; color: var(--text-2); }
.split__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- 13. CTA band ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
  padding: clamp(36px, 5vw, 64px); border-radius: var(--radius-lg); color: #DCE6F7;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(125, 211, 252, .35), transparent 60%),
    radial-gradient(50% 100% at 0% 100%, rgba(59, 130, 246, .5), transparent 70%),
    linear-gradient(135deg, #1D4ED8 0%, #1E3A8A 100%);
  box-shadow: 0 40px 80px -40px rgba(29, 78, 216, .7);
}
.cta-band__mark { position: absolute; right: 22%; top: 50%; z-index: -1; width: 340px; transform: translateY(-50%); fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.cta-band h2 { color: #fff; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); max-width: 18ch; }
.cta-band p { margin-top: 14px; max-width: 52ch; color: #C7D6F5; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 860px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-band__actions { flex-direction: row; flex-wrap: wrap; }
  .cta-band__actions .btn { flex: 1 1 200px; }
}

/* ---------- 14. Page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); text-align: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, #000 10%, transparent 70%); opacity: .7; }
.page-hero::after { content: ""; position: absolute; left: 50%; top: -240px; z-index: -1; width: min(900px, 120vw); height: 480px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(59, 130, 246, .22), rgba(125, 211, 252, .08) 60%, transparent); }
.page-hero h1 { margin: 16px auto 0; max-width: 18ch; font-size: clamp(2.25rem, 1.3rem + 3.6vw, 3.75rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.page-hero .lead { margin-inline: auto; }
.page-hero__meta { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 20px; font-size: .875rem; color: var(--muted); }
.page-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.page-hero__meta .icon { width: 15px; height: 15px; }

/* ---------- 15. About ---------- */
.about-visual { position: relative; }
.about-visual__panel {
  position: relative; overflow: hidden; aspect-ratio: 5 / 4; display: grid; place-items: center; border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(125, 211, 252, .35), transparent 70%),
    linear-gradient(150deg, #1D4ED8 0%, #1E3A8A 60%, #0B1220 100%);
  box-shadow: var(--shadow-lg);
}
.about-visual__panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); }
.about-visual__panel img { position: relative; width: 58%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); animation: float-a 7s ease-in-out infinite; transform: rotate(0); }
.about-visual .float-chip { --pw: 220px; }
.about-visual .float-chip--1 { top: 10%; left: -14px; right: auto; }
.about-visual .float-chip--2 { bottom: 12%; left: auto; right: -14px; }
.about-visual .float-chip--3 { top: auto; bottom: -18px; left: 22%; right: auto; }
.checklist { display: grid; gap: 12px; margin-top: 24px; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checklist .icon { width: 22px; height: 22px; margin-top: 1px; padding: 4px; border-radius: 50%; color: var(--accent); background: var(--accent-soft); stroke-width: 3; }
.prose-block p + p { margin-top: 16px; }
.prose-block p { color: var(--text-2); font-size: 1.0625rem; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .mv-grid { grid-template-columns: 1fr; } }
.mv-card { padding: clamp(28px, 4vw, 44px); }
.mv-card h3 { font-size: 1.5rem; }
.mv-card p { font-size: 1.0625rem; }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* ---------- 16. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 16px; }
.contact-card { padding: 28px; border-radius: var(--radius-lg); color: #DCE6F7; background: radial-gradient(70% 90% at 100% 0%, rgba(125, 211, 252, .3), transparent 60%), linear-gradient(140deg, #1D4ED8, #1E3A8A); box-shadow: 0 30px 60px -30px rgba(29, 78, 216, .7); }
.contact-card .icon-tile { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.contact-card h2 { margin-top: 18px; color: #fff; font-size: 1.25rem; }
.contact-email { display: block; margin-top: 6px; font-family: var(--font-display); font-size: clamp(1rem, .9rem + .6vw, 1.25rem); font-weight: 600; color: #fff; word-break: break-all; }
.contact-email:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.contact-mini { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.contact-mini h3 { font-size: 1rem; }
.contact-mini p { margin-top: 4px; font-size: .9375rem; color: var(--text-2); }
.contact-mini a { color: var(--accent); font-weight: 600; }
.contact-mini a:hover { text-decoration: underline; }

.form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.form-card > h2 { font-size: 1.5rem; }
.form-card__sub { margin-top: 6px; color: var(--text-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { padding: 0; font-size: .875rem; font-weight: 600; color: var(--text); }
.field legend { margin-bottom: 10px; }
.field .opt { font-weight: 400; color: var(--muted); }
.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--text);
  font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea.input { height: auto; min-height: 148px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.input::placeholder { color: var(--muted); opacity: .8; }
.input:hover { border-color: color-mix(in srgb, var(--brand-bright) 40%, var(--border-strong)); }
.input:focus { outline: none; border-color: var(--brand-bright); box-shadow: 0 0 0 4px var(--ring); }
.input[aria-invalid="true"] { border-color: #EF4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); }
.field-error { font-size: .8125rem; font-weight: 500; color: #DC2626; }
:root[data-theme="dark"] .field-error { color: #F87171; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-radio span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg); font-size: .875rem; font-weight: 500; color: var(--text-2); transition: all .2s; }
.chip-radio input:hover + span { border-color: var(--accent); }
.chip-radio input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chip-radio input:focus-visible + span { outline: 2px solid var(--brand-bright); outline-offset: 2px; }
.form-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: .8125rem; color: var(--muted); }
.form-note .icon { width: 15px; height: 15px; margin-top: 2px; }
.form-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand-bright) 40%, var(--border)); box-shadow: var(--shadow-md); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 28px; height: 28px; padding: 5px; flex: none; border-radius: 50%; background: var(--surface-2); color: var(--text-2); transition: transform .3s var(--ease), background-color .2s, color .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); background: var(--brand); color: #fff; }
.faq details > div { padding: 0 24px 22px; color: var(--text-2); }
.faq details > div a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 17. Legal pages ---------- */
.legal { padding-top: clamp(24px, 4vw, 48px); }
.legal__grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.toc summary { display: none; }
.toc ol { display: grid; gap: 2px; padding: 0; list-style: none; counter-reset: toc; border-left: 1px solid var(--border); }
.toc a { position: relative; display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: .875rem; color: var(--muted); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.legal__help { margin-top: 24px; padding: 18px; border-radius: 16px; background: var(--surface-2); font-size: .875rem; color: var(--text-2); }
.legal__help strong { display: block; color: var(--text); font-family: var(--font-display); }
.legal__help .btn { margin-top: 12px; }
@media (max-width: 980px) {
  .legal__grid { grid-template-columns: 1fr; }
  .legal__aside { position: static; }
  .toc { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
  .toc summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; }
  .toc summary::-webkit-details-marker { display: none; }
  .toc summary .icon { transition: transform .25s; }
  .toc[open] summary .icon { transform: rotate(180deg); }
  .toc ol { margin: 0 20px 16px; }
  .legal__help { display: none; }
}

.prose { max-width: 760px; color: var(--text-2); font-size: 1.0313rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 52px 0 14px; font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { margin: 28px 0 10px; font-size: 1.125rem; }
.prose p { margin-top: 14px; }
.prose ul, .prose ol { margin-top: 12px; padding-left: 1.3rem; }
.prose li { padding-left: 4px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.callout { display: flex; gap: 14px; padding: 20px 22px; border-radius: 16px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); color: var(--text); }
.callout .icon { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--accent); }
.callout p { margin: 0; }
.prose .callout > div > * + * { margin-top: 10px; }
.callout--highlight { background: color-mix(in srgb, var(--brand-bright) 7%, var(--surface)); border-color: color-mix(in srgb, var(--brand-bright) 40%, var(--border)); box-shadow: var(--shadow-md); }
.table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose th { background: var(--surface-2); color: var(--text); font-weight: 600; font-size: .875rem; }
.prose tr:last-child td { border-bottom: 0; }

/* ---------- 18. 404 ---------- */
.notfound { min-height: calc(100svh - var(--header-h) - 120px); display: grid; place-items: center; text-align: center; padding-block: 80px; }
.notfound__code { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 3rem + 10vw, 10rem); line-height: 1; letter-spacing: -.05em; }
.notfound__code span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound__code svg { width: .32em; fill: none; stroke: var(--sky); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.notfound h1 { margin-top: 12px; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); }
.notfound p { margin: 12px auto 0; max-width: 46ch; color: var(--text-2); }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ---------- 19. Footer ---------- */
.site-footer { position: relative; overflow: hidden; padding-top: clamp(56px, 7vw, 88px); background: var(--footer-bg); color: #9AA8C2; }
:root[data-theme="dark"] .site-footer { border-top: 1px solid var(--border); }
.site-footer__mark { position: absolute; right: -60px; bottom: -40px; width: 420px; fill: none; stroke: rgba(125, 211, 252, .05); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.footer__grid { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; } .footer__cta { grid-column: 1 / -1; } }
.footer__brand p { margin-top: 16px; max-width: 36ch; font-size: .9375rem; }
.footer__email { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: #E8EEF9; font-weight: 500; font-size: .9375rem; word-break: break-all; }
.footer__email .icon { color: var(--sky); }
.footer__email:hover { color: var(--sky); }
.footer__col h2 { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.footer__col ul { display: grid; gap: 10px; margin-top: 16px; padding: 0; list-style: none; font-size: .9375rem; }
.footer__col a { transition: color .2s; }
.footer__col ul a:hover { color: #fff; }
.footer__cta p { margin: 14px 0 18px; font-size: .9375rem; }
.footer__bottom { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: clamp(40px, 6vw, 72px); padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .875rem; }
.footer__top { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: #9AA8C2; font-size: .875rem; cursor: pointer; }
.footer__top:hover { color: #fff; }
.footer__top .icon { width: 15px; height: 15px; }

/* ---------- 20. Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300;
  display: inline-flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 14px; background: #0B1220; color: #fff;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .1);
  font-size: .9375rem; font-weight: 500;
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast .icon { width: 18px; height: 18px; color: #34D399; }

/* ---------- 21. Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
