/* ============================================================
   Tradio — Trading Platform Frontend
   Olymptrade-inspired dark + green theme · Shared-hosting ready
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #070b14;
  --bg-elevated: #0c1220;
  --bg-soft: #111827;
  --surface: #151d2e;
  --surface-hover: #1a2438;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);

  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --green: #22c55e;
  --green-bright: #4ade80;
  --green-deep: #16a34a;
  --green-soft: rgba(34, 197, 94, 0.12);
  --green-glow: rgba(34, 197, 94, 0.35);

  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.12);
  --blue: #38bdf8;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --container: 1180px;
  --nav-h: 72px;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 220ms var(--ease);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition), opacity var(--transition);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 2rem, 1280px);
  margin-inline: auto;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* Typography helpers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
  max-width: 18ch;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 42ch;
  line-height: 1.7;
}

.section-head {
  margin-bottom: 3rem;
}

.section-head.centered {
  text-align: center;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-head.centered .section-title,
.section-head.centered .section-lead {
  max-width: 36ch;
}

.mono {
  font-family: var(--font-mono);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--green);
  color: #052e16;
  box-shadow: 0 0 0 0 transparent, 0 8px 28px var(--green-glow);
}

.btn-primary:hover {
  background: var(--green-bright);
  box-shadow: 0 0 0 0 transparent, 0 10px 32px var(--green-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 54px;
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

/* ========== NAV ========== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  z-index: 1001;
  line-height: 0;
}

.logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(200px, 52vw);
  object-fit: contain;
  object-position: left center;
}

.logo-img--footer {
  height: 56px;
  max-width: 220px;
}

.logo-img--modal {
  height: 44px;
  max-width: 180px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--green-bright), var(--green-deep));
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px var(--green-glow);
}

.logo-mark svg {
  width: 18px;
  height: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.55rem 0.9rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: background 150ms ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 200ms var(--ease), top 200ms var(--ease);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--nav-h) + 2.5rem) 0 4rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 70% 20%, rgba(34, 197, 94, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(56, 189, 248, 0.07), transparent 50%),
    linear-gradient(180deg, #070b14 0%, #0a1220 45%, #070b14 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #fff 20%, rgba(241, 245, 249, 0.72));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text);
  max-width: 18ch;
}

.hero-copy p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 38ch;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.hero-trust strong {
  display: block;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

/* Trading visual */
.hero-visual {
  position: relative;
}

.platform-preview {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(21, 29, 46, 0.95), rgba(12, 18, 32, 0.98));
  box-shadow: var(--shadow), 0 0 80px rgba(34, 197, 94, 0.08);
  overflow: hidden;
  animation: float-in 0.9s var(--ease) both;
}

.platform-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.platform-dots {
  display: flex;
  gap: 0.4rem;
}

.platform-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.platform-dots i:nth-child(1) { background: #ef4444; }
.platform-dots i:nth-child(2) { background: #eab308; }
.platform-dots i:nth-child(3) { background: #22c55e; }

.asset-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.asset-tag .pill {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.chart-area {
  padding: 1.25rem 1.1rem 1.5rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.price-main {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.price-change {
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.chart-svg {
  width: 100%;
  height: auto;
}

.trade-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.trade-btn {
  min-height: 48px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.trade-btn.up {
  background: var(--green);
  color: #052e16;
}

.trade-btn.down {
  background: var(--red-soft);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.glow-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--green);
  filter: blur(90px);
  opacity: 0.18;
  top: -40px;
  right: -30px;
  z-index: -1;
  animation: pulse-orb 5s ease-in-out infinite;
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse-orb {
  0%, 100% { opacity: 0.14; transform: scale(1); }
  50% { opacity: 0.22; transform: scale(1.08); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy > * {
  animation: rise 0.7s var(--ease) both;
}

.hero-copy .brand-hero { animation-delay: 0.05s; }
.hero-copy h1 { animation-delay: 0.15s; }
.hero-copy p { animation-delay: 0.25s; }
.hero-copy .hero-cta { animation-delay: 0.35s; }
.hero-copy .hero-trust { animation-delay: 0.45s; }

/* ========== SECTIONS ========== */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.55), transparent);
}

/* Feature strip */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-strip article {
  background: var(--bg-elevated);
  padding: 1.75rem 1.5rem;
  transition: background var(--transition);
}

.feature-strip article:hover {
  background: var(--surface);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-bright);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-strip h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.feature-strip p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Platform section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.checklist {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.9rem;
}

.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.975rem;
}

.checklist li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--green);
  margin-top: 2px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.stat-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.stat-card .label {
  color: var(--text-dim);
  font-size: 0.8125rem;
  margin-bottom: 0.4rem;
}

.stat-card .value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
}

.stat-card .value.up { color: var(--green-bright); }
.stat-card .value.accent { color: var(--blue); }

/* Modes */
.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.mode-item {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(21, 29, 46, 0.6), rgba(12, 18, 32, 0.4));
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.mode-item:hover {
  border-color: rgba(34, 197, 94, 0.4);
  transform: translateY(-3px);
  background: linear-gradient(165deg, rgba(21, 29, 46, 0.9), rgba(12, 18, 32, 0.7));
}

.mode-num {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}

.mode-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
}

.mode-item p {
  color: var(--text-muted);
  font-size: 0.925rem;
}

/* Trust / regulation */
.trust-band {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 50% 80% at 0% 50%, rgba(34, 197, 94, 0.1), transparent 55%),
    var(--bg-elevated);
  padding: clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.trust-points {
  display: grid;
  gap: 1rem;
}

.trust-point {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.trust-point strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.975rem;
}

.trust-point span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Testimonials */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.quote {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.quote p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-deep), #0ea5e9);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-display);
}

.quote-author strong {
  display: block;
  font-size: 0.9rem;
}

.quote-author span {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* Awards */
.awards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.award {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.award .year {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
}

.award h3 {
  font-size: 0.975rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* CTA banner */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(34, 197, 94, 0.25);
  background:
    radial-gradient(ellipse 60% 100% at 80% 50%, rgba(34, 197, 94, 0.18), transparent 55%),
    linear-gradient(135deg, #0c1220, #111827);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 40ch;
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) 0 3rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(34, 197, 94, 0.1), transparent 55%),
    var(--bg);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 48ch;
  font-size: 1.0625rem;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1.1rem;
  max-width: 520px;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.form-success {
  display: none;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--green-soft);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--green-bright);
  font-size: 0.925rem;
  margin-bottom: 1rem;
}

.form-success.show {
  display: block;
}

/* Content blocks */
.content-block {
  max-width: 720px;
}

.content-block p + p {
  margin-top: 1rem;
}

.content-block p {
  color: var(--text-muted);
  line-height: 1.75;
}

.content-block h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.85rem;
}

/* Feature list page */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature-list article {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}

.feature-list h3 {
  font-size: 1.15rem;
  margin: 0.85rem 0 0.45rem;
}

.feature-list p {
  color: var(--text-muted);
  font-size: 0.925rem;
}

/* ========== FOOTER ========== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  background: #05080f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-top: 1rem;
  max-width: 28ch;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.925rem;
  padding: 0.3rem 0;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8125rem;
}

.disclaimer {
  max-width: 640px;
  line-height: 1.55;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-inner,
  .split,
  .trust-band {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature-strip {
    grid-template-columns: 1fr 1fr;
  }

  .modes,
  .quotes {
    grid-template-columns: 1fr;
  }

  .awards {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 540px;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav.open .nav-links,
  .nav.open .nav-actions {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    background: rgba(7, 11, 20, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    animation: rise 0.28s var(--ease) both;
  }

  .nav.open .nav-links {
    top: var(--nav-h);
    padding: 1rem 1.25rem 0.5rem;
  }

  .nav.open .nav-actions {
    top: calc(var(--nav-h) + 14.5rem);
    padding: 0.5rem 1.25rem 1.25rem;
    gap: 0.65rem;
  }

  .nav.open .nav-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .nav-links a {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
  }

  .feature-strip,
  .feature-list,
  .awards,
  .footer-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 1.5rem);
    padding-bottom: 3rem;
    min-height: auto;
  }

  .brand-hero {
    font-size: clamp(2.75rem, 14vw, 3.75rem);
  }

  .section {
    padding: 4rem 0;
  }

  .hero-cta .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container,
  .container-wide {
    width: min(100% - 1.5rem, var(--container));
  }

  .logo-img {
    height: 40px;
    max-width: min(160px, 48vw);
  }

  .platform-preview {
    border-radius: var(--radius-lg);
  }

  .price-main {
    font-size: 1.4rem;
  }
}

/* ========== AUTH MODALS ========== */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal-root[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  animation: modal-fade 0.25s var(--ease) both;
}

.modal {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34, 197, 94, 0.16), transparent 55%),
    linear-gradient(180deg, #121a2b, #0c1220);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  animation: modal-pop 0.32s var(--ease) both;
}

.modal[hidden] {
  display: none;
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.25rem;
  line-height: 0;
}

.modal h2 {
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
}

.modal-lead {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 1.35rem;
  line-height: 1.55;
}

.modal-form {
  display: grid;
  gap: 0.95rem;
}

.modal-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.check-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}

.modal-agree {
  align-items: flex-start;
  line-height: 1.45;
}

.text-link {
  color: var(--green-bright);
  font-size: 0.8125rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.text-link:hover {
  text-decoration: underline;
}

.modal-switch {
  text-align: center;
  margin-top: 1.15rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.modal-note {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-pop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .modal {
    padding: 1.5rem 1.15rem 1.25rem;
    border-radius: var(--radius-lg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
