/* ===== TestMaster — styles (Electric Blue) ===== */
:root {
  --blue: #2563eb;
  --blue-strong: #1d4ed8;
  --cyan: #06b6d4;
  --ink: #0f172a;
  --slate: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --bg-soft: #eef2f7;
  --white: #ffffff;
  --card-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, .82);
  --footer-bg: #0f172a;
  --grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(37, 99, 235, .18);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
}

[data-theme="dark"] {
  --ink: #e8eef9;
  --slate: #b6c2d9;
  --muted: #8b99b5;
  --line: #233149;
  --line-strong: #324363;
  --bg: #0b1220;
  --bg-alt: #0f1729;
  --bg-soft: #16203a;
  --card-bg: #121c31;
  --header-bg: rgba(11, 18, 32, .82);
  --footer-bg: #070d18;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow-light { color: #bae6fd; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: .98rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37, 99, 235, .36); }
.btn-ghost {
  background: var(--card-bg);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; margin-right: auto; }
.brand-logo { height: 100px; width: auto; display: block; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .3);
}
.brand-name { font-size: 1.15rem; letter-spacing: -0.01em; font-weight: 600; }
.brand-name strong { font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--slate); font-weight: 500; font-size: .96rem; transition: color .15s ease; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn { color: var(--white); }

.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: inline-flex;
  gap: 2px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.lang-switch button {
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { color: #fff; background: var(--grad); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(6, 182, 212, .16), transparent 60%),
    radial-gradient(50% 50% at 10% 10%, rgba(37, 99, 235, .14), transparent 60%),
    var(--bg-alt);
}
.hero-inner { text-align: center; max-width: 840px; }
.turbo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, .1);
  color: var(--blue);
  font-weight: 700;
  font-size: .85rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, .2);
  margin-bottom: 22px;
}
.hero h1 { margin-bottom: 20px; }
.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--slate);
  max-width: 660px;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.stat {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px;
  box-shadow: var(--shadow-sm);
}
.stat-num {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-label { font-size: .88rem; color: var(--muted); }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.section-sub { color: var(--slate); font-size: 1.05rem; margin-top: 12px; }

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(37, 99, 235, .1);
  color: var(--blue);
}
.card-icon svg { width: 24px; height: 24px; }
.pill {
  font-size: .76rem;
  font-weight: 700;
  color: var(--blue);
  background: rgba(37, 99, 235, .1);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate); font-size: .96rem; }

/* ===== Why ===== */
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.feature-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.feature-list li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
.tick {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #fff; font-size: .8rem; font-weight: 700;
}
.why-visual { position: relative; min-height: 300px; }
.float-card {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  width: 240px;
}
.float-card-1 { top: 20px; left: 0; }
.float-card-2 { bottom: 20px; right: 0; }
.float-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.float-value { display: block; font-size: 1.8rem; font-weight: 800; margin: 6px 0 14px; }
.float-value small { font-size: .85rem; font-weight: 600; color: var(--muted); }
.bar { height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 999px; background: var(--grad); }

/* ===== Steps ===== */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.step {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.step-num {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad); color: #fff;
  font-weight: 800; font-size: 1.1rem;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--slate); font-size: .95rem; }

/* ===== CTA / Contact ===== */
.section-cta {
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(6, 182, 212, .55), transparent 60%),
    var(--grad);
  color: #fff;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.section-cta .section-sub { color: #e0f2fe; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: #eff6ff; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: #bae6fd; }
.contact-list a:hover { text-decoration: underline; }

.contact-form {
  background: var(--card-bg);
  color: var(--ink);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--slate); }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--ink);
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--card-bg);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.field textarea { resize: vertical; }
.form-note { font-size: .9rem; margin-top: 4px; min-height: 1.2em; }
.form-note.ok { color: #16a34a; }
.form-note.err { color: #dc2626; }

/* ===== Footer ===== */
.site-footer { background: var(--footer-bg); color: #cbd5e1; padding: 56px 0 28px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand { max-width: 340px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 14px; color: #94a3b8; font-size: .95rem; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 8px 15px; border-radius: 999px;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.footer-social a:hover { color: #fff; border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .06); }
.footer-social svg { width: 12px; height: 12px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: #cbd5e1; font-size: .95rem; transition: color .15s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: .88rem;
  color: #94a3b8;
}

/* ===== Article pages ===== */
.article-page { padding: 64px 0 80px; }
.article-body { max-width: 760px; }
.article-body .eyebrow a { color: var(--blue); }
.article-body h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.2; margin-bottom: 24px; }
.article-body h2 { font-size: 1.55rem; font-weight: 700; margin: 44px 0 20px; line-height: 1.25; }
.article-body p { margin: 0 0 20px; line-height: 1.8; color: var(--slate); font-size: 1.01rem; }
.article-body .lead { font-size: 1.15rem; line-height: 1.8; margin-bottom: 28px; }
.article-list { margin: 0 0 24px; padding-left: 22px; }
.article-list li { margin-bottom: 14px; line-height: 1.75; color: var(--slate); font-size: 1.01rem; }
.article-cta {
  margin-top: 48px;
  padding: 36px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(6, 182, 212, .08));
  border: 1px solid rgba(37, 99, 235, .18);
}
.article-cta h2 { margin-top: 0; font-size: 1.45rem; }
.article-cta p { font-size: 1.01rem; }
.article-cta .btn { margin-top: 12px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-visual { min-height: 260px; max-width: 420px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow);
    display: none;
    margin-left: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 4px; }
  .nav-links a.btn { margin-top: 8px; justify-content: center; }
  .nav-toggle { display: flex; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .hero { padding: 56px 0 52px; }
}

@media (max-width: 460px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .float-card { width: 200px; }
  .lang-switch button { padding: 6px 9px; font-size: .72rem; }
  .nav-right { gap: 10px; }
  .brand-logo { height: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
