/* Glintyfy — site stylesheet
   Tokens: ice ground, deep navy type, electric blue accent, soft cyan glow.
   Display: Sora. Body: Manrope.
   Layout: editorial sections on a 1180px container; one column at phone width. */

:root {
  --bg: #f4faff;
  --bg-2: #e9f4fd;
  --surface: #ffffff;
  --surface-2: #f7fbff;
  --text: #0b1f4d;
  --muted: #4a5b7f;
  --line: #d6e6f5;
  --line-strong: #b9d3ec;
  --accent: #0a5cff;
  --accent-ink: #0847c4;
  --accent-soft: #e4efff;
  --cyan: #35c9f0;
  --cyan-soft: #d9f5fd;
  --navy: #061437;
  --glow: rgba(53, 201, 240, 0.35);
  --ok: #0f8a5f;
  --warn: #b7791f;
  --crit: #c53d3d;
  --shadow: 0 10px 30px rgba(11, 31, 77, 0.08), 0 1px 2px rgba(11, 31, 77, 0.06);
  --shadow-lg: 0 30px 70px rgba(11, 31, 77, 0.16);
  --font-display: "Sora", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1180px;
  --header-h: 72px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #061024;
  --bg-2: #0a1a3a;
  --surface: #0b1a3a;
  --surface-2: #0f2149;
  --text: #eaf6ff;
  --muted: #9fb3d4;
  --line: #1b2e57;
  --line-strong: #2a4175;
  --accent: #4d8dff;
  --accent-ink: #8db5ff;
  --accent-soft: #10275a;
  --cyan: #5ce1ff;
  --cyan-soft: #0c2f45;
  --navy: #030a1c;
  --glow: rgba(92, 225, 255, 0.28);
  --ok: #4fd1a0;
  --warn: #f0b457;
  --crit: #ff7a7a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
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;
  transition: background-color .25s ease, color .25s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 42rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; line-height: 1;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
  text-decoration: none; min-height: 46px; white-space: nowrap;
}
.site-header .btn { padding: 12px 18px; min-height: 42px; font-size: .9rem; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(10, 92, 255, 0.28); }
.btn-primary:hover { background: var(--accent-ink); box-shadow: 0 10px 24px rgba(10, 92, 255, 0.34); }
:root[data-theme="dark"] .btn-primary { color: #06132d; }
:root[data-theme="dark"] .btn-primary:hover { background: var(--cyan); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-link { background: none; border: 0; color: var(--accent-ink); padding: 0; min-height: 0; }
.btn-link::after { content: "→"; transition: transform .15s ease; }
.btn-link:hover::after { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a { color: var(--muted); font-weight: 600; font-size: .9rem; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 700; font-size: .85rem;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary svg { width: 16px; height: 16px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 60;
}
.lang-menu a { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: .92rem; }
.lang-menu a:hover, .lang-menu a[aria-current="true"] { background: var(--accent-soft); text-decoration: none; }
.lang-menu a[aria-current="true"]::after { content: "✓"; color: var(--accent-ink); }
.header-cta { display: inline-flex; }
.menu-btn { display: none; }

@media (max-width: 1240px) {
  .header-actions .btn-ghost.signin { display: none; }
}
@media (max-width: 1040px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 640px) {
  .header-cta { display: none; }
  .brand span { display: none; }
}

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 70; display: none; }
.drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(6, 20, 55, 0.5); }
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 88vw); background: var(--surface);
  padding: 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-lg); overflow-y: auto;
}
.drawer-panel .drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.drawer-panel a.nav-link { padding: 14px 12px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 1.05rem; }
.drawer-panel a.nav-link:hover, .drawer-panel a.nav-link[aria-current="page"] { background: var(--accent-soft); text-decoration: none; }
.drawer-panel .drawer-actions { margin-top: auto; display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 90px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; opacity: .55;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-text { max-width: 620px; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-note { color: var(--muted); font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 25%, transparent); }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-mark { width: min(100%, 360px); filter: drop-shadow(0 30px 50px var(--glow)); animation: float 7s ease-in-out infinite; }
.hero-card {
  position: absolute; left: 0; bottom: 6%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; box-shadow: var(--shadow); max-width: 280px; font-size: .9rem;
}
.hero-card .label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.hero-card .label i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); display: inline-block; }
.hero-card .bars { display: flex; gap: 4px; margin-top: 10px; align-items: flex-end; height: 28px; }
.hero-card .bars b { flex: 1; background: var(--accent-soft); border-radius: 3px; }
.hero-card .bars b.hi { background: var(--accent); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-mark { animation: none; } }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { min-height: 300px; order: -1; }
  .hero-mark { width: min(60vw, 260px); }
  .hero-card { left: auto; right: 0; bottom: 0; max-width: 240px; }
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 7vw, 104px) 0; }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head .lead { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 16px; }
.card .icon svg { width: 22px; height: 22px; }
.card-accent { background: linear-gradient(160deg, var(--surface) 0%, var(--cyan-soft) 140%); }
.card-navy { background: var(--navy); color: #eaf6ff; border-color: transparent; }
.card-navy p, .card-navy h3 { color: inherit; }
.card-navy .muted { color: #9fb3d4; }

.problem-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { padding: 22px; border-left: 2px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.stat b { font-family: var(--font-display); font-size: 1.05rem; display: block; margin-bottom: 6px; }
.stat p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 800px) { .problem-stats { grid-template-columns: 1fr; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 24px 22px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 700; color: var(--accent-ink); font-size: .85rem; letter-spacing: .08em;
  display: inline-block; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--accent);
}
.step h3 { font-size: 1.08rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.steps-detailed .step { display: grid; grid-template-columns: 1fr; gap: 6px; }
.steps-detailed .step p + p { margin-top: 8px; }

.note {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--text); font-size: .95rem; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.note svg { flex: none; width: 20px; height: 20px; color: var(--accent-ink); margin-top: 2px; }
.note p { margin: 0; }

.check-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: var(--accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230847c4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>") center/12px no-repeat;
}
:root[data-theme="dark"] .check-list li::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238db5ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>"); }

.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.tag small { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 7px; border-radius: 999px; font-weight: 700; }

.industry-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.industry { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-weight: 600; display: flex; gap: 12px; align-items: center; }
.industry i { width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--accent), var(--cyan)); flex: none; }
@media (max-width: 960px) { .industry-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .industry-list { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band {
  background: var(--navy); color: #eaf6ff; border-radius: 24px; padding: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; overflow: hidden;
}
.cta-band::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(53,201,240,.35), transparent 70%); pointer-events: none; }
.cta-band h2, .cta-band p { color: inherit; position: relative; }
.cta-band p { color: #b9cbe8; }
.cta-band .form { position: relative; }
.cta-band .form input, .cta-band .form textarea { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.cta-band .form input::placeholder { color: #8ea3c9; }
.cta-band .form label { color: #c9d8f0; }
.cta-band .form .form-privacy, .cta-band .form .form-privacy a { color: #9fb3d4; }
.cta-band .or { color: #9fb3d4; font-size: .92rem; margin-top: 10px; }
.cta-band .or a { color: #fff; }
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.form label .opt { font-weight: 500; color: var(--muted); }
.form input, .form textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: inherit; font-size: .98rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.form textarea { min-height: 130px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-privacy { font-size: .82rem; color: var(--muted); margin: 0; }
.form-status { display: none; padding: 12px 14px; border-radius: 10px; font-size: .95rem; margin: 0; }
.form-status.ok { display: block; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); }
.form-status.err { display: block; background: color-mix(in srgb, var(--crit) 12%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--crit) 45%, transparent); }
.form-status.info { display: block; background: var(--accent-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 20, 55, 0.55); backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(460px, 100%); background: var(--surface); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.modal-card h3 { font-size: 1.35rem; padding-right: 36px; }
.modal-card .close { position: absolute; top: 14px; right: 14px; }
.modal-card .brand-mini { width: 40px; height: 40px; margin-bottom: 14px; }

/* ---------- phone preview ---------- */
.preview-wrap { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
@media (max-width: 960px) { .preview-wrap { grid-template-columns: 1fr; justify-items: center; } .preview-wrap .section-head { max-width: none; } }
.phone {
  width: 380px; max-width: 100%; height: 780px; border-radius: 48px; background: var(--navy); padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.08); position: relative;
}
.phone::before { content: ""; position: absolute; top: 24px; left: 50%; transform: translateX(-50%); width: 110px; height: 30px; background: #000; border-radius: 20px; z-index: 3; }
.phone-screen {
  width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #f3f8ff; color: #0b1f4d; position: relative;
  font-size: 14px; line-height: 1.4; display: flex; flex-direction: column;
}
:root[data-theme="dark"] .phone-screen { background: #0a1733; color: #eaf6ff; }
.app-top { padding: 62px 20px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-top .title { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.app-top .sub { font-size: 12px; opacity: .7; }
.app-body { flex: 1; overflow-y: auto; padding: 4px 16px 16px; scrollbar-width: thin; }
.app-nav { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(11,31,77,.08); background: #fff; padding: 10px 6px 22px; }
:root[data-theme="dark"] .app-nav { background: #0f2149; border-top-color: rgba(255,255,255,.08); }
.app-nav button { background: none; border: 0; color: inherit; opacity: .55; font: inherit; font-size: 10px; font-weight: 700; display: grid; justify-items: center; gap: 4px; cursor: pointer; padding: 4px 0; border-radius: 8px; min-height: 44px; }
.app-nav button svg { width: 20px; height: 20px; }
.app-nav button[aria-current="true"] { opacity: 1; color: var(--accent-ink); }
.app-card { background: #fff; border: 1px solid rgba(11,31,77,.08); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
:root[data-theme="dark"] .app-card { background: #0f2149; border-color: rgba(255,255,255,.08); }
.app-card h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.app-card p { margin: 0; font-size: 12.5px; opacity: .8; }
.app-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.app-metric { background: #fff; border: 1px solid rgba(11,31,77,.08); border-radius: 14px; padding: 12px 10px; }
:root[data-theme="dark"] .app-metric { background: #0f2149; border-color: rgba(255,255,255,.08); }
.app-metric b { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.app-metric span { font-size: 10.5px; opacity: .7; line-height: 1.2; display: block; }
.app-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #e4efff; color: #0847c4; }
:root[data-theme="dark"] .app-chip { background: #10275a; color: #8db5ff; }
.app-chip.warn { background: #fff3dc; color: #8a5a0b; }
:root[data-theme="dark"] .app-chip.warn { background: #3a2a0c; color: #f0b457; }
.app-btn { display: block; width: 100%; padding: 12px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; margin-top: 8px; min-height: 44px; }
:root[data-theme="dark"] .app-btn { color: #06132d; }
.app-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.app-tile { background: #fff; border: 1px solid rgba(11,31,77,.08); border-radius: 14px; padding: 12px; font-size: 12px; cursor: pointer; text-align: left; font-family: inherit; color: inherit; min-height: 44px; }
:root[data-theme="dark"] .app-tile { background: #0f2149; border-color: rgba(255,255,255,.08); }
.app-tile b { display: block; font-family: var(--font-display); font-size: 12.5px; margin-bottom: 2px; }
.app-tile span { opacity: .7; font-size: 11px; }
.app-list { list-style: none; margin: 0; padding: 0; }
.app-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(11,31,77,.08); font-size: 12.5px; }
:root[data-theme="dark"] .app-list li { border-bottom-color: rgba(255,255,255,.08); }
.app-list li:last-child { border-bottom: 0; }
.app-list li span { opacity: .65; font-size: 11.5px; white-space: nowrap; }
.app-demo { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; opacity: .55; margin: 4px 0 10px; }
.profiles { display: grid; gap: 10px; }
.profile-btn { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border: 1px solid rgba(11,31,77,.1); border-radius: 16px; padding: 14px; cursor: pointer; text-align: left; font: inherit; color: inherit; min-height: 44px; }
:root[data-theme="dark"] .profile-btn { background: #0f2149; border-color: rgba(255,255,255,.1); }
.profile-btn:hover { border-color: var(--accent); }
.profile-btn .avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: linear-gradient(135deg, #0a5cff, #35c9f0); flex: none; }
.profile-btn b { display: block; font-family: var(--font-display); font-size: 14px; }
.profile-btn span { font-size: 11.5px; opacity: .7; display: block; }
.profile-btn .arrow { margin-left: auto; opacity: .5; }
.app-splash { display: grid; place-items: center; text-align: center; padding: 20px 10px; }
.app-splash img { width: 72px; height: 72px; margin-bottom: 8px; }
.app-splash h4 { font-family: var(--font-display); margin: 0 0 4px; font-size: 18px; }
.app-splash p { font-size: 12.5px; opacity: .7; margin: 0 0 16px; max-width: 240px; }
.months { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: none; }
.months button { flex: none; border: 1px solid rgba(11,31,77,.12); background: #fff; color: inherit; font: inherit; font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 999px; cursor: pointer; min-height: 32px; }
:root[data-theme="dark"] .months button { background: #0f2149; border-color: rgba(255,255,255,.12); }
.months button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
:root[data-theme="dark"] .months button[aria-pressed="true"] { color: #06132d; }
.chart { width: 100%; height: 120px; display: block; }
.app-menu { position: absolute; top: 96px; right: 18px; background: #fff; border: 1px solid rgba(11,31,77,.1); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 4; display: none; min-width: 150px; }
:root[data-theme="dark"] .app-menu { background: #0f2149; border-color: rgba(255,255,255,.1); }
.app-menu.open { display: block; }
.app-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; color: inherit; cursor: pointer; min-height: 40px; }
.app-menu button:hover { background: rgba(10,92,255,.08); }
.app-icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(11,31,77,.1); background: #fff; color: inherit; cursor: pointer; display: inline-grid; place-items: center; }
:root[data-theme="dark"] .app-icon-btn { background: #0f2149; border-color: rgba(255,255,255,.1); }
.app-icon-btn svg { width: 16px; height: 16px; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; border: 1px solid rgba(11,31,77,.12); background: #fff; color: inherit; font: inherit; font-size: 11.5px; font-weight: 700; padding: 8px; border-radius: 10px; cursor: pointer; min-height: 36px; }
:root[data-theme="dark"] .seg button { background: #0f2149; border-color: rgba(255,255,255,.12); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { color: #06132d; }
.preview-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 480px) { .phone { height: 720px; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -10%; top: -60%; width: 50vw; max-width: 640px; aspect-ratio: 1; background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; opacity: .7; }
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 46rem; }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text); }
.prose .updated { color: var(--muted); font-size: .9rem; }

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside .card { margin-bottom: 14px; }
.contact-aside .big { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; word-break: break-all; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; font-size: .95rem; }
.social-links a:hover { border-color: var(--accent); text-decoration: none; }
.social-links svg { width: 18px; height: 18px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text); font-weight: 500; }
.footer-brand p { color: var(--muted); max-width: 32rem; margin-top: 14px; font-size: .95rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-bottom .langs { display: flex; gap: 14px; }
.footer-bottom .langs a[aria-current="true"] { color: var(--text); font-weight: 700; }

/* ---------- reveal ---------- */
.js .reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal:not(.in) { opacity: 0; transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) { .js .reveal, .js .reveal:not(.in) { opacity: 1; transform: none; transition: none; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound img { width: 110px; height: 110px; margin: 0 auto 18px; opacity: .9; }

/* ---------- intelligence map (hero) ---------- */
#intel-map { width: 100%; max-width: 680px; margin: 0 auto; position: relative; }
.intel-svg { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--font-body); }
.im-heading { font-family: var(--font-display); font-size: 10.5px; letter-spacing: .14em; font-weight: 600; fill: var(--muted); }
.im-node rect { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; transition: stroke .3s ease, fill .3s ease, opacity .3s ease; }
.im-node text { fill: var(--text); font-weight: 600; pointer-events: none; transition: opacity .3s ease; }
.im-port { fill: var(--accent); opacity: .7; transition: opacity .3s ease; }
.im-role { cursor: pointer; }
.im-role rect { stroke: color-mix(in srgb, var(--accent) 45%, var(--line-strong)); }
.im-role:hover rect, .im-role:focus-visible rect, .im-node.lit rect { stroke: var(--accent); stroke-width: 1.6; fill: var(--accent-soft); }
.im-role:focus-visible { outline: none; }
.im-path { stroke: var(--line-strong); stroke-width: 1.4; opacity: .9; transition: stroke .3s ease, opacity .3s ease, stroke-width .3s ease; }
.im-path.lit { stroke: var(--accent); stroke-width: 2.2; }
.im-pulse { fill: var(--cyan); opacity: .9; transition: opacity .3s ease; filter: drop-shadow(0 0 4px var(--cyan)); }
.im-pulse.lit { fill: var(--accent); }
#intel-map.has-active .im-path:not(.lit), #intel-map.has-active .im-pulse:not(.lit) { opacity: .18; }
#intel-map.has-active .im-node:not(.lit) rect, #intel-map.has-active .im-node:not(.lit) text, #intel-map.has-active .im-node:not(.lit) .im-port { opacity: .4; }
#intel-map.has-active .im-node.lit .im-port { opacity: 1; }
.im-halo { opacity: .5; animation: halo 5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.im-core-bg { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.im-ring { fill: none; stroke: var(--cyan); stroke-width: 1.2; opacity: .55; animation: ring 3.6s ease-out infinite; transform-origin: center; transform-box: fill-box; }
.im-ring-2 { stroke: var(--accent); opacity: .25; animation-delay: 1.2s; stroke-dasharray: 4 6; }
.im-logo { filter: drop-shadow(0 14px 24px var(--glow)); }
.im-core-label { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; fill: var(--text); }
.im-core-sub { font-size: 11px; fill: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.im-hint { text-align: center; color: var(--muted); font-size: .82rem; margin: 10px 0 0; }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.08); opacity: .95; } }
@keyframes ring { 0% { transform: scale(.94); opacity: .6; } 100% { transform: scale(1.16); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .im-halo, .im-ring { animation: none; } }
.hero .container.hero-map { grid-template-columns: .9fr 1.1fr; }
@media (max-width: 900px) { .hero .container.hero-map { grid-template-columns: 1fr; } #intel-map { order: 1; } }

/* ---------- role explorer ---------- */
.re-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .re-wrap { grid-template-columns: 1fr; } }
.re-list { display: grid; gap: 8px; }
@media (max-width: 860px) { .re-list { grid-template-columns: repeat(5, 1fr); gap: 6px; } }
@media (max-width: 560px) { .re-list { grid-template-columns: repeat(3, 1fr); } }
.re-person { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; min-height: 44px; }
.re-person:hover { border-color: var(--accent); transform: translateX(2px); }
.re-person[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); background: var(--accent-soft); }
.re-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--c); flex: none; font-size: .95rem; }
.re-who { display: grid; line-height: 1.25; }
.re-who b { font-family: var(--font-display); font-weight: 600; font-size: .98rem; }
.re-who span { color: var(--muted); font-size: .82rem; }
.re-arrow { width: 18px; height: 18px; margin-left: auto; color: var(--muted); opacity: 0; transition: opacity .2s ease; }
.re-person[aria-pressed="true"] .re-arrow { opacity: 1; color: var(--accent-ink); }
@media (max-width: 860px) {
  .re-person { flex-direction: column; text-align: center; padding: 10px 6px; gap: 6px; }
  .re-who span { display: none; }
  .re-arrow { display: none; }
}
.re-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); min-height: 420px; }
.re-panel.swap > * { animation: re-in .45s ease both; }
.re-panel.swap > *:nth-child(2) { animation-delay: .08s; }
.re-panel.swap > *:nth-child(3) { animation-delay: .16s; }
@keyframes re-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .re-panel.swap > * { animation: none; } }
.re-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.re-head > div { display: grid; line-height: 1.25; }
.re-head b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.re-head span { color: var(--muted); font-size: .9rem; }
.re-link { width: 220px; height: 56px; flex: none; }
.re-link-core { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.re-link-path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 140; stroke-dashoffset: 140; animation: draw .9s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.re-link-person { fill: var(--c); }
.re-link-initial { fill: #fff; font-family: var(--font-display); font-weight: 700; font-size: 13px; }
.re-link-dot { fill: var(--cyan); filter: drop-shadow(0 0 4px var(--cyan)); }
.re-chat { display: grid; gap: 12px; margin-bottom: 20px; }
.re-bubble { padding: 14px 16px; border-radius: 16px; font-size: .97rem; line-height: 1.55; max-width: 92%; }
.re-q { background: var(--bg-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.re-a { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-bottom-right-radius: 6px; margin-left: auto; }
.re-label { display: flex; align-items: center; gap: 6px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.re-a .re-label { color: var(--accent-ink); }
.re-based { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: .78rem; color: var(--muted); }
.re-chip { padding: 3px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); font-weight: 700; font-size: .72rem; color: var(--text); }
.re-perms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .re-perms { grid-template-columns: 1fr; } }
.re-perms h4 { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.re-perms ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.re-perms li { display: flex; gap: 8px; align-items: flex-start; }
.re-sees li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 18%, transparent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f8a5f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l5 5L20 7'/></svg>") center/9px no-repeat; }
.re-hides li { color: var(--muted); }
.re-hides li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--bg-2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5b7f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='11' width='14' height='10' rx='2'/><path d='M8 11V7a4 4 0 018 0v4'/></svg>") center/9px no-repeat; }
.re-example { font-size: .85rem; color: var(--muted); margin: 0 0 16px; display: inline-flex; gap: 8px; align-items: center; }

/* ---------- a day with Glintyfy ---------- */
.day-wrap { background: var(--navy); color: #eaf6ff; border-radius: 24px; padding: clamp(24px, 4vw, 44px); position: relative; overflow: hidden; }
.day-wrap::before { content: ""; position: absolute; left: -10%; top: -50%; width: 50%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(53,201,240,.3), transparent 70%); pointer-events: none; }
.day-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; position: relative; }
.day-top h2, .day-top p { color: inherit; }
.day-top p { color: #b9cbe8; max-width: 44rem; margin: 0; }
.day-play { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; min-height: 42px; }
.day-play svg { width: 14px; height: 14px; }
.day-play .ic-pause { display: none; }
.day-play.is-playing .ic-pause { display: block; }
.day-play.is-playing .ic-play { display: none; }
.day-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 20px; position: relative; }
@media (max-width: 720px) { .day-track { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; } }
.day-node { position: relative; background: none; border: 0; color: inherit; font: inherit; text-align: left; padding: 12px 0 10px; cursor: pointer; display: grid; gap: 4px; border-top: 2px solid rgba(255,255,255,.14); min-height: 44px; }
.day-node .day-fill { position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.day-node.done .day-fill { width: 100%; }
.day-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px rgba(255,255,255,.08); margin-bottom: 2px; }
.day-node.active .day-dot { box-shadow: 0 0 0 4px rgba(92,225,255,.3); background: var(--cyan); }
.day-time { font-family: var(--font-display); font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.day-who { font-size: .76rem; color: #9fb3d4; line-height: 1.2; }
.day-node.active .day-who { color: #eaf6ff; }
@media (max-width: 720px) { .day-who { display: none; } .day-time { font-size: .78rem; } }
.day-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 22px 24px; min-height: 150px; position: relative; }
.day-card.swap { animation: re-in .4s ease both; }
.day-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); margin-bottom: 12px; }
.day-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.day-card p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; margin: 0 0 14px; max-width: 46rem; color: #fff; font-family: var(--font-display); font-weight: 500; }
.day-steps-ind { display: flex; gap: 6px; }
.day-steps-ind i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); }
.day-steps-ind i.on { background: var(--cyan); }
.day-note { color: #9fb3d4; font-size: .85rem; margin: 16px 0 0; position: relative; }

