/* =========================================================
   XAUUSD Trading Mentor — Landing Page Design System
   ========================================================= */

:root {
  color-scheme: dark;

  /* Core palette — deep trading-desk black with gold accent */
  --bg: #05070a;
  --bg-alt: #0a0d13;
  --surface: #10141c;
  --surface-2: #161b26;
  --border: #232838;
  --border-soft: #1a1f2c;

  --text: #f5f7fb;
  --text-muted: #9aa3b5;
  --text-faint: #6b7387;

  --gold: #f0c04a;
  --gold-bright: #ffd873;
  --gold-deep: #b9861f;
  --gold-glow: rgba(240, 192, 74, 0.35);

  --buy: #22c675;
  --buy-bright: #3ee892;
  --sell: #f0465a;
  --sell-bright: #ff6b7a;

  --gradient-gold: linear-gradient(135deg, #ffe19b 0%, #f0c04a 45%, #b9861f 100%);
  --gradient-hero: radial-gradient(circle at 15% 20%, rgba(240, 192, 74, 0.16), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(34, 198, 117, 0.10), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(240, 70, 90, 0.08), transparent 45%);

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 12px 40px rgba(240, 192, 74, 0.18);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: "Sora", "Inter", -apple-system, sans-serif;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--gold-glow); color: var(--text); }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 10vw, 120px) 0;
  position: relative;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(240, 192, 74, 0.1);
  border: 1px solid rgba(240, 192, 74, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-gold);
  color: #14100a;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 46px rgba(240, 192, 74, 0.3); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-3px); }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.soon-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-left: 4px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.navbar.is-scrolled {
  padding: 12px 0;
  background: rgba(5, 7, 10, 0.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border-soft);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(240, 192, 74, 0.25);
}

.brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(150px, 20vw, 200px) 0 100px;
  background: var(--gradient-hero);
  overflow: hidden;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 22px;
}

.hero-copy p.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.hero-trust .stat b {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.5rem;
  color: var(--gold-bright);
}

.hero-trust .stat span {
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* Hero visual: mock session card + candlestick animation */
.hero-visual { position: relative; height: 460px; }

.chart-card {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  padding: 24px;
}

.chart-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.chart-card-head .pair {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--buy-bright);
  box-shadow: 0 0 0 0 rgba(62, 232, 146, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 232, 146, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(62, 232, 146, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 232, 146, 0); }
}

.chart-bars {
  height: 190px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 10px;
}

.bar {
  flex: 1;
  border-radius: 3px;
  transform-origin: bottom;
  animation: grow 2.6s var(--ease) infinite alternate;
}

.bar.buy { background: linear-gradient(180deg, var(--buy-bright), var(--buy)); }
.bar.sell { background: linear-gradient(180deg, var(--sell-bright), var(--sell)); }

@keyframes grow {
  from { transform: scaleY(0.55); }
  to { transform: scaleY(1); }
}

.level-rows { display: flex; flex-direction: column; gap: 10px; }

.level-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
}

.level-row .tag {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.tag.buy { background: rgba(34, 198, 117, 0.15); color: var(--buy-bright); }
.tag.sell { background: rgba(240, 70, 90, 0.15); color: var(--sell-bright); }

.level-row .price { font-family: "Sora", sans-serif; font-weight: 700; }

.floating-chip {
  position: absolute;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  animation: float 5s ease-in-out infinite;
}

.floating-chip.chip-1 { top: -22px; right: -18px; animation-delay: 0.2s; }
.floating-chip.chip-2 { bottom: 20px; left: -30px; animation-delay: 1.4s; }

.floating-chip .dot { width: 10px; height: 10px; border-radius: 50%; }
.floating-chip .dot.gold { background: var(--gold); box-shadow: 0 0 12px var(--gold-glow); }
.floating-chip .dot.green { background: var(--buy-bright); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Logo / marquee strip ---------- */
.strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 28px 0;
  background: var(--bg-alt);
}

.strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  color: var(--text-faint);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
}

.strip span b { color: var(--text-muted); }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(240, 192, 74, 0.35);
  box-shadow: var(--shadow-gold);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(240, 192, 74, 0.1);
  border: 1px solid rgba(240, 192, 74, 0.2);
}

.feature-icon svg { width: 24px; height: 24px; stroke: var(--gold-bright); }

.feature-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.94rem; }

/* ---------- Sessions live widget ---------- */
.sessions-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.session-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.session-card .session-name {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.session-card .session-time {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.session-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.session-status .dot { width: 7px; height: 7px; border-radius: 50%; }

.session-status.status-active { background: rgba(34, 198, 117, 0.14); color: var(--buy-bright); }
.session-status.status-active .dot { background: var(--buy-bright); animation: pulse 2s infinite; }

.session-status.status-upcoming { background: rgba(240, 192, 74, 0.12); color: var(--gold-bright); }
.session-status.status-upcoming .dot { background: var(--gold); }

.session-status.status-done { background: rgba(255, 255, 255, 0.05); color: var(--text-faint); }
.session-status.status-done .dot { background: var(--text-faint); }

.session-status.status-closed { background: rgba(240, 70, 90, 0.12); color: var(--sell-bright); }
.session-status.status-closed .dot { background: var(--sell-bright); }

.session-progress {
  margin-top: 18px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.session-progress > span {
  display: block;
  height: 100%;
  background: var(--gradient-gold);
  border-radius: var(--radius-pill);
  transition: width 1s linear;
}

.sessions-note {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.82rem;
  margin-top: 22px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  position: relative;
}

.step .step-number {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
  display: block;
}

.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.price-card:hover { transform: translateY(-6px); }

.price-card.featured {
  border-color: rgba(240, 192, 74, 0.5);
  background: linear-gradient(180deg, rgba(240, 192, 74, 0.08), var(--surface) 40%);
  box-shadow: var(--shadow-gold);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-gold);
  color: #14100a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
}

.price-card .plan-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.price-card .plan-desc { color: var(--text-muted); font-size: 0.86rem; margin-bottom: 22px; min-height: 40px; }

.price-card .plan-price {
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.price-card .plan-price span { font-size: 0.9rem; color: var(--text-faint); font-weight: 600; }
.price-card .plan-note { font-size: 0.78rem; color: var(--text-faint); margin-bottom: 24px; }

.plan-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.plan-features li svg { width: 16px; height: 16px; stroke: var(--gold-bright); flex-shrink: 0; margin-top: 3px; }

.pricing-footnote {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.82rem;
  margin-top: 28px;
  max-width: 640px;
  margin-inline: auto;
}

/* ---------- Trust / security ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-card {
  text-align: center;
  padding: 28px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.trust-card .feature-icon { margin: 0 auto 16px; }
.trust-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.trust-card p { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.98rem;
  text-align: left;
}

.faq-question .plus {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.faq-question .plus::before,
.faq-question .plus::after {
  content: "";
  position: absolute;
  background: var(--gold-bright);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.faq-question .plus::before { width: 10px; height: 2px; }
.faq-question .plus::after { width: 2px; height: 10px; }

.faq-item.is-open .faq-question .plus { transform: rotate(135deg); border-color: var(--gold); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-answer p {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Final CTA ---------- */
.cta-banner {
  background: linear-gradient(135deg, rgba(240, 192, 74, 0.12), rgba(34, 198, 117, 0.06));
  border: 1px solid rgba(240, 192, 74, 0.25);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 70px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 14px; }
.cta-banner p { color: var(--text-muted); max-width: 520px; margin: 0 auto 32px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 64px 0 28px;
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 300px; margin-bottom: 18px; }

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--gold-bright); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.risk-disclaimer {
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text-faint);
  font-size: 0.78rem;
  line-height: 1.6;
}

.social-row { display: flex; gap: 10px; }

.social-row a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.social-row a svg { width: 16px; height: 16px; stroke: var(--text-muted); }
.social-row a:hover svg { stroke: var(--gold-bright); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.35s var(--ease);
  z-index: 900;
  box-shadow: var(--shadow-soft);
}

.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; stroke: var(--gold-bright); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Legal pages (Terms / Privacy) ---------- */
.legal-hero {
  padding: clamp(140px, 16vw, 170px) 0 60px;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border-soft);
}

.legal-hero .container { text-align: center; }
.legal-hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 12px; }
.legal-hero p { color: var(--text-muted); }

.legal-lang-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.legal-lang-links a {
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.legal-lang-links a:hover { border-color: var(--gold); color: var(--gold-bright); }

.legal-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 0 100px;
}

.legal-body h2 {
  font-size: 1.3rem;
  color: var(--gold-bright);
  margin-top: 2.4rem;
  margin-bottom: 0.8rem;
}

.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.05rem; margin-top: 1.6rem; margin-bottom: 0.6rem; }
.legal-body p, .legal-body li { color: var(--text-muted); font-size: 0.95rem; }
.legal-body p { margin-bottom: 0.9rem; }
.legal-body ul { padding-inline-start: 1.4rem; margin-bottom: 0.9rem; }
.legal-body li { margin-bottom: 0.4rem; list-style: disc; }
.legal-body strong { color: var(--text); }
.legal-body a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }

.legal-body [dir="rtl"] { text-align: right; }
.legal-body [dir="rtl"] ul { padding-inline-start: 0; padding-inline-end: 1.4rem; }

.legal-divider { border: none; border-top: 1px solid var(--border-soft); margin: 3rem 0; }

.back-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.back-home-link:hover { color: var(--gold-bright); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { height: 400px; margin-top: 20px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .sessions-panel { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(5, 7, 10, 0.98);
    border-bottom: 1px solid var(--border-soft);
    padding: 24px;
    gap: 20px;
  }

  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-trust { gap: 20px; }
}
