/* ============================================
   FATI — Chrono Void Design System
   ============================================ */

:root {
  --void-black: #000000;
  --deep-charcoal: #0A0A0A;
  --glass-dark: #121212;
  --surface-elevated: #18181B;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(34, 211, 238, 0.2);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --neon-cyan: #06B6D4;
  --cyan-glow: #22D3EE;
  --electric-purple: #9333EA;
  --purple-glow: #C084FC;
  --emerald: #10B981;

  --gradient-brand: linear-gradient(135deg, #9333EA 0%, #06B6D4 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(147, 51, 234, 0.15) 0%, rgba(6, 182, 212, 0.05) 40%, transparent 70%);

  --max-width: 1200px;
  --content-width: 760px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--void-black);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background ambient glow */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 100%;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   NAV
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav-brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 13px;
  }
}

/* ============================================
   HERO (Home only)
   ============================================ */

.hero {
  position: relative;
  z-index: 1;
  padding: 120px 24px 80px;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  margin-bottom: 32px;
  box-shadow: 0 0 60px rgba(147, 51, 234, 0.4),
              0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

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

.hero-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(147, 51, 234, 0.4);
}

.btn-secondary {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--neon-cyan);
  background: var(--glass-dark);
}

/* ============================================
   FEATURES (Home)
   ============================================ */

.features {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--neon-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: linear-gradient(180deg, var(--surface-elevated) 0%, var(--deep-charcoal) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.25s ease;
}

.feature-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan-glow);
  margin-bottom: 20px;
  font-size: 22px;
}

.feature-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 48px 24px 32px;
  margin-top: 80px;
  background: rgba(0, 0, 0, 0.3);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-row img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 17px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   LEGAL DOCUMENT (privacy / terms)
   ============================================ */

.legal-page {
  position: relative;
  z-index: 1;
}

.legal-header {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 80px 24px 32px;
  text-align: center;
}

.legal-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.legal-header h1 .gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.legal-header .legal-meta {
  font-size: 14px;
  color: var(--text-muted);
}

.legal-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.legal-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 48px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.legal-content h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.legal-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--cyan-glow);
}

.legal-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}

.legal-content li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}

.legal-content li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

.legal-content a {
  color: var(--cyan-glow);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.legal-content a:hover {
  border-color: var(--cyan-glow);
}

.legal-toc {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 40px;
}

.legal-toc-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.legal-toc ol {
  list-style: none;
  padding: 0;
  counter-reset: toc;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}

.legal-toc li {
  counter-increment: toc;
  padding-left: 0;
}

.legal-toc li::before {
  display: none;
}

.legal-toc li::marker {
  display: none;
}

.legal-toc a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.legal-toc a:hover {
  color: var(--cyan-glow);
}

@media (max-width: 600px) {
  .legal-toc ol {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   UTILITIES
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

::selection {
  background: rgba(147, 51, 234, 0.3);
  color: white;
}
