/* SpreadVerse Brand System — Landing Page Tokens & Layout
 * Source of truth: release-stage/client/src/styles/tokens.css
 * This file is for standalone HTML landing pages (not React).
 */

/* ── Theme Variables ── */
:root {
  --sv-primary: #57f1db;
  --sv-primary-2: #2dd4bf;
  --sv-brand-teal: #4dbcb0;
  --sv-bg: #0c1324;
  --sv-surface: #151b2d;
  --sv-surface-2: #191f31;
  --sv-surface-3: #23293c;
  --sv-text: #dce1fb;
  --sv-text-muted: #9aa0bb;
  --sv-text-3: #636880;
  --sv-glass: rgba(15, 23, 42, 0.42);
  --sv-glass-strong: rgba(15, 23, 42, 0.72);
  --sv-glass-edge: rgba(255, 255, 255, 0.06);
  --sv-border: rgba(255, 255, 255, 0.08);
  --sv-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.40);
  --sv-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.50);
  --sv-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.60);
  --sv-radius-sm: 8px;
  --sv-radius-md: 12px;
  --sv-radius-lg: 18px;
  --sv-radius-pill: 9999px;
  --sv-font-display: 'Space Grotesk', system-ui, sans-serif;
  --sv-font-body: 'Inter', system-ui, sans-serif;
  --sv-font-mono: 'JetBrains Mono', monospace;
  --sv-success: #2ecc71;
  --sv-warning: #f5b041;
  --sv-danger: #ff6b6b;
  color-scheme: dark;
}

[data-theme="light"] {
  --sv-primary: #0ea5a0;
  --sv-primary-2: #0d9490;
  --sv-brand-teal: #3aa89c;
  --sv-bg: #f6f8fb;
  --sv-surface: #ffffff;
  --sv-surface-2: #f8fafc;
  --sv-surface-3: #f1f4f8;
  --sv-text: #060d1c;
  --sv-text-muted: #3d4562;
  --sv-text-3: #6b748c;
  --sv-glass: rgba(255, 255, 255, 0.72);
  --sv-glass-strong: rgba(255, 255, 255, 0.92);
  --sv-glass-edge: rgba(0, 0, 0, 0.06);
  --sv-border: rgba(0, 0, 0, 0.08);
  --sv-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.10);
  --sv-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --sv-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);
  --sv-success: #16a34a;
  --sv-warning: #d97706;
  --sv-danger: #dc2626;
  color-scheme: light;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sv-font-body);
  background: var(--sv-bg);
  color: var(--sv-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--sv-primary); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }
img, svg { display: block; max-width: 100%; }

/* ── Logo Sizing ── */
.sv-logo-nav { height: 32px; width: auto; }
.sv-logo-hero { height: 48px; width: auto; }
.sv-logo-footer { height: 24px; width: auto; }

/* ── Wordmark Typography ── */
.sv-wordmark {
  font-family: var(--sv-font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sv-text);
}
.sv-wordmark-hero { font-size: 22px; }
.sv-wordmark-footer { font-size: 16px; }

/* ── Emboss Effects ── */
.sv-emboss {
  background: linear-gradient(135deg, #57f1db 0%, #2dd4bf 50%, #4dbcb0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.3));
}
[data-theme="light"] .sv-emboss {
  background: linear-gradient(135deg, #0ea5a0 0%, #0d9490 50%, #3aa89c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.08));
}
.sv-emboss-subtle {
  background: linear-gradient(135deg, rgba(87, 241, 219, 0.7) 0%, rgba(45, 212, 191, 0.6) 50%, rgba(77, 188, 176, 0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.2));
}
[data-theme="light"] .sv-emboss-subtle {
  background: linear-gradient(135deg, rgba(14, 165, 160, 0.8) 0%, rgba(13, 148, 144, 0.7) 50%, rgba(58, 168, 156, 0.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: none;
}

/* ── Landing Page Nav ── */
.sv-landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: var(--sv-glass-strong);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--sv-glass-edge);
}
.sv-landing-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sv-landing-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.sv-landing-nav .nav-links a {
  font-family: var(--sv-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--sv-text-muted);
  transition: color 0.2s;
}
.sv-landing-nav .nav-links a:hover {
  color: var(--sv-text);
  opacity: 1;
}
.sv-landing-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Buttons ── */
.sv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--sv-radius-pill);
  font-family: var(--sv-font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}
.sv-btn-primary {
  background: linear-gradient(135deg, #57f1db 0%, #4dbcb0 100%);
  color: #003731;
}
.sv-btn-primary:hover {
  opacity: 1;
  filter: brightness(1.1);
  box-shadow: 0 0 20px rgba(87, 241, 219, 0.3);
}
.sv-btn-outline {
  background: transparent;
  color: var(--sv-text);
  border: 1px solid var(--sv-border);
}
.sv-btn-outline:hover {
  border-color: var(--sv-primary);
  color: var(--sv-primary);
  opacity: 1;
}
.sv-btn-ghost {
  background: transparent;
  color: var(--sv-text-muted);
  padding: 8px 12px;
}
.sv-btn-ghost:hover { color: var(--sv-text); opacity: 1; }

/* ── Theme Toggle ── */
.sv-theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--sv-radius-sm);
  border: 1px solid var(--sv-border);
  background: transparent;
  color: var(--sv-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 16px;
}
.sv-theme-toggle:hover {
  border-color: var(--sv-primary);
  color: var(--sv-primary);
}

/* ── Landing Sections ── */
.sv-landing-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.sv-landing-hero {
  min-height: 80dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 900px;
  margin: 0 auto;
}
.sv-landing-hero h1 {
  font-family: var(--sv-font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.sv-landing-hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--sv-text-muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ── Responsive Grid ── */
.sv-landing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sv-landing-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.sv-landing-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ── Glass Card ── */
.sv-landing-card {
  background: var(--sv-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--sv-glass-edge);
  border-radius: var(--sv-radius-md);
  padding: 32px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.sv-landing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sv-shadow-lg);
  border-color: rgba(87, 241, 219, 0.15);
}

/* ── Metric Pills ── */
.sv-metrics {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}
.sv-metric-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--sv-glass);
  border: 1px solid var(--sv-glass-edge);
  border-radius: var(--sv-radius-pill);
  font-family: var(--sv-font-mono);
  font-size: 14px;
  color: var(--sv-text-muted);
}
.sv-metric-pill strong {
  color: var(--sv-primary);
  font-weight: 600;
}

/* ── Status Badge ── */
.sv-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--sv-radius-pill);
  font-family: var(--sv-font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sv-badge-live {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
}
.sv-badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ecc71;
  animation: sv-pulse 2s infinite;
}
.sv-badge-s3 {
  background: rgba(245, 176, 65, 0.15);
  color: #f5b041;
}
.sv-badge-s2 {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}
@keyframes sv-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Section Headers ── */
.sv-section-label {
  font-family: var(--sv-font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sv-primary);
  margin-bottom: 12px;
}
.sv-section-title {
  font-family: var(--sv-font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.sv-section-subtitle {
  font-size: 17px;
  color: var(--sv-text-muted);
  max-width: 560px;
  line-height: 1.6;
}

/* ── Landing Footer ── */
.sv-landing-footer {
  border-top: 1px solid var(--sv-border);
  padding: 48px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.sv-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.sv-footer-col h4 {
  font-family: var(--sv-font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--sv-text);
  margin-bottom: 16px;
}
.sv-footer-col ul {
  list-style: none;
}
.sv-footer-col ul li {
  margin-bottom: 10px;
}
.sv-footer-col ul li a {
  font-size: 14px;
  color: var(--sv-text-muted);
  transition: color 0.2s;
}
.sv-footer-col ul li a:hover {
  color: var(--sv-primary);
  opacity: 1;
}
.sv-footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--sv-border);
  font-size: 13px;
  color: var(--sv-text-3);
  text-align: center;
}

/* ── Hamburger Menu ── */
.sv-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--sv-text);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.sv-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: all 0.3s ease;
}
.sv-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.sv-hamburger.active span:nth-child(2) { opacity: 0; }
.sv-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Mobile Nav Overlay ── */
.sv-mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--sv-glass-strong);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  z-index: 99;
  padding: 32px;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.sv-mobile-nav.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.sv-mobile-nav a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--sv-text);
  border-bottom: 1px solid var(--sv-border);
}

/* ── Aurora Background ── */
.sv-aurora::before {
  content: '';
  position: fixed;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 80%;
  background: radial-gradient(ellipse at 30% 20%, rgba(87, 241, 219, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 60%, rgba(45, 212, 191, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .sv-aurora::before {
  background: radial-gradient(ellipse at 30% 20%, rgba(14, 165, 160, 0.04) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 60%, rgba(13, 148, 144, 0.03) 0%, transparent 50%);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .sv-landing-grid { grid-template-columns: repeat(2, 1fr); }
  .sv-landing-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sv-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sv-landing-nav .nav-links,
  .sv-landing-nav .nav-actions .sv-btn-primary {
    display: none;
  }
  .sv-hamburger { display: flex; }
  .sv-landing-grid { grid-template-columns: 1fr; }
  .sv-landing-grid-2 { grid-template-columns: 1fr; }
  .sv-landing-grid-4 { grid-template-columns: 1fr; }
  .sv-landing-hero { padding: 100px 20px 60px; min-height: 70dvh; }
  .sv-landing-section { padding: 60px 20px; }
  .sv-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .sv-metrics { flex-direction: column; align-items: center; }
}
