/* ===========================================================
   Avalanche PhotoniQ — Design Tokens
   Art direction: deep-tech quantum photonics.
   Surfaces: near-black indigo. Accent: photon cyan.
   =========================================================== */

:root {
  /* Fluid type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7.5rem);

  /* 4px spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Inter', -apple-system, sans-serif;
  --font-body: 'Satoshi', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Content widths */
  --content-narrow: 680px;
  --content-default: 1040px;
  --content-wide: 1280px;
}

/* ==================== DARK (default) ==================== */
:root,
[data-theme='dark'] {
  /* Surfaces — near-black indigo, cool */
  --color-bg: #07090f;
  --color-surface: #0c1018;
  --color-surface-2: #121721;
  --color-surface-offset: #161c27;
  --color-surface-offset-2: #1b2230;
  --color-surface-dynamic: #20293a;
  --color-divider: #1a212e;
  --color-border: #242d3e;
  --color-border-strong: #334159;

  /* Text */
  --color-text: #e6eaf2;
  --color-text-muted: #9aa4b7;
  --color-text-faint: #5b6578;
  --color-text-inverse: #07090f;

  /* Primary — photon cyan */
  --color-primary: #5ee9e0;
  --color-primary-hover: #86f0e9;
  --color-primary-active: #37c9c0;
  --color-primary-highlight: #1d3b3c;

  /* Secondary — deep violet for data/accents */
  --color-secondary: #8b7cff;

  /* Success / warning / error */
  --color-success: #6ddc8a;
  --color-warning: #f0b43a;
  --color-error: #ef6b7b;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55);
  --glow-primary: 0 0 80px oklch(from var(--color-primary) l c h / 0.25);
}

/* ==================== LIGHT ==================== */
[data-theme='light'] {
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-surface-2: #f9fafc;
  --color-surface-offset: #eef1f6;
  --color-surface-offset-2: #e3e8f0;
  --color-surface-dynamic: #dbe1eb;
  --color-divider: #e4e8ef;
  --color-border: #d2d8e2;
  --color-border-strong: #b6bfcd;

  --color-text: #0b1220;
  --color-text-muted: #4c5668;
  --color-text-faint: #8892a4;
  --color-text-inverse: #ffffff;

  --color-primary: #0c7e76;
  --color-primary-hover: #095e58;
  --color-primary-active: #064440;
  --color-primary-highlight: #d3efec;

  --color-secondary: #4a3cd3;
  --color-success: #2e7d4d;
  --color-warning: #b06a00;
  --color-error: #b63446;

  --shadow-sm: 0 1px 2px rgba(16,24,40,0.06);
  --shadow-md: 0 8px 24px rgba(16,24,40,0.08);
  --shadow-lg: 0 24px 60px rgba(16,24,40,0.12);
  --glow-primary: 0 0 80px rgba(12, 126, 118, 0.18);
}

/* ==================== LAYOUT UTILITIES ==================== */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-10));
}
.container-narrow { max-width: var(--content-default); }

.section {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--color-primary);
  opacity: 0.7;
}

/* ==================== HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: oklch(from var(--color-bg) l c h / 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  background: oklch(from var(--color-bg) l c h / 0.85);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.logo svg { color: var(--color-primary); }
.logo__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.logo__word em { font-style: normal; color: var(--color-primary); }

.nav {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}
.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
}
.nav a:hover { color: var(--color-text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.theme-toggle:hover { color: var(--color-text); border-color: var(--color-border-strong); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--glow-primary);
}
.btn-ghost {
  color: var(--color-text);
  border: 1px solid var(--color-border);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-arrow { transition: transform var(--transition-interactive); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(from var(--color-primary) l c h / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(from var(--color-primary) l c h / 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero__bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 30% at 80% 20%, oklch(from var(--color-primary) l c h / 0.25), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 90%, oklch(from var(--color-secondary) l c h / 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}
.hero h1 {
  font-size: var(--text-hero);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-bottom: var(--space-6);
}
.hero h1 .accent {
  color: var(--color-primary);
  font-style: italic;
  font-weight: 400;
}
.hero__tagline {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 64ch;
  margin-bottom: var(--space-10);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}
.hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-6);
  max-width: 780px;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}
.hero__meta dt {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}
.hero__meta dd {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  font-feature-settings: 'tnum';
}
.hero__meta dd .unit {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 400;
  margin-left: 2px;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  mask-image: linear-gradient(to left, #000 10%, transparent 80%);
  -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 80%);
}
[data-theme='light'] .hero__image { opacity: 0.22; }

/* ==================== SECTION HEADERS ==================== */
.section-header {
  max-width: 780px;
  margin-bottom: var(--space-16);
}
.section-header h2 {
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-5);
}
.section-header p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

/* ==================== WHY SINGLE PHOTONS ==================== */
.why {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.why__text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.why__text strong { color: var(--color-text); font-weight: 600; }

.why__visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.why__visual img { width: 100%; height: 100%; object-fit: cover; }
.why__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, oklch(from var(--color-bg) l c h / 0.5));
}

/* ==================== TECHNOLOGY PROCESS ==================== */
.tech {
  background: var(--color-bg);
}
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}
.process__step {
  position: relative;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: border-color var(--transition-interactive), transform var(--transition-interactive);
}
.process__step:hover {
  border-color: oklch(from var(--color-primary) l c h / 0.5);
  transform: translateY(-4px);
}
.process__step::before {
  counter-increment: step;
  content: '0' counter(step);
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.08em;
}
.process__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: oklch(from var(--color-primary) l c h / 0.12);
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}
.process__step h3 {
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
  font-family: var(--font-display);
}
.process__step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ==================== PERFORMANCE / SPECS ==================== */
.specs {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}
.specs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface-2);
}
.spec {
  padding: var(--space-8);
  border-right: 1px solid var(--color-border);
  position: relative;
}
.spec:last-child { border-right: none; }
.spec__label {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}
.spec__value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--color-text);
  font-feature-settings: 'tnum';
  margin-bottom: var(--space-2);
}
.spec__value .unit {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 400;
  margin-left: 2px;
}
.spec__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ==================== APPLICATIONS ==================== */
.apps__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-5);
}
.app-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-interactive), transform var(--transition-interactive);
}
.app-card:hover {
  border-color: oklch(from var(--color-primary) l c h / 0.5);
  transform: translateY(-4px);
}
.app-card--lg { grid-column: span 7; }
.app-card--md { grid-column: span 5; }
.app-card--sm { grid-column: span 4; }
.app-card__image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-surface-offset);
}
.app-card--lg .app-card__image { aspect-ratio: 16/10; }
.app-card--md .app-card__image { aspect-ratio: 16/10; }
.app-card--sm .app-card__image { aspect-ratio: 4/3; }
.app-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.app-card:hover .app-card__image img { transform: scale(1.04); }
.app-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, oklch(from var(--color-surface) l c h / 0.4));
}
.app-card__body {
  padding: var(--space-6) var(--space-8) var(--space-8);
}
.app-card__tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-primary);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}
.app-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}
.app-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ==================== FOUNDER ==================== */
.founder {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.founder::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, oklch(from var(--color-primary) l c h / 0.08), transparent 60%);
  pointer-events: none;
}
.founder__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-16);
  align-items: start;
  position: relative;
  z-index: 1;
}
.founder__card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: sticky;
  top: calc(72px + var(--space-8));
}
.founder__portrait {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 30%, oklch(from var(--color-primary) l c h / 0.4), transparent 60%),
    linear-gradient(135deg, var(--color-surface-offset), var(--color-surface-offset-2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.founder__portrait svg {
  width: 50%; height: 50%;
  color: var(--color-primary);
  opacity: 0.9;
}
.founder__portrait-label {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.08em;
}
.founder__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}
.founder__title {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-4);
}
.founder__affiliation {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-4);
}
.founder__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.founder__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.founder__links a:hover { color: var(--color-primary); }

.founder__body h3 {
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}
.founder__body p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.founder__body strong { color: var(--color-text); font-weight: 600; }

.timeline {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}
.timeline__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-6);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-divider);
}
.timeline__row:last-child { border-bottom: none; }
.timeline__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-primary);
  padding-top: 2px;
}
.timeline__event h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--space-1);
  color: var(--color-text);
  letter-spacing: -0.005em;
}
.timeline__event p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* ==================== CTA / CONTACT ==================== */
.cta {
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
  position: relative;
  overflow: hidden;
}
.cta__inner {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background:
    radial-gradient(circle at 20% 0%, oklch(from var(--color-primary) l c h / 0.18), transparent 60%),
    radial-gradient(circle at 80% 100%, oklch(from var(--color-secondary) l c h / 0.15), transparent 60%),
    var(--color-surface);
  padding: clamp(var(--space-12), 8vw, var(--space-24));
  text-align: center;
  overflow: hidden;
}
.cta__inner h2 {
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-5);
  max-width: 20ch;
  margin-inline: auto;
}
.cta__inner p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin: 0 auto var(--space-10);
}
.cta__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ==================== FOOTER ==================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-16) var(--space-10);
  background: var(--color-bg);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
}
.footer-brand { max-width: 360px; }
.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  line-height: 1.65;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-5);
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-col a:hover { color: var(--color-primary); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ==================== NEWS TICKER ==================== */
.section.news {
  position: relative;
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(94, 233, 224, 0.06), transparent 60%),
    var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.news__header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 0 rgba(94, 233, 224, 0.6);
  animation: livePulse 2s ease-out infinite;
  margin-right: 2px;
  vertical-align: middle;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 233, 224, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(94, 233, 224, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 233, 224, 0); }
}

.news__controls {
  display: inline-flex;
  gap: var(--space-2);
  padding: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}
.news__ctrl {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.news__ctrl:hover { background: var(--color-surface-2, rgba(255,255,255,0.04)); color: var(--color-text); }
.news__ctrl:active { transform: scale(0.94); }
.news__ctrl:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.news__ctrl[data-news-toggle] .icon-play { display: none; }
.news__ctrl[data-news-toggle][aria-pressed="true"] .icon-pause { display: none; }
.news__ctrl[data-news-toggle][aria-pressed="true"] .icon-play { display: inline-block; }
.news__ctrl[data-news-toggle][aria-pressed="true"] {
  color: var(--color-primary);
  background: rgba(94, 233, 224, 0.08);
}

.news__ticker {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 16px);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}

.news__track {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  width: max-content;
  animation: newsScroll 45s linear infinite;
  will-change: transform;
}
.news__ticker[data-paused="true"] .news__track,
.news__ticker:hover .news__track,
.news__ticker:focus-within .news__track {
  animation-play-state: paused;
}
@keyframes newsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .news__track { animation: none; }
}

.news__edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}
.news__edge--left {
  left: 0;
  background: linear-gradient(90deg, var(--color-bg) 0%, transparent 100%);
}
.news__edge--right {
  right: 0;
  background: linear-gradient(270deg, var(--color-bg) 0%, transparent 100%);
}

.news-card {
  flex: 0 0 340px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 12px);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  position: relative;
}
.news-card:hover {
  border-color: rgba(94, 233, 224, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px -16px rgba(94, 233, 224, 0.25);
}
.news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.news-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(94, 233, 224, 0.08);
  color: var(--color-primary);
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 500;
}
.news-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--color-text);
}
.news-card p {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
  flex: 1;
}
.news-card__source {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-2);
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  align-self: flex-start;
  transition: all 180ms ease;
}
.news-card__link:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
}

.news__footnote {
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
}
.news__footnote a {
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--color-border);
}
.news__footnote a:hover { color: var(--color-primary); border-bottom-color: var(--color-primary); }

@media (max-width: 960px) {
  .news__header { grid-template-columns: 1fr; }
  .news__controls { justify-self: start; }
  .news-card { flex-basis: 280px; }
  .news__edge { width: 48px; }
}
@media (max-width: 640px) {
  .news-card { flex-basis: 260px; min-height: 220px; padding: var(--space-5); }
  .news__track { gap: var(--space-4); padding: var(--space-5); animation-duration: 30s; }
}

/* ==================== SCROLL REVEAL ==================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 960px) {
  .why__grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .specs__grid { grid-template-columns: repeat(2, 1fr); }
  .spec { border-right: none; border-bottom: 1px solid var(--color-border); }
  .spec:nth-child(odd) { border-right: 1px solid var(--color-border); }
  .spec:nth-last-child(-n+2) { border-bottom: none; }
  .spec:nth-last-child(-n+2):nth-child(odd) ~ .spec { border-bottom: none; }

  .apps__grid > .app-card { grid-column: span 12; }
  .founder__grid { grid-template-columns: 1fr; }
  .founder__card { position: static; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}

@media (max-width: 640px) {
  .hero { min-height: 80vh; }
  .hero__meta { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .specs__grid { grid-template-columns: 1fr; }
  .spec { border-right: none !important; border-bottom: 1px solid var(--color-border); }
  .spec:last-child { border-bottom: none; }
  .site-footer__top { grid-template-columns: 1fr; }
  .timeline__row { grid-template-columns: 1fr; gap: var(--space-2); }
  .header-actions .btn-ghost { display: none; }
}
