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

:root {
  --orange: #FF6C0C;
  --orange-glow: rgba(255, 108, 12, 0.35);
  --orange-dim: rgba(255, 108, 12, 0.12);
  --bg-deep: oklch(10% 0.018 40);
  --bg-mid: oklch(13% 0.02 38);
  --bg-light: oklch(16% 0.022 36);
  --text-cream: oklch(94% 0.01 60);
  --text-muted: oklch(78% 0.01 50);
  --font: 'Montserrat', sans-serif;
}

/* Nothing on the site is meant to be reachable by scrolling sideways, so the
   clip is anchored on <html> rather than <body>. Left to body alone the value
   propagates up to the viewport and body itself stays `visible`, which is why
   iOS still let the page drift horizontally (and pinch out to reveal the
   overhang). `clip` is preferred over `hidden` because it does not turn the
   element into a scroll container; `hidden` stays first as the Safari <16
   fallback. */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-cream);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Canvas for firefly dots */
#firefly-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav::before {
  content: '';
  position: absolute;
  inset: 0 0 -10px 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(14,10,8,0.95) 0%, transparent 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}

nav > * { position: relative; z-index: 1; }

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}

/* Nav links and the CTA share one cell so they cross-fade in place */
.nav-right {
  display: grid;
  align-items: center;
}

.nav-right > * {
  grid-area: 1 / 1;
  justify-self: end;
  align-self: center;
}

/* Whichever element is leaving goes first; the other arrives after, so the
   two never sit on top of each other mid-swap. */
.nav-right .nav-links:not(.is-hidden) {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease 0.18s, visibility 0.3s ease 0.18s;
}

.nav-right .nav-links.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-right .nav-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transition: transform 0.15s, box-shadow 0.15s,
              opacity 0.3s ease 0.18s, visibility 0.3s ease 0.18s;
}

.nav-right .nav-cta:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  transition: transform 0.15s, box-shadow 0.15s,
              opacity 0.2s ease, visibility 0.2s ease;
}

.nav-cta {
  background: var(--orange);
  color: white;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.4s ease, visibility 0.4s ease;
  box-shadow: 0 0 20px var(--orange-glow);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 36px rgba(255,108,12,0.5);
}

/* HERO */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  z-index: 1;
}

.hero-glow-ring {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,108,12,0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-dim);
  border: 1px solid rgba(255,108,12,0.25);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-headline {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--text-cream);
  max-width: 900px;
  margin-bottom: 12px;
  text-wrap: balance;
}

.hero-headline .orange { color: var(--orange); }

.hero-headline .glow-word {
  color: var(--orange);
  text-shadow: 0 0 40px rgba(255,108,12,0.6), 0 0 80px rgba(255,108,12,0.3);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 48px;
  text-wrap: pretty;
}

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

.btn-primary {
  background: var(--orange);
  color: white;
  font-family: var(--font);
  font-weight: 800;
  font-size: 16px;
  padding: 18px 36px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: 0 0 40px rgba(255,108,12,0.4), 0 8px 32px rgba(255,108,12,0.2);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(255,108,12,0.6), 0 12px 40px rgba(255,108,12,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-cream);
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  padding: 17px 32px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: scroll-bounce 2.5s infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg);
}

/* SECTION BASE */
section {
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 100px 48px;
}

.section-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--text-cream);
  text-wrap: balance;
}

.section-subtitle {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 520px;
  margin-top: 16px;
  text-wrap: pretty;
}

/* HOW IT WORKS */
#how {
  background: var(--bg-mid);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 64px;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s, transform 0.3s;
}

.step.visible {
  opacity: 1;
  transform: translateX(0);
}

.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  box-shadow: 0 0 16px var(--orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--orange);
  transition: background 0.25s, box-shadow 0.25s, color 0.25s, transform 0.25s;
}

.step-content h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-cream);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  transition: color 0.25s;
}

.step-content p {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.65;
  transition: color 0.25s;
}

.how-visual {
  position: relative;
  width: 264px;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.how-frame {
  position: relative;
  width: 100%;
  height: 574px; /* matches 414x900 screenshot aspect */
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-light);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 0 80px rgba(255,108,12,0.12);
}

.how-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.how-slide.active {
  opacity: 1;
}

.how-arrow {
  position: absolute;
  top: 287px; /* vertical center of the 574px frame */
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,10,10,0.55);
  color: var(--text-cream);
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  z-index: 2;
}

.how-arrow:hover {
  background: rgba(255,108,12,0.85);
  border-color: var(--orange);
}

.how-arrow.prev { left: -52px; }
.how-arrow.next { right: -52px; }

.how-dots {
  display: flex;
  gap: 8px;
}

.how-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s;
}

.how-dot.active {
  width: 22px;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange-glow);
}

.step {
  cursor: pointer;
}

.step.visible:hover {
  transform: translateX(6px);
}

.step:hover .step-num {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 0 32px var(--orange-glow);
  transform: scale(1.08);
}

.step:hover .step-content h3 {
  color: #fff;
}

.step:hover .step-content p {
  color: var(--text-cream);
}

/* VIDEO */
#video-section {
  background: var(--bg-deep);
}

.video-wrap {
  margin-top: 56px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 0 100px rgba(255,108,12,0.1), 0 40px 80px rgba(0,0,0,0.5);
  background: var(--bg-mid);
  aspect-ratio: 16/9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,14,10,0.85) 0%, rgba(30,18,10,0.7) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: background 0.3s;
}

.video-wrap:hover .video-overlay {
  background: linear-gradient(135deg, rgba(20,14,10,0.7) 0%, rgba(30,18,10,0.5) 100%);
}

.play-btn {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 60px rgba(255,108,12,0.5), 0 0 120px rgba(255,108,12,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-wrap:hover .play-btn {
  transform: scale(1.1);
  box-shadow: 0 0 80px rgba(255,108,12,0.7), 0 0 160px rgba(255,108,12,0.3);
}

.play-btn svg {
  width: 28px;
  height: 28px;
  fill: white;
  margin-left: 4px;
}

.video-caption {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-cream);
  opacity: 0.8;
  letter-spacing: 0.3px;
}

.video-bg-stripe {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,108,12,0.03) 0px,
    rgba(255,108,12,0.03) 1px,
    transparent 1px,
    transparent 20px
  );
}

/* FEATURES */
#features {
  background: var(--bg-mid);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.features-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}

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

.feature-card {
  background: var(--bg-deep);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 32px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s, transform 0.4s, border-color 0.2s, box-shadow 0.2s;
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  border-color: rgba(255,108,12,0.3);
  box-shadow: 0 0 40px rgba(255,108,12,0.08);
  transform: translateY(-4px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--orange-dim);
  border: 1px solid rgba(255,108,12,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-cream);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.feature-card p {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.65;
}

/* TESTIMONIALS */
#testimonials {
  background: var(--bg-deep);
  overflow: hidden;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 64px;
}

.quotes-track-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 -48px;
}

.quotes-track-wrap::before,
.quotes-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.quotes-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-deep), transparent);
}

.quotes-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-deep), transparent);
}

.quotes-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scroll-quotes 32s linear infinite;
  padding: 8px 0;
}

@media (hover: hover) {
  .quotes-track:hover {
    animation-play-state: paused;
  }
}

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

.quote-card {
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 28px 32px;
  width: 320px;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.quote-card:hover {
  border-color: rgba(255,108,12,0.2);
}

.quote-mark {
  font-size: 32px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.7;
}

.quote-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-cream);
  line-height: 1.6;
  margin-bottom: 20px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange-dim);
  border: 1px solid rgba(255,108,12,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--orange);
}

.quote-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-cream);
}

.quote-role {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Arrows + dots only drive the mobile one-at-a-time slideshow below */
.quote-controls { display: none; }

.quote-arrow {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,10,10,0.55);
  color: var(--text-cream);
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.quote-arrow:hover,
.quote-arrow:active {
  background: rgba(255,108,12,0.85);
  border-color: var(--orange);
}

.quote-dots {
  display: flex;
  gap: 8px;
}

.quote-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s;
}

.quote-dot.active {
  width: 22px;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange-glow);
}

/* STATS BAND */
#stats {
  background: var(--orange);
  padding: 56px 48px;
}

.stats-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  color: white;
  letter-spacing: -2px;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* CTA FOOTER */
#cta-footer {
  background: var(--bg-deep);
  text-align: center;
}

.cta-glow {
  position: absolute;
  /* Purely decorative, so it shrinks with the screen instead of pushing the
     page 205px wider than the viewport on a phone. */
  width: min(800px, 100%);
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,108,12,0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-headline {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--text-cream);
  max-width: 700px;
  margin: 0 auto 20px;
  text-wrap: balance;
}

.cta-headline .glow-word {
  color: var(--orange);
  text-shadow: 0 0 40px rgba(255,108,12,0.6);
}

.cta-sub {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 48px;
  line-height: 1.65;
  text-wrap: pretty;
}

/* FOOTER BAR */
footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

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

.footer-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--orange); }

/* INTERSECTION OBSERVER ANIMATION */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 16px 20px; flex-wrap: wrap; gap: 8px 16px; }
  .nav-logo img { height: 26px; }
  .nav-right { min-width: 0; }
  .nav-right .nav-links { flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; }
  .section-inner { padding: 72px 24px; }
  .how-grid { grid-template-columns: 1fr; gap: 48px; }
  .how-visual { width: 220px; }
  .how-frame { height: 478px; }
  .how-arrow { top: 239px; }
  .how-arrow.prev { left: -46px; }
  .how-arrow.next { right: -46px; }
  .features-intro { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: 1fr; gap: 40px; }
  #stats { padding: 48px 24px; }
  footer { flex-direction: column; gap: 16px; text-align: center; }

  /* The marquee is one very wide animated layer, which mobile browsers
     throttle and sometimes drop entirely — show one card at a time instead. */
  .quotes-track-wrap { margin: 0; padding: 0 24px; }
  .quotes-track-wrap::before,
  .quotes-track-wrap::after { display: none; }

  .quotes-track {
    display: grid;
    width: 100%;
    animation: none;
  }

  .quote-card {
    grid-area: 1 / 1;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s;
  }

  .quote-card.is-active {
    opacity: 1;
    visibility: visible;
  }

  .quote-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
  }
}

@media (max-width: 500px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   DOC PAGES (Privacy, Terms, Support, Safety, Delete Account)
   ═══════════════════════════════════════════════════════════ */

/* Fireflies sit further back behind long-form text */
body.doc #firefly-canvas { opacity: 0.22; }

nav.nav-doc {
  gap: 24px;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--text-cream); }

.nav-links a.active {
  color: var(--orange);
}

.doc-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.doc-hero {
  padding: 160px 24px 0;
  text-align: center;
  position: relative;
}

.doc-hero::after {
  content: '';
  position: absolute;
  width: 700px;
  max-width: 100%;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,108,12,0.07) 0%, transparent 70%);
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
}

.doc-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.doc-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -1.6px;
  line-height: 1.05;
  color: var(--text-cream);
  max-width: 760px;
  margin: 0 auto;
  text-wrap: balance;
}

.doc-meta {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 20px;
  line-height: 1.6;
}

.doc-meta strong {
  color: var(--text-cream);
  font-weight: 700;
}

.doc-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 120px;
  width: 100%;
}

.doc-body > .lede {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-cream);
  font-weight: 500;
  padding-bottom: 8px;
}

.doc-body h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-cream);
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  scroll-margin-top: 100px;
}

.doc-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.doc-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--orange);
  margin: 32px 0 12px;
  letter-spacing: -0.2px;
  scroll-margin-top: 100px;
}

.doc-body p {
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.doc-body p strong,
.doc-body li strong {
  color: var(--text-cream);
  font-weight: 700;
}

.doc-body ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.doc-body li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.doc-body li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange-glow);
}

.doc-body li ul {
  margin: 10px 0 4px;
}

.doc-body li li::before {
  background: transparent;
  border: 1px solid var(--orange);
  box-shadow: none;
}

.doc-body a {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,108,12,0.3);
  transition: border-color 0.2s;
  overflow-wrap: anywhere;
}

.doc-body a:hover { border-bottom-color: var(--orange); }

/* Buttons inside prose must not inherit the prose link styling */
.doc-body a.btn-primary,
.doc-body a.btn-ghost {
  border-bottom: none;
}

.doc-body a.btn-primary { color: #fff; }
.doc-body a.btn-ghost { color: var(--text-cream); }
.doc-body a.btn-ghost:hover { color: var(--orange); }

.doc-note {
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid var(--orange);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 28px 0;
}

.doc-note p:last-child { margin-bottom: 0; }

.doc-contact {
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 28px 32px;
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

.doc-contact strong {
  display: block;
  color: var(--text-cream);
  font-weight: 700;
  margin-bottom: 6px;
}

/* FAQ */
.faq {
  margin-top: 8px;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.faq-item:first-child { border-top: 1px solid rgba(255,255,255,0.07); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 40px 22px 0;
  text-align: left;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-cream);
  cursor: pointer;
  position: relative;
  letter-spacing: -0.2px;
  transition: color 0.2s;
}

.faq-q:hover { color: var(--orange); }

.faq-q::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s;
}

.faq-item.open .faq-q::after {
  transform: translateY(-20%) rotate(-135deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-a { max-height: 400px; }

.faq-a p {
  padding-bottom: 22px;
  margin-bottom: 0;
}

/* SUPPORT CONTACT CARD */
.support-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 8px 0 40px;
}

.support-card {
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 26px 28px;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.support-card:hover {
  border-color: rgba(255,108,12,0.3);
  box-shadow: 0 0 40px rgba(255,108,12,0.08);
  transform: translateY(-3px);
}

.support-card .sc-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--orange-dim);
  border: 1px solid rgba(255,108,12,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}

.support-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-cream);
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}

.support-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ACCOUNT DELETION OPTIONS */
.delete-option {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 28px 30px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.delete-option:hover { border-color: rgba(255,108,12,0.25); }

.opt-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  box-shadow: 0 0 16px var(--orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: var(--orange);
}

.opt-body { flex: 1; min-width: 0; }

.opt-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-cream);
  margin: 6px 0 10px;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.opt-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-dim);
  border: 1px solid rgba(255,108,12,0.25);
  border-radius: 999px;
  padding: 4px 10px;
}

.opt-cta { margin: 20px 0 12px; }

.opt-cta .btn-primary {
  font-size: 15px;
  padding: 16px 30px;
}

.opt-note {
  font-size: 13.5px !important;
  line-height: 1.6;
  margin-bottom: 0 !important;
}

.form-footnote {
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 24px;
  line-height: 1.7;
}

.form-footnote a {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,108,12,0.3);
}

.form-footnote a:hover { border-bottom-color: var(--orange); }

/* RESPONSIVE — DOC PAGES */
@media (max-width: 768px) {
  nav.nav-doc {
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 10px 18px;
  }
  /* Five links do not fit one row on a small phone, so let them wrap instead
     of running off the edge. */
  .nav-links { gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
  .nav-links a { font-size: 13px; }
  .doc-hero { padding: 130px 20px 0; }
  .doc-body { padding: 48px 20px 88px; }
  .doc-body h2 { font-size: 21px; margin-top: 44px; }
  .support-cards { grid-template-columns: 1fr; }
  .delete-option { padding: 22px 20px; gap: 16px; flex-direction: column; }
  .opt-cta .btn-primary { display: block; text-align: center; }
  .doc-contact { padding: 22px 24px; }
}

@media (max-width: 420px) {
  nav { padding: 14px 16px; }
  .nav-links { gap: 8px 12px; }
  .nav-links a { font-size: 12px; }
}

/* Footer links wrap once legal pages are listed */
.footer-links {
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 10px;
}

/* ─────────────────────────────────────────────────────────
   APPLICATION FORM  (internship-application)
   ───────────────────────────────────────────────────────── */

/* Role summary chips under the hero */
.role-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 40px;
}

.role-fact {
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 18px 20px;
}

.role-fact dt {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 7px;
}

.role-fact dd {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-cream);
  line-height: 1.45;
  letter-spacing: -0.2px;
}

/* Form shell */
.apply-form {
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 22px;
  padding: 36px 38px;
  margin-top: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field.full { grid-column: 1 / -1; }

.field > label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text-cream);
}

.field .req { color: var(--orange); }

.field .hint {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-muted);
  margin: -2px 0 0;
}

.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="tel"],
.apply-form input[type="url"],
.apply-form select,
.apply-form textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-cream);
  background: var(--bg-deep);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.apply-form textarea {
  min-height: 132px;
  line-height: 1.65;
  resize: vertical;
}

/* Placeholders and the unchosen <select> stay dimmer than body copy, so an
   empty field never reads as one the applicant already filled in. */
.apply-form ::placeholder {
  color: oklch(58% 0.01 50);
  opacity: 1;
}

.apply-form select:invalid {
  color: oklch(58% 0.01 50);
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,108,12,0.15);
  background: var(--bg-light);
}

/* Native dropdown list needs an explicit dark palette on Win/Firefox */
.apply-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--orange) 50%),
    linear-gradient(135deg, var(--orange) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% + 2px),
    calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
  cursor: pointer;
}

.apply-form select option {
  background: var(--bg-mid);
  color: var(--text-cream);
}

/* Multi-select interest chips */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  position: relative;
  display: inline-flex;
}

.chip input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.chip span {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: var(--text-muted);
  background: var(--bg-deep);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 10px 18px;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  pointer-events: none;
}

.chip input:hover + span { border-color: rgba(255,108,12,0.35); color: var(--text-cream); }

.chip input:checked + span {
  color: var(--orange);
  background: var(--orange-dim);
  border-color: rgba(255,108,12,0.45);
  box-shadow: 0 0 18px rgba(255,108,12,0.12);
}

.chip input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(255,108,12,0.25);
}

/* Confirmation checkboxes */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}

.check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 13px;
  align-items: start;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-muted);
  cursor: pointer;
}

.check input {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: var(--bg-deep);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.check input:checked {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 14px var(--orange-glow);
}

.check input:checked::after {
  content: '';
  position: absolute;
  left: 6.5px;
  top: 2.5px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.check input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,108,12,0.25);
}

.check strong { color: var(--text-cream); font-weight: 700; }

/* Submit row */
.form-submit {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.apply-form button.btn-primary {
  font-family: var(--font);
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 18px 38px;
}

.apply-form button.btn-primary[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.form-status.error { color: #ff8a6b; }

/* Post-submit confirmation */
.form-success {
  text-align: center;
  padding: 48px 32px;
}

.form-success .fs-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  box-shadow: 0 0 28px var(--orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--orange);
}

.form-success h3 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-cream);
  margin: 0 0 12px;
}

.form-success p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto 8px;
}

/* Nav "Apply Now" reads as an opportunity, not another legal page */
.nav-links a.nav-apply {
  color: var(--orange);
  background: var(--orange-dim);
  border: 1px solid rgba(255,108,12,0.28);
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 700;
}

.nav-links a.nav-apply:hover {
  color: var(--orange);
  background: rgba(255,108,12,0.2);
  border-color: rgba(255,108,12,0.5);
}

@media (max-width: 768px) {
  /* iOS Safari zooms the page in whenever a focused field is under 16px, and
     never zooms back out on blur, which leaves the applicant scrolling
     sideways through a form that no longer fits. 16px keeps the page put. */
  .apply-form input[type="text"],
  .apply-form input[type="email"],
  .apply-form input[type="tel"],
  .apply-form input[type="url"],
  .apply-form select,
  .apply-form textarea { font-size: 16px; }
  .role-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .role-fact { padding: 15px 16px; }
  .apply-form { padding: 26px 22px; border-radius: 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .form-submit { flex-direction: column; align-items: stretch; gap: 14px; }
  .apply-form button.btn-primary { width: 100%; }
  .form-status { text-align: center; min-width: 0; }
  .form-success { padding: 34px 12px; }
}

@media (max-width: 420px) {
  .role-facts { grid-template-columns: 1fr; }
  .nav-links a.nav-apply { padding: 6px 12px; }
}

/* ─────────────────────────────────────────────────────────
   READING SHEET
   A dimmed, softly blurred panel behind long-form text on the
   policy pages, so the fireflies stay atmospheric in the margins
   without drifting through a paragraph someone is reading.
   Not used on the internship page — its form supplies its own.
   ───────────────────────────────────────────────────────── */
.doc-body.reading-sheet {
  /* Wider than the plain .doc-body by exactly the extra padding, so the
     line length readers actually see is unchanged. */
  max-width: 844px;
  padding: 56px 56px 88px;
  margin-bottom: 96px;
  background: rgba(22, 16, 12, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 28px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

/* Cards sit on the sheet rather than on the page, so lift them a step
   to keep their edges readable. */
.reading-sheet .doc-note,
.reading-sheet .doc-contact,
.reading-sheet .support-card {
  background: var(--bg-light);
}

@media (max-width: 768px) {
  .doc-body.reading-sheet {
    padding: 34px 22px 64px;
    /* width:auto, because .doc-body's width:100% plus these side margins put
       the sheet's right edge past the screen. */
    width: auto;
    margin: 0 14px 64px;
    border-radius: 20px;
  }
}

@media (max-width: 420px) {
  .doc-body.reading-sheet {
    padding: 28px 18px 56px;
    width: auto;
    margin: 0 10px 56px;
    border-radius: 16px;
  }
}
