/* ============================================
   AHRIAI — LUXURY DEEP TECH
   Instrument Serif + Manrope + JetBrains Mono
   Midnight Purple + White + Red + Gold
   ============================================ */

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

:root {
  --black:     #0A0812;
  --surface:   #110F1A;
  --elevated:  #161322;
  --border:    #241F35;
  --muted:     #3D3554;
  --dim:       #6E6588;
  --text-2:    #9D95B0;
  --text-1:    #CCC6D8;
  --ivory:     #EDE9F2;
  --white:     #FAFAFE;
  --accent:    #D4263E;
  --accent-dim:#B51E34;
  --accent-bg: rgba(212, 38, 62, 0.07);
  --accent-glow: rgba(212, 38, 62, 0.18);
  --gold:      #D4A840;
  --gold-dim:  #B8922E;
  --gold-bg:   rgba(212, 168, 64, 0.08);
  --serif:     'Instrument Serif', Georgia, serif;
  --sans:      'Manrope', -apple-system, sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

::selection {
  background: rgba(212, 38, 62, 0.3);
  color: var(--white);
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== GRAIN OVERLAY ===== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.5s var(--ease);
}

.nav.scrolled {
  padding: 12px 0;
  background: rgba(6, 6, 11, 0.88);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--white);
}

.logo-ai {
  color: var(--accent);
}

.logo-mark {
  width: 30px;
  height: 30px;
  color: var(--gold);
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.01em;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--black);
  background: var(--accent);
  padding: 9px 22px;
  border-radius: 6px;
  transition: all 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212, 38, 62, 0.25);
}

.nav-cta-arrow {
  transition: transform 0.3s var(--ease);
}

.nav-cta:hover .nav-cta-arrow {
  transform: translateX(3px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px 32px 60px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 80%;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(90, 50, 140, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 70% 30%, rgba(212, 38, 62, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 50% 80%, rgba(212, 168, 64, 0.04) 0%, transparent 50%);
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 40px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0; transform: scale(2.5); }
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.hero-title span {
  display: block;
}

.hero-title span:first-child {
  font-family: var(--sans);
  font-weight: 800;
  color: var(--white);
}

.hero-title-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ivory);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto 44px;
  line-height: 1.75;
  font-weight: 400;
}

.hero-sub strong {
  color: var(--accent);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--sans);
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  border-radius: 8px;
}

.btn-primary {
  background: var(--accent);
  color: var(--black);
  box-shadow: 0 0 0 1px rgba(212, 38, 62, 0.3), 0 4px 30px rgba(212, 38, 62, 0.15);
}

.btn-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(248,248,245,0.3), 0 8px 40px rgba(212, 38, 62, 0.2);
}

.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

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

.btn-outline:hover {
  border-color: var(--dim);
  color: var(--white);
  background: rgba(255,255,255,0.03);
}

/* HERO METRICS */
.hero-metrics {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.metric { text-align: center; }

.metric-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.counter {
  font-family: var(--sans);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.metric-unit {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--gold);
}

.metric-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-top: 8px;
}

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

/* ===== MARQUEE ===== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: var(--surface);
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

.marquee-track span {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
  white-space: nowrap;
  padding: 0 12px;
}

.marquee-sep {
  color: var(--muted) !important;
  opacity: 0.4;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== LOGOS ===== */
.logos-section {
  padding: 40px 32px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.logos-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 28px;
}

.logos-row {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  align-items: center;
}

.logos-row span {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  transition: color 0.3s;
}

.logos-row span:hover { color: var(--text-2); }

/* ===== SECTIONS ===== */
.section {
  padding: 140px 0;
  position: relative;
}

.section-alt {
  background: var(--surface);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.section-num {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 0.68rem;
}

.split-header {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 80px;
}

.split-header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}

.split-header p {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.8;
  padding-top: 8px;
}

/* ===== CODE SHOWCASE ===== */
.code-showcase {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 100px;
}

.code-window {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.code-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.4;
}

.code-dots span:first-child  { background: #ff5f57; opacity: 0.7; }
.code-dots span:nth-child(2) { background: #febc2e; opacity: 0.7; }
.code-dots span:last-child   { background: #28c840; opacity: 0.7; }

.code-filename {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--dim);
}

.code-body {
  padding: 28px 24px;
  overflow-x: auto;
}

.code-body code {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 2;
  display: block;
  white-space: pre;
}

.ln  { color: var(--muted); user-select: none; display: inline-block; width: 2.5ch; text-align: right; margin-right: 20px; }
.kw  { color: var(--accent); }
.str { color: var(--gold); }
.num { color: #FFD580; }
.cmt { color: var(--muted); font-style: italic; }

.code-caption h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.code-caption p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.8;
}

/* ===== TECH PILLARS ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.pillar {
  padding: 36px 32px;
  position: relative;
  border-left: 1px solid var(--border);
  transition: background 0.4s var(--ease);
}

.pillar:first-child { border-left: none; }

.pillar:hover {
  background: var(--accent-bg);
}

.pillar-line {
  width: 32px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 24px;
  transition: width 0.4s var(--ease);
}

.pillar:hover .pillar-line {
  width: 48px;
}

.pillar h4 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.pillar p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* ===== BENCHMARKS ===== */
.bench-headline {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.bench-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  margin-bottom: 64px;
}

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

.bench-card {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  transition: border-color 0.3s;
}

.bench-card:hover {
  border-color: var(--muted);
}

.bench-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.bench-model {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
}

.bench-hw {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--dim);
  background: rgba(255,255,255,0.04);
  padding: 4px 10px;
  border-radius: 4px;
}

.bench-comparison {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bench-row {
  display: grid;
  grid-template-columns: 72px 1fr 44px;
  align-items: center;
  gap: 12px;
}

.bench-name {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--dim);
  text-align: right;
  font-family: var(--mono);
}

.bench-bar-wrap {
  height: 28px;
  background: rgba(255,255,255,0.025);
  border-radius: 4px;
  overflow: hidden;
}

.bench-bar {
  height: 100%;
  background: var(--muted);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  width: 0;
  transition: width 1.2s var(--ease);
  min-width: fit-content;
}

.bench-bar span {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ivory);
  white-space: nowrap;
}

.bench-bar-accent {
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
}

.bench-bar-accent span {
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.bench-val {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--dim);
  letter-spacing: 0.03em;
}

.bench-row-ahri .bench-name {
  color: var(--accent);
  font-weight: 600;
}

.bench-note {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 20px;
  font-family: var(--mono);
}

/* ===== PLATFORM STEPS ===== */
.platform-headline {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 72px;
  letter-spacing: -0.02em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.step {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  transition: background 0.4s var(--ease);
  position: relative;
}

.step:last-child { border-right: none; }

.step:hover {
  background: var(--accent-bg);
}

.step-num {
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 28px;
  transition: opacity 0.4s var(--ease);
}

.step:hover .step-num { opacity: 0.5; }

.step h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* ===== RESEARCH PAPERS ===== */
.papers {
  display: flex;
  flex-direction: column;
}

.paper {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.paper:first-child {
  border-top: 1px solid var(--border);
}

.paper:hover {
  padding-left: 16px;
  background: var(--accent-bg);
}

.paper-venue {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.paper h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.5;
}

.paper-authors {
  font-size: 0.78rem;
  color: var(--dim);
  white-space: nowrap;
}

.paper-arrow {
  font-size: 1.1rem;
  color: var(--muted);
  transition: all 0.3s var(--ease);
  opacity: 0;
}

.paper:hover .paper-arrow {
  opacity: 1;
  color: var(--gold);
  transform: translateX(4px);
}

/* ===== TEAM ===== */
.team-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-member {
  padding: 36px 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.4s var(--ease);
}

.team-member:hover {
  border-color: var(--muted);
  background: var(--surface);
}

.member-initials {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 20px;
}

.member-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.member-title {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
  display: block;
  margin-bottom: 14px;
}

.member-info p {
  font-size: 0.82rem;
  color: var(--dim);
  line-height: 1.65;
}

/* ===== CTA ===== */
.section-cta {
  text-align: center;
  padding: 180px 0;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(212, 38, 62, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.cta-headline span:first-child {
  font-family: var(--sans);
  font-weight: 800;
  display: block;
  color: var(--white);
}

.cta-headline-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  display: block;
  color: var(--ivory);
}

.cta-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

.cta-form {
  max-width: 520px;
  margin: 0 auto;
}

.cta-input-wrap {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s;
  background: var(--surface);
}

.cta-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 38, 62, 0.12);
}

.cta-input-wrap input {
  flex: 1;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 0.92rem;
  font-family: var(--sans);
  outline: none;
}

.cta-input-wrap input::placeholder {
  color: var(--dim);
}

.cta-input-wrap button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--accent);
  color: var(--black);
  border: none;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.cta-input-wrap button svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.cta-input-wrap button:hover {
  background: var(--white);
}

.cta-input-wrap button:hover svg {
  transform: translateX(3px);
}

.cta-fine {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 16px;
  letter-spacing: 0.02em;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 32px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  margin-bottom: 56px;
}

.footer-brand p {
  color: var(--dim);
  font-size: 0.82rem;
  margin-top: 14px;
  max-width: 260px;
  line-height: 1.6;
}

.footer-cols {
  display: flex;
  gap: 64px;
}

.footer-cols h5 {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-2);
  margin-bottom: 16px;
}

.footer-cols a {
  display: block;
  font-size: 0.82rem;
  color: var(--dim);
  padding: 5px 0;
  transition: color 0.3s;
}

.footer-cols a:hover { color: var(--ivory); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--muted);
  transition: color 0.3s;
}

.footer-legal a:hover { color: var(--ivory); }

/* ===== REVEAL ANIMATIONS ===== */
.anim-fade,
.anim-line {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease);
}

.anim-fade.visible,
.anim-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .split-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .code-showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillar { border-bottom: 1px solid var(--border); }
  .pillar:nth-child(2) { border-left: 1px solid var(--border); }
  .bench-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-bottom: 1px solid var(--border); }
  .step:nth-child(2) { border-right: none; }
  .team-row { grid-template-columns: repeat(2, 1fr); }
  .paper { grid-template-columns: 80px 1fr auto; }
  .paper-authors { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { font-size: 0.75rem; padding: 8px 16px; }

  .hero { padding: 120px 24px 40px; min-height: auto; }
  .hero-title { font-size: 3rem; }
  .hero-metrics { flex-direction: column; gap: 24px; margin-top: 48px; padding-top: 32px; }
  .metric-divider { width: 48px; height: 1px; }
  .counter { font-size: 2.4rem; }

  .section { padding: 80px 0; }
  .container { padding: 0 20px; }

  .pillars { grid-template-columns: 1fr; }
  .pillar { border-left: none !important; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none !important; }
  .team-row { grid-template-columns: 1fr; }
  .paper { grid-template-columns: 1fr; gap: 8px; }
  .paper-venue { order: -1; }

  .section-cta { padding: 100px 0; }
  .cta-input-wrap { flex-direction: column; }
  .cta-input-wrap button { justify-content: center; }

  .footer-top { flex-direction: column; gap: 40px; }
  .footer-cols { gap: 40px; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .logos-row { gap: 28px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; align-items: center; }
}
