/* =========================================================
   Velo AI — Brand tokens & base
   2026 SaaS visual language: high contrast, generous space,
   subtle gradients, real product UI in-lining, dark/light.
   ========================================================= */

:root {
  /* Brand */
  --brand-50:  #eef5ff;
  --brand-100: #dbeaff;
  --brand-200: #bcd7ff;
  --brand-300: #8fbcff;
  --brand-400: #5e9dff;
  --brand-500: #1a6fff;   /* primary */
  --brand-600: #1458d4;
  --brand-700: #1147ab;
  --brand-800: #0e3a8c;
  --brand-900: #0d2f6e;

  --accent-500: #00d4aa;  /* cyan accent for gradients */
  --accent-600: #00b894;
  --accent-glow: rgba(26, 111, 255, 0.35);

  /* Neutrals (light) */
  --ink-0:   #ffffff;
  --ink-50:  #f8fafc;
  --ink-100: #f1f5f9;
  --ink-200: #e2e8f0;
  --ink-300: #cbd5e1;
  --ink-400: #94a3b8;
  --ink-500: #64748b;
  --ink-600: #475569;
  --ink-700: #334155;
  --ink-800: #1e293b;
  --ink-900: #0f172a;
  --ink-950: #020617;

  /* Semantic */
  --bg:        var(--ink-50);
  --bg-elev:   var(--ink-0);
  --surface:   var(--ink-0);
  --border:    var(--ink-200);
  --text:      var(--ink-900);
  --text-mute: var(--ink-500);
  --link:      var(--brand-600);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.15), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 0 1px rgba(26, 111, 255, 0.15), 0 12px 32px -4px rgba(26, 111, 255, 0.25);

  /* Type */
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Syne", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-full: 999px;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  /* Layout */
  --container: 1200px;
  --container-narrow: 920px;
  --nav-h: 68px;
}

/* Dark mode tokens (toggled via [data-theme="dark"] on <html>) */
[data-theme="dark"] {
  --bg:        #07090f;
  --bg-elev:   #0b0f1a;
  --surface:   #0e1422;
  --border:    #1f2937;
  --text:      #e6ebf5;
  --text-mute: #94a3b8;
  --link:      #8fbcff;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 48px -8px rgba(0, 0, 0, 0.6), 0 8px 16px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 0 1px rgba(26, 111, 255, 0.35), 0 12px 48px -4px rgba(26, 111, 255, 0.35);
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "ss03";
}

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

a { color: var(--link); text-decoration: none; transition: color 160ms ease; }
a:hover { color: var(--brand-700); }

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; color: var(--text); }
h1 { font-weight: 700; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }
h4 { font-weight: 600; }
p { margin: 0; color: var(--text); }

button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font-family: inherit; }

/* Reusable layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); }
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
}
[data-theme="dark"] .eyebrow { background: rgba(26, 111, 255, 0.12); border-color: rgba(26, 111, 255, 0.25); color: var(--brand-300); }

/* Section title */
.section-title {
  text-align: center;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 16px 0 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-mute);
  font-size: clamp(16px, 1.4vw, 18px);
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head { text-align: center; margin-bottom: 56px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: all 180ms ease;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn-lg { height: 50px; padding: 0 22px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }

.btn-primary {
  background: var(--ink-900);
  color: var(--ink-0);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--ink-800); color: var(--ink-0); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
[data-theme="dark"] .btn-primary { background: var(--ink-0); color: var(--ink-900); }
[data-theme="dark"] .btn-primary:hover { background: #e6ebf5; }

.btn-brand {
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-500) 100%);
  color: var(--ink-0);
  box-shadow: var(--shadow-glow);
}
.btn-brand:hover { color: var(--ink-0); transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(26, 111, 255, 0.3), 0 16px 40px -4px rgba(26, 111, 255, 0.4); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--ink-100); }
[data-theme="dark"] .btn-ghost:hover { background: var(--surface); }

.btn .arrow { transition: transform 180ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: all 220ms ease;
}
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
[data-theme="dark"] .card-hover:hover { border-color: var(--brand-400); }

/* Gradient text */
.gradient-text {
  background: linear-gradient(120deg, var(--brand-600) 0%, var(--accent-500) 50%, var(--brand-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Subtle background grid for hero */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}
[data-theme="dark"] .bg-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

/* Utility */
.muted { color: var(--text-mute); }
.center { text-align: center; }
.relative { position: relative; }
.hide-mobile { display: initial; }
.show-mobile { display: none; }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: initial; }
  :root { --nav-h: 60px; }
}

/* Focus rings */
:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection */
::selection { background: var(--brand-200); color: var(--ink-900); }
[data-theme="dark"] ::selection { background: var(--brand-700); color: var(--ink-0); }
