/* Mantaga - Refined editorial meets dark luxury */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy: #1a1a2e;
  --navy-light: #16213e;
  --navy-deep: #0F0F23;
  --coral: #E8604C;
  --coral-hover: #D4503E;
  --coral-soft: rgba(232, 96, 76, 0.08);
  --coral-rgb: 232, 96, 76;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --light-gray: #F5F5F5;
  --dark-text: #1A1A1A;
  --body-text: #2D2D2D;
  --muted-text: #6B7280;
  --border: #E5E7EB;
  --radius-card: 16px;
  --radius-pill: 999px;
  --radius-btn: 8px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.12);
  --pad-section: 120px;
  --pad-card: 32px;
  --type-scale: 1;
  --talabat: #FF5A00;
  --noon: #FEEE00;
  --careem: #4CAF50;
  --amazon: #FF9900;
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.12);
  --display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--body-text);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

h1, h2, h3, h4, h5, h6 { font-family: var(--display); color: var(--dark-text); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--mono);
  color: var(--coral);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 20px;
  display: inline-block;
}

.section { padding: var(--pad-section) 0; }
.section-sm { padding: calc(var(--pad-section) * 0.67) 0; }

/* MOOD: Aurora — cool teal/violet on near-black */
html[data-mood="aurora"] {
  --navy: #0a1628;
  --navy-light: #112842;
  --navy-deep: #050b14;
  --coral: #5EEAD4;
  --coral-hover: #2DD4BF;
  --coral-soft: rgba(94, 234, 212, 0.10);
  --coral-rgb: 94, 234, 212;
}
/* MOOD: Daylight — light, paper-toned, warm coral kept */
html[data-mood="daylight"] {
  --navy: #F4EEE6;
  --navy-light: #EAE2D5;
  --navy-deep: #29241D;
  --coral: #C9532E;
  --coral-hover: #B5431F;
  --coral-soft: rgba(201, 83, 46, 0.08);
  --coral-rgb: 201, 83, 46;
  --light-gray: #FAF6EE;
  --border: #E0D8C9;
}
html[data-mood="daylight"] .bg-navy { color: var(--navy-deep); }
html[data-mood="daylight"] .bg-navy h1,
html[data-mood="daylight"] .bg-navy h2,
html[data-mood="daylight"] .bg-navy h3,
html[data-mood="daylight"] .bg-navy h4 { color: var(--navy-deep); }
html[data-mood="daylight"] .hero-sub { color: rgba(41,36,29,0.7); }
html[data-mood="daylight"] .nav-dark-solid { background: rgba(244,238,230,0.92); border-bottom-color: rgba(0,0,0,0.06); }
html[data-mood="daylight"] .card-dark { background: rgba(255,255,255,0.6); }
html[data-mood="daylight"] .card-dark h3,
html[data-mood="daylight"] .card-dark .result-label { color: var(--navy-deep) !important; }
html[data-mood="daylight"] .card-dark p,
html[data-mood="daylight"] .card-dark .result-detail { color: rgba(41,36,29,0.65) !important; }
html[data-mood="daylight"] .footer { color: rgba(41,36,29,0.7); }
html[data-mood="daylight"] .footer h5,
html[data-mood="daylight"] .footer .nav-logo { color: var(--navy-deep); }
html[data-mood="daylight"] .footer ul li,
html[data-mood="daylight"] .footer ul li a { color: rgba(41,36,29,0.65); }
html[data-mood="daylight"] .hero-grid { background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px); }
html[data-mood="daylight"] .footer-bottom { border-top-color: rgba(0,0,0,0.08); }

/* EDGE: Sharp — squared, hard shadow, mono-feel */
html[data-edge="sharp"] {
  --radius-card: 0px;
  --radius-btn: 0px;
  --radius-pill: 4px;
  --shadow-card: 0 0 0 1px rgba(0,0,0,0.08);
  --shadow-card-hover: 4px 4px 0 rgba(var(--coral-rgb), 0.9);
}
html[data-edge="sharp"] .card:hover { transform: translate(-2px, -2px); }
html[data-edge="sharp"] .nav-logo-mark { border-radius: 0; }
html[data-edge="sharp"] .step-num { border-radius: 0; }
html[data-edge="sharp"] .team-photo { border-radius: 0; }
html[data-edge="sharp"] .opt-card,
html[data-edge="sharp"] .filter-pill,
html[data-edge="sharp"] .mode-card,
html[data-edge="sharp"] .scipab,
html[data-edge="sharp"] .newsletter,
html[data-edge="sharp"] .founder-photo,
html[data-edge="sharp"] .service-visual { border-radius: 2px; }
html[data-edge="sharp"] .pill { border-radius: 0; }

/* EDGE: Pillowy — extra-rounded, soft shadow */
html[data-edge="pillowy"] {
  --radius-card: 28px;
  --radius-btn: 999px;
  --shadow-card: 0 8px 32px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.03);
  --shadow-card-hover: 0 24px 60px rgba(0,0,0,0.10);
}
html[data-edge="pillowy"] .opt-card,
html[data-edge="pillowy"] .filter-pill,
html[data-edge="pillowy"] .mode-card,
html[data-edge="pillowy"] .scipab,
html[data-edge="pillowy"] .newsletter,
html[data-edge="pillowy"] .founder-photo,
html[data-edge="pillowy"] .service-visual { border-radius: 24px; }

/* DENSITY */
html[data-density="compact"] { --pad-section: 72px; --pad-card: 24px; --type-scale: 0.92; }
html[data-density="spacious"] { --pad-section: 168px; --pad-card: 44px; --type-scale: 1.1; }

html[data-density] body { font-size: calc(17px * var(--type-scale)); }
html[data-density] .hero h1,
html[data-density] .section-head h2 { font-size: calc(clamp(32px, 5vw, 64px) * var(--type-scale)); }
html[data-density] .hero-sub { font-size: calc(20px * var(--type-scale)); }

.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-light { background: var(--light-gray); }
.bg-white { background: var(--white); }
.bg-deep { background: var(--navy-deep); color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--coral); color: white; }
.btn-primary:hover { background: var(--coral-hover); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(232,96,76,0.3); }
.btn-secondary { background: transparent; border: 1.5px solid var(--coral); color: var(--coral); }
.btn-secondary:hover { background: var(--coral); color: white; }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,0.3); color: white; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: white; }
.btn-white { background: white; color: var(--coral); font-weight: 600; }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-card);
  padding: var(--pad-card);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }

.card-dark {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-card);
  padding: 36px;
  transition: all 0.3s ease;
}
.card-dark:hover { border-color: rgba(232,96,76,0.3); transform: translateY(-4px); }

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #F0F0F0;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--dark-text);
  font-weight: 500;
}
.pill-coral { background: var(--coral-soft); color: var(--coral); }

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s ease;
}
.nav-transparent { background: transparent; }
.nav-solid { background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-dark-solid { background: rgba(26,26,46,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.06); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0.04em; }
.nav-logo-img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; display: block; }
.nav-logo-mark { width: 32px; height: 32px; background: var(--coral); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 18px; font-family: var(--display); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 14px; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -4px; height: 1.5px; width: 0; background: var(--coral); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-mobile-toggle { display: none; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-half { min-height: 60vh; padding: 180px 0 100px; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,96,76,0.18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-glow-1 { top: -200px; right: -100px; }
.hero-glow-2 { bottom: -300px; left: -200px; background: radial-gradient(circle, rgba(22,33,62,0.5), transparent 70%); }

.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero h1 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 20px;
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  line-height: 1.55;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Section headings */
.section-head { margin-bottom: 64px; max-width: 720px; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.section-head p { font-size: 18px; color: var(--muted-text); }

/* Stats bar */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 48px 0; }
.stat-num { font-family: var(--display); font-size: clamp(40px, 5vw, 64px); font-weight: 800; color: var(--coral); letter-spacing: -0.03em; line-height: 1; }
.stat-label { font-size: 13px; color: var(--muted-text); margin-top: 8px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.grid-3 > .fade-up { height: 100%; display: flex; }
.grid-3 > .fade-up > * { width: 100%; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

/* Service card */
.service-card { padding: 32px; }
.service-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--coral-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--coral); }
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--muted-text); margin-bottom: 16px; line-height: 1.6; }
.learn-more { color: var(--coral); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.learn-more:hover { gap: 8px; transition: gap 0.2s; }

/* Result card */
.result-card { padding: 40px; height: 100%; display: flex; flex-direction: column; }
.result-num {
  font-family: var(--display);
  font-size: 64px;
  font-weight: 800;
  color: var(--coral);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 20px;
  min-height: 64px;
  display: flex;
  align-items: flex-end;
}
.result-label { color: white; font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.result-detail { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.55; margin-top: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--coral), transparent);
}
.step { text-align: left; position: relative; z-index: 1; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--coral); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 18px;
  margin-bottom: 20px;
  box-shadow: 0 0 0 6px var(--white);
}
.step h4 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted-text); line-height: 1.55; }

/* Bullet checks */
.checks { list-style: none; }
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--body-text);
}
.checks li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8604C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Footer */
.footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer h5 { color: white; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; font-family: var(--mono); font-weight: 500; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a, .footer ul li { font-size: 14.5px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* Logo carousel */
.marquee { overflow: hidden; padding: 16px 0; mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent); }
.marquee-track { display: flex; gap: 64px; animation: marquee 40s linear infinite; width: max-content; }
.marquee-track.reverse { animation: marquee-reverse 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@keyframes marquee-reverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.brand-logo {
  flex-shrink: 0;
  height: 128px;
  width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.brand-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.brand-logo:hover { transform: scale(1.06); filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08)); }

/* Platform logo tiles — uniform sizing */
.platform-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 880px; margin: 0 auto; }
.platform-tile {
  aspect-ratio: 16 / 9;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  overflow: hidden;
  transition: all 0.25s ease;
}
.platform-tile:hover { border-color: var(--coral); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.platform-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.platform-tile.full { padding: 0; }
.platform-tile.full img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .platform-logos { grid-template-columns: 1fr 1fr; } }

/* Platform row */
.platform-row { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; padding: 24px 0; }
.platform-tag { font-family: var(--mono); font-size: 13px; color: var(--muted-text); display: flex; align-items: center; gap: 8px; }
.platform-dot { width: 8px; height: 8px; border-radius: 50%; }

/* Anim */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

/* Two-col service detail */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }
.service-detail h3 { font-size: 36px; margin-bottom: 20px; }
.service-detail p { font-size: 17px; color: var(--muted-text); margin-bottom: 24px; line-height: 1.6; }
.service-visual {
  aspect-ratio: 1.1;
  background: var(--light-gray);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Case study card */
.case-card {
  padding: 40px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.case-metric {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 800;
  color: var(--coral);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 20px 0 24px;
}
.case-card h3 { font-size: 22px; margin-bottom: 14px; line-height: 1.25; }
.case-card p { color: var(--muted-text); font-size: 15px; margin-bottom: 24px; flex-grow: 1; }
.case-tag { font-family: var(--mono); font-size: 11px; color: var(--coral); letter-spacing: 0.1em; text-transform: uppercase; }

/* SCIPAB list */
.scipab { background: var(--light-gray); border-radius: 16px; padding: 40px; margin-top: 24px; }
.scipab-row { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.scipab-row:last-child { border-bottom: none; }
.scipab-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--coral); padding-top: 4px; }
.scipab-text { font-size: 15px; color: var(--body-text); line-height: 1.55; }

/* Founder */
.founder-grid { display: grid; grid-template-columns: 380px 1fr; gap: 80px; align-items: start; }
.founder-grid > *:first-child {
  position: sticky;
  top: 100px;
  align-self: start;
}
.founder-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.founder-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 1;
}
.founder-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(45deg, rgba(232,96,76,0.06) 0 2px, transparent 2px 16px);
  z-index: 2;
  opacity: 0.4;
  pointer-events: none;
}
.founder-content h3 { font-size: 24px; margin: 32px 0 12px; color: var(--coral); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }
.founder-content h3:first-child { margin-top: 0; }
.founder-content p { font-size: 17px; line-height: 1.7; color: var(--body-text); }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-grid:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(240px, 320px));
  justify-content: center;
}
.team-card { text-align: center; padding: 28px 20px; }
.team-photo {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: var(--display); font-weight: 700; font-size: 28px;
  letter-spacing: -0.02em;
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.team-card h4 { font-size: 17px; margin-bottom: 4px; }
.team-card .role { font-size: 13px; color: var(--coral); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.team-card p { font-size: 13px; color: var(--muted-text); line-height: 1.5; }

/* Insights */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; padding: 24px 0; border-bottom: 1px solid var(--border); margin-bottom: 48px; }
.filter-pill {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: white;
  transition: all 0.2s;
  font-family: var(--body);
}
.filter-pill:hover { border-color: var(--coral); color: var(--coral); }
.filter-pill.active { background: var(--coral); color: white; border-color: var(--coral); }

.article-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}
.article-card .pill { margin-bottom: 20px; align-self: flex-start; }
.article-card h3 { font-size: 20px; line-height: 1.3; margin-bottom: 12px; flex-grow: 0; }
.article-card .preview { color: var(--muted-text); font-size: 14.5px; line-height: 1.55; margin-bottom: 24px; flex-grow: 1; }
.article-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-text); font-family: var(--mono); padding-top: 20px; border-top: 1px solid var(--border); }

/* Newsletter */
.newsletter {
  background: var(--navy);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.newsletter h2 { color: white; font-size: 36px; margin-bottom: 12px; }
.newsletter p { color: rgba(255,255,255,0.7); margin-bottom: 32px; font-size: 17px; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: white;
  font-size: 15px;
  font-family: var(--body);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { outline: none; border-color: var(--coral); }
.newsletter-small { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 16px; font-family: var(--mono); }

/* Questionnaire */
.quest-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; margin: 0 auto; }
.mode-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  cursor: pointer;
  transition: all 0.25s;
  text-align: left;
}
.mode-card:hover { border-color: var(--coral); transform: translateY(-2px); }
.mode-card.selected { border-color: var(--coral); background: var(--coral-soft); }
.mode-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--coral-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.mode-icon svg { width: 22px; height: 22px; stroke: var(--coral); }
.mode-card h3 { font-size: 22px; margin-bottom: 10px; }
.mode-card p { font-size: 15px; color: var(--muted-text); }

.progress-bar {
  position: sticky;
  top: 80px;
  height: 3px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 64px;
  z-index: 10;
}
.progress-fill { height: 100%; background: var(--coral); transition: width 0.4s ease; }

.question-shell { max-width: 640px; margin: 0 auto; min-height: 480px; }
.q-back { font-size: 13px; color: var(--muted-text); display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; cursor: pointer; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.q-back:hover { color: var(--coral); }
.question-shell h2 { font-size: 28px; margin-bottom: 32px; line-height: 1.25; }

.opt-card {
  padding: 20px 24px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: white;
  text-align: left;
  width: 100%;
  font-size: 15px;
  font-family: var(--body);
  color: var(--body-text);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 16px;
}
.opt-card:hover { border-color: var(--coral); background: var(--coral-soft); }
.opt-card.selected { border-color: var(--coral); background: var(--coral-soft); }
.opt-card .opt-title { font-weight: 600; color: var(--dark-text); }
.opt-card .opt-sub { font-size: 13px; color: var(--muted-text); margin-top: 2px; }

.opt-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.opt-card.selected .opt-check { border-color: var(--coral); background: var(--coral); }
.opt-card.selected .opt-check::after { content: '✓'; color: white; font-size: 11px; font-weight: 700; }

/* Form */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13px; font-weight: 500; color: var(--dark-text); margin-bottom: 6px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.05em; }
.form-field input, .form-field select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--body);
  color: var(--dark-text);
  background: white;
  transition: border 0.2s;
}
.form-field input:focus { outline: none; border-color: var(--coral); }

/* Score */
.score-circle {
  width: 200px; height: 200px;
  margin: 0 auto 32px;
  position: relative;
}

/* Mobile drawer (always-rendered, animated) */
.nav-mobile-drawer {
  position: fixed; inset: 0; z-index: 98;
  background: rgba(15,15,35,0.55);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.nav-mobile-drawer.open { opacity: 1; pointer-events: auto; }
.nav-mobile-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  background: var(--navy);
  padding: 96px 28px 32px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile-drawer.open .nav-mobile-panel { transform: translateX(0); }
.nav-mobile-links { display: flex; flex-direction: column; gap: 4px; }
.nav-mobile-links a {
  color: rgba(255,255,255,0.85);
  font-size: 19px;
  font-weight: 500;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.nav-mobile-links a.active { color: var(--coral); }
.nav-mobile-links a:hover { color: white; }
.nav-mobile-links .btn { border-bottom: none; padding: 14px 20px; font-size: 14px; }

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .section { padding: 96px 0; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:nth-child(4) { grid-column: 1 / -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps::before { display: none; }
  .service-detail { gap: 56px; }
  .scipab-row { grid-template-columns: 110px 1fr; gap: 16px; }
  .platform-logos { max-width: 640px; }
  .founder-grid { grid-template-columns: 320px 1fr; gap: 48px; }
  .founder-grid > *:first-child { position: static; }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section-sm { padding: 48px 0; }
  .hero { padding: 96px 0 56px; }
  .hero-half { min-height: auto; padding: 120px 0 64px; }
  .hero h1 { font-size: 36px; line-height: 1.1; }
  .hero-sub { font-size: 16px; margin-bottom: 28px; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 28px; }
  .section-head p { font-size: 16px; }
  .eyebrow { font-size: 11px; }
  .btn { padding: 12px 22px; font-size: 14px; }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding: 32px 0; }
  .stat-num { font-size: 38px; }
  .stat-label { font-size: 11px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { display: none; }
  .step h4 { font-size: 17px; }
  .footer { padding: 56px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
  .footer-grid > div:nth-child(4) { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; font-size: 12px; }
  .service-detail { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; }
  .service-detail h3 { font-size: 26px; }
  .service-detail p { font-size: 15.5px; }
  .founder-grid { grid-template-columns: 1fr; gap: 28px; }
  .founder-content h3 { font-size: 18px; margin: 24px 0 10px; }
  .founder-content p { font-size: 15.5px; line-height: 1.65; }
  .team-grid { grid-template-columns: 1fr; gap: 16px; }
  .team-grid:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; }
  .quest-modes { grid-template-columns: 1fr; gap: 16px; }
  .newsletter-form { flex-direction: column; }
  .newsletter { padding: 40px 24px; }
  .newsletter h2 { font-size: 24px; }
  .newsletter p { font-size: 15px; }
  .scipab { padding: 24px; }
  .scipab-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .scipab-text { font-size: 14.5px; }
  .case-metric { font-size: 40px; }
  .case-card h3 { font-size: 19px; }
  .result-num { font-size: 42px; }
  .result-label { font-size: 16px; }
  .result-detail { font-size: 13px; }
  .platform-logos { grid-template-columns: 1fr 1fr; gap: 12px; }
  .nav-logo-img { width: 40px; height: 40px; border-radius: 8px; }
  .nav-logo { font-size: 18px; }
  body { font-size: 16px; }
  .hero-content { max-width: 100%; }
  .marquee-track { gap: 32px; }
  .brand-logo { padding: 8px 16px; min-width: 100px; }
  .question-shell { min-height: auto; }
  .mode-card { padding: 28px 20px; }
  .mode-card h3 { font-size: 19px; }
  .opt-card { padding: 16px; font-size: 15px; }
  .form-field input, .form-field textarea { font-size: 16px; } /* prevent iOS zoom */
}

/* Small phone (≤420px) */
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 30px; }
  .section-head h2 { font-size: 24px; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 32px; }
  .nav { padding: 14px 0; }
}

/* Mobile-only overrides for hard-coded inline styles across pages */
@media (max-width: 768px) {
  /* Cards w/ inline padding 40 → 24 */
  .card { padding: 24px !important; }
  .card-dark { padding: 24px !important; }

  /* Result panel headings/body (qualified, disqualified, score) */
  .result-h2 { font-size: 24px !important; line-height: 1.2 !important; }
  .result-p { font-size: 15.5px !important; line-height: 1.6 !important; }

  /* Score ring */
  .score-ring-text { font-size: 44px !important; }

  /* Case modal */
  .case-modal-overlay { padding: 16px !important; align-items: flex-start !important; padding-top: 24px !important; }
  .case-modal { padding: 24px 20px 28px !important; max-width: 100% !important; max-height: calc(100vh - 48px) !important; border-radius: 16px !important; overflow-y: auto !important; }
  .case-modal-h2 { font-size: 20px !important; margin-top: 14px !important; margin-bottom: 10px !important; padding-right: 36px; }
  .case-modal-metric { font-size: 36px !important; margin-bottom: 16px !important; }
  .case-modal-close { top: 12px !important; right: 12px !important; width: 36px !important; height: 36px !important; font-size: 22px !important; line-height: 1 !important; }
  .case-modal .case-tag { font-size: 10px !important; padding: 5px 10px !important; }
  .case-modal .scipab { padding: 16px !important; gap: 0 !important; }
  .case-modal .scipab-row { padding: 10px 0 !important; }
  .case-modal .scipab-label { font-size: 10px !important; margin-bottom: 2px !important; }
  .case-modal .scipab-text { font-size: 14px !important; line-height: 1.5 !important; }

  /* Calendar embed (mock cal widget in /contact) */
  .cal-embed { padding: 24px 16px !important; min-height: auto !important; border-radius: 16px !important; }
  .cal-embed > div:nth-last-child(1) { gap: 4px !important; }

  /* Form fields - prevent overflow */
  .form-field { min-width: 0; }
  .form-field input, .form-field textarea, .form-field select { width: 100%; box-sizing: border-box; }

  /* Container max-width safety */
  body, html { overflow-x: hidden; }

  /* Buttons in CTAs */
  .btn { max-width: 100%; }
  .hero-actions, .cta-actions { flex-wrap: wrap; gap: 12px; }
}

/* Challenge section visual */
.challenge-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .challenge-grid { grid-template-columns: 1fr; gap: 56px; }
}

.challenge-visual {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

/* Phone */
.cv-phone {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 72%;
  aspect-ratio: 9/19;
  background: var(--navy-deep);
  border-radius: 36px;
  padding: 8px;
  box-shadow:
    0 40px 80px -20px rgba(15, 15, 35, 0.35),
    0 12px 24px -8px rgba(15, 15, 35, 0.25),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.cv-phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 22px;
  background: var(--navy-deep);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.cv-phone-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--sans, 'Plus Jakarta Sans', sans-serif);
}
.cv-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 14px 24px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy-deep);
}
.cv-dots { letter-spacing: -1px; opacity: 0.7; }
.cv-app-header { padding: 12px 16px; }
.cv-search {
  background: #F1F1F4;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 11px;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cv-search-icon { font-size: 13px; }

.cv-timer {
  background: linear-gradient(135deg, var(--coral) 0%, #F08266 100%);
  color: white;
  text-align: center;
  padding: 14px 16px 16px;
  margin: 4px 12px 12px;
  border-radius: 14px;
}
.cv-timer-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  opacity: 0.85;
  font-family: var(--mono, 'JetBrains Mono', monospace);
  margin-bottom: 4px;
}
.cv-timer-value {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-family: var(--mono, 'JetBrains Mono', monospace);
}
.cv-timer-value span {
  font-size: 22px;
  opacity: 0.7;
}
.cv-timer-sub {
  font-size: 10px;
  margin-top: 6px;
  opacity: 0.85;
}

.cv-results {
  flex: 1;
  padding: 4px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cv-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8F8FB;
  padding: 8px 10px;
  border-radius: 10px;
  position: relative;
}
.cv-result-thumb {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #FFE066, #FFB347);
  flex-shrink: 0;
}
.cv-thumb-2 { background: linear-gradient(135deg, #A8E6CF, #7BC4A4); }
.cv-thumb-3 { background: linear-gradient(135deg, var(--coral), #D4503E); }
.cv-result-info { flex: 1; min-width: 0; }
.cv-result-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.2;
}
.cv-result-meta {
  font-size: 9px;
  color: #6B7280;
  margin-top: 2px;
}
.cv-result-tag {
  font-size: 8px;
  font-weight: 700;
  background: var(--navy-deep);
  color: white;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.cv-result-row-faded { opacity: 0.55; }
.cv-faded { color: #9CA3AF !important; }
.cv-faded-meta { color: #DC2626 !important; font-weight: 600; }

/* Callouts */
.cv-callout {
  position: absolute;
  background: var(--navy-deep);
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--mono, 'JetBrains Mono', monospace);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px -6px rgba(15, 15, 35, 0.3);
  white-space: nowrap;
}
.cv-callout-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
  flex-shrink: 0;
}
.cv-dot-warn { background: var(--coral); box-shadow: 0 0 0 3px rgba(232, 96, 76, 0.2); }
.cv-dot-bad { background: #FBBF24; box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2); }

.cv-callout-1 { top: 6%; right: -8%; transform: rotate(3deg); max-width: 220px; white-space: normal; line-height: 1.35; }
.cv-callout-2 { top: 44%; left: -10%; transform: rotate(-4deg); }
.cv-callout-3 { bottom: 6%; right: -2%; transform: rotate(2deg); }

@media (max-width: 600px) {
  .challenge-visual { max-width: 360px; }
  .cv-callout { font-size: 10px; padding: 6px 10px; }
  .cv-callout-1 { right: 0%; max-width: 160px; }
  .cv-callout-2 { left: 0%; }
  .cv-callout-3 { right: 0%; }
}

/* Daylight mood adjustments */
html[data-mood="daylight"] .cv-phone-screen { background: #fff; }
html[data-mood="daylight"] .cv-callout { background: var(--navy-deep); color: var(--navy); }

