/* ========================================
   ForkIQ Marketing Site — styles.css
   Design: Inter + Indigo + Dark Navy
   ======================================== */

:root {
  /* Core palette — matches app */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --border: #E2E8F0;

  --text: #0F172A;
  --text-muted: #64748B;
  --text-faint: #94A3B8;

  --accent: #4F46E5;
  --accent-hover: #4338CA;
  --accent-light: rgba(79, 70, 229, 0.08);
  --accent-glow: rgba(79, 70, 229, 0.25);

  --green: #059669;

  /* Marketing-specific */
  --hero-bg: #0F172A;
  --hero-text: #F8FAFC;
  --hero-muted: rgba(248, 250, 252, 0.7);

  /* Gradients */
  --hero-gradient: linear-gradient(135deg, #0F172A 0%, #1E1B4B 45%, #0F172A 100%);
  --accent-gradient: linear-gradient(135deg, #4F46E5, #7C3AED);

  /* Radii */
  --r-sm: 6px;
  --r: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.05), 0 2px 4px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px rgba(15, 23, 42, 0.05), 0 4px 6px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px rgba(15, 23, 42, 0.08), 0 10px 10px rgba(15, 23, 42, 0.04);
  --shadow-accent: 0 8px 30px rgba(79, 70, 229, 0.22);

  /* Transitions */
  --t: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --t-bounce: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 64px;
}

/* ========================================
   Reset & Base
   ======================================== */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: var(--t); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }

/* ========================================
   Navigation
   ======================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.nav.transparent { background: transparent; }

.nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--accent-gradient);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-accent);
  flex-shrink: 0;
}

.logo-mark svg { display: block; }

.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  transition: color 0.3s ease;
}

.nav.transparent .logo-text { color: white; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--r);
  transition: var(--t);
}

.nav.transparent .nav-links a { color: rgba(248, 250, 252, 0.75); }

.nav-links a:hover { color: var(--text); background: var(--surface-alt); }
.nav.transparent .nav-links a:hover { color: white; background: rgba(255,255,255,0.1); }

.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav.transparent .nav-links a.active { color: rgba(165, 180, 252, 1); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: var(--t-bounce);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
  line-height: 1;
}

.btn-ghost {
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); background: var(--surface-alt); }

.nav.transparent .btn-ghost {
  color: rgba(248, 250, 252, 0.75);
  border-color: rgba(255,255,255,0.2);
}
.nav.transparent .btn-ghost:hover {
  color: white;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

.btn-primary {
  color: white;
  background: var(--accent);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  color: white;
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 35px rgba(79, 70, 229, 0.32);
}
.btn-primary:active { transform: translateY(0); }

.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--r-md); }

.btn-hero-ghost {
  color: rgba(248, 250, 252, 0.85);
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
}
.btn-hero-ghost:hover {
  color: white;
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}

.btn-outline {
  color: var(--accent);
  background: transparent;
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { color: white; background: var(--accent); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px; height: 36px;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px;
  border-radius: var(--r);
}
.nav-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--t);
}
.nav.transparent .nav-hamburger span { background: rgba(248, 250, 252, 0.8); }

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 20px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  animation: slideDown 0.2s ease;
}
.nav-mobile.open { display: block; }

.nav-mobile-links { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.nav-mobile-links a {
  display: block;
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--r);
  transition: var(--t);
}
.nav-mobile-links a:hover { background: var(--surface-alt); }

.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.nav-mobile-actions .btn { justify-content: center; width: 100%; }

/* ========================================
   Hero Section
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-gradient);
  overflow: hidden;
  padding: calc(var(--nav-h) + 48px) 28px 96px;
}

/* Animated grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.12) 1px, transparent 1px);
  background-size: 52px 52px;
  animation: gridFloat 28s linear infinite;
  opacity: 0.55;
}

/* Centre glow */
.hero::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.14) 0%, transparent 68%);
  pointer-events: none;
}

@keyframes gridFloat {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(52px, 52px); }
}

/* Floating colour orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 450px; height: 450px;
  background: rgba(79, 70, 229, 0.18);
  top: -120px; right: -80px;
  animation: floatOrb 22s ease-in-out infinite;
}
.hero-orb-2 {
  width: 320px; height: 320px;
  background: rgba(124, 58, 237, 0.13);
  bottom: -40px; left: -60px;
  animation: floatOrb 28s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 220px; height: 220px;
  background: rgba(6, 182, 212, 0.09);
  top: 35%; right: 15%;
  animation: floatOrb 20s ease-in-out infinite 6s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-24px, 32px) scale(1.06); }
  66%       { transform: translate(22px, -18px) scale(0.94); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(79, 70, 229, 0.16);
  border: 1px solid rgba(99, 102, 241, 0.32);
  border-radius: var(--r-full);
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(165, 180, 252, 1);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease both;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #818CF8;
  animation: pulseDot 2.2s ease infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.75); }
}

.hero-title {
  font-size: clamp(36px, 5.2vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--hero-text);
  margin-bottom: 20px;
  animation: fadeInUp 0.65s ease 0.1s both;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, #818CF8 0%, #C4B5FD 55%, #6366F1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 400;
  color: var(--hero-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.65;
  animation: fadeInUp 0.65s ease 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 0.65s ease 0.3s both;
}

/* Tech tags strip */
.hero-tech-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  animation: fadeInUp 0.65s ease 0.42s both;
}
.tech-tag {
  padding: 5px 13px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.55);
  letter-spacing: 0.02em;
  transition: var(--t);
}
.tech-tag:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.22);
  color: rgba(248, 250, 252, 0.9);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(248, 250, 252, 0.28);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1.2s both;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.08), rgba(255,255,255,0.28), rgba(255,255,255,0.08));
  animation: scrollBob 2.2s ease infinite;
}
@keyframes scrollBob {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(0.65); opacity: 1; }
}

/* ========================================
   Sections — shared
   ======================================== */

section { padding: 96px 28px; }

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header { margin-bottom: 56px; }

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.72;
  max-width: 560px;
}

/* ========================================
   Core Statement
   ======================================== */

.core-statement {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.core-statement .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.core-statement-text .section-title { font-size: clamp(26px, 3vw, 38px); }

.core-statement-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.78;
  margin-top: 16px;
}
.core-statement-text p + p { margin-top: 10px; }

/* Visual card */
.statement-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.statement-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2.5px;
  background: var(--accent-gradient);
}

.statement-card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.capability-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }

.capability-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
}

.cap-icon {
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.cap-label { font-weight: 500; line-height: 1.4; }
.cap-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ========================================
   What We Do
   ======================================== */

.what-we-do { background: var(--bg); }

.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.domain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-xs);
  transition: var(--t-slow);
  position: relative;
  overflow: hidden;
}

.domain-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,70,229,0.04) 0%, rgba(99,102,241,0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.domain-card:hover {
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(79, 70, 229, 0.06);
  transform: translateY(-5px);
}
.domain-card:hover::after { opacity: 1; }

.domain-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 16px;
  transition: var(--t);
  position: relative;
  z-index: 1;
}
.domain-card:hover .domain-icon {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-accent);
}

.domain-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  position: relative; z-index: 1;
}
.domain-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.62;
  position: relative; z-index: 1;
}

/* ========================================
   Focus Areas (dark section)
   ======================================== */

.focus-areas {
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
}
.focus-areas::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
}

.focus-areas .section-eyebrow { color: rgba(165, 180, 252, 0.9); }
.focus-areas .section-title   { color: var(--hero-text); }
.focus-areas .section-desc    { color: var(--hero-muted); }

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.focus-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  transition: var(--t-slow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.focus-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--r-xl) 0 0 var(--r-xl);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.focus-card:hover {
  background: rgba(255,255,255,0.065);
  border-color: rgba(99, 102, 241, 0.28);
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.35);
}
.focus-card:hover::before { opacity: 1; }

.focus-card-icon {
  width: 50px; height: 50px;
  border-radius: var(--r-md);
  background: rgba(79, 70, 229, 0.2);
  color: #818CF8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-bottom: 20px;
  transition: var(--t);
}
.focus-card:hover .focus-card-icon {
  background: rgba(79, 70, 229, 0.35);
  color: #A5B4FC;
}

.focus-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--hero-text);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.focus-card-desc {
  font-size: 14px;
  color: var(--hero-muted);
  line-height: 1.72;
}

/* ========================================
   Location / About strip
   ======================================== */

.location-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 28px;
}
.location-section .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.location-text { max-width: 520px; }
.location-text h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 10px;
}
.location-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.72;
}

.location-badges { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.location-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-xs);
}
.location-badge i { color: var(--accent); }

/* ========================================
   Waitlist CTA Section
   ======================================== */

.waitlist-section { background: var(--bg); padding: 96px 28px; }

.waitlist-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-inner .section-title { margin-bottom: 12px; }
.waitlist-inner .section-desc { max-width: 460px; margin: 0 auto 40px; }

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto 12px;
}

.waitlist-input {
  flex: 1;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  outline: none;
  transition: var(--t);
  min-width: 0;
}
.waitlist-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.waitlist-input::placeholder { color: var(--text-faint); }

.waitlist-note {
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
}
.waitlist-note a { color: var(--text-muted); text-decoration: underline; }

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--hero-bg);
  color: var(--hero-muted);
  padding: 60px 28px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 28px;
}

.footer-brand { }
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
}
.footer-brand-logo .logo-text { color: white; }

.footer-tagline {
  font-size: 14px;
  color: rgba(248, 250, 252, 0.45);
  line-height: 1.65;
  max-width: 280px;
}
.footer-contact { margin-top: 20px; }
.footer-contact a {
  font-size: 13px;
  color: rgba(248, 250, 252, 0.55);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}
.footer-contact a:hover { color: rgba(248, 250, 252, 0.9); }

.footer-col h4 {
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.9);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(248, 250, 252, 0.48);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: rgba(248, 250, 252, 0.9); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 13px; color: rgba(248, 250, 252, 0.3); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 13px;
  color: rgba(248, 250, 252, 0.3);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal a:hover { color: rgba(248, 250, 252, 0.7); }

/* ========================================
   Cookie Consent
   ======================================== */

.cookie-banner {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: calc(100% - 48px);
  max-width: 860px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  padding: 20px 24px;
  z-index: 9000;
  box-shadow: 0 24px 56px rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.cookie-banner.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.cookie-banner.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

.cookie-text { flex: 1; min-width: 260px; }
.cookie-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}
.cookie-text p { font-size: 13px; color: rgba(248,250,252,0.62); line-height: 1.5; }
.cookie-text a { color: rgba(165,180,252,0.9); text-decoration: underline; }

.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

.btn-cookie-accept {
  padding: 9px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--t);
  white-space: nowrap;
}
.btn-cookie-accept:hover { background: var(--accent-hover); }

.btn-cookie-essential {
  padding: 9px 20px;
  background: transparent;
  color: rgba(248,250,252,0.7);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--t);
  white-space: nowrap;
}
.btn-cookie-essential:hover { color: white; background: rgba(255,255,255,0.08); }

.btn-cookie-manage {
  padding: 9px 14px;
  background: transparent;
  color: rgba(248,250,252,0.45);
  border: none;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--t);
  text-decoration: underline;
  white-space: nowrap;
}
.btn-cookie-manage:hover { color: rgba(248,250,252,0.85); }

/* Cookie preferences modal */
.cookie-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cookie-modal-overlay.open { opacity: 1; pointer-events: all; }

.cookie-modal {
  background: var(--surface);
  border-radius: var(--r-xl);
  max-width: 560px; width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.cookie-modal-overlay.open .cookie-modal { transform: scale(1); }

.cookie-modal-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.cookie-modal-header h3 {
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.cookie-modal-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.55;
}

.cookie-modal-close {
  width: 32px; height: 32px;
  border-radius: var(--r);
  border: none;
  background: var(--surface-alt);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--t);
  flex-shrink: 0;
}
.cookie-modal-close:hover { background: var(--border); color: var(--text); }

.cookie-modal-body { padding: 20px 28px; display: flex; flex-direction: column; gap: 14px; }

.cookie-category {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}
.cookie-category-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.cookie-category-name { font-size: 14px; font-weight: 600; color: var(--text); }
.cookie-category-desc { font-size: 13px; color: var(--text-muted); line-height: 1.52; }

/* Toggle */
.toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: 0.3s ease;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }
.toggle input:disabled + .toggle-slider { background: var(--text-faint); cursor: not-allowed; }

.cookie-modal-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ========================================
   Inner page hero (non-home)
   ======================================== */

.page-hero {
  background: var(--hero-bg);
  padding: calc(var(--nav-h) + 64px) 28px 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.08) 1px, transparent 1px);
  background-size: 52px 52px;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.page-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(165,180,252,0.9);
  margin-bottom: 14px;
}
.page-hero-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: white;
  margin-bottom: 16px;
}
.page-hero-desc {
  font-size: 18px;
  color: rgba(248,250,252,0.68);
  line-height: 1.65;
  max-width: 560px;
}

/* ========================================
   Opportunities Page
   ======================================== */

.opportunities-content { background: var(--bg); padding: 72px 28px 96px; }
.opportunities-inner { max-width: 880px; margin: 0 auto; }

.opp-intro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.opp-intro p { font-size: 16px; color: var(--text-muted); line-height: 1.78; }
.opp-intro p + p { margin-top: 10px; }

/* ===== Opportunity Card =====
   To add a new opportunity, duplicate the entire
   .opportunity-card block in the HTML.
   Update the title, badge, meta, and body sections.
   ============================= */
.opportunity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.opp-header {
  background: linear-gradient(135deg, rgba(79,70,229,0.06) 0%, rgba(124,58,237,0.03) 100%);
  border-bottom: 1px solid var(--border);
  padding: 32px 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.opp-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.opp-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
}

.opp-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.opp-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.opp-meta-item i { color: var(--accent); font-size: 12px; }

.opp-body { padding: 40px; }

.opp-section { margin-bottom: 32px; }
.opp-section:last-child { margin-bottom: 0; }

.opp-section-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.opp-section p { font-size: 15px; color: var(--text-muted); line-height: 1.75; }

.opp-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.opp-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
.opp-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 9px;
}

.opp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.opp-tag {
  padding: 6px 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--t);
}
.opp-tag:hover {
  background: var(--accent-light);
  border-color: rgba(79,70,229,0.2);
  color: var(--accent);
}

.working-style-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.ws-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.ws-item i { color: var(--accent); width: 16px; text-align: center; }

/* Apply section inside card */
.opp-apply-section {
  background: linear-gradient(135deg, #0F172A, #1E1B4B);
  padding: 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.opp-apply-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.07) 1px, transparent 1px);
  background-size: 44px 44px;
}
.opp-apply-inner { position: relative; z-index: 1; }
.opp-apply-section h3 {
  font-size: 22px; font-weight: 700;
  color: white; letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.opp-apply-section p {
  font-size: 14px;
  color: rgba(248,250,252,0.62);
  margin-bottom: 24px;
}
.opp-apply-section .contact-note {
  font-size: 13px;
  color: rgba(248,250,252,0.45);
  margin-top: 16px;
  display: block;
}
.opp-apply-section .contact-note a {
  color: rgba(165,180,252,0.9);
}
.opp-apply-section .contact-note a:hover {
  color: rgba(165,180,252,1);
}

/* ========================================
   Legal Pages
   ======================================== */

.legal-content { background: var(--bg); padding: 64px 28px 96px; }
.legal-inner { max-width: 760px; margin: 0 auto; }

.legal-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px 52px;
  box-shadow: var(--shadow-sm);
}
.legal-date { font-size: 13px; color: var(--text-faint); margin-bottom: 32px; }
.legal-body h2 {
  font-size: 19px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text);
  margin: 36px 0 12px;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p { font-size: 15px; color: var(--text-muted); line-height: 1.78; margin-bottom: 12px; }
.legal-body ul, .legal-body ol { margin: 10px 0 16px 22px; }
.legal-body li { font-size: 15px; color: var(--text-muted); line-height: 1.72; margin-bottom: 6px; }
.legal-body a { color: var(--accent); text-decoration: underline; }
.legal-body strong { color: var(--text); font-weight: 600; }

/* ========================================
   Keyframes
   ======================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 900px) {
  .core-statement .section-inner { grid-template-columns: 1fr; gap: 48px; }
  .focus-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  section { padding: 64px 20px; }

  .nav-links,
  .nav-actions .btn-ghost { display: none; }
  .nav-hamburger { display: flex; }

  .domains-grid { grid-template-columns: 1fr; }
  .focus-grid   { grid-template-columns: 1fr; }
  .working-style-grid { grid-template-columns: 1fr; }

  .opp-header { padding: 24px; flex-direction: column; }
  .opp-body   { padding: 24px; }
  .opp-apply-section { padding: 32px 24px; }
  .opp-intro  { padding: 28px; }
  .legal-body { padding: 32px 28px; }

  .waitlist-form { flex-direction: column; }
  .waitlist-input, .waitlist-form .btn { width: 100%; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .location-section .section-inner { flex-direction: column; }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; justify-content: center; }

  .cookie-banner {
    flex-direction: column;
    bottom: 16px;
    padding: 16px;
    width: calc(100% - 32px);
  }
  .cookie-actions { width: 100%; flex-direction: column; }
  .cookie-actions button { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title   { font-size: 30px; }
  .page-hero-title { font-size: 26px; }
  .section-title { font-size: 24px; }
  .opp-title    { font-size: 18px; }
  .nav-inner { padding: 0 16px; }
}
