/* ============================================================
   MARI. — Marketing Site
   Design: Apple-class restraint, splash-color palette
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400&family=Inter:wght@300;400;500;600&display=swap');

/* --- Design Tokens --- */
:root {
  --white: #FFFFFF;
  --ink: #0E1116;
  --ink-60: rgba(14, 17, 22, 0.60);
  --ink-30: rgba(14, 17, 22, 0.30);
  --ink-10: rgba(14, 17, 22, 0.08);
  --mari-orange: #E8A33D;
  --mari-teal: #7A9A99;
  --forest: #1A472A;
  --forest-80: rgba(26, 71, 42, 0.80);
  --sky: #5B7CE8;
  --mist: #F5F3EE;
  --mist-dark: #EAE7DF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --hero-size: clamp(64px, 10vw, 120px);
  --h2-size: clamp(36px, 5vw, 64px);
  --h3-size: clamp(22px, 2.8vw, 36px);
  --body-size: clamp(15px, 1.2vw, 17px);
  --small-size: 13px;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  /* iPhone 15 Pro corner ratios — applied as calc() of --phone-w so corners stay circular */
  --phone-radius-ratio: 0.14;
  --phone-radius-inner-ratio: 0.115;
  --titanium: linear-gradient(180deg, #3a3c3e 0%, #1f2123 22%, #2c2e30 50%, #1f2123 78%, #3a3c3e 100%);

  --shadow-card: 0 2px 24px rgba(14,17,22,0.07), 0 1px 4px rgba(14,17,22,0.05);
  --shadow-phone: 0 50px 100px -28px rgba(14,17,22,0.40), 0 18px 36px -10px rgba(14,17,22,0.22);
  --shadow-card-hover: 0 8px 40px rgba(14,17,22,0.12), 0 2px 8px rgba(14,17,22,0.07);

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 64px;
  --section-pad: clamp(80px, 10vw, 140px);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  font-size: var(--body-size);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* --- Focus visible --- */
:focus-visible {
  outline: 2px solid var(--mari-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}
.nav.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 1px 0 var(--ink-10);
}
.nav-logo {
  height: 28px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-60);
  transition: color var(--transition-fast);
  letter-spacing: -0.01em;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background var(--transition-fast), transform var(--transition-fast) !important;
}
.nav-cta:hover {
  background: var(--forest) !important;
  transform: translateY(-1px);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-h) clamp(20px, 6vw, 80px) 80px;
  position: relative;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  width: clamp(500px, 80vw, 900px);
  height: clamp(500px, 80vw, 900px);
  border-radius: 50%;
  background: conic-gradient(
    from 180deg,
    rgba(232,163,61,0.12) 0deg,
    rgba(122,154,153,0.10) 90deg,
    rgba(91,124,232,0.08) 180deg,
    rgba(26,71,42,0.07) 270deg,
    rgba(232,163,61,0.12) 360deg
  );
  filter: blur(40px);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orbRotate 24s linear infinite;
  pointer-events: none;
  will-change: transform;
  contain: layout paint;
}
@keyframes orbRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.hero-wordmark {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: var(--hero-size);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--ink);
  margin: 0 0 28px;
  display: block;
  min-height: 1em;
}
.hero-wordmark .letter {
  display: inline-block;
  opacity: 0;
  animation: letterType 1ms step-end forwards;
}
.hero-wordmark .letter--orange { color: var(--mari-orange); }
.hero-wordmark .letter--teal   { color: var(--mari-teal); }
@keyframes letterType {
  to { opacity: 1; }
}
.hero-cursor {
  display: inline-block;
  width: 0.06em;
  height: 0.78em;
  background: var(--mari-orange);
  margin-left: 0.04em;
  vertical-align: -0.05em;
  opacity: 0;
  animation: cursorAppear 0.001s 0.1s forwards, cursorBlink 0.95s steps(1) 0.1s infinite;
  border-radius: 1px;
}
@keyframes cursorAppear {
  to { opacity: 1; }
}
@keyframes cursorBlink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.hero-tag {
  font-size: clamp(17px, 2vw, 22px);
  color: var(--ink-60);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.5;
  margin-bottom: 48px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.hero-tag em {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--ink);
}
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--white);
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background var(--transition-smooth), transform var(--transition-spring), box-shadow var(--transition-smooth);
  box-shadow: 0 4px 16px rgba(14,17,22,0.16);
}
.btn-primary:hover {
  background: var(--forest);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(14,17,22,0.20);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-60);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
  padding: 16px 8px;
}
.btn-ghost:hover { color: var(--ink); }
.hero-scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s 1.8s forwards;
}
.hero-scroll-hint span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-30);
  font-weight: 500;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--ink-30), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(0.6); opacity: 0.2; }
}
@keyframes fadeIn { to { opacity: 1; } }

/* ============================================================
   PHONE STORY (Pinned Scroll Section)
   ============================================================ */
.story-section {
  position: relative;
}
.story-sticky {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.story-panels {
  /* panels are scroll-driven via JS */
}
.story-scroll-driver {
  /* tall element that drives scroll progress */
  pointer-events: none;
}
.story-inner {
  display: flex;
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
  max-width: 1100px;
  width: 100%;
  padding: 0 clamp(20px, 6vw, 80px);
}

/* iPhone 15 Pro mockup */
.phone-frame {
  --phone-w: clamp(200px, 23vw, 280px);
  flex-shrink: 0;
  position: relative;
  width: var(--phone-w);
}
.phone-bezel {
  position: relative;
  width: 100%;
  padding-bottom: 216%;
  background: var(--titanium);
  border-radius: calc(var(--phone-w) * var(--phone-radius-ratio));
  /* Drop + titanium polish ring + subtle bevel */
  box-shadow:
    var(--shadow-phone),
    inset 0 0 0 0.5px rgba(255,255,255,0.20),
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.45);
  overflow: hidden;
}
.phone-bezel::before {
  /* Dynamic Island — pill, true black, sits above the screen */
  content: '';
  position: absolute;
  top: calc(var(--phone-w) * 0.06);
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--phone-w) * 0.32);
  height: calc(var(--phone-w) * 0.10);
  background: #000;
  border-radius: 999px;
  z-index: 10;
  box-shadow:
    inset 0 0 0 0.5px rgba(255,255,255,0.04),
    inset 0 1px 1.5px rgba(0,0,0,0.6);
}
.phone-screen {
  /* Uniform-thickness black bezel ring around the screen.
     Pixel-equivalent inset (computed from phone width) keeps top/bottom and
     side bezels visually equal — percentages would resolve against H vs W. */
  --bezel: calc(var(--phone-w) * 0.025);
  position: absolute;
  top: var(--bezel);
  left: var(--bezel);
  right: var(--bezel);
  bottom: var(--bezel);
  border-radius: calc(var(--phone-w) * var(--phone-radius-inner-ratio));
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.8);
}
.phone-screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  will-change: opacity;
}
.phone-screenshot.active { opacity: 1; }

/* Story Copy Panels */
.story-copy {
  flex: 1;
  position: relative;
  min-height: 260px;
}
.story-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  pointer-events: none;
}
.story-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.story-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mari-teal);
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.story-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--mari-teal);
  border-radius: 2px;
}
.story-title {
  font-family: var(--font-display);
  font-size: var(--h3-size);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 18px;
}
.story-body {
  font-size: 16px;
  font-weight: 300;
  color: var(--ink-60);
  line-height: 1.7;
  max-width: 420px;
}

/* Progress dots */
.story-dots {
  display: flex;
  gap: 8px;
  margin-top: 36px;
}
.story-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-10);
  transition: background var(--transition-smooth), width var(--transition-smooth);
  cursor: pointer;
  border: none;
}
.story-dot.active {
  width: 24px;
  border-radius: 3px;
  background: var(--ink);
}

/* ============================================================
   FEATURE GRID
   ============================================================ */
.features-section {
  padding: var(--section-pad) clamp(20px, 6vw, 80px);
  background: var(--mist);
}
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mari-teal);
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: center;
  color: var(--ink);
  margin-bottom: 72px;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--mist-dark);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  cursor: default;
  opacity: 0;
  transform: translateY(16px);
}
.feature-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--mari-teal);
}
.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  color: var(--forest);
}
.feature-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-60);
  line-height: 1.7;
}

/* ============================================================
   SHOWCASE STRIP
   ============================================================ */
.showcase-section {
  padding: var(--section-pad) 0;
  overflow: hidden;
}
.showcase-label {
  text-align: center;
  margin-bottom: 56px;
  padding: 0 clamp(20px, 6vw, 80px);
}
.showcase-scroll {
  display: flex;
  gap: 24px;
  padding: 40px clamp(20px, 6vw, 80px) 60px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.showcase-scroll::-webkit-scrollbar { display: none; }
.showcase-phone {
  --phone-w: clamp(140px, 18vw, 200px);
  flex-shrink: 0;
  scroll-snap-align: center;
  width: var(--phone-w);
  position: relative;
  transition: transform var(--transition-smooth);
}
.showcase-phone:nth-child(odd) { transform: rotate(-2.5deg) translateY(10px); }
.showcase-phone:nth-child(even) { transform: rotate(2.5deg) translateY(-6px); }
.showcase-phone:hover { transform: rotate(0deg) translateY(-12px) scale(1.04) !important; }
.showcase-phone .phone-bezel { padding-bottom: 216%; }
.showcase-phone .phone-screenshot { opacity: 1; position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; }
.showcase-label-text {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-30);
  text-align: center;
  margin-top: 16px;
  font-weight: 500;
}

/* ============================================================
   QUOTE / CLOSING CTA
   ============================================================ */
.quote-section {
  padding: var(--section-pad) clamp(20px, 6vw, 80px);
  text-align: center;
  background: var(--forest);
  position: relative;
  overflow: hidden;
}
.quote-orb {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,163,61,0.15) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.arabic-text {
  font-size: clamp(22px, 3.5vw, 38px);
  color: rgba(255,255,255,0.4);
  font-family: 'Traditional Arabic', 'Scheherazade New', serif;
  direction: rtl;
  margin-bottom: 32px;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.02em;
}
.quote-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 54px);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 760px;
  margin: 0 auto 20px;
}
.quote-source {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  margin-bottom: 64px;
}
.quote-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--ink);
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background var(--transition-smooth), transform var(--transition-spring), box-shadow var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-light:hover {
  background: var(--mist);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
}
.btn-ghost-light {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 16px 8px;
  transition: color var(--transition-fast);
}
.btn-ghost-light:hover { color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  padding: 56px clamp(20px, 6vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo { height: 24px; width: auto; opacity: 0.8; }
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: rgba(255,255,255,0.85); }
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  letter-spacing: -0.01em;
  width: 100%;
}

/* ============================================================
   PRIVACY PAGE
   ============================================================ */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mari-orange), var(--mari-teal));
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}
.page-hero {
  padding: calc(var(--nav-h) + 80px) clamp(20px, 6vw, 80px) 80px;
  max-width: 800px;
  margin: 0 auto;
}
.page-hero .section-eyebrow { text-align: left; margin-bottom: 16px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}
.page-hero .subtitle {
  font-size: 16px;
  color: var(--ink-60);
  font-weight: 300;
  line-height: 1.65;
}
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 80px) var(--section-pad);
}
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: 56px;
  margin-bottom: 16px;
  padding-top: 56px;
  border-top: 1px solid var(--mist-dark);
}
.prose h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.prose p {
  color: var(--ink-60);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 16px;
}
.prose p strong { color: var(--ink); font-weight: 500; }
.prose ul {
  margin: 16px 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prose ul li {
  color: var(--ink-60);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--mari-teal);
}
.data-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mist);
  border: 1px solid var(--mist-dark);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin: 4px 4px 4px 0;
}
.data-badge.good { border-color: rgba(26,71,42,0.2); color: var(--forest); background: rgba(26,71,42,0.06); }
.data-badge.neutral { border-color: rgba(122,154,153,0.3); color: var(--mari-teal); background: rgba(122,154,153,0.08); }

/* ============================================================
   REPORT BUG PAGE
   ============================================================ */
.form-section {
  padding: calc(var(--nav-h) + 60px) clamp(20px, 5vw, 60px) var(--section-pad);
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
}
.form-header {
  text-align: center;
  max-width: 540px;
  margin-bottom: 56px;
}
.form-header .section-eyebrow { margin-bottom: 12px; }
.form-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 14px;
}
.form-header p {
  font-size: 15px;
  color: var(--ink-60);
  font-weight: 300;
  line-height: 1.65;
}
.bug-form-card {
  background: var(--white);
  border: 1px solid var(--mist-dark);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  width: 100%;
  max-width: 660px;
  box-shadow: var(--shadow-card);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.form-group label .optional {
  font-weight: 400;
  color: var(--ink-30);
  font-size: 12px;
  margin-left: 4px;
}
.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--mist);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--ink-30); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--mari-teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(122,154,153,0.15);
}
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #E05050;
  box-shadow: 0 0 0 3px rgba(224,80,80,0.12);
}
.form-error-msg {
  font-size: 12px;
  color: #C04040;
  display: none;
}
.form-error-msg.visible { display: block; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230E1116' stroke-opacity='.4' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}
/* Custom Radios */
.radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 9px 16px;
  border: 1.5px solid var(--mist-dark);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-60);
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
  user-select: none;
}
.radio-label input[type="radio"] { display: none; }
.radio-label:hover {
  border-color: var(--mari-teal);
  color: var(--ink);
}
.radio-label:has(input:checked) {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--ink);
  color: var(--white);
}
.radio-label.severity-low:has(input:checked)    { background: var(--mari-teal);   border-color: var(--mari-teal);   color: var(--white); }
.radio-label.severity-medium:has(input:checked) { background: var(--mari-orange); border-color: var(--mari-orange); color: var(--white); }
.radio-label.severity-high:has(input:checked)   { background: #C0622A;            border-color: #C0622A;            color: var(--white); }
.radio-label.severity-critical:has(input:checked){ background: #9B2020;           border-color: #9B2020;            color: var(--white); }
/* File input */
.file-input-wrap {
  position: relative;
  background: var(--mist);
  border: 1.5px dashed var(--mist-dark);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.file-input-wrap:hover {
  border-color: var(--mari-teal);
  background: rgba(122,154,153,0.05);
}
.file-input-wrap input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.file-label {
  font-size: 13px;
  color: var(--ink-60);
  font-weight: 400;
  pointer-events: none;
}
.file-label strong { color: var(--mari-teal); font-weight: 500; }
/* Submit button */
.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background var(--transition-smooth), transform var(--transition-spring), box-shadow var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(14,17,22,0.16);
  position: relative;
  overflow: hidden;
  border: none;
  margin-top: 8px;
}
.btn-submit:hover:not(:disabled) {
  background: var(--forest);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(14,17,22,0.20);
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-submit.success {
  background: var(--forest);
  pointer-events: none;
}
.checkmark-icon { display: none; }
.btn-submit.success .submit-text { display: none; }
.btn-submit.success .checkmark-icon { display: block; }
.success-msg {
  display: none;
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(26,71,42,0.07);
  border: 1px solid rgba(26,71,42,0.15);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--forest);
  font-weight: 400;
  line-height: 1.65;
  text-align: center;
}
.success-msg.visible { display: block; }

/* ============================================================
   SCROLL REVEAL UTILITY
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s 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; }

/* ============================================================
   CUSTOM CURSOR (desktop only)
   ============================================================ */
.cursor-blob {
  position: fixed;
  top: 0; left: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(232, 163, 61, 0.25);
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  mix-blend-mode: multiply;
  will-change: transform;
  display: none;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mobile-close {
  position: absolute;
  top: 20px; right: clamp(20px, 5vw, 60px);
  font-size: 28px;
  color: var(--ink-60);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  line-height: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: flex; }

  /* Keep the sticky scroll-driven model on mobile too — just stack the phone
     above the copy and tighten everything. Going position:static here used to
     break the whole story: panels would scroll off-screen while JS toggled
     active state on elements no longer visible. */
  .story-sticky {
    /* Allow it to size to its stacked content; sticky pins at top: nav-h. */
    height: auto;
    min-height: calc(100vh - var(--nav-h));
    padding: 12px 0;
  }
  .story-inner {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 12px clamp(16px, 4vw, 32px);
  }
  .phone-frame { --phone-w: clamp(140px, 38vw, 190px); width: var(--phone-w); }
  .story-copy {
    width: 100%;
    max-width: 420px;
    /* Tall enough to fit the longest panel content (eyebrow + 2-line title +
       3-4 line body + dot row) without the absolute panels overflowing
       above/below the box. */
    min-height: 290px;
    padding-top: 12px;
    text-align: center;
  }
  /* Anchor content to top of .story-copy so the eyebrow can't drift up into
     the phone bezel. (Desktop centers vertically; that's intentional there.) */
  .story-panel { justify-content: flex-start; }
  .story-eyebrow { justify-content: center; }
  .story-eyebrow::before { display: none; }
  .story-title { font-size: clamp(28px, 7.5vw, 40px); line-height: 1.1; }
  .story-body  { font-size: 15px; }
  .story-dots  { justify-content: center; margin-top: 18px; }

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

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 480px) {
  :root { --section-pad: 64px; }
  .showcase-phone { --phone-w: 130px; width: var(--phone-w); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-orb { animation: none; }
  .cursor-blob { display: none !important; }
  html { scroll-behavior: auto; }
}
