/* ════════════════════════════════════════════════════
   TIRESIAN RESEARCH — style.css
   ════════════════════════════════════════════════════ */

/* ── RESET & TOKENS ──────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colours */
  --bg-base:        #090d24;
  --bg-elevated:    #0f1535;
  --bg-card:        #111a3d;
  --bg-card-hover:  #152148;
  --bg-panel:       #0c1130;

  --blue:           #0080ff;
  --indigo:         #7c3aed;
  --blue-light:     #3da5ff;
  --indigo-light:   #9f6ef5;

  --text-primary:   #ffffff;
  --text-secondary: #a0aec0;
  --text-muted:     #5a6a8a;

  --border:         rgba(255,255,255,0.07);
  --border-accent:  rgba(0,128,255,0.25);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #0080ff 0%, #7c3aed 100%);
  --grad-subtle: linear-gradient(135deg, rgba(0,128,255,0.12) 0%, rgba(124,58,237,0.12) 100%);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --section-y: 120px;
  --container: 1200px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── UTILITIES ───────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 64px;
}

/* ── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-20px) scale(1.03); }
}

@keyframes scrollCue {
  0%   { transform: translateY(0); opacity: 1; }
  75%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@keyframes lineGrow {
  from { width: 0; }
  to   { width: 100%; }
}

/* Progressive enhancement: content visible by default.
   JS adds 'js' to <html>, then IntersectionObserver reveals elements. */
.fade-up {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .fade-up {
  opacity: 0;
  transform: translateY(28px);
}

.js .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.19s; }

.delay-0 { transition-delay: 0.0s; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.32s; }
.delay-4 { transition-delay: 0.44s; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.25s var(--ease);
  position: relative;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(0,128,255,0.3), 0 4px 24px rgba(0,128,255,0.2);
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(0,128,255,0.5), 0 8px 32px rgba(0,128,255,0.35);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--border-accent);
}

.btn-outline:hover {
  background: rgba(0,128,255,0.08);
  border-color: var(--blue);
}

.btn-full { width: 100%; justify-content: center; }

/* ── NAVIGATION ──────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(9, 13, 36, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon { flex-shrink: 0; }

.logo-text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav-cta {
  display: block;
  padding: 9px 18px;
  color: var(--blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-accent);
  border-radius: 7px;
  margin-left: 8px;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: rgba(0,128,255,0.1);
  border-color: var(--blue);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── HERO ────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,128,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(124,58,237,0.06) 0%, transparent 60%),
    linear-gradient(to bottom, transparent 60%, var(--bg-base) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px 24px 80px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,128,255,0.1);
  border: 1px solid rgba(0,128,255,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--blue-light);
  margin-bottom: 32px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: badgePulse 2.4s ease-in-out infinite;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.hero-scroll-cue span {
  width: 3px;
  height: 8px;
  background: var(--blue);
  border-radius: 100px;
  animation: scrollCue 2s ease-in-out infinite;
}

/* ── FEATURED INSIGHT ────────────────────────────── */
.featured {
  padding: var(--section-y) 0;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-brand);
}

.featured-card:hover {
  border-color: rgba(0,128,255,0.2);
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.featured-tag {
  background: rgba(0,128,255,0.12);
  color: var(--blue-light);
  border: 1px solid rgba(0,128,255,0.2);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.featured-date {
  font-size: 13px;
  color: var(--text-muted);
}

.featured-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.break-desktop { display: block; }

.featured-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.featured-chart {
  flex-shrink: 0;
}

.sparkline {
  width: 100%;
  height: auto;
  opacity: 0.8;
}

.sparkline-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawLine 2s var(--ease) 0.5s forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* ── SERVICES ────────────────────────────────────── */
.services {
  padding: var(--section-y) 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.service-card {
  background: var(--bg-elevated);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.service-card:hover {
  background: var(--bg-card-hover);
}

.service-card:hover .service-line {
  animation: lineGrow 0.5s var(--ease) forwards;
}

.service-icon {
  margin-bottom: 28px;
  color: var(--blue);
}

.service-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.service-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--grad-brand);
}

/* ── METHODOLOGY ─────────────────────────────────── */
.methodology {
  padding: var(--section-y) 0;
  background: var(--bg-base);
  position: relative;
}

.methodology::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0,128,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.framework-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding: 8px 0 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.framework-step {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

.framework-step:hover {
  border-color: rgba(0,128,255,0.3);
  transform: translateY(-4px);
}

.framework-connector {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 8px;
  margin-top: 48px;
}

.step-icon {
  color: var(--blue);
  margin-bottom: 12px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.step-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── LIBRARY ─────────────────────────────────────── */
.library {
  padding: var(--section-y) 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
}

.library-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.research-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  cursor: default;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}

.research-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(0,128,255,0.3);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

.research-card:hover .card-read {
  opacity: 1;
  color: var(--blue);
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(0,128,255,0.1);
  border: 1px solid rgba(0,128,255,0.15);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.card-date {
  font-size: 12px;
  color: var(--text-muted);
}

.card-read {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.4;
  transition: opacity 0.3s, color 0.3s;
}

.library-footer {
  text-align: center;
}

/* ── DIFFERENTIATORS ─────────────────────────────── */
.differentiators {
  padding: var(--section-y) 0;
  background: var(--bg-base);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.diff-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.diff-card:hover {
  border-color: rgba(124,58,237,0.3);
  background: var(--bg-card);
  transform: translateY(-4px);
}

.diff-icon {
  color: var(--indigo);
  margin-bottom: 20px;
}

.diff-card:hover .diff-icon { color: var(--indigo-light); }

.diff-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.diff-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── ABOUT ───────────────────────────────────────── */
.about {
  padding: var(--section-y) 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.about-lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.about-statements {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-statement {
  display: flex;
  gap: 16px;
}

.statement-mark {
  color: var(--blue);
  font-size: 18px;
  font-weight: 300;
  flex-shrink: 0;
  line-height: 1.5;
}

.about-statement p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.about-visual {
  position: relative;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.about-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,128,255,0.12) 0%, rgba(124,58,237,0.08) 50%, transparent 70%);
  animation: orbFloat 6s ease-in-out infinite;
}

.about-orb::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0,128,255,0.15);
}

.about-orb::after {
  content: '';
  position: absolute;
  inset: 50px;
  border-radius: 50%;
  border: 1px solid rgba(124,58,237,0.2);
}

.about-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

.about-stats {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  gap: 24px;
  justify-content: space-around;
  background: rgba(9,13,36,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── CONTACT ─────────────────────────────────────── */
.contact {
  padding: var(--section-y) 0;
  background: var(--bg-base);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.contact-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.contact-link:hover { color: var(--blue-light); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(0,128,255,0.5);
  box-shadow: 0 0 0 3px rgba(0,128,255,0.1);
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ── FOOTER ──────────────────────────────────────── */
.footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy,
.footer-legal {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── RESPONSIVE ──────────────────────────────────── */

/* Large screens */
@media (max-width: 1100px) {
  .diff-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablets */
@media (max-width: 900px) {
  :root { --section-y: 80px; }

  .services-grid { grid-template-columns: 1fr; }

  .library-grid { grid-template-columns: repeat(2, 1fr); }

  .diff-grid { grid-template-columns: repeat(2, 1fr); }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual { height: 280px; }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-chart { display: none; }

  .library-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --section-y: 64px; }

  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9,13,36,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    z-index: 99;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; text-align: center; }

  .nav-link, .nav-cta {
    display: block;
    padding: 14px;
    font-size: 18px;
    margin: 0;
  }

  .nav-toggle { display: flex; }

  .hero-headline { font-size: clamp(40px, 11vw, 64px); }

  .hero-content { padding-top: 100px; }

  .hero-metrics { gap: 16px; }
  .metric-value { font-size: 22px; }

  .featured-card { padding: 28px 20px; }

  .framework-flow { gap: 4px; }
  .framework-step { min-width: 140px; padding: 24px 12px; }
  .framework-connector { display: none; }

  .library-grid { grid-template-columns: 1fr; }

  .diff-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .break-desktop { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .sparkline-line,
  .badge-dot,
  .about-orb,
  .hero-scroll-cue span {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  html { scroll-behavior: auto; }
}
