/* ==========================================================================
   AI ATLAS — Modern Design System & Design Tokens (Dark & Light Theme)
   ========================================================================== */

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

:root {
  /* Dark Theme Tokens (Default) */
  --bg-primary: #080c14;
  --bg-secondary: #0e1422;
  --bg-card: rgba(16, 24, 40, 0.75);
  --bg-card-hover: rgba(23, 34, 56, 0.9);
  --bg-surface: rgba(255, 255, 255, 0.03);
  --bg-input: rgba(10, 16, 28, 0.85);

  --text-primary: #f0f6fc;
  --text-secondary: #8b9bb4;
  --text-muted: #5e718d;

  --accent-cyan: #00f2d5;
  --accent-teal: #08a391;
  --accent-teal-glow: rgba(0, 242, 213, 0.25);
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(0, 242, 213, 0.3);
  --border-highlight: rgba(99, 102, 241, 0.4);

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(0, 242, 213, 0.15);
  --shadow-glow-purple: 0 0 35px rgba(99, 102, 241, 0.2);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --glass-bg: rgba(11, 17, 30, 0.82);
  --glass-blur: blur(20px);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

/* Light Theme Tokens */
[data-theme="light"] {
  --bg-primary: #f5f9f8;
  --bg-secondary: #e9f2f0;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-surface: rgba(0, 0, 0, 0.02);
  --bg-input: #ffffff;

  --text-primary: #0c1e24;
  --text-secondary: #4a636c;
  --text-muted: #78909c;

  --accent-cyan: #059683;
  --accent-teal: #087d75;
  --accent-teal-glow: rgba(8, 125, 117, 0.15);
  --accent-blue: #2563eb;
  --accent-indigo: #4f46e5;
  --accent-purple: #7e22ce;
  --accent-amber: #d97706;
  --accent-emerald: #059669;
  --accent-rose: #e11d48;

  --border-subtle: rgba(15, 70, 67, 0.12);
  --border-accent: rgba(8, 125, 117, 0.35);
  --border-highlight: rgba(79, 70, 229, 0.3);

  --shadow-sm: 0 4px 20px rgba(15, 70, 67, 0.06);
  --shadow-lg: 0 16px 45px rgba(15, 70, 67, 0.12);
  --shadow-glow: 0 0 30px rgba(8, 125, 117, 0.1);
  --shadow-glow-purple: 0 0 30px rgba(79, 70, 229, 0.08);

  --glass-bg: rgba(245, 249, 248, 0.88);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 85% 12%, var(--accent-teal-glow), transparent 32rem),
    radial-gradient(circle at 15% 45%, rgba(99, 102, 241, 0.08), transparent 28rem),
    radial-gradient(circle at 75% 85%, rgba(168, 85, 247, 0.06), transparent 30rem);
  background-attachment: fixed;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  filter: brightness(1.15);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Layout Container */
.wrap {
  width: 100%;
  max-width: 1340px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

section {
  padding: 70px 0;
  position: relative;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-head .head-content {
  max-width: 720px;
}

.section-head h2 {
  margin-top: 6px;
  margin-bottom: 8px;
}

.section-head p {
  font-size: 1.05rem;
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.eyebrow::before {
  content: "✦";
  font-size: 0.9em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
