/* ==========================================================================
   DECODE INTELLIGENCE — DESIGN SYSTEM & CORE TOKENS
   AI & Automation Division of Decode International
   ========================================================================== */

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

:root {
  /* Color Palette - Dark Luxury AI Aesthetic */
  --bg-darkest: #030509;
  --bg-primary: #060810;
  --bg-secondary: #0A0E1C;
  --bg-tertiary: #10162B;
  --bg-elevated: #151C36;

  /* Card Surfaces & Glass */
  --surface-card: rgba(12, 17, 34, 0.72);
  --surface-card-hover: rgba(18, 25, 48, 0.88);
  --surface-glass: rgba(255, 255, 255, 0.03);
  --surface-glass-active: rgba(255, 255, 255, 0.07);

  /* Subtle Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(155, 81, 224, 0.4);
  --border-glow: rgba(255, 122, 0, 0.35);

  /* Brand Accents (Derived from official Decode emblem) */
  --brand-orange: #FF7A00;
  --brand-coral: #FF4D6D;
  --brand-purple: #9B51E0;
  --brand-blue: #3B82F6;
  --brand-cyan: #38BDF8;
  --brand-emerald: #10B981;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #FF7A00 0%, #FF4D6D 45%, #9B51E0 100%);
  --gradient-brand-subtle: linear-gradient(135deg, rgba(255, 122, 0, 0.12) 0%, rgba(255, 77, 109, 0.12) 50%, rgba(155, 81, 224, 0.12) 100%);
  --gradient-text: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
  --gradient-glow-orb: radial-gradient(circle, rgba(155, 81, 224, 0.18) 0%, rgba(56, 189, 248, 0.08) 45%, transparent 70%);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Text Colors */
  --text-white: #FFFFFF;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-dark: #0F172A;

  /* Shadows & Depth */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 12px 36px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-subtle);
  --shadow-card-hover: 0 20px 48px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(155, 81, 224, 0.2), 0 0 0 1px var(--border-medium);
  --shadow-glow: 0 0 40px rgba(155, 81, 224, 0.25);
  --shadow-glow-cyan: 0 0 40px rgba(56, 189, 248, 0.2);

  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Transitions */
  --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-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Selection */
::selection {
  background-color: rgba(155, 81, 224, 0.4);
  color: #FFFFFF;
}

/* Background Atmospheric Grid & Subtle Ambient Glow */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(155, 81, 224, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 85% 35%, rgba(56, 189, 248, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 15% 75%, rgba(255, 122, 0, 0.03) 0%, transparent 50%),
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  z-index: 0;
}

/* Typography Presets */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

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

/* Section Shared Layout */
.section {
  padding: 8rem 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 4.5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-cyan);
  margin-bottom: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.section-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-cyan);
  box-shadow: 0 0 10px var(--brand-cyan);
  animation: pulseDot 2.2s infinite ease-in-out;
}

.section-title {
  font-size: 2.85rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #FFFFFF 0%, #D1D5DB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Gradient Text Utility */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #38BDF8 0%, #9B51E0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: #FFFFFF;
  color: var(--bg-darkest);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #F8FAFC;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.3), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-medium);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-brand {
  background: var(--gradient-brand);
  color: #FFFFFF;
  box-shadow: 0 0 30px rgba(255, 77, 109, 0.3);
}

.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(155, 81, 224, 0.45);
}

.btn-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* Reveal Animations on Scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Micro keyframes */
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes flowPulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.6; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
