/* ==========================================================================
   Data Version - Marketing Website Styles
   Inspired by: Dayos clean aesthetic + Linear/Raycast developer feel
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Light Mode */
  --color-bg-primary: #f7f7f7;
  --color-bg-secondary: #ffffff;
  --color-bg-tertiary: #ebebeb;
  --color-bg-code: #1a1a2e;

  --color-text-primary: #0a0a0a;
  --color-text-secondary: #525252;
  --color-text-tertiary: #737373;
  --color-text-inverse: #fafafa;

  --color-accent-primary: #6366f1;    /* Indigo - primary brand */
  --color-accent-secondary: #8b5cf6;  /* Purple - secondary */
  --color-accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);

  --color-border: #e5e5e5;
  --color-border-subtle: #f0f0f0;

  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
  --font-display: 'Inter', var(--font-sans);

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  /* Font Sizes - Fluid Typography */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);
  --text-6xl: clamp(3.75rem, 2.5rem + 6.25vw, 6rem);

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 40px -10px rgb(99 102 241 / 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Z-Index Scale */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 400;
  --z-tooltip: 500;

  /* Layout */
  --container-max: 1280px;
  --container-padding: var(--space-6);
  --nav-height: 4rem;
  --section-spacing: var(--space-24);
}

/* Dark Mode */
[data-theme="dark"] {
  --color-bg-primary: #0a0a0f;
  --color-bg-secondary: #111118;
  --color-bg-tertiary: #1a1a24;
  --color-bg-code: #0d0d14;

  --color-text-primary: #fafafa;
  --color-text-secondary: #a3a3a3;
  --color-text-tertiary: #737373;
  --color-text-inverse: #0a0a0a;

  --color-border: #262630;
  --color-border-subtle: #1f1f28;

  --shadow-glow: 0 0 60px -10px rgb(99 102 241 / 0.4);
}

/* System preference detection */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg-primary: #0a0a0f;
    --color-bg-secondary: #111118;
    --color-bg-tertiary: #1a1a24;
    --color-bg-code: #0d0d14;

    --color-text-primary: #fafafa;
    --color-text-secondary: #a3a3a3;
    --color-text-tertiary: #737373;
    --color-text-inverse: #0a0a0a;

    --color-border: #262630;
    --color-border-subtle: #1f1f28;

    --shadow-glow: 0 0 60px -10px rgb(99 102 241 / 0.4);
  }
}

/* --------------------------------------------------------------------------
   Base Reset & Defaults
   -------------------------------------------------------------------------- */
*, *::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;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  min-height: 100vh;
}

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

h1 { font-size: var(--text-5xl); font-weight: var(--font-weight-black); }
h2 { font-size: var(--text-4xl); font-weight: var(--font-weight-extrabold); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  color: var(--color-text-secondary);
  max-width: 65ch;
}

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

a:hover {
  color: var(--color-accent-secondary);
}

code, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  background: var(--color-bg-tertiary);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
}

pre {
  background: var(--color-bg-code);
  color: var(--color-text-inverse);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
}

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

/* --------------------------------------------------------------------------
   Layout Components
   -------------------------------------------------------------------------- */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0;
}

@media (max-width: 768px) {
  .container {
    width: 94%;
    padding: 0 var(--space-4);
  }
}

.section {
  padding: var(--section-spacing) 0;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-fixed);
  width: calc(100% - var(--space-8));
  max-width: 900px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  text-decoration: none;
}

.nav-logo img,
.nav-logo svg {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-tertiary);
}

.nav-link.active {
  color: var(--color-text-primary);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-primary);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: var(--space-2);
    padding: var(--space-4);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
  }

  .nav-toggle {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-primary {
  color: var(--color-text-inverse);
  background: var(--color-text-primary);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--color-accent-primary);
  color: #ffffff;
}

.btn-secondary {
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--color-bg-tertiary);
  border-color: var(--color-accent-primary);
  box-shadow: var(--shadow-md);
  color: var(--color-accent-primary);
}

.btn-accent {
  color: white;
  background: var(--color-accent-gradient);
  box-shadow: var(--shadow-glow);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px -10px rgb(99 102 241 / 0.5);
  color: #ffffff;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-16);
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.hero-content {
  flex: 0 0 auto;
  max-width: 420px;
}

.hero-title {
  margin-bottom: var(--space-6);
}

.hero-tagline {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.hero-subtext {
  font-size: var(--text-base);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-8);
  max-width: 380px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero-visual {
  flex: 1;
  min-width: 0;
}

@media (max-width: 900px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-visual {
    width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   IDE Mockup (Hero Visual) - Copied from prototype
   -------------------------------------------------------------------------- */
.hero-visual {
  position: relative;
  perspective: 1200px;
}

.ide-mockup {
  perspective: 1200px;
  position: relative;
}

/* Backlight glow effect behind IDE */
.ide-mockup::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
  width: 166%;
  height: 180%;
  background: radial-gradient(
    ellipse at center,
    rgba(99, 102, 241, 0.12) 0%,
    rgba(139, 92, 246, 0.10) 15%,
    transparent 62%
  );
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

[data-theme="dark"] .ide-mockup::before {
  background: radial-gradient(
    ellipse at center,
    rgba(99, 102, 241, 0.25) 0%,
    rgba(139, 92, 246, 0.21) 15%,
    transparent 62%
  );
}

.ide-window {
  background: var(--color-bg-code);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: rotateY(-3deg) rotateX(3deg);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.ide-window:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

/* IDE Header */
.ide-header {
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  width: 24px;
  height: 24px;
}

.header-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.header-right {
  display: flex;
  align-items: center;
}

.version-badge {
  font-size: 11px;
  color: var(--color-text-secondary);
  background: var(--color-bg-tertiary);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  font-weight: 500;
}

/* IDE Main Layout */
.ide-main {
  display: grid;
  grid-template-columns: 48px 200px 1fr;
  height: 442px;
}

/* Left Icon Panel */
.ide-left-panel {
  background: var(--color-bg-secondary);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.icon-button:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

.icon-button.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-accent-primary);
}

[data-theme="dark"] .icon-button {
  color: #a3a3a3;
}

[data-theme="dark"] .icon-button:hover {
  color: #fafafa;
}

.spacer {
  flex: 1;
  min-height: 20px;
}

/* Catalog Panel */
.catalog-panel {
  background: var(--color-bg-secondary);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.catalog-header {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  letter-spacing: 0.05em;
}

.catalog-tree {
  padding: 8px 0;
  overflow-y: auto;
  flex: 1;
}

.tree-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tree-item:hover {
  background: var(--color-bg-tertiary);
}

.tree-item.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-accent-primary);
}

.tree-item.nested {
  padding-left: 24px;
}

.tree-item.nested-2 {
  padding-left: 36px;
  opacity: 0.85;
}

.tree-item.nested-3 {
  padding-left: 48px;
  opacity: 0.7;
}

.tree-item svg {
  opacity: 0.7;
  flex-shrink: 0;
}

/* Editor Area */
.editor-area {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-secondary);
}

[data-theme="dark"] .editor-area {
  background: var(--color-bg-code);
}

/* IDE Header Logo - invert in dark mode */
[data-theme="dark"] .header-logo {
  filter: invert(1);
}

/* IDE panels theme-aware backgrounds */
[data-theme="dark"] .ide-header {
  background: #111118;
}

[data-theme="dark"] .ide-left-panel {
  background: #111118;
}

[data-theme="dark"] .catalog-panel {
  background: #111118;
}

[data-theme="dark"] .query-tabs {
  background: #111118;
}

[data-theme="dark"] .results-header {
  background: #111118;
}

.query-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px 0;
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
}

.query-tab {
  padding: 6px 12px;
  font-size: 13px;
  color: var(--color-text-secondary);
  background: transparent;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: all 0.2s;
}

.query-tab.active {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

[data-theme="dark"] .query-tab.active {
  background: var(--color-bg-code);
}

.editor-toolbar {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
}

[data-theme="dark"] .editor-toolbar {
  background: var(--color-bg-code);
}

.lang-toggle {
  display: flex;
  gap: 2px;
  background: var(--color-bg-secondary);
  border-radius: 6px;
  padding: 2px;
}

.lang-btn {
  padding: 4px 12px;
  font-size: 12px;
  color: var(--color-text-secondary);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

[data-theme="dark"] .lang-btn.active {
  background: var(--color-bg-code);
}

.run-btn {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 5px 14px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.run-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
}

.code-editor {
  font-family: 'JetBrains Mono', var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  padding: 8px 0;
  overflow-y: auto;
  flex: 0.65;
  min-height: 0;
}

/* Results Section */
.results-section {
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  flex: 1.15;
  min-height: 0;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--color-bg-secondary);
}

.result-tab {
  padding: 6px 12px;
  font-size: 13px;
  color: var(--color-text-primary);
  font-weight: 500;
}

.save-table-btn {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.save-table-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
}

.results-grid {
  flex: 1;
  overflow: auto;
  padding: 12px;
}

/* Thin scrollbar styling */
.results-grid::-webkit-scrollbar,
.code-editor::-webkit-scrollbar,
.catalog-tree::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.results-grid::-webkit-scrollbar-track,
.code-editor::-webkit-scrollbar-track,
.catalog-tree::-webkit-scrollbar-track {
  background: transparent;
}

.results-grid::-webkit-scrollbar-thumb,
.code-editor::-webkit-scrollbar-thumb,
.catalog-tree::-webkit-scrollbar-thumb {
  background: #000000;
  border-radius: 3px;
}

.results-grid::-webkit-scrollbar-thumb:hover,
.code-editor::-webkit-scrollbar-thumb:hover,
.catalog-tree::-webkit-scrollbar-thumb:hover {
  background: #333333;
}

[data-theme="dark"] .results-grid::-webkit-scrollbar-thumb,
[data-theme="dark"] .code-editor::-webkit-scrollbar-thumb,
[data-theme="dark"] .catalog-tree::-webkit-scrollbar-thumb {
  background: #666666;
}

[data-theme="dark"] .results-grid::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] .code-editor::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] .catalog-tree::-webkit-scrollbar-thumb:hover {
  background: #888888;
}

.results-grid table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-family: 'JetBrains Mono', var(--font-mono);
}

.results-grid th {
  text-align: left;
  padding: 6px 10px;
  background: var(--color-bg-secondary);
  border-bottom: 2px solid var(--color-border);
  font-weight: 600;
  color: var(--color-text-primary);
}

.results-grid td {
  padding: 5px 10px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.results-grid tbody tr:hover {
  background: var(--color-bg-tertiary);
}

/* Code line styling */
.code-line {
  padding: 0 12px;
  display: flex;
  gap: 0;
}

.line-num {
  color: var(--color-text-tertiary);
  user-select: none;
  min-width: 20px;
  text-align: right;
  margin-right: 12px;
}

.indent {
  display: inline-block;
  width: 2em;
}

/* Light mode syntax colors */
.keyword { color: #7c3aed; font-weight: 600; }
.function { color: #2563eb; }
.string { color: #059669; }
.variable { color: #ea580c; }

/* Dark mode syntax colors */
[data-theme="dark"] .keyword { color: #c792ea; }
[data-theme="dark"] .function { color: #82aaff; }
[data-theme="dark"] .string { color: #c3e88d; }
[data-theme="dark"] .variable { color: #f78c6c; }

/* --------------------------------------------------------------------------
   Problem Section
   -------------------------------------------------------------------------- */
.problems {
  background: var(--color-bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.problem-card {
  padding: var(--space-8);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.problem-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-4);
  background: rgba(245, 158, 11, 0.1);
  border-radius: var(--radius-lg);
  color: var(--color-warning);
}

.problem-card h3 {
  margin-bottom: var(--space-3);
}

/* --------------------------------------------------------------------------
   Solution Section
   -------------------------------------------------------------------------- */
.solution {
  background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .solution-grid {
    grid-template-columns: 1fr;
  }
}

.solution-item {
  padding: var(--space-8);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.solution-item:hover {
  border-color: var(--color-accent-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.solution-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-4);
  background: var(--color-accent-gradient);
  border-radius: var(--radius-lg);
  color: white;
}

.solution-item h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-lg);
}

.solution-item p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

.solution-item p strong {
  color: var(--color-accent-primary);
}

.code-example {
  display: block;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-code);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-inverse);
}

/* --------------------------------------------------------------------------
   Features Section
   -------------------------------------------------------------------------- */
.features {
  background: var(--color-bg-primary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}

.feature-card {
  padding: var(--space-8);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--color-accent-primary);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  background: var(--color-accent-gradient);
  border-radius: var(--radius-lg);
  color: white;
}

.feature-card h3 {
  margin-bottom: var(--space-3);
}

/* --------------------------------------------------------------------------
   Persona/Solution Section
   -------------------------------------------------------------------------- */
.personas {
  background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .persona-grid {
    grid-template-columns: 1fr;
  }
}

.persona-card {
  position: relative;
  padding: var(--space-8);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.persona-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.persona-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.persona-card:hover::before {
  opacity: 1;
}

.persona-role {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent-primary);
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-full);
}

.persona-headline {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.persona-card p {
  font-size: var(--text-sm);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
  background: var(--color-bg-tertiary);
}

.cta-section .section-title {
  color: var(--color-text-primary);
}

.cta-section .section-subtitle {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

/* Download Grid */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .download-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

.download-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
}

.download-card:hover {
  border-color: var(--color-accent-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.download-card h4 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.download-card p {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.download-card .btn {
  width: 100%;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact-section {
  background: var(--color-bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 900px;
  margin: var(--space-8) auto 0;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
}

.contact-card:hover {
  border-color: var(--color-accent-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.contact-card svg {
  color: var(--color-accent-primary);
  margin-bottom: var(--space-4);
}

.contact-card h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.contact-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: var(--space-16) 0 var(--space-8);
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

.footer-brand {
  max-width: 280px;
}

.footer-brand p {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
}

.footer-nav h4 {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-4);
  color: var(--color-text-primary);
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: var(--space-2);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social a {
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fade-in 0.6s ease forwards;
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease forwards;
}

/* Staggered delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Scroll reveal - elements start hidden */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
