/* Sualix — vanilla CSS. Tokens in the spirit of Radix Colors (MIT). Inter (OFL), Lucide (ISC). */
:root {
  --bg: #fbfcfe;
  --bg-alt: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --border: #e3e8f1;
  --border-strong: #cdd5e3;
  --text: #0f172a;
  --muted: #475569;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eaf1ff;
  --primary-text: #1e40af;
  --on-primary: #ffffff;
  --gold: #f5b301;
  --gold-hover: #e0a300;
  --gold-soft: #fff6d9;
  --on-gold: #1c1500;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-md: 0 4px 8px -2px rgba(15, 23, 42, .08), 0 12px 28px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 24px 60px -20px rgba(37, 99, 235, .35);
  --glow-1: rgba(37, 99, 235, .16);
  --glow-2: rgba(245, 179, 1, .18);
  --radius: 16px;
  --radius-sm: 10px;
  --ring: 0 0 0 3px rgba(37, 99, 235, .35);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1220;
  --bg-alt: #0f172a;
  --surface: #131c2f;
  --surface-2: #19243b;
  --border: #243049;
  --border-strong: #33425f;
  --text: #f1f5f9;
  --muted: #a3b1c6;
  --primary: #5b8cff;
  --primary-hover: #7aa2ff;
  --primary-soft: #16264a;
  --primary-text: #b4ccff;
  --on-primary: #06112b;
  --gold: #fbbf24;
  --gold-hover: #fcd34d;
  --gold-soft: #2a2108;
  --on-gold: #1c1500;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, .4), 0 12px 28px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 60px -20px rgba(91, 140, 255, .35);
  --glow-1: rgba(91, 140, 255, .18);
  --glow-2: rgba(251, 191, 36, .10);
  --ring: 0 0 0 3px rgba(122, 162, 255, .5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0b1220; --bg-alt: #0f172a; --surface: #131c2f; --surface-2: #19243b;
    --border: #243049; --border-strong: #33425f; --text: #f1f5f9; --muted: #a3b1c6;
    --primary: #5b8cff; --primary-hover: #7aa2ff; --primary-soft: #16264a; --primary-text: #b4ccff;
    --on-primary: #06112b; --gold: #fbbf24; --gold-hover: #fcd34d; --gold-soft: #2a2108;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, .4), 0 12px 28px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 60px -20px rgba(91, 140, 255, .35);
    --glow-1: rgba(91, 140, 255, .18); --glow-2: rgba(251, 191, 36, .10);
    --ring: 0 0 0 3px rgba(122, 162, 255, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 8px; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand img { border-radius: 9px; }
.nav-r { display: flex; align-items: center; gap: 8px; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.seg button {
  min-width: 44px; min-height: 40px; padding: 0 8px; border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); font: inherit; font-size: .82rem; font-weight: 700; letter-spacing: .02em; cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.icon-btn .ic { display: none; }
:root:not([data-theme]) .ic-auto, :root[data-theme="light"] .ic-light, :root[data-theme="dark"] .ic-dark { display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn-sm { padding: 0 14px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1rem; border-radius: 14px; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 8px 20px -8px var(--primary); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 8px 20px -10px var(--gold); }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 48px; text-align: center; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 20% 25%, var(--glow-1), transparent 70%),
    radial-gradient(35% 45% at 82% 15%, var(--glow-2), transparent 70%),
    radial-gradient(40% 40% at 60% 85%, var(--glow-1), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.hero::after {
  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: 48px 48px; opacity: .45;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 30%, #000, transparent 80%); mask-image: radial-gradient(60% 70% at 50% 30%, #000, transparent 80%);
}
.hero-in { display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: .82rem; font-weight: 600; color: var(--muted); line-height: 1.4; max-width: 100%;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); flex: none; }
h1 {
  margin-top: 20px; max-width: 16ch; font-size: clamp(2.1rem, 8vw, 4rem); line-height: 1.08; font-weight: 800; letter-spacing: -.035em;
  text-wrap: balance;
  background: linear-gradient(180deg, var(--text) 40%, color-mix(in srgb, var(--text) 62%, var(--primary)));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lead { margin-top: 18px; max-width: 56ch; color: var(--muted); font-size: clamp(1rem, 2.6vw, 1.15rem); text-wrap: pretty; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
.stats {
  margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; width: 100%; max-width: 520px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
}
.stats > div { background: var(--surface); padding: 16px 8px; display: flex; flex-direction: column-reverse; gap: 2px; }
.stats dd { font-size: clamp(1.4rem, 5vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; color: var(--primary-text); font-variant-numeric: tabular-nums; line-height: 1.2; }
.stats dt { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Sections */
.sec { padding: 56px 0; }
.sec-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.sec-head { margin-bottom: 24px; max-width: 62ch; }
.sec-head h2, .teach h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); line-height: 1.2; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.sec-head p { margin-top: 8px; color: var(--muted); }

/* Search */
.search {
  position: relative; display: flex; align-items: center; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--shadow-md);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--primary); box-shadow: var(--shadow-md), var(--ring); }
.search > .ic { position: absolute; left: 16px; color: var(--muted); pointer-events: none; width: 22px; height: 22px; }
.search input {
  flex: 1; min-width: 0; height: 56px; padding: 0 52px 0 50px; border: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 1rem; outline: none; border-radius: 16px;
}
.search input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.search input::-webkit-search-cancel-button { display: none; }
.clear { position: absolute; right: 6px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.clear:hover { background: var(--surface-2); color: var(--text); }
.clear[hidden] { display: none; }
.chips { margin-top: 14px; display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 8px; margin-inline: -16px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chip {
  flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, border-color .2s, color .2s;
}
.chip small { font-size: .75rem; color: var(--muted); font-weight: 600; }
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip[aria-pressed="true"] small { color: inherit; opacity: .8; }
.count { margin: 8px 0 12px; font-size: .88rem; color: var(--muted); min-height: 1.4em; }
.results { display: grid; gap: 10px; grid-template-columns: 1fr; }
.res {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.res:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.res-tx { flex: 1; min-width: 0; }
.res-t { font-weight: 600; font-size: .95rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.res-m { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .78rem; color: var(--muted); }
.tag { padding: 1px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-text); font-weight: 600; }
.res > .ic { color: var(--muted); transition: transform .2s, color .2s; }
.res:hover > .ic { color: var(--primary); transform: translateX(3px); }
.more { margin-top: 18px; display: flex; justify-content: center; }
.more [hidden] { display: none; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.empty[hidden] { display: none; }
mark { background: var(--gold-soft); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Bank cards */
.cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
.card {
  text-align: left; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  color: inherit; font: inherit; cursor: pointer; width: 100%;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--primary-soft); color: var(--primary-text); display: grid; place-items: center; flex: none; }
.card-ic .ic { width: 24px; height: 24px; }
.card:nth-child(3n+2) .card-ic { background: var(--gold-soft); color: color-mix(in srgb, var(--gold) 55%, var(--text)); }
.card-tx { min-width: 0; }
.card-n { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.card-c { margin-top: 2px; font-size: .85rem; color: var(--muted); }

/* Steps */
.steps { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: s; }
.steps li { position: relative; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 24px -10px var(--primary); }
.step-ic .ic { width: 26px; height: 26px; }
.step-n { position: absolute; top: 18px; right: 22px; font-size: 3rem; font-weight: 800; line-height: 1; color: var(--border-strong); opacity: .6; }
.steps h3 { margin-top: 18px; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.steps p { margin-top: 6px; color: var(--muted); }

/* Teachers */
.teach {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px 22px; border-radius: 24px;
  background: linear-gradient(135deg, var(--primary-soft), var(--gold-soft));
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.teach-ic { width: 52px; height: 52px; border-radius: 15px; background: var(--surface); display: grid; place-items: center; color: var(--primary-text); box-shadow: var(--shadow-sm); }
.teach-ic .ic { width: 28px; height: 28px; }
.teach p { margin-top: 6px; color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.foot-in { display: grid; gap: 20px; }
.foot-l { display: flex; flex-direction: column; gap: 8px; }
.foot-l p, .lic { font-size: .85rem; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; font-size: .92rem; }
.foot-links a:hover, .lic a:hover { color: var(--primary); text-decoration: underline; }
.lic a { text-underline-offset: 3px; }

/* Reveal (JS adds .in) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 479px) {
  .nav-cta span { display: none; }
  .nav-cta { width: 44px; padding: 0; }
  .brand span { font-size: 1.1rem; }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (min-width: 640px) {
  .wrap { padding: 0 24px; }
  .chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
  .results { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .teach { flex-direction: row; align-items: center; padding: 32px 36px; }
  .teach-tx { flex: 1; }
  .foot-in { grid-template-columns: 1fr auto; align-items: center; }
  .lic { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .hero { padding: 96px 0 80px; }
  .sec { padding: 88px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .res:hover, .card:hover { transform: none; }
}

/* Təkrarsız: başlıq düyməsi hero görünəndə gizlidir */
.nav-cta { transition: opacity .2s ease, transform .2s ease; }
.cta-hide .nav-cta { opacity: 0; transform: translateY(-4px); pointer-events: none; visibility: hidden; }
