/* ============================================================
   HyperVertual — Design System
   "Intelligent Indigo" palette  ·  indigo → violet → pink
   Dark mode default, light mode opt-in via .light class
   ============================================================ */

/* ── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  /* dark (default) */
  --background:        222 47% 7%;
  --foreground:        210 40% 98%;
  --card:              222 47% 10%;
  --card-foreground:   210 40% 98%;
  --border:            217 33% 20%;
  --input:             217 33% 20%;
  --muted:             217 33% 17%;
  --muted-foreground:  215 20% 65%;
  --accent:            243 45% 22%;
  --accent-foreground: 243 80% 85%;
  --primary:           243 80% 70%;
  --primary-foreground:222 47% 7%;
  --secondary:         217 33% 17%;
  --secondary-foreground:210 40% 98%;
  --destructive:       0 63% 47%;
  --destructive-foreground:210 40% 98%;
  --success:           142 64% 42%;
  --warning:           38  92% 50%;
  --ring:              243 80% 70%;

  /* brand gradient stops */
  --brand:   243 80% 70%;
  --brand-2: 268 80% 68%;
  --brand-3: 330 81% 66%;

  --radius: 0.65rem;

  /* font stacks */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

/* ── Light mode ──────────────────────────────────────────── */
.light {
  --background:        0   0%  100%;
  --foreground:        222 47% 11%;
  --card:              0   0%  100%;
  --card-foreground:   222 47% 11%;
  --border:            214 32% 91%;
  --input:             214 32% 91%;
  --muted:             210 40% 96%;
  --muted-foreground:  215 16% 47%;
  --accent:            243 75% 96%;
  --accent-foreground: 243 55% 35%;
  --primary:           243 75% 59%;
  --primary-foreground:0   0%  100%;
  --secondary:         210 40% 96%;
  --secondary-foreground:222 47% 11%;
  --destructive:       0  72%  51%;
  --destructive-foreground:0 0% 100%;
  --success:           158 64% 40%;
  --warning:           38  92% 50%;
  --ring:              243 75% 59%;
  --brand:   243 75% 59%;
  --brand-2: 268 80% 60%;
  --brand-3: 330 81% 60%;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid hsl(var(--border)); }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }

/* ── Typography helpers ──────────────────────────────────── */
.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }
.text-xs      { font-size: .75rem;  line-height: 1rem; }
.text-sm      { font-size: .875rem; line-height: 1.25rem; }
.text-base    { font-size: 1rem;    line-height: 1.5rem; }
.text-lg      { font-size: 1.125rem;line-height: 1.75rem; }
.text-xl      { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl     { font-size: 1.5rem;  line-height: 2rem; }
.text-3xl     { font-size: 1.875rem;line-height: 2.25rem; }
.text-4xl     { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl     { font-size: 3rem;    line-height: 1; }
.text-6xl     { font-size: 3.75rem; line-height: 1; }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-extrabold{font-weight:800; }
.tracking-tight{ letter-spacing: -.025em; }
.tracking-wide  { letter-spacing:  .05em; }
.tracking-widest{ letter-spacing:  .1em; }
.uppercase    { text-transform: uppercase; }
.capitalize   { text-transform: capitalize; }
.leading-none { line-height: 1; }
.leading-tight{ line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed{line-height:1.625; }

/* ── Colors ──────────────────────────────────────────────── */
.text-foreground       { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary          { color: hsl(var(--primary)); }
.text-success          { color: hsl(var(--success)); }
.text-destructive      { color: hsl(var(--destructive)); }
.text-warning          { color: hsl(var(--warning)); }
.text-white            { color: #fff; }

.bg-background { background: hsl(var(--background)); }
.bg-card       { background: hsl(var(--card)); }
.bg-muted      { background: hsl(var(--muted)); }
.bg-accent     { background: hsl(var(--accent)); }
.bg-primary    { background: hsl(var(--primary)); }
.bg-success    { background: hsl(var(--success)); }
.bg-white      { background: #fff; }

.border-border   { border-color: hsl(var(--border)); }
.border-primary  { border-color: hsl(var(--primary)); }

/* ── Gradient utilities ──────────────────────────────────── */
.text-gradient {
  background-image: linear-gradient(100deg, hsl(var(--brand)), hsl(var(--brand-2)) 55%, hsl(var(--brand-3)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bg-brand-gradient {
  background-image: linear-gradient(100deg, hsl(var(--brand)), hsl(var(--brand-2)) 55%, hsl(var(--brand-3)));
}

/* ── Glassmorphism ───────────────────────────────────────── */
.glass {
  background: hsl(var(--card) / .75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Grid background ─────────────────────────────────────── */
.bg-grid {
  background-image:
    linear-gradient(to right,  hsl(var(--border) / .5) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(var(--border) / .5) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 60%, transparent 100%);
  mask-image:         radial-gradient(ellipse 80% 60% at 50% 0%, #000 60%, transparent 100%);
}

/* ── Layout helpers ──────────────────────────────────────── */
.container { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }
.flex      { display: flex; }
.grid      { display: grid; }
.hidden    { display: none; }
.block     { display: block; }
.inline-flex { display: inline-flex; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.justify-between{ justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col   { flex-direction: column; }
.flex-wrap  { flex-wrap: wrap; }
.flex-1     { flex: 1 1 0%; }
.shrink-0   { flex-shrink: 0; }
.gap-1    { gap: .25rem; }
.gap-2    { gap: .5rem; }
.gap-3    { gap: .75rem; }
.gap-4    { gap: 1rem; }
.gap-5    { gap: 1.25rem; }
.gap-6    { gap: 1.5rem; }
.gap-8    { gap: 2rem; }
.gap-10   { gap: 2.5rem; }
.gap-12   { gap: 3rem; }
.gap-x-6  { column-gap: 1.5rem; }
.gap-y-2  { row-gap: .5rem; }
.w-full   { width: 100%; }
.w-max    { width: max-content; }
.h-full   { height: 100%; }
.min-h-screen { min-height: 100svh; }
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky   { position: sticky; }
.inset-0  { inset: 0; }
.top-0    { top: 0; }
.z-10     { z-index: 10; }
.z-50     { z-index: 50; }
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }
.select-none    { user-select: none; }
.truncate       { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mx-auto { margin-inline: auto; }
.ml-auto { margin-left: auto; }
.mt-1  { margin-top: .25rem; }
.mt-2  { margin-top: .5rem; }
.mt-3  { margin-top: .75rem; }
.mt-4  { margin-top: 1rem; }
.mt-5  { margin-top: 1.25rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }
.mb-2  { margin-bottom: .5rem; }
.mb-4  { margin-bottom: 1rem; }
.p-4   { padding: 1rem; }
.p-5   { padding: 1.25rem; }
.p-6   { padding: 1.5rem; }
.p-7   { padding: 1.75rem; }
.px-3  { padding-inline: .75rem; }
.px-4  { padding-inline: 1rem; }
.px-6  { padding-inline: 1.5rem; }
.py-1  { padding-block: .25rem; }
.py-2  { padding-block: .5rem; }
.py-4  { padding-block: 1rem; }
.py-6  { padding-block: 1.5rem; }
.py-8  { padding-block: 2rem; }
.py-10 { padding-block: 2.5rem; }
.py-12 { padding-block: 3rem; }
.py-14 { padding-block: 3.5rem; }
.py-16 { padding-block: 4rem; }
.py-20 { padding-block: 5rem; }
.py-24 { padding-block: 6rem; }
.py-28 { padding-block: 7rem; }
.rounded    { border-radius: var(--radius); }
.rounded-md { border-radius: calc(var(--radius) - .2rem); }
.rounded-lg { border-radius: calc(var(--radius) + .15rem); }
.rounded-xl { border-radius: calc(var(--radius) + .35rem); }
.rounded-2xl{ border-radius: 1rem; }
.rounded-3xl{ border-radius: 1.5rem; }
.rounded-full{ border-radius: 9999px; }
.border     { border-width: 1px; }
.border-t   { border-top-width: 1px; }
.border-b   { border-bottom-width: 1px; }
.border-y   { border-top-width:1px; border-bottom-width:1px; }
.border-dashed { border-style: dashed; }
.shadow-sm   { box-shadow: 0 1px 2px 0 rgb(0 0 0/.05); }
.shadow-lg   { box-shadow: 0 10px 15px -3px rgb(0 0 0/.1),0 4px 6px -4px rgb(0 0 0/.1); }
.shadow-xl   { box-shadow: 0 20px 25px -5px rgb(0 0 0/.15),0 8px 10px -6px rgb(0 0 0/.1); }
.shadow-2xl  { box-shadow: 0 25px 50px -12px rgb(0 0 0/.35); }
.opacity-0   { opacity: 0; }
.opacity-70  { opacity: .7; }
.opacity-20  { opacity: .2; }
.blur-3xl    { filter: blur(64px); }
.place-items-center { place-items: center; }
.grid-place  { display: grid; place-items: center; }
.space-y-1 > * + * { margin-top: .25rem; }
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.divide-y > * + * { border-top-width: 1px; border-color: hsl(var(--border)); }
.transition-all     { transition: all .2s; }
.transition-colors  { transition: color .2s, background-color .2s, border-color .2s; }
.transition-transform{transition: transform .2s; }
.duration-300       { transition-duration: .3s; }
.list-none          { list-style: none; }
.max-w-xs   { max-width: 20rem; }
.max-w-sm   { max-width: 24rem; }
.max-w-md   { max-width: 28rem; }
.max-w-lg   { max-width: 32rem; }
.max-w-xl   { max-width: 36rem; }
.max-w-2xl  { max-width: 42rem; }
.max-w-3xl  { max-width: 48rem; }
.max-w-5xl  { max-width: 64rem; }
.max-w-6xl  { max-width: 72rem; }
.max-w-7xl  { max-width: 80rem; }
.fill-amber-400 { fill: #fbbf24; }
.text-amber-400 { color: #fbbf24; }
.text-emerald-400 { color: #34d399; }
.text-emerald-600 { color: #059669; }
.text-red-400     { color: #f87171; }
.text-red-500     { color: #ef4444; }
.text-amber-500   { color: #f59e0b; }
.text-slate-300   { color: #cbd5e1; }
.text-slate-400   { color: #94a3b8; }
.text-slate-900   { color: #0f172a; }
.text-fuchsia-400 { color: #e879f9; }
.bg-slate-950     { background: #020617; }
.bg-emerald-500\/15 { background: rgb(16 185 129 / .15); }
.bg-red-400       { background: #f87171; }
.bg-amber-400     { background: #fbbf24; }
.bg-emerald-400   { background: #34d399; }

/* ── Component: Button ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .875rem;
  line-height: 1;
  padding: .625rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background-image: linear-gradient(100deg,hsl(var(--brand)),hsl(var(--brand-2)) 55%,hsl(var(--brand-3)));
  color: #fff;
  box-shadow: 0 4px 15px hsl(var(--primary)/.25);
}
.btn-primary:hover  { opacity: .9; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}
.btn-outline:hover { background: hsl(var(--accent)); border-color: hsl(var(--primary)/.5); }
.btn-ghost {
  background: transparent;
  color: hsl(var(--muted-foreground));
}
.btn-ghost:hover  { background: hsl(var(--accent)); color: hsl(var(--foreground)); }
.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}
.btn-secondary:hover { background: hsl(var(--accent)); }
.btn-white {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 4px 15px rgb(0 0 0/.15);
}
.btn-white:hover { background: #f1f5f9; }
.btn-sm  { padding: .4rem .9rem; font-size: .8rem; }
.btn-lg  { padding: .875rem 1.75rem; font-size: 1rem; }
.btn-full{ width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Component: Badge ────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .6rem;
  border-radius: 9999px;
  font-size: .7rem;
  font-weight: 600;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}
.badge-success { border-color: hsl(var(--success)/.4); background: hsl(var(--success)/.15); color: hsl(var(--success)); }
.badge-warning { border-color: hsl(var(--warning)/.4); background: hsl(var(--warning)/.15); color: hsl(var(--warning)); }
.badge-primary { border-color: hsl(var(--primary)/.4); background: hsl(var(--primary)/.15); color: hsl(var(--primary)); }

/* ── Component: Input ────────────────────────────────────── */
.input {
  width: 100%;
  padding: .6rem .9rem;
  background: hsl(var(--input) / .5);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  font-size: .875rem;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: hsl(var(--muted-foreground)); }
.input:focus {
  outline: none;
  border-color: hsl(var(--primary)/.6);
  box-shadow: 0 0 0 3px hsl(var(--primary)/.15);
}
.label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: .35rem;
}
.form-group { display: flex; flex-direction: column; gap: .35rem; }

/* ── Component: Card ─────────────────────────────────────── */
.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
}
.card-sm { padding: 1rem; }
.card-hover {
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px hsl(var(--primary)/.12);
  border-color: hsl(var(--primary)/.4);
}

/* ── Component: Stat card ────────────────────────────────── */
.stat-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.stat-card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .75rem;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}
.stat-card__label { font-size: .8rem; color: hsl(var(--muted-foreground)); font-weight: 600; }
.stat-card__value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: hsl(var(--foreground));
}
.stat-card__delta {
  font-size: .75rem;
  color: hsl(var(--success));
  font-weight: 600;
}

/* ── Component: Alert ────────────────────────────────────── */
.alert {
  padding: .875rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  border: 1px solid;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.alert-error   { background: hsl(var(--destructive)/.12); border-color: hsl(var(--destructive)/.3); color: hsl(var(--destructive)); }
.alert-success { background: hsl(var(--success)/.12);    border-color: hsl(var(--success)/.3);     color: hsl(var(--success)); }
.alert-info    { background: hsl(var(--primary)/.1);     border-color: hsl(var(--primary)/.25);    color: hsl(var(--primary)); }

/* ── Nav ─────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  transition: background .3s, border-bottom-color .3s;
}
.site-nav.scrolled {
  background: hsl(var(--card) / .75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .site-nav__inner { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .site-nav__inner { padding-inline: 2rem; } }
.site-nav__links { display: none; align-items: center; gap: 2rem; }
.site-nav__actions { display: none; align-items: center; gap: .5rem; }
@media (min-width: 768px) {
  .site-nav__links   { display: flex; }
  .site-nav__actions { display: flex; }
  .nav-hamburger     { display: none !important; }
}
.site-nav__link {
  font-size: .875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color .2s;
}
.site-nav__link:hover { color: hsl(var(--foreground)); }
.mobile-menu {
  display: none;
  background: hsl(var(--card) / .9);
  backdrop-filter: blur(12px);
  border-top: 1px solid hsl(var(--border));
  padding: 1rem;
}
.mobile-menu.open { display: flex; flex-direction: column; gap: .25rem; }

/* ── Logo ────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: hsl(var(--foreground));
}
.logo__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .65rem;
  background-image: linear-gradient(100deg,hsl(var(--brand)),hsl(var(--brand-2)) 55%,hsl(var(--brand-3)));
  color: #fff;
  box-shadow: 0 4px 12px hsl(var(--primary)/.3);
}

/* ── Hero section ────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 4rem);
  overflow: hidden;
  padding-block: 3rem;
}
.hero__grid {
  display: grid;
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 640px)  { .hero__grid { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1fr 1fr; padding-inline: 2rem; } }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid hsl(var(--primary)/.2);
  background: hsl(var(--accent));
  border-radius: 9999px;
  padding: .3rem .9rem;
  font-size: .75rem;
  font-weight: 700;
  color: hsl(var(--accent-foreground));
}
.hero__h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-top: 1.25rem;
}
.hero__sub {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  color: hsl(var(--muted-foreground));
  max-width: 38rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
  font-size: .85rem;
  color: hsl(var(--muted-foreground));
  align-items: center;
}
.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

/* Blobs */
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
  animation: blob 14s ease-in-out infinite;
  pointer-events: none;
}
.blob-1 { width: 20rem; height: 20rem; background: hsl(var(--primary)/.4);   top: -4rem;  left: -4rem; }
.blob-2 { width: 24rem; height: 24rem; background: hsl(330 81% 60%/.3); top:  2rem;  right: -4rem; animation-delay: 3s; }
.blob-3 { width: 20rem; height: 20rem; background: hsl(268 80% 68%/.3); bottom: -8rem; left: 33%;   animation-delay: 6s; }

/* ── Hero demo card ──────────────────────────────────────── */
.demo-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1.25rem;
  padding: .5rem;
  box-shadow: 0 25px 50px hsl(var(--primary)/.1);
}
.demo-card__bar { display: flex; align-items: center; gap: .4rem; padding: .5rem .75rem; }
.demo-card__dot { width: .75rem; height: .75rem; border-radius: 9999px; }
.demo-card__url { margin-left: .75rem; font-size: .75rem; color: hsl(var(--muted-foreground)); }
.demo-card__tabs { display: flex; gap: .25rem; padding: 0 .75rem; }
.demo-card__tab {
  padding: .4rem .75rem;
  font-size: .75rem;
  font-weight: 600;
  border-radius: .5rem .5rem 0 0;
  cursor: pointer;
  transition: background .2s, color .2s;
  border: none;
  color: hsl(var(--muted-foreground));
  background: transparent;
}
.demo-card__tab.active {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}
.demo-card__content {
  background: hsl(var(--background));
  border-radius: .75rem;
  padding: 1.25rem;
  font-size: .9375rem;
  line-height: 1.75;
  min-height: 7rem;
}
.demo-card__chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: .75rem; }
.demo-card__chip {
  padding: .25rem .75rem;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 600;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
}
.demo-card__chip.active {
  background-image: linear-gradient(100deg,hsl(var(--brand)),hsl(var(--brand-2)) 55%,hsl(var(--brand-3)));
  color: #fff;
  border-color: transparent;
}
.demo-floating {
  position: absolute;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: .85rem;
  padding: .5rem .85rem;
  font-size: .75rem;
  font-weight: 700;
  box-shadow: 0 10px 30px hsl(0 0% 0%/.2);
  white-space: nowrap;
  animation: floaty 5s ease-in-out infinite;
  display: none;
}
@media (min-width: 640px) { .demo-floating { display: block; } }
.demo-floating-1 { top: -1.5rem; right: -1.25rem; animation-delay: 0s; }
.demo-floating-2 { bottom: -1.5rem; left: -1.25rem; animation-delay: 1.5s; }

/* ── Trust bar ───────────────────────────────────────────── */
.trust-bar {
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--muted)/.35);
  padding-block: 2rem;
  overflow: hidden;
}
.trust-bar__label {
  text-align: center;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; gap: 3rem; }
.marquee-item  { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: hsl(var(--muted-foreground)/.55); white-space: nowrap; }

/* ── Section heading ─────────────────────────────────────── */
.section-heading { text-align: center; max-width: 42rem; margin-inline: auto; }
.section-eyebrow { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: hsl(var(--primary)); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -.025em;
  margin-top: .75rem;
}
.section-subtitle { margin-top: 1rem; color: hsl(var(--muted-foreground)); }

/* ── Feature cards ───────────────────────────────────────── */
.features-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--primary)/.4);
  box-shadow: 0 16px 40px hsl(var(--primary)/.1);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .75rem;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  transition: background .25s, color .25s;
}
.feature-card:hover .feature-icon {
  background-image: linear-gradient(100deg,hsl(var(--brand)),hsl(var(--brand-2)) 55%,hsl(var(--brand-3)));
  color: #fff;
}
.feature-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-top: 1rem; }
.feature-body  { font-size: .875rem; color: hsl(var(--muted-foreground)); margin-top: .5rem; }
.feature-card--dashed {
  border-style: dashed;
  border-color: hsl(var(--primary)/.4);
  background: hsl(var(--accent)/.4);
}

/* ── Exam Coach spotlight ────────────────────────────────── */
.exam-spotlight {
  background: #020617;
  color: #fff;
  padding-block: 5rem;
  position: relative;
  overflow: hidden;
}
.exam-spotlight__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .exam-spotlight__grid { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .exam-spotlight__grid { grid-template-columns: 1fr 1fr; padding-inline: 2rem; } }
.exam-blob-1 { position: absolute; width: 18rem; height: 18rem; background: hsl(239 84% 67%/.4); border-radius: 9999px; filter: blur(64px); left: 25%; top: 0; pointer-events: none; }
.exam-blob-2 { position: absolute; width: 18rem; height: 18rem; background: hsl(293 69% 49%/.3); border-radius: 9999px; filter: blur(64px); right: 25%; bottom: 0; pointer-events: none; }
.exam-list-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: #e2e8f0;
  font-size: .9rem;
}
.exam-list-item svg { color: #34d399; flex-shrink: 0; margin-top: .15rem; }
.score-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}
.score-card__header { display: flex; align-items: center; justify-content: space-between; }
.score-circle {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background-image: linear-gradient(100deg,hsl(var(--brand)),hsl(var(--brand-2)) 55%,hsl(var(--brand-3)));
  font-size: 1.35rem;
  font-weight: 900;
  flex-shrink: 0;
}
.score-bar-row { display: flex; justify-content: space-between; font-size: .85rem; }
.score-bar-row span:first-child { color: #cbd5e1; }
.score-bar-row span:last-child  { font-weight: 600; }
.score-bar-track { height: .5rem; background: rgba(255,255,255,.1); border-radius: 9999px; overflow: hidden; margin-top: .4rem; }
.score-bar-fill  {
  height: 100%;
  border-radius: 9999px;
  background-image: linear-gradient(90deg,hsl(var(--brand)),hsl(var(--brand-2)));
  width: 0;
  transition: width 1s cubic-bezier(.22,1,.36,1);
}
.exam-feedback {
  margin-top: 1.5rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .75rem;
  padding: 1rem;
  font-size: .85rem;
  color: #cbd5e1;
}

/* ── How it works ────────────────────────────────────────── */
.steps-grid { display: grid; gap: 2rem; text-align: center; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  margin-inline: auto;
  background-image: linear-gradient(100deg,hsl(var(--brand)),hsl(var(--brand-2)) 55%,hsl(var(--brand-3)));
  color: #fff;
  box-shadow: 0 8px 20px hsl(var(--primary)/.3);
}
.step-label { font-size: .8rem; font-weight: 700; color: hsl(var(--primary)); margin-top: .5rem; }
.step-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-top: .25rem; }
.step-body  { font-size: .875rem; color: hsl(var(--muted-foreground)); margin-top: .5rem; max-width: 18rem; margin-inline: auto; }

/* ── Stats bar ───────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; text-align: center; max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); padding-inline: 2rem; } }
.stat-value { font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; letter-spacing: -.025em; }
.stat-label { font-size: .875rem; color: hsl(var(--muted-foreground)); margin-top: .25rem; }

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.testimonial-stars { display: flex; gap: .15rem; }
.testimonial-quote { margin-top: 1rem; flex: 1; font-size: .9rem; line-height: 1.65; }
.testimonial-caption { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; }
.testimonial-avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-image: linear-gradient(100deg,hsl(var(--brand)),hsl(var(--brand-2)));
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.testimonial-name { font-size: .875rem; font-weight: 600; }
.testimonial-role { font-size: .75rem; color: hsl(var(--muted-foreground)); }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.pricing-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1.25rem;
  padding: 1.75rem;
  position: relative;
}
.pricing-card--highlighted {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsl(var(--primary)), 0 20px 40px hsl(var(--primary)/.2);
}
@media (min-width: 1024px) { .pricing-card--highlighted { transform: translateY(-12px); } }
.pricing-popular {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background-image: linear-gradient(100deg,hsl(var(--brand)),hsl(var(--brand-2)) 55%,hsl(var(--brand-3)));
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 9999px;
  white-space: nowrap;
}
.pricing-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.pricing-desc { font-size: .875rem; color: hsl(var(--muted-foreground)); margin-top: .25rem; }
.pricing-price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; letter-spacing: -.025em; margin-top: 1.25rem; display: flex; align-items: baseline; gap: .2rem; }
.pricing-period { font-size: .875rem; color: hsl(var(--muted-foreground)); font-weight: 400; }
.pricing-features { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.pricing-feature { display: flex; align-items: flex-start; gap: .6rem; font-size: .875rem; }
.pricing-check { color: hsl(var(--primary)); flex-shrink: 0; margin-top: .1rem; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list {
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsl(var(--card));
  overflow: hidden;
}
.faq-item { border-top: 1px solid hsl(var(--border)); }
.faq-item:first-child { border-top: none; }
.faq-question {
  width: 100%;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  background: none;
  color: hsl(var(--foreground));
  text-align: left;
}
.faq-icon { flex-shrink: 0; transition: transform .3s; color: hsl(var(--muted-foreground)); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer { font-size: .875rem; color: hsl(var(--muted-foreground)); line-height: 1.7; padding: 0 1.25rem 1.25rem; display: none; }
.faq-item.open .faq-answer { display: block; }

/* ── CTA banner ──────────────────────────────────────────── */
.cta-banner {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  background-image: linear-gradient(100deg,hsl(var(--brand)),hsl(var(--brand-2)) 55%,hsl(var(--brand-3)));
  padding: 5rem 1.5rem;
  text-align: center;
  color: #fff;
  box-shadow: 0 25px 50px hsl(var(--primary)/.3);
  max-width: 72rem;
  margin-inline: auto;
}
.cta-banner__shine {
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image: radial-gradient(circle at 20% 20%, #fff 0, transparent 40%), radial-gradient(circle at 80% 80%, #fff 0, transparent 40%);
  pointer-events: none;
}
.cta-banner h2 { font-family: var(--font-display); font-size: clamp(1.75rem,3.5vw,2.5rem); font-weight: 900; }
.cta-banner p  { color: rgba(255,255,255,.9); max-width: 36rem; margin-inline: auto; margin-top: 1rem; }
.cta-banner__actions { margin-top: 2rem; display: flex; justify-content: center; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--muted)/.2);
}
.footer-inner { max-width: 80rem; margin-inline: auto; padding: 3.5rem 1rem; }
@media (min-width: 640px)  { .footer-inner { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .footer-inner { padding-inline: 2rem; } }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px)  { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer-desc { font-size: .875rem; color: hsl(var(--muted-foreground)); margin-top: 1rem; max-width: 20rem; }
.footer-col-title { font-size: .875rem; font-weight: 600; }
.footer-col-links { display: flex; flex-direction: column; gap: .6rem; margin-top: .75rem; }
.footer-col-links a { font-size: .875rem; color: hsl(var(--muted-foreground)); transition: color .2s; }
.footer-col-links a:hover { color: hsl(var(--foreground)); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid hsl(var(--border));
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: .75rem;
  color: hsl(var(--muted-foreground));
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }

/* ── Dashboard sidebar ───────────────────────────────────── */
.dash-shell { display: flex; min-height: 100svh; }
.sidebar {
  width: 15rem;
  background: hsl(var(--card));
  border-right: 1px solid hsl(var(--border));
  display: none;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100svh;
  overflow-y: auto;
  flex-shrink: 0;
}
@media (min-width: 1024px) { .sidebar { display: flex; } }
.sidebar__logo { padding: 1.5rem 1.25rem 1rem; border-bottom: 1px solid hsl(var(--border)); }
.sidebar__nav { padding: 1rem .75rem; flex: 1; }
.sidebar__link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .9rem;
  border-radius: .65rem;
  font-size: .875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: background .2s, color .2s;
  margin-bottom: .15rem;
}
.sidebar__link:hover { background: hsl(var(--accent)); color: hsl(var(--foreground)); }
.sidebar__link.active {
  background: hsl(var(--primary)/.15);
  color: hsl(var(--primary));
  font-weight: 600;
}
.sidebar__link svg { flex-shrink: 0; }
.sidebar__footer { padding: .75rem; border-top: 1px solid hsl(var(--border)); }
.sidebar__user {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .75rem;
  border-radius: .65rem;
  cursor: pointer;
  transition: background .2s;
}
.sidebar__user:hover { background: hsl(var(--accent)); }
.sidebar__avatar {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background-image: linear-gradient(100deg,hsl(var(--brand)),hsl(var(--brand-2)));
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar__user-name { font-size: .875rem; font-weight: 600; }
.sidebar__user-plan { font-size: .7rem; color: hsl(var(--muted-foreground)); text-transform: capitalize; }

.dash-main { flex: 1; overflow-x: hidden; }
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  padding-inline: 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--card)/.8);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 30;
}
@media (min-width: 1024px) { .dash-topbar { display: none; } }
.dash-content { padding: 1.5rem 1.25rem; }
@media (min-width: 1024px) { .dash-content { padding: 2rem; } }

/* ── Dashboard hero banner ───────────────────────────────── */
.dash-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  background-image: linear-gradient(100deg,hsl(var(--brand)),hsl(var(--brand-2)) 55%,hsl(var(--brand-3)));
  padding: 1.75rem 2rem;
  color: #fff;
  box-shadow: 0 20px 40px hsl(var(--primary)/.3);
}
.dash-hero__shine {
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image: radial-gradient(circle at 15% 20%,#fff 0,transparent 40%),radial-gradient(circle at 85% 80%,#fff 0,transparent 40%);
  pointer-events: none;
}
.dash-hero__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.dash-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.15);
  border-radius: 9999px;
  padding: .25rem .8rem;
  font-size: .7rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.dash-hero h1 { font-family: var(--font-display); font-size: clamp(1.5rem,3vw,2.25rem); font-weight: 900; margin-top: 1rem; }
.dash-hero p  { margin-top: .5rem; color: rgba(255,255,255,.85); }

/* ── Quick action cards ──────────────────────────────────── */
.quick-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .quick-grid { grid-template-columns: repeat(3, 1fr); } }
.quick-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsl(var(--card));
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px hsl(var(--primary)/.1);
  border-color: hsl(var(--primary)/.4);
}
.quick-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .75rem;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  flex-shrink: 0;
  transition: background .25s, color .25s;
}
.quick-card:hover .quick-icon {
  background-image: linear-gradient(100deg,hsl(var(--brand)),hsl(var(--brand-2)));
  color: #fff;
}
.quick-title { font-size: .9rem; font-weight: 600; }
.quick-desc  { font-size: .75rem; color: hsl(var(--muted-foreground)); }
.quick-arrow { margin-left: auto; color: hsl(var(--muted-foreground)); flex-shrink: 0; transition: transform .2s, color .2s; }
.quick-card:hover .quick-arrow { transform: translateX(3px); color: hsl(var(--primary)); }

/* ── Document grid ───────────────────────────────────────── */
.doc-grid { display: grid; gap: .75rem; }
@media (min-width: 640px)  { .doc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .doc-grid { grid-template-columns: repeat(3, 1fr); } }
.doc-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: .85rem;
  background: hsl(var(--background)/.6);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px hsl(var(--primary)/.1);
  border-color: hsl(var(--primary)/.4);
}
.doc-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.doc-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .5rem;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  flex-shrink: 0;
  transition: background .25s, color .25s;
}
.doc-card:hover .doc-icon {
  background-image: linear-gradient(100deg,hsl(var(--brand)),hsl(var(--brand-2)));
  color: #fff;
}
.doc-title { margin-top: .75rem; font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-card:hover .doc-title { color: hsl(var(--primary)); }
.doc-meta  { font-size: .72rem; color: hsl(var(--muted-foreground)); margin-top: .25rem; }

/* ── Editor ──────────────────────────────────────────────── */
.editor-shell { display: flex; flex-direction: column; height: 100%; }
.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  position: sticky;
  top: 3.5rem;
  z-index: 20;
}
@media (min-width: 1024px) { .editor-toolbar { top: 0; } }
.editor-title-input {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  background: transparent;
  border: none;
  color: hsl(var(--foreground));
  flex: 1;
  min-width: 0;
}
.editor-title-input:focus { outline: none; }
.editor-meta { font-size: .75rem; color: hsl(var(--muted-foreground)); }
.editor-textarea {
  flex: 1;
  padding: 2rem 1.5rem;
  background: transparent;
  border: none;
  color: hsl(var(--foreground));
  font-size: 1rem;
  line-height: 1.8;
  resize: none;
  width: 100%;
  min-height: 60vh;
}
.editor-textarea:focus { outline: none; }
.editor-wrap { max-width: 50rem; margin-inline: auto; width: 100%; }

/* ── Analytics ───────────────────────────────────────────── */
.chart-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1rem; padding: 1.5rem; }
.chart-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.chart-desc  { font-size: .8rem; color: hsl(var(--muted-foreground)); margin-top: .15rem; }
.cat-bar-row { display: flex; align-items: center; gap: .75rem; font-size: .85rem; }
.cat-bar-label { width: 6rem; flex-shrink: 0; color: hsl(var(--muted-foreground)); }
.cat-bar-track { flex: 1; height: .6rem; background: hsl(var(--muted)); border-radius: 9999px; overflow: hidden; }
.cat-bar-fill  { height: 100%; border-radius: 9999px; background-image: linear-gradient(90deg,hsl(var(--brand)),hsl(var(--brand-2))); width: 0; transition: width 1s cubic-bezier(.22,1,.36,1); }
.cat-bar-count { width: 2.5rem; text-align: right; font-weight: 600; flex-shrink: 0; }

/* ── Exam coach page ─────────────────────────────────────── */
.eval-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .eval-grid { grid-template-columns: 1fr 1fr; } }
.eval-textarea {
  width: 100%;
  min-height: 18rem;
  padding: 1rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: .75rem;
  color: hsl(var(--foreground));
  font-size: .9375rem;
  line-height: 1.8;
  resize: vertical;
  transition: border-color .2s;
}
.eval-textarea:focus { outline: none; border-color: hsl(var(--primary)/.6); box-shadow: 0 0 0 3px hsl(var(--primary)/.12); }
.eval-result { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1rem; padding: 1.5rem; }
.eval-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 18rem; gap: 1rem; color: hsl(var(--muted-foreground)); text-align: center; }

/* ── Settings ────────────────────────────────────────────── */
.settings-section { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1rem; padding: 1.5rem; }
.settings-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.settings-desc  { font-size: .875rem; color: hsl(var(--muted-foreground)); margin-top: .25rem; }
.danger-zone { border-color: hsl(var(--destructive)/.35); }

/* ── Auth layout ─────────────────────────────────────────── */
.auth-shell {
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}
.auth-card {
  width: 100%;
  max-width: 26rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1.25rem;
  padding: 2.25rem;
  position: relative;
  z-index: 2;
}
.auth-logo { display: flex; justify-content: center; margin-bottom: 1.75rem; }
.auth-h1   { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; }
.auth-sub  { font-size: .875rem; color: hsl(var(--muted-foreground)); margin-top: .25rem; }
.auth-footer-link { font-size: .875rem; color: hsl(var(--muted-foreground)); text-align: center; margin-top: 1.25rem; }
.auth-footer-link a { color: hsl(var(--primary)); font-weight: 600; }
.auth-footer-link a:hover { text-decoration: underline; }
.auth-divider { display: flex; align-items: center; gap: .75rem; font-size: .75rem; color: hsl(var(--muted-foreground)); margin-block: 1rem; }
.auth-divider::before, .auth-divider::after { content:''; flex: 1; height: 1px; background: hsl(var(--border)); }

/* ── Animations ──────────────────────────────────────────── */
@keyframes blob {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-40px) scale(1.1); }
  66%      { transform: translate(-20px,20px) scale(.95); }
}
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
.animate-blob    { animation: blob 14s ease-in-out infinite; }
.animate-floaty  { animation: floaty 6s ease-in-out infinite; }
.animate-marquee { animation: marquee 28s linear infinite; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); }
.reveal.visible  { opacity: 1; transform: none; }
.spinner { animation: spin 1s linear infinite; }

/* ── Responsive helpers ──────────────────────────────────── */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2,1fr); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3,1fr); }
  .sm\:p-9 { padding: 2.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; }
  .sm\:text-5xl { font-size: 3rem; }
}
@media (min-width: 768px) {
  .md\:flex   { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2,1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3,1fr); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2,1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3,1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4,1fr); }
  .lg\:col-span-2  { grid-column: span 2; }
  .lg\:p-8  { padding: 2rem; }
  .lg\:py-28{ padding-block: 7rem; }
  .lg\:hidden { display: none; }
  .lg\:flex   { display: flex; }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .animate-blob, .animate-floaty, .animate-marquee, .animate-fade-up { animation: none; }
  .reveal, .card-hover, .feature-card, .quick-card, .doc-card { transition: none; }
}

/* ── Theme toggle button ─────────────────────────────────── */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .65rem;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border: 1px solid hsl(var(--border));
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: hsl(var(--muted)); }

/* ── Mobile sidebar drawer ───────────────────────────────── */
.mobile-sidebar {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.mobile-sidebar.open { display: block; }
.mobile-sidebar__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
}
.mobile-sidebar__panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 15rem;
  background: hsl(var(--card));
  border-right: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
}

/* ── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; gap: .5rem; align-items: center; justify-content: center; }
.page-btn {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .65rem;
  border: 1px solid hsl(var(--border));
  font-size: .875rem;
  cursor: pointer;
  transition: all .2s;
  color: hsl(var(--foreground));
  background: hsl(var(--card));
}
.page-btn:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.page-btn.active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }

/* ── Tab switcher ────────────────────────────────────────── */
.tabs { display: flex; gap: .25rem; background: hsl(var(--muted)); border-radius: .65rem; padding: .25rem; }
.tab-btn {
  padding: .5rem 1rem;
  border-radius: .5rem;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
  color: hsl(var(--muted-foreground));
  border: none;
  background: none;
}
.tab-btn.active { background: hsl(var(--card)); color: hsl(var(--foreground)); box-shadow: 0 1px 3px hsl(0 0% 0%/.1); }

/* ── Wavy underline (error highlight in demo) ──────────────── */
.wavy-error   { text-decoration: underline wavy #ef4444; text-underline-offset: 4px; cursor: pointer; }
.wavy-warning { text-decoration: underline wavy #f59e0b; text-underline-offset: 4px; cursor: pointer; }
.fixed-correct{ background: rgb(16 185 129 / .15); padding: 0 .2rem; border-radius: .25rem; color: #34d399; }

.dash-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  margin-top: 1rem;
}

.legal-page { max-width: 48rem; margin: 6.5rem auto 4rem; padding: 0 1.25rem 3rem; }
.legal-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--primary)); }
.legal-page h1 { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; margin: .4rem 0 0; }
.legal-meta { color: hsl(var(--muted-foreground)); font-size: .9rem; margin: .75rem 0 1.25rem; }
.legal-toc { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.legal-toc a { font-size: .8rem; font-weight: 600; padding: .35rem .7rem; border: 1px solid hsl(var(--border)); border-radius: 999px; color: hsl(var(--muted-foreground)); }
.legal-toc a.is-active, .legal-toc a:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.legal-prose { font-size: .98rem; line-height: 1.75; }
.legal-prose h2 { font-family: var(--font-display); font-size: 1.15rem; margin: 1.75rem 0 .6rem; }
.legal-prose p, .legal-prose ul { margin: 0 0 1rem; }
.legal-prose ul { padding-left: 1.2rem; }
.legal-prose li { margin: .3rem 0; }
.legal-prose a { color: hsl(var(--primary)); text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: .85rem; max-width: 36rem; margin-top: 1.5rem; }
.alert { padding: .85rem 1rem; border-radius: .75rem; margin: 1rem 0; }
.alert-success { background: hsl(var(--success) / .12); color: hsl(var(--success)); }
.alert-error { background: hsl(var(--destructive) / .12); color: hsl(var(--destructive)); }

.admin-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.admin-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--primary)); }
.admin-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.25rem; }
.admin-tab { padding: .45rem .9rem; border-radius: 999px; border: 1px solid hsl(var(--border)); font-size: .85rem; font-weight: 600; color: hsl(var(--muted-foreground)); }
.admin-tab.is-active, .admin-tab:hover { background: hsl(var(--primary)); color: #fff; border-color: hsl(var(--primary)); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; }
.stat-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1rem; padding: 1.1rem; }
.stat-card__label { font-size: .8rem; color: hsl(var(--muted-foreground)); }
.stat-card__value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { padding: .7rem .6rem; border-bottom: 1px solid hsl(var(--border)); text-align: left; }
.admin-search { display: flex; gap: .5rem; margin-bottom: 1rem; max-width: 28rem; }
.admin-settings .card, .admin-actions .card { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .55rem; }
.admin-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.btn-danger { background: hsl(var(--destructive)); color: #fff; }
.muted { color: hsl(var(--muted-foreground)); font-size: .88rem; }
.message-card { border-bottom: 1px solid hsl(var(--border)); padding: 1rem 0; }
code { font-size: .82em; background: hsl(var(--muted)); padding: .1rem .35rem; border-radius: .3rem; }
