/* 299bet app - Emerald Trust Gaming UI Design System */
:root {
  --color-primary: #0f6fec;
  --color-primary-dark: #0a4fb0;
  --color-primary-soft: rgba(15,111,236,.12);
  --color-secondary: #10b981;
  --color-accent: #22d3ee;
  --color-bg: #020617;
  --color-bg-soft: #0c1629;
  --color-surface: #111c34;
  --color-surface-strong: #162240;
  --color-card: linear-gradient(180deg,rgba(15,23,42,.92),rgba(15,23,42,.72));
  --color-card-alt: linear-gradient(135deg,rgba(15,111,236,.08),rgba(34,211,238,.06));
  --color-border: rgba(148,163,184,.15);
  --color-border-strong: rgba(148,163,184,.28);
  --color-text: #e2e8f0;
  --color-text-soft: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-footer-bg: #020617;
  --color-footer-text: #94a3b8;
  --gradient-hero: linear-gradient(135deg,#020617 0%,#0c1629 40%,#111c34 100%);
  --gradient-button: linear-gradient(135deg,#0f6fec,#22d3ee);
  --gradient-button-hover: linear-gradient(135deg,#0a4fb0,#06b6d4);
  --gradient-cta: linear-gradient(135deg,rgba(15,111,236,.15),rgba(34,211,238,.1));
  --shadow-header: 0 2px 20px rgba(0,0,0,.3);
  --shadow-card: 0 8px 32px rgba(0,0,0,.2);
  --shadow-card-hover: 0 16px 48px rgba(15,111,236,.15);
  --shadow-button: 0 4px 16px rgba(15,111,236,.3);
  --shadow-soft: 0 4px 12px rgba(0,0,0,.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --font-base: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  --fs-h1: clamp(28px,4vw,48px);
  --fs-h2: clamp(22px,3vw,36px);
  --fs-h3: clamp(18px,2vw,24px);
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-nav: clamp(13px,.84vw,15px);
  --lh-body: 1.75;
  --lh-heading: 1.2;
  --container-max: 1200px;
  --section-y: clamp(48px,6vw,80px);
  --header-h: 72px;
  --motion-normal: .3s;
  --ease-out: cubic-bezier(.25,.46,.45,.94);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--gradient-hero);
  color: var(--color-text);
  line-height: var(--lh-body);
  font-size: var(--fs-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--motion-normal) var(--ease-out); }
a:hover { color: #67e8f9; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px,3vw,24px);
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(2,6,23,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34,211,238,.1);
  box-shadow: var(--shadow-header);
}

.header-inner {
  width: 100%;
  max-width: none;
  padding-left: clamp(10px,1.2vw,20px);
  padding-right: clamp(10px,1.2vw,20px);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(10px,1vw,18px);
}

.brand-wrap {
  flex: 0 0 auto;
  margin-right: clamp(4px,.8vw,14px);
  display: flex;
  align-items: center;
}

.site-logo {
  display: block;
  width: auto;
  height: clamp(32px,3vw,42px);
  max-width: clamp(118px,10vw,168px);
  object-fit: contain;
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(6px,.72vw,14px);
  white-space: nowrap;
  overflow: visible;
}

.primary-nav a {
  flex: 0 1 auto;
  min-width: 0;
  padding: 9px clamp(6px,.65vw,12px);
  font-size: var(--fs-nav);
  line-height: 1;
  white-space: nowrap;
  color: #dbeafe;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--motion-normal) var(--ease-out);
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--color-accent);
  background: rgba(34,211,238,.08);
}

.primary-nav a.active {
  color: var(--color-accent);
  background: rgba(34,211,238,.12);
}

.header-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px,.6vw,10px);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  transition: background var(--motion-normal);
}

.nav-toggle:hover { background: rgba(255,255,255,.15); }

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: transform var(--motion-normal);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 12px;
  right: 12px;
  z-index: 999;
  background: linear-gradient(180deg,rgba(15,23,42,.98),rgba(12,22,41,.96));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  backdrop-filter: blur(16px);
}

.mobile-menu.is-open { display: block; }

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu a {
  display: block;
  padding: 14px 16px;
  color: #dbeafe;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: all var(--motion-normal);
  text-decoration: none;
}

.mobile-menu a:hover { background: rgba(34,211,238,.1); color: var(--color-accent); }

/* ============ CONTENT SECTIONS ============ */
.content-section { padding: var(--section-y) 0; }
.section-alt { background: rgba(15,23,42,.6); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.mt-content { margin-top: 3rem; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-lead { max-width: 800px; margin: 0 auto; color: var(--color-text-soft); font-size: 1.05rem; }

/* Typography */
h1 { font-size: var(--fs-h1); line-height: var(--lh-heading); font-weight: 800; color: #f8fafc; margin: 0 0 1.25rem; letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.25; font-weight: 800; color: #f8fafc; margin: 0 0 1rem; }
h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 700; color: #f1f5f9; margin: 0 0 .75rem; }
p { color: var(--color-text-soft); margin: 0 0 1rem; }
.page-lead { font-size: 1.1rem; color: var(--color-text-soft); max-width: 820px; }

/* Badges */
.badge-accent {
  display: inline-block;
  padding: .45rem .85rem;
  border-radius: var(--radius-pill);
  background: rgba(34,211,238,.1);
  color: #a5f3fc;
  border: 1px solid rgba(34,211,238,.2);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .02em;
  margin-bottom: 1rem;
}

/* Breadcrumb */
.breadcrumb-nav { margin-bottom: 2rem; font-size: var(--fs-small); color: var(--color-text-muted); }
.breadcrumb-nav a { color: var(--color-text-muted); }
.breadcrumb-nav a:hover { color: var(--color-accent); }
.bc-sep { margin: 0 .4rem; opacity: .5; }

/* ============ HERO ============ */
.home-hero {
  padding: clamp(100px,12vw,140px) 0 var(--section-y);
  background: radial-gradient(ellipse at top right,rgba(34,211,238,.12),transparent 50%),
              radial-gradient(ellipse at bottom left,rgba(15,111,236,.15),transparent 50%);
}

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-lead { font-size: 1.05rem; color: var(--color-text-soft); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.5rem; font-size: .9rem; color: var(--color-text-muted); }
.hero-trust i { color: var(--color-accent); margin-right: .35rem; }

.hero-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,255,255,.08);
}

/* ============ BUTTONS ============ */
.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.8rem;
  background: var(--gradient-button);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-button);
  cursor: pointer;
  transition: all var(--motion-normal) var(--ease-out);
  text-decoration: none;
  min-height: 48px;
}

.btn-primary-cta:hover {
  background: var(--gradient-button-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,111,236,.4);
  color: #fff;
}

.btn-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.8rem;
  background: rgba(15,23,42,.5);
  color: #cffafe;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(34,211,238,.4);
  cursor: pointer;
  transition: all var(--motion-normal) var(--ease-out);
  text-decoration: none;
  min-height: 48px;
}

.btn-secondary-cta:hover {
  background: rgba(34,211,238,.1);
  color: #fff;
  transform: translateY(-2px);
}

.btn-full { width: 100%; }
.cta-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.section-cta { text-align: center; margin-top: 2rem; }

/* ============ SPLIT CONTENT ============ */
.split-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-content.reverse { direction: rtl; }
.split-content.reverse > * { direction: ltr; }
.split-media { text-align: center; }

.rounded-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,255,255,.08);
  width: 100%;
}

.full-width-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,255,255,.08);
  width: 100%;
  margin-top: 2rem;
}

/* ============ FEATURE CARDS ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
  gap: 1.5rem;
}

.feature-card-v1 {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: all var(--motion-normal) var(--ease-out);
}

.feature-card-v1:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(34,211,238,.25);
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,111,236,.15);
  color: var(--color-accent);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(34,211,238,.15);
}

/* ============ INFO CARDS ============ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.info-card-v1 {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

/* ============ SCENARIO CARDS ============ */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
  gap: 1.5rem;
}

.scenario-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.scenario-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,211,238,.1);
  color: var(--color-accent);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* ============ STEP CARDS ============ */
.step-list { display: flex; flex-direction: column; gap: 1rem; }

.step-card-v1 {
  display: flex;
  gap: 1.25rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  align-items: flex-start;
}

.step-num {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-button);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
}

/* ============ CALLOUT ============ */
.callout-block {
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem;
  background: rgba(34,211,238,.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}

.callout-block p { margin: 0; }

/* ============ TABLE ============ */
.table-wrap {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.table-scroll { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--color-border); color: var(--color-text-soft); }
th { color: #f8fafc; font-weight: 700; background: rgba(15,111,236,.08); }
tr:last-child td { border-bottom: none; }
.table-note { margin-top: 1.5rem; color: var(--color-text-muted); font-size: .95rem; }

/* ============ FAQ ============ */
.faq-grid { display: flex; flex-direction: column; gap: 1rem; }

.faq-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: #f1f5f9;
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: background var(--motion-normal);
  font-family: var(--font-base);
}

.faq-toggle:hover { background: rgba(255,255,255,.03); }

.faq-toggle i {
  flex: 0 0 auto;
  transition: transform var(--motion-normal);
  color: var(--color-accent);
}

.faq-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p { margin: 0; color: var(--color-text-soft); }
.faq-item.is-open .faq-answer { display: block; }

/* ============ FINAL CTA ============ */
.final-cta-block {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--gradient-cta);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.final-cta-block h2 { margin-bottom: 1rem; }
.final-cta-block p { max-width: 700px; margin: 0 auto 1.5rem; }
.final-cta-block .cta-group { justify-content: center; }

/* ============ AUTH PAGES ============ */
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.register-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }

.auth-form-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.auth-form { margin-top: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .5rem; color: #f1f5f9; font-size: .95rem; }

.form-group input {
  width: 100%;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: #f1f5f9;
  font-size: 1rem;
  font-family: var(--font-base);
  transition: all var(--motion-normal);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(34,211,238,.15);
  background: rgba(255,255,255,.08);
}

.form-group input::placeholder { color: var(--color-text-muted); }
.form-note { margin: 1rem 0; }
.form-note p { font-size: .9rem; color: var(--color-text-muted); margin: 0; }
.auth-alt-links { margin-top: 1.5rem; text-align: center; }
.auth-alt-links p { margin: .5rem 0; font-size: .95rem; }

.auth-trust-panel, .register-benefit-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.trust-checklist {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.trust-checklist ul { list-style: none; padding: 0; margin: 0; }
.trust-checklist li { padding: .5rem 0; color: var(--color-text-soft); display: flex; align-items: center; gap: .5rem; }
.trust-checklist i { color: var(--color-success); }

.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }

.benefit-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: .9rem;
  color: var(--color-text-soft);
}

.benefit-item i { color: var(--color-accent); font-size: 1.1rem; }

/* ============ POLICY PAGES ============ */
.policy-updated { color: var(--color-text-muted); font-size: .9rem; margin-top: .5rem; }

.policy-layout { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: start; }

.policy-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.policy-toc h3 { font-size: 1rem; margin-bottom: 1rem; }
.policy-toc ol { padding-left: 1.25rem; margin: 0; }
.policy-toc li { margin-bottom: .5rem; }
.policy-toc a { color: var(--color-text-muted); font-size: .9rem; }
.policy-toc a:hover { color: var(--color-accent); }

.policy-body { max-width: 820px; }
.policy-section { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--color-border); }
.policy-section:last-of-type { border-bottom: none; }
.policy-img { margin: 1.5rem 0; }

/* ============ FAQ PAGE ============ */
.faq-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }

.faq-group { margin-bottom: 2rem; }
.faq-group h2 { font-size: 1.4rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid rgba(34,211,238,.2); }

.faq-sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 1.5rem; }

.faq-help-card, .faq-related-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.faq-related-card ul { list-style: none; padding: 0; margin: .5rem 0 0; }
.faq-related-card li { margin-bottom: .5rem; }
.sidebar-img { margin-top: .5rem; }

/* ============ VALUES/ABOUT ============ */
.values-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 1.5rem; }

.value-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.value-card i { font-size: 2rem; color: var(--color-accent); display: block; margin-bottom: 1rem; }

.about-dual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

/* ============ 404 ============ */
.error-section { min-height: 60vh; display: flex; align-items: center; }
.error-block { text-align: center; max-width: 600px; margin: 0 auto; }
.error-img { max-width: 400px; margin: 2rem auto; border-radius: var(--radius-lg); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--color-footer-bg);
  border-top: 1px solid rgba(34,211,238,.12);
  padding: 4rem 0 2rem;
}

.footer-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px,3vw,24px); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand img { margin-bottom: 1rem; height: 40px; width: auto; }
.footer-brand p { color: var(--color-footer-text); font-size: .9rem; line-height: 1.7; margin-bottom: .75rem; }

.footer-links-group h3 { color: #f1f5f9; font-size: 1rem; margin-bottom: 1rem; font-weight: 700; }
.footer-links-group ul { list-style: none; padding: 0; margin: 0; }
.footer-links-group li { margin-bottom: .5rem; }
.footer-links-group a { color: var(--color-footer-text); font-size: .9rem; transition: color var(--motion-normal); text-decoration: none; }
.footer-links-group a:hover { color: var(--color-accent); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.footer-bottom p { color: var(--color-text-muted); font-size: .85rem; margin-bottom: .5rem; }
.footer-safety { font-size: .82rem !important; }

/* ============ AOS DEGRADATION ============ */
[data-aos] { opacity: 1 !important; transform: none !important; }
.aos-animate[data-aos] { opacity: 1 !important; }

/* ============ FOCUS ============ */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .site-header .header-inner {
    width: 100%;
    max-width: none;
    padding-left: clamp(8px,2.4vw,14px);
    padding-right: clamp(8px,2.4vw,14px);
    justify-content: flex-start;
    gap: clamp(6px,1.8vw,10px);
  }
  .brand-wrap { flex: 0 1 auto; margin-right: 0; }
  .primary-nav { display: none; }
  .header-actions { margin-left: auto; justify-content: flex-end; }
  .nav-toggle {
    display: inline-flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-left: 2px;
  }
}

@media (max-width: 900px) {
  .hero-grid, .split-content, .split-content.reverse,
  .auth-layout, .register-layout, .about-dual-grid,
  .policy-layout, .faq-layout {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .split-content.reverse > * { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .policy-toc { position: static; }
  .faq-sidebar { position: static; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .feature-grid, .info-grid, .scenario-grid, .values-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .hero-trust { flex-direction: column; gap: .75rem; }
}

@media (max-width: 375px) {
  .site-header .header-inner { padding-left: 8px; padding-right: 8px; gap: 6px; }
  .site-logo { max-width: 104px; }
  .nav-toggle { flex-basis: 38px; width: 38px; height: 38px; }
  .btn-primary-cta, .btn-secondary-cta { padding: .75rem 1.2rem; font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
