/* Aesthetic direction: "VR classroom at dusk" — deep indigo space + luminous violet accent. */
:root {
  --accent: #7c5cff;
  --accent-2: #35d0c0;
  --bg: #0b0c1a;
  --surface: #141530;
  --text: #eef0ff;
  --muted: #9a9dc7;
  --border: #2a2c55;
  --radius: 14px;
  --header-h: 72px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 0.6rem; }
p { margin: 0 0 1rem; color: var(--muted); }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 92vw); margin-inline: auto; }
.container-narrow { width: min(720px, 92vw); margin-inline: auto; }
.section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }
.section-head p { margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.6rem; border-radius: var(--radius);
  font-weight: 600; font-family: var(--font-body); border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0b0c1a; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* Scroll reveal — hidden ONLY when JS tagged <html class="js">. */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Header / Nav ─────────────────────────────────────────────────────── */
.nav-toggle { display: none; }
.site-header {
  direction: ltr; position: sticky; top: 0; z-index: 900;
  height: var(--header-h); display: flex; align-items: center;
  background: rgba(11, 12, 26, 0.85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; }
.logo img { height: 28px; width: auto; display: block; }
footer .footer-logo img { height: 26px; width: auto; display: block; filter: brightness(0) invert(1); opacity: 0.9; }
.site-nav-desktop { display: flex; align-items: center; gap: 1.75rem; }
.site-nav-desktop a:not(.btn) { color: var(--muted); font-weight: 500; }
.site-nav-desktop a:not(.btn):hover { color: var(--text); }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-burger span { width: 24px; height: 2px; background: var(--text); }

@media (max-width: 860px) {
  .site-nav-desktop { display: none; }
  .nav-burger { display: flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    z-index: 800; background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 1rem min(1120px, 4vw);
    display: flex; flex-direction: column;
    transform: translateY(-110%); visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s ease;
  }
  .site-nav a:not(.btn), .site-nav .lang-switcher { padding: 0.6rem 0; color: var(--muted); }
  .site-nav .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }
  .nav-toggle:checked ~ .site-nav { transform: translateY(0); visibility: visible; }
}
@media (min-width: 861px) { .site-nav { display: none; } }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.page-hero, .hero {
  position: relative; text-align: center; overflow: hidden;
}
.page-hero { padding: calc(var(--header-h) + 3.5rem) 0 3rem; }
.hero { padding: calc(var(--header-h) + 5rem) 0 4rem; }
.page-hero::before, .hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('/assets/img/hero-bg.png') center 30% / cover no-repeat;
  opacity: 0.38;
}
.page-hero::after, .hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,12,26,0.55) 0%, var(--bg) 92%);
}
.page-hero .container, .page-hero .container-narrow,
.hero .container, .hero .container-narrow { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); max-width: 780px; margin: 0 auto 0.8rem; }
.hero p { font-size: 1.15rem; max-width: 620px; margin: 0 auto 1.8rem; }

.showcase-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.showcase-gallery img {
  width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--border); display: block;
}
@media (max-width: 760px) { .showcase-gallery { grid-template-columns: 1fr; } }

/* ── Cards / grids ────────────────────────────────────────────────────── */
.grid-3, .grid-2 {
  display: grid; justify-content: center; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
}
@media (max-width: 760px) { .grid-3, .grid-2 { grid-template-columns: minmax(0, 340px); } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem;
}
.card h3 { font-size: 1.1rem; }
.card-icon { width: 44px; height: 44px; object-fit: contain; margin-bottom: 1rem; }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.pricing-card { text-align: center; }
.pricing-card .price { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--text); margin: 0.5rem 0; }
.pricing-card .trial { color: var(--accent-2); font-size: 0.9rem; margin-bottom: 0.5rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent);
  color: #0b0c1a; display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 0.75rem;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-body { margin-top: 0.75rem; color: var(--muted); }

/* ── Forms ────────────────────────────────────────────────────────────── */
.form-group          { margin-bottom: 1.1rem; }
.form-card, .contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem;
}
.form-card.narrow { max-width: 480px; margin: 0 auto; }
.contact-form h3, .form-card h3 { margin-bottom: 1.5rem; }
.form-grid, .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-grid, .form-row { grid-template-columns: 1fr; } }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--muted); }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.75rem 0.9rem; border-radius: 10px;
  border: 1px solid var(--border); background: #0e0f24; color: var(--text);
  font-family: var(--font-body); font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.signin-card button, .form-card button { margin-top: 0.5rem; }

.error-msg, .errorMsg { display: none; color: #ff6b6b; font-size: 0.82rem; margin-top: 0.3rem; }
.form-success, .success-msg, .successMsg { display: none; color: var(--accent-2); font-weight: 600; margin-top: 1rem; }
.form-msg.ok { color: var(--accent-2); font-weight: 600; margin-top: 1rem; }
.form-msg.err { color: #ff6b6b; font-weight: 600; margin-top: 1rem; }
.form-disclaimer { color: var(--muted); font-size: 0.82rem; margin-top: 1rem; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 3rem; }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.contact-hours { color: var(--accent-2); font-weight: 600; }

/* ── Legal pages ──────────────────────────────────────────────────────── */
.legals-wrap { padding: 3.5rem 0; }
.legals { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 5rem; }
.legals .container { width: min(840px, 92vw); margin-inline: auto; }
.legals h1 { display: none; }
.legals h6 {
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); margin: 2rem 0 0.5rem;
}
.legals p { margin-bottom: 0.85rem; line-height: 1.75; }
.legals ul { margin: 0.5rem 0 1rem; padding-inline-start: 1.2rem; }
.legals li { margin-bottom: 0.4rem; line-height: 1.7; }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 3rem 0 1rem; margin-top: 3rem; }
footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
