/* VetraRun landing — design tokens from README.md */
:root {
  --bg: #151515;
  --surface: #242424;
  --lime: #B7FF38;
  --lavender: #DFA8ED;
  --sage: #C9D7A2;
  --gray: #A8A8A8;
  --text: #F4F4F2;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(36, 36, 36, 0.72);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1120px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 6vw, 4.25rem); font-weight: 750; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

a { color: var(--lime); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--lime); color: var(--bg); padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Header — glass with solid fallback */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 21, 21, 0.96);
  border-bottom: 1px solid var(--border);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(21, 21, 21, 0.7);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
  }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand-mark { width: 32px; height: 32px; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: inline-block; padding: 10px 12px; color: var(--gray); text-decoration: none; border-radius: 10px; font-size: 0.95rem; }
.nav-list a:hover { color: var(--text); background: var(--surface); }
@media (max-width: 520px) { .nav-list li:not(:last-child) { display: none; } }

/* Hero */
.hero { position: relative; padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 9vw, 110px); overflow: hidden; }
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; max-width: 760px; aspect-ratio: 1;
  background:
    radial-gradient(circle at 30% 30%, rgba(183, 255, 56, 0.22), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(223, 168, 237, 0.18), transparent 60%);
  filter: blur(40px);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-6%, 4%, 0) scale(1.08); } }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--sage); font-size: 0.875rem; font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(183, 255, 56, 0.18); }
.accent { color: var(--lime); }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #D6D6D2; max-width: 680px; margin-top: 8px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn-primary { background: var(--lime); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); background: #C8FF66; }
.btn-ghost { color: var(--text); border: 1px solid rgba(255, 255, 255, 0.18); }
.btn-ghost:hover { background: var(--surface); }
.fineprint { color: var(--gray); font-size: 0.9rem; }

/* Sections */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(36, 36, 36, 0.5) 20%, rgba(36, 36, 36, 0.5) 80%, transparent); }
.section-lead { color: var(--gray); margin-bottom: 32px; }

.card-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
@media (min-width: 560px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(183, 255, 56, 0.35); transform: translateY(-2px); }
.card h3 { color: var(--text); }
.card p { color: var(--gray); margin: 0; font-size: 0.975rem; }

.principles { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 880px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principles li { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); }
.principles h3 { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.principles p { color: var(--gray); margin: 0; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bg); }
.tag-lime { background: var(--lime); }
.tag-lavender { background: var(--lavender); }
.tag-sage { background: var(--sage); }

.contact-list { display: grid; gap: 16px; margin: 24px 0 0; }
@media (min-width: 720px) { .contact-list { grid-template-columns: 1fr 1fr; } }
.contact-list div { background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.contact-list dt { color: var(--gray); font-size: 0.9rem; margin-bottom: 4px; }
.contact-list dd { margin: 0; font-size: 1.15rem; font-weight: 650; overflow-wrap: anywhere; }

.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--gray); font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.footer-inner p { margin: 0; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }

/* Accessibility preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card:hover, .btn-primary:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .card { background: var(--surface); }
  .hero-glow { display: none; }
}
@media (prefers-contrast: more) {
  :root { --gray: #D0D0D0; --border: rgba(255, 255, 255, 0.35); }
}
@media (forced-colors: active) {
  .btn, .card, .badge { border: 1px solid CanvasText; }
}
