/* DocClarify — Cyberpunk Legal Tech Design System
   Aesthetic: Void black + electric cyan. Holographic cards. Neon glows.
   The intersection of legal authority and machine intelligence.
   Fonts: Orbitron (display) + Exo 2 (body) + JetBrains Mono (code/accent)
*/

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;900&family=Exo+2:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS
════════════════════════════════════════════════════════════════ */
:root {
  /* Backgrounds */
  --bg-void:     #010208;
  --bg-base:     #050c18;
  --bg-surface:  #070f1e;
  --bg-card:     #0a1628;
  --bg-raised:   #0e1e38;
  --bg-hover:    #121f38;

  /* Cyan — primary accent */
  --cyan:        #00e5ff;
  --cyan-bright: #40f4ff;
  --cyan-dim:    rgba(0,229,255,.07);
  --cyan-glow:   rgba(0,229,255,.18);
  --cyan-border: rgba(0,229,255,.22);

  /* Purple — secondary accent */
  --purple:      #8b5cf6;
  --purple-bright: #a78bfa;
  --purple-dim:  rgba(139,92,246,.08);
  --purple-glow: rgba(139,92,246,.25);

  /* Gold — premium accent */
  --gold:        #f0c040;
  --gold-dim:    rgba(240,192,64,.08);
  --gold-border: rgba(240,192,64,.25);

  /* Semantic */
  --red:         #ff3366;
  --red-dim:     rgba(255,51,102,.09);
  --green:       #00e5a0;
  --green-dim:   rgba(0,229,160,.09);
  --amber:       #ffaa00;
  --amber-dim:   rgba(255,170,0,.09);

  /* Text */
  --text-primary:   #ddeeff;
  --text-secondary: #6a85aa;
  --text-muted:     #2e3f58;

  /* Borders */
  --border:      rgba(255,255,255,.06);
  --border-bright: rgba(255,255,255,.12);

  /* Radii */
  --r-sm: 4px;
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Shadows */
  --shadow-cyan:   0 0 40px rgba(0,229,255,.12), 0 4px 24px rgba(0,0,0,.6);
  --shadow-purple: 0 0 40px rgba(139,92,246,.15), 0 4px 24px rgba(0,0,0,.6);
  --shadow-card:   0 4px 32px rgba(0,0,0,.7);

  /* Typography */
  --font-display: 'Orbitron', sans-serif;
  --font-body:    'Exo 2', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Motion */
  --ease: cubic-bezier(.4,0,.2,1);
  --t:    .2s;
  --t-slow: .5s;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; transition: color var(--t) var(--ease); }
a:hover { color: var(--cyan-bright); }
button { cursor: pointer; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* ═══════════════════════════════════════════════════════════════
   ANIMATED BACKGROUND GRID
════════════════════════════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  animation: gridScroll 40s linear infinite;
}

/* Secondary fine grid */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,.015) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
  z-index: 0;
}

@keyframes gridScroll {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 0 64px, 64px 0; }
}

/* Radial vignette */
.page-glow {
  position: fixed;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 80vh;
  background: radial-gradient(ellipse at center, rgba(0,229,255,.04) 0%, rgba(139,92,246,.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* All content sits above the background */
nav, main, footer, .auth-page, .dashboard { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════════
   UTILITY
════════════════════════════════════════════════════════════════ */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-cyan { color: var(--cyan); }
.text-purple { color: var(--purple-bright); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
════════════════════════════════════════════════════════════════ */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 500;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple-bright) 60%, var(--cyan-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: .85;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--t) var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Shimmer sweep on hover */
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  transition: left .4s var(--ease);
}
.btn:hover::before { left: 100%; }
.btn:active { transform: scale(.97); }

/* Primary — cyan glow */
.btn-primary {
  background: linear-gradient(135deg, #00c8e0 0%, #0088bb 100%);
  color: #000c18;
  box-shadow: 0 0 20px rgba(0,229,255,.35), 0 4px 16px rgba(0,0,0,.4);
}
.btn-primary:hover {
  box-shadow: 0 0 40px rgba(0,229,255,.6), 0 4px 20px rgba(0,0,0,.5);
  color: #000c18;
  transform: translateY(-2px);
}

/* Outline — cyan border */
.btn-outline {
  background: transparent;
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
  box-shadow: inset 0 0 20px rgba(0,229,255,.04);
}
.btn-outline:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,229,255,.2);
  color: var(--cyan-bright);
}

/* Ghost */
.btn-ghost {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-ghost:hover { border-color: var(--border-bright); color: var(--text-primary); background: var(--bg-hover); }

/* Purple variant */
.btn-purple {
  background: linear-gradient(135deg, var(--purple) 0%, #6d28d9 100%);
  color: white;
  box-shadow: 0 0 20px var(--purple-glow), 0 4px 16px rgba(0,0,0,.4);
}
.btn-purple:hover { box-shadow: 0 0 40px var(--purple-glow), 0 4px 20px rgba(0,0,0,.5); transform: translateY(-2px); }

.btn-danger { background: var(--red); color: white; }
.btn-sm { padding: 7px 18px; font-size: .7rem; border-radius: var(--r-sm); }
.btn-lg { padding: 16px 40px; font-size: .85rem; border-radius: var(--r-lg); }
.btn-full { width: 100%; }

.btn-loading { pointer-events: none; opacity: .7; }
.btn-loading .btn-text { visibility: hidden; }
.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,.3);
  border-top-color: #001a2e;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS
════════════════════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}

/* Top edge glow line */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-border), transparent);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--cyan-border); box-shadow: var(--shadow-cyan); transform: translateY(-2px); }

/* Cyan accent card */
.card-cyan {
  border-color: var(--cyan-border);
  background: linear-gradient(160deg, var(--bg-card) 0%, rgba(0,229,255,.04) 100%);
}
.card-cyan::before { opacity: 1; }

/* Purple accent card */
.card-purple {
  border-color: rgba(139,92,246,.3);
  background: linear-gradient(160deg, var(--bg-card) 0%, rgba(139,92,246,.05) 100%);
}

/* Corner brackets decoration */
.card-bracket::after {
  content: '';
  position: absolute;
  bottom: 12px; right: 12px;
  width: 20px; height: 20px;
  border-bottom: 1px solid var(--cyan-border);
  border-right: 1px solid var(--cyan-border);
  border-radius: 0 0 4px 0;
  opacity: .5;
}
.card-bracket::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px;
  width: 20px; height: 20px;
  border-top: 1px solid var(--cyan-border);
  border-left: 1px solid var(--cyan-border);
  border-radius: 4px 0 0 0;
  opacity: .5;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(1,2,8,.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

/* Scanning line on nav bottom */
.nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 30%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: navScan 4s ease-in-out infinite;
}
@keyframes navScan {
  0%   { left: -30%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--cyan);
  text-transform: uppercase;
}
.nav-logo span { color: var(--cyan); }

.nav-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, rgba(0,229,255,.15), rgba(0,229,255,.05));
  border: 1px solid var(--cyan-border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0,229,255,.2);
  position: relative;
  overflow: hidden;
}
.nav-logo-icon::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 340deg, rgba(0,229,255,.4) 360deg);
  animation: iconSpin 4s linear infinite;
}
@keyframes iconSpin { to { transform: rotate(360deg); } }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--font-display);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--t);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width var(--t) var(--ease);
  box-shadow: 0 0 8px var(--cyan);
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ═══════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════════ */
.hero {
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Big radial glow behind hero text */
.hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse,
    rgba(0,229,255,.08) 0%,
    rgba(139,92,246,.05) 40%,
    transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 36px;
  animation: fadeInDown .6s var(--ease) both;
}
.hero-badge::before { content: '›'; font-size: .9rem; }

.hero h1 { animation: fadeInUp .8s var(--ease) .1s both; max-width: 860px; margin: 0 auto 28px; }
.hero h1 em { font-style: normal; }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 52px;
  line-height: 1.75;
  font-weight: 300;
  animation: fadeInUp .8s var(--ease) .2s both;
}

.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  animation: fadeInUp .8s var(--ease) .3s both;
}

.hero-trust {
  margin-top: 64px;
  display: flex; align-items: center; justify-content: center;
  gap: 36px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fadeInUp .8s var(--ease) .4s both;
}
.hero-trust-item { display: flex; align-items: center; gap: 6px; }
.hero-trust-item::before { content: '✓'; color: var(--cyan); font-size: .9rem; }

/* ═══════════════════════════════════════════════════════════════
   DEMO CARD
════════════════════════════════════════════════════════════════ */
.demo-preview {
  max-width: 680px;
  margin: 72px auto 0;
  position: relative;
  animation: fadeInUp 1s var(--ease) .5s both;
}

/* Animated glow border */
.demo-preview::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--r-xl) + 1px);
  background: conic-gradient(from var(--angle, 0deg),
    var(--cyan) 0deg,
    var(--purple) 90deg,
    transparent 180deg,
    var(--cyan) 360deg);
  animation: rotateBorder 4s linear infinite;
  opacity: .6;
}
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes rotateBorder { to { --angle: 360deg; } }

.demo-inner {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  padding: 28px;
  position: relative;
}

.demo-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.demo-dots { display: flex; gap: 6px; }
.demo-dots span { width: 9px; height: 9px; border-radius: 50%; }
.demo-dots span:nth-child(1) { background: var(--red); box-shadow: 0 0 6px var(--red); }
.demo-dots span:nth-child(2) { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.demo-dots span:nth-child(3) { background: var(--green); box-shadow: 0 0 6px var(--green); }
.demo-title { font-family: var(--font-mono); font-size: .72rem; color: var(--text-muted); letter-spacing: .05em; }

.risk-gauge { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.risk-score-demo {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
}
.risk-score-demo.medium { color: var(--amber); text-shadow: 0 0 20px rgba(255,170,0,.5); }
.risk-score-demo.high { color: var(--red); text-shadow: 0 0 20px rgba(255,51,102,.5); }
.risk-score-demo.low { color: var(--green); text-shadow: 0 0 20px rgba(0,229,160,.5); }

.risk-bar-wrap { flex: 1; }
.risk-label-text { font-family: var(--font-mono); font-size: .65rem; color: var(--text-muted); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 8px; }
.risk-bar { height: 4px; background: var(--bg-raised); border-radius: 99px; overflow: hidden; }
.risk-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--amber) 50%, var(--red) 100%);
  width: var(--fill, 30%);
  transition: width 1.5s cubic-bezier(.4,0,.2,1) 1s;
  box-shadow: 0 0 8px rgba(255,170,0,.4);
}

.demo-flags { display: flex; flex-direction: column; gap: 8px; }
.demo-flag {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; border-radius: var(--r); font-size: .84rem;
}
.demo-flag.red { background: var(--red-dim); border: 1px solid rgba(255,51,102,.2); }
.demo-flag.green { background: var(--green-dim); border: 1px solid rgba(0,229,160,.2); }
.demo-flag .flag-icon { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   SECTIONS
════════════════════════════════════════════════════════════════ */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { margin-bottom: 64px; }
.section-header p { font-size: 1.0625rem; color: var(--text-secondary); max-width: 560px; margin: 16px auto 0; font-weight: 300; }

/* ═══════════════════════════════════════════════════════════════
   FEATURES GRID
════════════════════════════════════════════════════════════════ */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: all var(--t) var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity var(--t);
}
.feature-card:hover { border-color: var(--cyan-border); transform: translateY(-4px); box-shadow: var(--shadow-cyan); }
.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 48px; height: 48px;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0,229,255,.1);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.feature-card p { font-size: .9375rem; color: var(--text-secondary); line-height: 1.7; font-weight: 300; }

/* ═══════════════════════════════════════════════════════════════
   HOW IT WORKS STEPS
════════════════════════════════════════════════════════════════ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 44px; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-border), var(--purple-bright), var(--cyan-border), transparent);
  opacity: .6;
}
.step { text-align: center; padding: 0 20px; }
.step-num {
  width: 88px; height: 88px;
  background: var(--bg-card);
  border: 1px solid var(--cyan-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cyan);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px rgba(0,229,255,.15);
}
.step h3 { font-family: var(--font-display); font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; color: var(--text-primary); }
.step p { font-size: .875rem; color: var(--text-secondary); font-weight: 300; }

/* ═══════════════════════════════════════════════════════════════
   PRICING
════════════════════════════════════════════════════════════════ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
  position: relative;
  transition: all var(--t-slow) var(--ease);
}
.pricing-card.featured {
  border-color: var(--cyan-border);
  box-shadow: var(--shadow-cyan);
  background: linear-gradient(160deg, var(--bg-card) 0%, rgba(0,229,255,.05) 100%);
}

.pricing-badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cyan) 0%, #0088bb 100%);
  color: #000c18;
  font-family: var(--font-display);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(0,229,255,.4);
}

.pricing-name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; color: var(--text-primary); }

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  margin: 16px 0 4px;
  color: var(--cyan);
}
.pricing-price sup { font-size: 1.1rem; vertical-align: super; }
.pricing-price sub { font-size: .8rem; color: var(--text-secondary); vertical-align: baseline; font-weight: 400; }
.pricing-price.free-price { color: var(--text-primary); }

.pricing-desc { font-size: .875rem; color: var(--text-muted); margin-bottom: 28px; font-family: var(--font-mono); }
.pricing-features { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: .9375rem; color: var(--text-secondary); font-weight: 300; }
.pricing-features li::before { content: '›'; color: var(--cyan); font-size: 1rem; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   FORMS
════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.form-input:focus {
  border-color: var(--cyan-border);
  box-shadow: 0 0 0 3px rgba(0,229,255,.1), 0 0 20px rgba(0,229,255,.08);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input.error { border-color: var(--red); }
.form-error { color: var(--red); font-size: .8rem; margin-top: 6px; font-family: var(--font-mono); }
.form-hint { color: var(--text-muted); font-size: .8rem; margin-top: 6px; font-family: var(--font-mono); }

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES
════════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--cyan-border);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-cyan);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--purple));
  background-size: 200%;
  animation: gradientShift 3s ease infinite;
}

.auth-logo { text-align: center; margin-bottom: 36px; }
.auth-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 6px; text-transform: uppercase; }
.auth-sub { color: var(--text-secondary); font-size: .9rem; font-weight: 300; }
.auth-switch { text-align: center; margin-top: 24px; font-size: .875rem; color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
════════════════════════════════════════════════════════════════ */
.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: auto;
}

.sidebar {
  grid-row: 1 / -1;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}

.sidebar-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.sidebar-logo span { color: var(--cyan); }
.sidebar-logo-icon {
  width: 32px; height: 32px;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0,229,255,.15);
}

.sidebar-nav { flex: 1; padding: 8px 12px; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--r);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: all var(--t) var(--ease);
  cursor: pointer; border: none;
  background: transparent; width: 100%; text-align: left;
}
.sidebar-nav-item:hover { background: var(--cyan-dim); color: var(--cyan); }
.sidebar-nav-item.active {
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid var(--cyan-border);
  box-shadow: 0 0 12px rgba(0,229,255,.1);
}
.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); margin-top: 16px; }

.dashboard-main { overflow-y: auto; padding: 36px; }
.dashboard-header { margin-bottom: 32px; }
.dashboard-header h1 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-primary); }
.dashboard-header p { color: var(--text-secondary); margin-top: 6px; font-weight: 300; }

/* ═══════════════════════════════════════════════════════════════
   UPLOAD ZONE
════════════════════════════════════════════════════════════════ */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--r-xl);
  padding: 60px 40px;
  text-align: center;
  transition: all var(--t) var(--ease);
  cursor: pointer;
  background: var(--bg-card);
  position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: 0 0 40px rgba(0,229,255,.1);
}
.upload-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.upload-icon {
  width: 64px; height: 64px;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--cyan);
  box-shadow: 0 0 24px rgba(0,229,255,.15);
}
.upload-zone h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.upload-zone p { color: var(--text-secondary); font-size: .9rem; font-weight: 300; }
.upload-types { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.upload-type-badge {
  padding: 3px 10px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   RESULTS
════════════════════════════════════════════════════════════════ */
.flag-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--r);
  margin-bottom: 8px; font-size: .9rem; line-height: 1.6;
  font-weight: 300;
}
.flag-item.red { background: var(--red-dim); border: 1px solid rgba(255,51,102,.2); }
.flag-item.green { background: var(--green-dim); border: 1px solid rgba(0,229,160,.2); }
.flag-item.amber { background: var(--amber-dim); border: 1px solid rgba(255,170,0,.2); }
.flag-icon { flex-shrink: 0; margin-top: 1px; }

.term-item { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; margin-bottom: 8px; }
.term-name { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; color: var(--cyan); margin-bottom: 4px; text-transform: uppercase; }
.term-meaning { font-size: .875rem; color: var(--text-secondary); font-weight: 300; }
.terms-grid { display: flex; flex-direction: column; gap: 0; }

/* ═══════════════════════════════════════════════════════════════
   HISTORY TABLE
════════════════════════════════════════════════════════════════ */
.history-table { width: 100%; border-collapse: collapse; }
.history-table th {
  text-align: left; padding: 10px 16px;
  font-family: var(--font-mono); font-size: .65rem;
  font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
}
.history-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: .9rem; font-weight: 300; }
.history-table tr:hover td { background: var(--cyan-dim); cursor: pointer; }

.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 100px; font-family: var(--font-mono); font-size: .65rem; font-weight: 500; letter-spacing: .08em; }
.badge-low { background: var(--green-dim); color: var(--green); border: 1px solid rgba(0,229,160,.3); }
.badge-medium { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(255,170,0,.3); }
.badge-high { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,51,102,.3); }

/* ═══════════════════════════════════════════════════════════════
   ALERTS & TOASTS
════════════════════════════════════════════════════════════════ */
.alert {
  padding: 14px 18px; border-radius: var(--r);
  font-size: .875rem; display: flex; align-items: flex-start;
  gap: 10px; margin-bottom: 16px; font-weight: 300;
}
.alert-error { background: var(--red-dim); border: 1px solid rgba(255,51,102,.3); color: #ff8099; }
.alert-success { background: var(--green-dim); border: 1px solid rgba(0,229,160,.3); color: #40ffb0; }
.alert-warning { background: var(--amber-dim); border: 1px solid rgba(255,170,0,.3); color: #ffcc66; }
.alert-info { background: rgba(0,229,255,.05); border: 1px solid var(--cyan-border); color: var(--text-secondary); }

.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { padding: 14px 20px; border-radius: var(--r); font-size: .875rem; box-shadow: var(--shadow-card); pointer-events: all; animation: slideInRight .3s var(--ease); max-width: 380px; font-weight: 300; }
.toast.success { background: #051a10; border: 1px solid rgba(0,229,160,.3); color: #40ffb0; }
.toast.error { background: #1a0510; border: 1px solid rgba(255,51,102,.3); color: #ff8099; }

/* ═══════════════════════════════════════════════════════════════
   LOADING / SKELETON
════════════════════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-raised) 25%, var(--bg-hover) 50%, var(--bg-raised) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}
.progress-bar { width: 100%; height: 3px; background: var(--bg-raised); border-radius: 99px; overflow: hidden; margin: 16px 0; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple-bright), var(--cyan));
  background-size: 200%;
  border-radius: 99px;
  transition: width var(--t-slow);
  animation: gradientShift 2s ease infinite, pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(0,229,255,.6);
}

/* ═══════════════════════════════════════════════════════════════
   PLAN CHIPS & UPGRADE
════════════════════════════════════════════════════════════════ */
.plan-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 12px; border-radius: 100px;
  font-family: var(--font-mono); font-size: .65rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
}
.plan-chip.free { background: var(--bg-raised); color: var(--text-muted); border: 1px solid var(--border); }
.plan-chip.monthly { background: var(--cyan-dim); color: var(--cyan); border: 1px solid var(--cyan-border); box-shadow: 0 0 8px rgba(0,229,255,.15); }

.upgrade-prompt {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0,229,255,.04) 100%);
  border: 1px solid var(--cyan-border);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-cyan);
}
.upgrade-prompt h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.upgrade-prompt p { color: var(--text-secondary); margin-bottom: 28px; font-weight: 300; }
.upgrade-options { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════
   LEGAL PAGES — Styled like ArtiMod's TOS but futuristic
════════════════════════════════════════════════════════════════ */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.legal-page .legal-header {
  margin-bottom: 72px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.legal-page .legal-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 120px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  box-shadow: 0 0 10px var(--cyan);
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.legal-page .legal-meta {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.legal-page .meta-tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
}

/* Numbered sections — ArtiMod style but futuristic */
.legal-section {
  margin-bottom: 64px;
  padding-left: 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 28px;
  align-items: start;
}

.legal-section-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cyan);
  opacity: .25;
  line-height: 1;
  padding-top: 4px;
  letter-spacing: -.02em;
  user-select: none;
  text-align: right;
  padding-right: 4px;
  border-right: 1px solid var(--border);
}
.legal-section:hover .legal-section-num { opacity: .6; transition: opacity .3s; }

.legal-section-body { padding-left: 0; }
.legal-section-body h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.legal-section-body p {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: .9375rem;
  margin-bottom: 16px;
  font-weight: 300;
}
.legal-section-body ul {
  padding-left: 0;
  margin-bottom: 16px;
  list-style: none;
}
.legal-section-body ul li {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: .9375rem;
  margin-bottom: 8px;
  font-weight: 300;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.legal-section-body ul li::before {
  content: '›';
  color: var(--cyan);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.legal-section-body a { color: var(--cyan); }
.legal-section-body strong { color: var(--text-primary); font-weight: 500; }

/* Critical warning box */
.legal-warning {
  background: rgba(255,51,102,.06);
  border: 1px solid rgba(255,51,102,.25);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 18px 20px;
  margin: 20px 0;
}
.legal-warning p { color: #ff8099; margin: 0; }

/* Legal footer CTA */
.legal-footer-cta {
  margin-top: 80px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--cyan-border);
  border-radius: var(--r-xl);
  text-align: center;
  box-shadow: var(--shadow-cyan);
}
.legal-footer-cta h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; color: var(--text-primary); }
.legal-footer-cta p { color: var(--text-secondary); margin-bottom: 0; font-size: .875rem; font-weight: 300; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════ */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-secondary); font-size: .875rem; margin-top: 14px; max-width: 260px; line-height: 1.7; font-weight: 300; }
.footer-col h4 { font-family: var(--font-mono); font-size: .65rem; font-weight: 500; text-transform: uppercase; letter-spacing: .15em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-secondary); font-size: .875rem; font-weight: 300; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-muted); font-family: var(--font-mono);
  font-size: .65rem; letter-spacing: .08em; text-transform: uppercase;
  flex-wrap: wrap; gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════════════════════ */
@keyframes fadeInUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-16px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideInRight { from { opacity:0; transform:translateX(32px); } to { opacity:1; transform:translateX(0); } }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes shimmer { to { background-position:-200% 0; } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.5; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.animate-fade-in { animation: fadeIn .4s var(--ease); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .legal-section { grid-template-columns: 48px 1fr; gap: 0 16px; }
  .legal-section-num { font-size: 1.6rem; }
  .steps::before { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 80px 0 60px; }
  .section { padding: 60px 0; }
  .auth-card { padding: 32px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .legal-section { grid-template-columns: 1fr; }
  .legal-section-num { display: none; }
}
