/* ==========================================================================
   SAVVUN — NEXT-GENERATION CYBERSECURITY PLATFORM
   CORE STYLES & DESIGN TOKENS (main.css)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* HSL Color System */
  --bg-dark-0: #03050a;
  --bg-dark-1: #050811;
  --bg-dark-2: #0b101d;
  --bg-dark-3: #12192c;
  --bg-dark-4: #1a233d;

  --color-cyan: #00f0ff;
  --color-cyan-glow: rgba(0, 240, 255, 0.4);
  --color-blue: #0066ff;
  --color-blue-glow: rgba(0, 102, 255, 0.35);
  --color-purple: #7000ff;
  --color-purple-glow: rgba(112, 0, 255, 0.3);
  --color-emerald: #00ffaa;
  --color-amber: #ffb700;
  --color-rose: #ff2a6d;

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-cyan: #38bdf8;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(0, 240, 255, 0.3);

  --glass-bg: rgba(11, 16, 29, 0.65);
  --glass-blur: blur(16px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1320px;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-dark-0: #f8fafc;
  --bg-dark-1: #ffffff;
  --bg-dark-2: #f1f5f9;
  --bg-dark-3: #e2e8f0;
  --bg-dark-4: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-glass: rgba(15, 23, 42, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.82);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-dark-0);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  position: relative;
  background: var(--bg-dark-0);
  min-height: 100vh;
}

/* Custom Selection */
::selection {
  background: var(--color-cyan);
  color: #03050a;
}

/* Background Cyber Grid */
.bg-grid-overlay {
  display: none;
}

.bg-ambient-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, rgba(112, 0, 255, 0.1) 40%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 2;
}

/* Custom Cursor */
.custom-cursor-dot,
.custom-cursor-ring {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.custom-cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-cyan);
  box-shadow: 0 0 10px var(--color-cyan);
}

.custom-cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-cyan-glow);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

body.hovered .custom-cursor-ring {
  width: 48px;
  height: 48px;
  border-color: var(--color-cyan);
  background: rgba(0, 240, 255, 0.05);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 70%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-blue {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 60%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.22);
  color: var(--color-cyan);
  font-size: 0.775rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.08);
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-cyan);
  box-shadow: 0 0 10px var(--color-cyan);
  animation: pulse-dot 2s infinite;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Disclaimer Banner */
.disclaimer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 183, 0, 0.1);
  border: 1px solid rgba(255, 183, 0, 0.25);
  border-radius: var(--radius-sm);
  color: var(--color-amber);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

/* Accessibility & High Contrast Enhancements */
p, span, label, li {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] p,
[data-theme="light"] span,
[data-theme="light"] label,
[data-theme="light"] li {
  text-shadow: none;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .hero-title {
  color: #0f172a;
  text-shadow: none;
}

/* Hero Section Subtle Dark Backdrop for Readability */
.hero-content-box {
  position: relative;
  z-index: 3;
  background: rgba(3, 5, 10, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 240, 255, 0.12);
  margin-bottom: 2rem;
}
