:root {
  --bg: #0a0c10;
  --bg-alt: #0f1218;
  --surface: #151922;
  --surface-2: #1b202b;
  --border: #252b37;
  --border-strong: #343b4a;
  --text: #eef1f6;
  --muted: #98a1b2;
  --subtle: #6b7385;
  --accent: #e5484d;       /* L-plate red */
  --accent-hover: #f0565b;
  --accent-soft: rgba(229, 72, 77, 0.12);
  --gold: #f5c451;
  --success: #3dd68c;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 68px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: #fff; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.075rem; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff; padding: 0.5rem 1rem; border-radius: 8px;
  text-decoration: none; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.ico {
  width: 1.15em; height: 1.15em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0 1.4rem;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent); border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 0.975rem; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 24px -10px rgba(229, 72, 77, 0.6);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ico { transition: transform 0.2s; }
.btn:hover .ico { transform: translateX(2px); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); box-shadow: none; }
.btn-ghost:hover { background: var(--surface); border-color: var(--subtle); }
.btn-sm { min-height: 40px; padding: 0 1.1rem; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-block:hover .ico { transform: none; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

.link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--accent); font-weight: 600; text-decoration: none;
}
.link:hover { color: var(--accent-hover); }
.link:hover .ico { transform: translateX(2px); }
.link .ico { transition: transform 0.2s; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 16, 0.75);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(10, 12, 16, 0.9); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.logo-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent); color: #fff;
  font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em;
}
.logo-text { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }

.menu { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.menu a:not(.btn) {
  display: block; padding: 0.5rem 0.85rem; border-radius: 8px;
  color: var(--muted); font-weight: 500; font-size: 0.95rem; text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.menu a:not(.btn):hover, .menu a.active { color: var(--text); }
.menu a.active { background: var(--surface); }
.menu-cta { margin-left: 0.75rem; }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(229, 72, 77, 0.16), transparent 70%),
    radial-gradient(500px 360px at 5% 90%, rgba(245, 196, 81, 0.06), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; margin: 1.5rem 0 1.25rem; }
.accent { color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

.pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0.95rem 0.4rem 0.8rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted); font-size: 0.875rem; text-decoration: none;
  transition: border-color 0.2s;
}
.pill:hover { border-color: var(--border-strong); }
.pill strong { color: var(--text); }
.stars { color: var(--gold); letter-spacing: 0.08em; font-size: 0.9em; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(61, 214, 140, 0.15); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.checks li { display: flex; align-items: center; gap: 0.65rem; font-size: 0.95rem; }
.checks .ico { color: var(--success); }

/* Hero visual */
.hero-checks { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; list-style: none; margin: 1.75rem 0 0; padding: 0; color: var(--muted); font-size: 0.95rem; }
.hero-checks li { display: flex; align-items: center; gap: 0.5rem; }
.hero-checks .ico { color: var(--success); }
.pill .dot { flex-shrink: 0; }

.hero-visual { position: relative; }
.road-scene {
  width: 100%; height: auto; border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 8px rgba(255, 255, 255, 0.02);
}
.float-badge {
  position: absolute; z-index: 1;
  display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 1rem;
  background: rgba(21, 25, 34, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9);
  font-size: 0.875rem; font-weight: 600; line-height: 1.3; text-decoration: none; color: var(--text);
  animation: float 6s ease-in-out infinite;
}
.badge-rating { top: 7%; left: -6%; }
.badge-rating:hover { border-color: var(--subtle); }
.badge-score { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.badge-sub { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.badge-status { bottom: 8%; right: -5%; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.stat-strip {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 0;
  border: 1px solid var(--border); border-radius: 18px; background: rgba(21, 25, 34, 0.6);
}
.stat-strip div { padding: 1.4rem 1.5rem; }
.stat-strip div + div { border-left: 1px solid var(--border); }
.stat-strip dt { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat-strip dd { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; }
.star-sm { color: var(--gold); font-size: 0.6em; margin-left: 0.2rem; vertical-align: 0.35em; }
.ico-lock { display: inline-block; width: 0.85em; height: 0.85em; margin-left: 0.15rem; vertical-align: -0.05em; opacity: 0.7; }

/* Closing call to action */
.cta-band { padding: clamp(3.5rem, 8vw, 5.5rem) 0; border-top: 1px solid var(--border); background:
  radial-gradient(600px 300px at 85% 50%, rgba(229, 72, 77, 0.14), transparent 70%), var(--bg-alt); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-inner h2 { margin-bottom: 0.5rem; }

/* Phone booking bar */
.book-bar { display: none; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head > p:last-child:not(.eyebrow) { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }
.eyebrow {
  display: inline-block; margin-bottom: 0.85rem;
  color: var(--accent); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}

.icon-box {
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(229, 72, 77, 0.2);
}
.icon-box .ico { width: 22px; height: 22px; }

/* Lessons */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.card h3 { margin: 1.25rem 0 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

.banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
  margin-top: 1.5rem; padding: 1.5rem 1.75rem;
  background: linear-gradient(90deg, rgba(229, 72, 77, 0.12), rgba(229, 72, 77, 0.03));
  border: 1px solid rgba(229, 72, 77, 0.25); border-radius: var(--radius);
}
.banner h3 { margin-bottom: 0.25rem; }
.banner p { color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.steps li {
  position: relative; padding: 1.6rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.step-num {
  display: inline-block; margin-bottom: 1.25rem;
  font-size: 0.85rem; font-weight: 700; color: var(--accent);
  padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--accent-soft);
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--muted); font-size: 0.95rem; }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.why-intro h2 { margin-bottom: 1rem; }
.review-card {
  margin-top: 2rem; padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.review-score { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.4rem; }
.score { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.review-score .stars { font-size: 1.1rem; }
.review-card p { color: var(--muted); margin-bottom: 1rem; font-size: 0.95rem; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.feature {
  display: flex; flex-direction: column; gap: 1.1rem;
  padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.feature h3 { margin-bottom: 0.4rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* Areas */
.areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.areas li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  font-weight: 500; font-size: 0.95rem;
}
.areas .ico { width: 16px; height: 16px; color: var(--accent); }

/* Study teaser */
.study-teaser { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.study-teaser h2 { margin-bottom: 1rem; }
.study-teaser .checks { margin: 1.5rem 0 2rem; }
.study-preview {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.study-preview img { width: 100%; height: auto; filter: blur(3px) brightness(0.85); transform: scale(1.05); transition: transform 0.4s; }
.study-preview:hover img { transform: scale(1.08); }
.preview-lock {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1.1rem;
  background: rgba(10, 12, 16, 0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px;
  color: #fff; font-weight: 600; font-size: 0.925rem; white-space: nowrap;
  transition: background 0.2s;
}
.study-preview:hover .preview-lock { background: var(--accent); border-color: var(--accent); }

/* FAQ */
.faq { display: grid; gap: 0.75rem; }
details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  transition: border-color 0.2s;
}
details[open] { border-color: var(--border-strong); }
summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.35rem; cursor: pointer; list-style: none;
  font-weight: 600;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex-shrink: 0; width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.25s;
}
details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
details p { padding: 0 1.35rem 1.25rem; color: var(--muted); }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; }
.contact-list span { display: block; color: var(--subtle); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

.form {
  display: grid; gap: 1.1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: 0.45rem; font-weight: 600; font-size: 0.9rem; }
.optional { color: var(--subtle); font-weight: 500; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 0.75rem 0.95rem;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; font-weight: 400; font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2398a1b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.form input::placeholder, .form textarea::placeholder { color: var(--subtle); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-status { font-size: 0.925rem; text-align: center; min-height: 1.5em; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--accent-hover); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: grid; gap: 1rem; justify-items: start; max-width: 340px; }
.footer h3 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer ul a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer ul a:hover { color: var(--text); }
.footer-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--subtle); font-size: 0.875rem; }
.lock-tag {
  margin-left: 0.35rem; padding: 0.1rem 0.45rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; vertical-align: 1px;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .why, .contact-inner, .study-teaser { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; width: 100%; justify-self: center; }
}

@media (max-width: 880px) {
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px;
    background: transparent; border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .menu {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.25rem;
    padding: 0.75rem 16px 1.25rem;
    background: rgba(10, 12, 16, 0.98); border-bottom: 1px solid var(--border);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .menu.open { opacity: 1; visibility: visible; transform: none; }
  .menu a:not(.btn) { padding: 0.8rem 0.75rem; font-size: 1rem; }
  .menu-cta { margin: 0.5rem 0 0; }
  .menu-cta .btn { width: 100%; min-height: 48px; }
}

@media (max-width: 600px) {
  .grid-4, .steps, .features, .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-actions .btn { flex: 1 1 100%; }
  .banner { padding: 1.35rem; }
  .banner .btn { width: 100%; }
  .stats dt { font-size: 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 880px) {
  .book-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(10, 12, 16, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    transform: translateY(110%); transition: transform 0.3s;
  }
  .book-bar.show { transform: none; }
  body.has-book-bar .to-top { bottom: 84px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip div:nth-child(3) { border-left: 0; }
  .stat-strip div:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .badge-rating { left: 3%; }
  .badge-status { right: 3%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-badge { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

/* Small interactions */
.btn:active, .tabs button:active, .maps button:active { transform: scale(0.97); }

.reveal:not(.in) { opacity: 0; }
.reveal.in { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms) backwards; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.glow { position: relative; }
.glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(229, 72, 77, 0.09), transparent 65%);
  opacity: 0; transition: opacity 0.3s;
}
.glow:hover::before { opacity: 1; }

.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: grid; place-items: center; width: 46px; height: 46px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 50%;
  cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); border-color: var(--accent); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Login page */
.login-page { min-height: 100vh; display: grid; place-items: center; position: relative; overflow-x: hidden; }
.login-wrap {
  position: relative; z-index: 1; width: 100%; max-width: 420px; padding: 2.5rem 16px;
  display: grid; justify-items: center; gap: 1.75rem;
}
.login-card {
  width: 100%; display: grid; gap: 1.1rem; padding: clamp(1.5rem, 5vw, 2.25rem);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.login-card h1 { font-size: 1.6rem; letter-spacing: -0.03em; }
.login-card > .muted { margin-top: -0.6rem; }
.login-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(229, 72, 77, 0.25);
}
.login-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.login-card label { display: grid; gap: 0.45rem; font-weight: 600; font-size: 0.9rem; }
.login-card input {
  width: 100%; min-height: 48px; padding: 0.75rem 0.95rem;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; font-weight: 400; font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 3rem; }
.show-password {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  display: grid; place-items: center; width: 38px; height: 38px;
  background: transparent; color: var(--subtle); border: 0; border-radius: 8px; cursor: pointer;
}
.show-password:hover { color: var(--text); }
.show-password svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.show-password .eye-closed, .show-password[aria-pressed="true"] .eye-open { display: none; }
.show-password[aria-pressed="true"] .eye-closed { display: block; }
.login-error {
  padding: 0.75rem 0.95rem; border-radius: var(--radius-sm);
  background: var(--accent-soft); border: 1px solid rgba(229, 72, 77, 0.35); color: #ffb3b5; font-size: 0.925rem;
}
.caps-warning { margin-top: -0.6rem; color: var(--gold); font-size: 0.85rem; font-weight: 600; }
.login-page .back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--muted); font-size: 0.925rem; text-decoration: none;
}
.login-page .back-link:hover { color: var(--text); }
