/* ============================================================
   Dasitaike Electronics Technology — main.css
   Brand palette: deep space black + electric gold
   ============================================================ */

:root {
  /* Brand colors */
  --c-bg: #0A0E1A;
  --c-bg-2: #11162A;
  --c-bg-3: #1A1F33;
  --c-surface: #161B2E;
  --c-line: rgba(212, 175, 55, 0.18);
  --c-line-strong: rgba(212, 175, 55, 0.45);
  --c-gold: #D4AF37;
  --c-gold-2: #F4D77A;
  --c-gold-deep: #B8860B;
  --c-text: #E9ECF1;
  --c-text-dim: #A8AEB8;
  --c-text-mute: #6B6F7A;
  --c-accent: #5BB6E5;
  --c-danger: #E94B6A;
  --c-success: #4CD2A0;

  /* Typography */
  --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "Consolas", "SF Mono", Menlo, monospace;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* Layout */
  --container: 1280px;
  --container-narrow: 960px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow: 0 10px 40px rgba(0,0,0,0.45);
  --shadow-gold: 0 10px 40px rgba(212,175,55,0.25);
  --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F4D77A 50%, #B8860B 100%);
  --gradient-dark: linear-gradient(180deg, #0A0E1A 0%, #11162A 100%);
  --gradient-radial: radial-gradient(ellipse at top, rgba(212,175,55,0.12) 0%, transparent 60%);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 200ms;
  --t-med: 400ms;
  --t-slow: 800ms;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
hr { border: none; border-top: 1px solid var(--c-line); margin: var(--sp-7) 0; }

/* Selection */
::selection { background: var(--c-gold); color: var(--c-bg); }

/* Focus visible */
:focus-visible { outline: 2px solid var(--c-gold-2); outline-offset: 3px; border-radius: 4px; }

/* ============================================================
   Typography utilities
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold-2);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-gold-2);
}
.eyebrow.center::before { display: none; }
.eyebrow.center { justify-content: center; }

.display-1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.display-2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.heading-1 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 600; line-height: 1.15; }
.heading-2 { font-size: clamp(22px, 2.5vw, 32px); font-weight: 600; line-height: 1.2; }
.heading-3 { font-size: clamp(18px, 2vw, 22px); font-weight: 600; line-height: 1.3; }

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

.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--c-text-dim); line-height: 1.7; }

/* ============================================================
   Layout
   ============================================================ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-5); }
.container.narrow { max-width: var(--container-narrow); }
.section { padding: var(--sp-9) 0; position: relative; }
.section.tight { padding: var(--sp-7) 0; }
.section-head { text-align: center; margin-bottom: var(--sp-8); }
.section-head.left { text-align: left; }
.section-head .lead { margin-top: var(--sp-4); max-width: 720px; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.row { display: flex; gap: var(--sp-4); align-items: center; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.stack-lg { display: flex; flex-direction: column; gap: var(--sp-6); }

/* ============================================================
   Navigation
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--sp-3) 0;
  background: rgba(10, 14, 26, 0.65);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: all var(--t-med) var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 14, 26, 0.92);
  border-bottom-color: var(--c-line);
  padding: var(--sp-2) 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
}
.nav-logo img { width: 44px; height: 44px; }
.nav-logo .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo .brand-text strong { color: var(--c-text); }
.nav-logo .brand-text span { font-size: 9px; color: var(--c-text-mute); letter-spacing: 0.2em; text-transform: uppercase; margin-top: 2px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.nav-menu a {
  position: relative;
  padding: var(--sp-2) var(--sp-4);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-dim);
  border-radius: var(--radius-sm);
  transition: color var(--t-fast) var(--ease);
}
.nav-menu a:hover { color: var(--c-gold-2); }
.nav-menu a.active { color: var(--c-gold-2); }
.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 2px;
  background: var(--gradient-gold);
  transform: translateX(-50%);
}

.nav-cta { display: flex; align-items: center; gap: var(--sp-3); }
.nav-lang { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--c-text-mute); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--c-text);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--c-text);
  padding: var(--sp-2) var(--sp-4);
  transition: color var(--t-fast) var(--ease);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--c-gold-2); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--gradient-gold);
  color: var(--c-bg);
  box-shadow: 0 4px 24px rgba(212,175,55,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212,175,55,0.55); }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 600ms var(--ease);
}
.btn-primary:hover::after { transform: translateX(100%); }

.btn-outline {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-line-strong);
}
.btn-outline:hover { border-color: var(--c-gold-2); color: var(--c-gold-2); }

.btn-ghost { background: transparent; color: var(--c-gold-2); }
.btn-ghost:hover { color: var(--c-gold); }
.btn-ghost svg { transition: transform var(--t-med) var(--ease); }
.btn-ghost:hover svg { transform: translateX(4px); }

.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: all var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--c-line-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card.featured {
  background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, var(--c-surface) 50%);
  border-color: var(--c-line-strong);
}
.card .icon-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(212,175,55,0.12) 0%, rgba(212,175,55,0.04) 100%);
  color: var(--c-gold-2);
  margin-bottom: var(--sp-5);
  border: 1px solid var(--c-line);
  position: relative;
}
.card .icon-wrap svg { width: 32px; height: 32px; }
.card .icon-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(circle at top right, rgba(212,175,55,0.25), transparent 70%);
  opacity: 0;
  transition: opacity var(--t-med);
}
.card:hover .icon-wrap::after { opacity: 1; }
.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--c-text-dim); font-size: 15px; }
.card .meta { color: var(--c-text-mute); font-size: 12px; margin-top: var(--sp-4); font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-line);
  padding: var(--sp-9) 0 var(--sp-5);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-7);
  margin-bottom: var(--sp-7);
}
.footer-brand { max-width: 360px; }
.footer-brand p { color: var(--c-text-dim); margin-top: var(--sp-4); font-size: 14px; }
.footer-brand .social { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.footer-brand .social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-text-dim);
  border: 1px solid var(--c-line);
  transition: all var(--t-fast) var(--ease);
}
.footer-brand .social a svg { width: 18px; height: 18px; }
.footer-brand .social a:hover { color: var(--c-gold-2); border-color: var(--c-gold-2); transform: translateY(-2px); }

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold-2);
  margin-bottom: var(--sp-5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a { color: var(--c-text-dim); font-size: 14px; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--c-gold-2); }
.footer-col p, .footer-col address { color: var(--c-text-dim); font-size: 14px; font-style: normal; line-height: 1.7; }
.footer-col .row { gap: var(--sp-2); margin-top: var(--sp-2); }
.footer-col .row svg { width: 18px; height: 18px; color: var(--c-gold-2); flex-shrink: 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line);
  font-size: 13px;
  color: var(--c-text-mute);
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.footer-bottom .legal { display: flex; gap: var(--sp-5); }
.footer-bottom a:hover { color: var(--c-gold-2); }
.footer-mascots { display: flex; gap: var(--sp-2); align-items: center; opacity: 0.6; }
.footer-mascots img { width: 28px; height: 28px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: var(--c-bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-radial);
  pointer-events: none;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: saturate(0.7) contrast(1.1);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--c-bg) 90%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.hero-content { position: relative; }
.hero-content .eyebrow { margin-bottom: var(--sp-5); }
.hero-content h1 { margin-bottom: var(--sp-5); }
.hero-content h1 em {
  font-style: normal;
  font-family: var(--font-display);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-content .lead { margin-bottom: var(--sp-6); max-width: 540px; }
.hero-actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-7); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line);
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.hero-stats .stat span { font-size: 12px; color: var(--c-text-mute); letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-mono); }

.hero-visual { position: relative; height: 580px; }
.hero-mascot {
  position: absolute;
  width: 240px;
  height: 240px;
  animation: floatGentle 6s ease-in-out infinite;
}
.hero-mascot.m1 { top: 40px; right: 40px; animation-delay: 0s; }
.hero-mascot.m2 { bottom: 40px; right: 220px; width: 180px; height: 180px; animation-delay: 1.5s; }
.hero-mascot.m3 { top: 200px; right: 320px; width: 140px; height: 140px; animation-delay: 3s; }
.hero-mascot .glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(212,175,55,0.25), transparent 70%);
  z-index: -1;
  filter: blur(30px);
  animation: pulse 4s ease-in-out infinite;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-gold);
  opacity: 0.7;
  filter: blur(60px);
  animation: float 8s ease-in-out infinite;
}
.hero-orb.o1 { width: 200px; height: 200px; top: 100px; right: 100px; }
.hero-orb.o2 { width: 140px; height: 140px; bottom: 100px; right: 240px; animation-delay: 2s; }
.hero-orb.o3 { width: 90px; height: 90px; top: 50%; right: 60px; animation-delay: 4s; opacity: 0.4; }

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 30px;
  height: 50px;
  border: 2px solid var(--c-gold-2);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-indicator span {
  width: 4px;
  height: 8px;
  background: var(--c-gold-2);
  border-radius: 2px;
  animation: scrollDown 1.5s ease-in-out infinite;
}

/* Marquee */
.marquee {
  overflow: hidden;
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: var(--sp-4) 0;
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--c-bg-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--c-bg-2), transparent); }
.marquee-track {
  display: flex;
  gap: var(--sp-7);
  animation: marquee 40s linear infinite;
  align-items: center;
  width: max-content;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-item::before {
  content: "✦";
  color: var(--c-gold);
  font-size: 14px;
}

/* ============================================================
   Section dividers / decorations
   ============================================================ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-line-strong), transparent);
  margin: var(--sp-7) 0;
}
.deco-bg {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
  z-index: 0;
}
.deco-bg.top-right { top: 40px; right: 40px; }
.deco-bg.bottom-left { bottom: 40px; left: 40px; }

/* ============================================================
   Page header (sub-pages)
   ============================================================ */
.page-header {
  padding: 160px 0 80px;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-radial);
  pointer-events: none;
}
.page-header h1 { margin: var(--sp-3) 0 var(--sp-4); max-width: 880px; }
.page-header .lead { max-width: 720px; }
.page-header .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-text-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.page-header .breadcrumb a:hover { color: var(--c-gold-2); }
.page-header .breadcrumb span { color: var(--c-gold-2); }

/* ============================================================
   Forms
   ============================================================ */
.form { display: flex; flex-direction: column; gap: var(--sp-4); }
.form .field { display: flex; flex-direction: column; gap: 6px; }
.form label { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-dim); }
.form input, .form textarea, .form select {
  padding: 14px 16px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-size: 15px;
  transition: border-color var(--t-fast);
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--c-gold-2); outline: none; }
.form textarea { min-height: 140px; resize: vertical; }
.form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form .form-note { font-size: 13px; color: var(--c-text-mute); }
.form .form-status { padding: var(--sp-4); border-radius: var(--radius-sm); font-size: 14px; }
.form .form-status.success { background: rgba(76, 210, 160, 0.1); color: var(--c-success); border: 1px solid rgba(76, 210, 160, 0.3); }
.form .form-status.error { background: rgba(233, 75, 106, 0.1); color: var(--c-danger); border: 1px solid rgba(233, 75, 106, 0.3); }

/* ============================================================
   Legal page
   ============================================================ */
.legal {
  padding: var(--sp-9) 0;
  background: var(--c-bg);
  position: relative;
}
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-7);
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 100px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.legal-toc h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold-2);
  margin-bottom: var(--sp-4);
}
.legal-toc ol { counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  color: var(--c-text-dim);
  border-bottom: 1px solid transparent;
  transition: all var(--t-fast);
}
.legal-toc a::before { content: counter(toc, decimal-leading-zero) " · "; color: var(--c-gold); font-family: var(--font-mono); }
.legal-toc a:hover { color: var(--c-gold-2); padding-left: 4px; }

.legal-content h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); margin-bottom: var(--sp-4); }
.legal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  margin: var(--sp-8) 0 var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line);
  scroll-margin-top: 100px;
}
.legal-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--c-gold-2);
  margin: var(--sp-6) 0 var(--sp-3);
  scroll-margin-top: 100px;
}
.legal-content p, .legal-content li { color: var(--c-text-dim); line-height: 1.8; font-size: 15px; margin-bottom: var(--sp-3); }
.legal-content ul, .legal-content ol { padding-left: var(--sp-5); margin-bottom: var(--sp-4); }
.legal-content ul li { list-style: disc; }
.legal-content ol li { list-style: decimal; }
.legal-content strong { color: var(--c-text); font-weight: 600; }
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-4) 0 var(--sp-6);
  font-size: 14px;
}
.legal-content th, .legal-content td {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--c-line);
}
.legal-content th { color: var(--c-gold-2); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.legal-content .lead { font-size: 17px; }
.legal-content .meta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.legal-content .meta strong { color: var(--c-gold-2); }

.legal-content .ad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--sp-3);
  margin: var(--sp-4) 0 var(--sp-6);
}
.legal-content .ad-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
}
.legal-content .ad-card img { width: 40px; height: 40px; border-radius: 8px; }
.legal-content .ad-card span { font-size: 13px; font-weight: 500; }
.legal-content .info-box {
  background: var(--c-surface);
  border-left: 3px solid var(--c-gold);
  padding: var(--sp-4) var(--sp-5);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: var(--sp-4) 0;
}
.legal-content .info-box p { margin-bottom: 0; font-size: 14px; }

/* ============================================================
   News
   ============================================================ */
.news-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t-med);
}
.news-card:hover { transform: translateY(-6px); border-color: var(--c-line-strong); box-shadow: var(--shadow); }
.news-card .cover {
  aspect-ratio: 16/9;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}
.news-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms; }
.news-card:hover .cover img { transform: scale(1.06); }
.news-card .cover .tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gradient-gold);
  color: var(--c-bg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.news-card .body { padding: var(--sp-5); }
.news-card .body .meta {
  display: flex;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.news-card .body h3 { margin-bottom: var(--sp-3); font-size: 19px; }
.news-card .body p { color: var(--c-text-dim); font-size: 14px; line-height: 1.6; }
.news-card .body .read-more { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--sp-4); font-size: 13px; color: var(--c-gold-2); font-weight: 600; }

/* ============================================================
   Apps showcase
   ============================================================ */
.app-showcase {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--sp-8);
  align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-xl);
  padding: var(--sp-7);
  position: relative;
  overflow: hidden;
}
.app-showcase::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,175,55,0.15), transparent 60%);
  pointer-events: none;
}
.app-showcase .phone {
  position: relative;
  width: 280px;
  height: 560px;
  margin: 0 auto;
  background: var(--c-bg);
  border-radius: 36px;
  border: 6px solid #2A2F3F;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: floatGentle 6s ease-in-out infinite;
}
.app-showcase .phone::before {
  content: "";
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: #2A2F3F;
  border-radius: 12px;
  z-index: 5;
}
.app-showcase .phone .screen {
  position: absolute;
  inset: 36px 0 0 0;
  background: linear-gradient(180deg, #0A0E1A 0%, #1A1F33 100%);
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 14px;
  overflow: hidden;
}
.app-showcase .phone .statusbar {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--c-text-dim);
  font-family: var(--font-mono);
  margin-bottom: 6px;
}
.app-showcase .phone .screen-headline {
  font-size: 14px;
  color: var(--c-gold-2);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.app-showcase .phone .screen-title { font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.app-showcase .phone .screen-card {
  padding: 12px;
  background: rgba(212,175,55,0.05);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app-showcase .phone .screen-card .label { font-size: 10px; color: var(--c-text-mute); letter-spacing: 0.1em; text-transform: uppercase; }
.app-showcase .phone .screen-card .value { font-size: 16px; font-weight: 600; }
.app-showcase .phone .screen-card .trend { font-size: 11px; color: var(--c-success); }
.app-showcase .phone .screen-bar {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 60px;
  margin-top: 6px;
}
.app-showcase .phone .screen-bar span {
  flex: 1;
  background: var(--gradient-gold);
  border-radius: 3px 3px 0 0;
  animation: barGrow 2.5s var(--ease) infinite;
}
.app-showcase .phone .screen-bar span:nth-child(1) { height: 30%; animation-delay: 0s; }
.app-showcase .phone .screen-bar span:nth-child(2) { height: 50%; animation-delay: 0.2s; }
.app-showcase .phone .screen-bar span:nth-child(3) { height: 70%; animation-delay: 0.4s; }
.app-showcase .phone .screen-bar span:nth-child(4) { height: 45%; animation-delay: 0.6s; }
.app-showcase .phone .screen-bar span:nth-child(5) { height: 85%; animation-delay: 0.8s; }
.app-showcase .phone .screen-bar span:nth-child(6) { height: 60%; animation-delay: 1.0s; }
.app-showcase .phone .screen-bar span:nth-child(7) { height: 40%; animation-delay: 1.2s; }

/* ============================================================
   Decorative blobs
   ============================================================ */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.blob.gold { background: rgba(212, 175, 55, 0.15); }
.blob.blue { background: rgba(91, 182, 229, 0.12); }

/* ============================================================
   Tabs / segmented
   ============================================================ */
.tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); border-bottom: 1px solid var(--c-line); }
.tab {
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-dim);
  border-bottom: 2px solid transparent;
  transition: all var(--t-fast);
  cursor: pointer;
}
.tab:hover { color: var(--c-gold-2); }
.tab.active { color: var(--c-gold-2); border-bottom-color: var(--c-gold-2); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.5s var(--ease); }

/* ============================================================
   Back to top
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  box-shadow: var(--shadow-gold);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--t-med);
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-4px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ============================================================
   Utility
   ============================================================ */
.text-center { text-align: center; }
.text-gold { color: var(--c-gold-2); }
.muted { color: var(--c-text-mute); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
