/* ============================================================
   VALIDORA — Shared design system
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #0A0C10;
  --bg-elevated: #0F1218;
  --bg-strip: #07090D;

  /* Text */
  --text: #F9FAFB;
  --text-body: #9CA3AF;
  --text-muted: #6B7280;
  --text-dim: #4B5563;

  /* Accents */
  --violet: #7C3AED;
  --violet-light: #A78BFA;
  --violet-deep: #5B21B6;
  --indigo: #6366F1;
  --cyan: #06B6D4;
  --emerald: #10B981;
  --rose: #F43F5E;
  --amber: #F59E0B;

  /* Glass */
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-strong: rgba(255, 255, 255, 0.14);

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-3xl: 28px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* ------------- Layout ------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-tight { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.container-prose { max-width: 760px; margin: 0 auto; padding: 0 24px; }

section {
  position: relative;
  padding: 120px 0;
}
@media (max-width: 768px) {
  section { padding: 80px 0; }
}

/* ------------- Background grid texture for hero ------------- */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 35%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* ------------- Ambient violet/indigo glows ------------- */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-violet { background: rgba(124, 58, 237, 0.35); }
.glow-indigo { background: rgba(99, 102, 241, 0.28); }
.glow-cyan   { background: rgba(6, 182, 212, 0.22); }
.glow-rose   { background: rgba(244, 63, 94, 0.18); }

/* ------------- Navbar ------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(10, 12, 16, 0.55);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 17px;
  color: var(--text);
}
.brand-mark {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  position: relative;
}
.brand-mark::before {
  content: '';
  position: absolute; inset: 0;
  background: conic-gradient(from 210deg, #A78BFA, #7C3AED, #4F46E5, #A78BFA);
  border-radius: 6px;
  filter: blur(6px);
  opacity: 0.7;
}
.brand-mark svg { position: relative; z-index: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: 14px;
  color: var(--text-body);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text); }
.nav-mobile-toggle { display: none; }
@media (max-width: 720px) {
  .nav-link.hide-sm { display: none; }
}

/* ------------- Buttons ------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: all 0.18s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-lg {
  height: 50px;
  padding: 0 26px;
  font-size: 15.5px;
  font-weight: 500;
}
.btn-violet {
  background: linear-gradient(180deg, #8B5CF6 0%, #7C3AED 100%);
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 1px 0 rgba(0,0,0,0.4),
    0 8px 24px -8px rgba(124, 58, 237, 0.6);
}
.btn-violet:hover {
  background: linear-gradient(180deg, #9F75F9 0%, #8B5CF6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 1px 0 rgba(0,0,0,0.4),
    0 10px 28px -8px rgba(124, 58, 237, 0.75);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}
.btn-cyan-outline {
  border: 1px solid rgba(6, 182, 212, 0.45);
  color: #67E8F9;
  background: rgba(6, 182, 212, 0.06);
}
.btn-cyan-outline:hover {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.65);
}

/* ------------- Eyebrow / pill ------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #C4B5FD;
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-radius: 999px;
}
.eyebrow .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--violet-light);
  box-shadow: 0 0 8px var(--violet-light);
}

/* ------------- Typography ------------- */
.h1 {
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
  color: var(--text);
}
.h2 {
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--text-body);
  letter-spacing: -0.005em;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-light);
}
.text-gradient-violet {
  background: linear-gradient(90deg, #C4B5FD, #A78BFA 50%, #818CF8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------- Glass card ------------- */
.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-2xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card-hover:hover {
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.06), 0 24px 60px -30px rgba(124, 58, 237, 0.35);
}

/* ------------- Footer ------------- */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0 28px;
  margin-top: 60px;
  position: relative;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-tag {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 320px;
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-body);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-base {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 8px;
}

/* ------------- Utility ------------- */
.muted { color: var(--text-muted); }
.body-text { color: var(--text-body); }
.violet-text { color: var(--violet-light); }
.cyan-text { color: #67E8F9; }
.emerald-text { color: #34D399; }
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; } .mt-6 { margin-top: 64px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; } .mb-6 { margin-bottom: 64px; }

/* For section heads */
.section-head {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 720px;
}
.section-head .kicker { margin-bottom: 14px; display: inline-block; }
.section-head .h2 { margin-bottom: 14px; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
