/* ── Home page ── */

/* ══════════════════════════════════════
   HERO — keep existing UX, clean up style
══════════════════════════════════════ */
#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: calc(100vh - var(--nav-h));
  padding: 4rem 2rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.25rem;
}

.hero-content h1 {
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.25rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.hero-content h1 .prompt {
  color: var(--green-glow);
  margin-right: 0.25em;
}

.hero-content > p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* ── Path cards ── */
.hero-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.path-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.5rem;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(12px);
  color: var(--white);
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.path-card:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.6);
  transform: translateY(-3px);
}

.path-card-icon { font-size: 2.25rem; line-height: 1; }

.path-card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--green-glow);
  opacity: 0.8;
}

.path-card-body h3 {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--white);
  margin: 0.2rem 0 0.35rem;
}

.path-card-body p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
  margin: 0;
}

.path-card-cta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-top: auto;
  letter-spacing: 0.05em;
  transition: color 0.15s;
}

.path-card:hover .path-card-cta { color: var(--white); }

/* ── Scroll hint ── */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.hero-scroll-hint:hover { color: rgba(255,255,255,0.8); }

.hero-arrow { animation: bounce 2s ease-in-out infinite; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ══════════════════════════════════════
   FEATURE SECTIONS
══════════════════════════════════════ */

/* ── Detect: full-bleed split ── */
#detect {
  padding: 0;
  overflow: hidden;
  background: var(--off-white);
}

.detect-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.detect-image { overflow: hidden; }
.detect-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detect-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: 5rem 4rem;
}

/* ── Components: 60/40 split, image left ── */
#components {
  padding: 0;
  overflow: hidden;
  background: var(--black);
}

.feature-wide {
  display: grid;
  grid-template-columns: 3fr 2fr;
  min-height: 520px;
}

.feature-wide-image { overflow: hidden; }
.feature-wide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}

.feature-wide-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: 5rem 4rem;
}

.feature-wide-text h2,
.feature-wide-text p { color: var(--white); }
.feature-wide-text p { color: rgba(255,255,255,0.6); }

/* ── Mission ── */
#mission {
  padding: 7rem 4rem;
  background: var(--white);
}

#mission .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-img-bare {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}

.feature-img-bare img {
  width: 100%;
  display: block;
}

/* ── Web App ── */
#webapp {
  padding: 7rem 4rem;
  background: var(--off-white);
}

#webapp .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-img-screen {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
  border: 1px solid var(--gray-100);
}

.feature-img-screen::before {
  content: '';
  display: block;
  height: 36px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  background-image: radial-gradient(circle, #fc5f5a 6px, transparent 6px),
                    radial-gradient(circle, #fdbc40 6px, transparent 6px),
                    radial-gradient(circle, #34c84a 6px, transparent 6px);
  background-position: 14px center, 30px center, 46px center;
  background-repeat: no-repeat;
}

.feature-img-screen img { width: 100%; display: block; }

/* ── Shared feature text ── */
.feature-text {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.detect-text h2,
.feature-text h2,
.feature-wide-text h2 {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.detect-text p,
.feature-text p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  max-width: 440px;
}

.detect-text .section-label { color: var(--gray-500); }

.feature-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover { background: var(--gray-700); }

.btn-secondary {
  background: transparent;
  color: var(--black);
  border-color: var(--gray-300);
}
.btn-secondary:hover { background: var(--gray-50); }

.btn-ghost {
  background: transparent;
  color: var(--gray-500);
  border-color: var(--gray-100);
}
.btn-ghost:hover { color: var(--black); border-color: var(--gray-300); }

/* white variants for dark sections */
.btn-white {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-white:hover { background: var(--gray-100); }

.btn-white-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-white-outline:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.06); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  background: var(--black);
  color: var(--gray-500);
  padding: 4rem 4rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-grid > div > p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.3);
}

footer h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 1rem;
}

footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

footer ul a {
  text-decoration: none;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.12s;
}

footer ul a:hover { color: var(--white); }

footer ul a i { font-size: 0.85rem; width: 1rem; }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.03em;
}
