/* ── Home page ── */

/* ══════════════════════════════════════
   HERO — split path layout
══════════════════════════════════════ */
#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - var(--nav-h));
  background: var(--black);
  position: relative;
  overflow: hidden;
  padding-bottom: 5rem;
}

/* ── Eyebrow ── */
.hero-eyebrow {
  text-align: center;
  padding: 4rem 2rem 2.5rem;
  z-index: 2;
  position: relative;
}

.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.35);
  margin-bottom: 1rem;
}

.hero-eyebrow h1 {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

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

.hero-eyebrow > p {
  font-size: 1rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* ── Split row ── */
.hero-split {
  display: flex;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  gap: 0;
  align-items: stretch;
  flex: 1;
}

/* ── Individual panel ── */
.hero-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--white);
  transition: flex 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
}

.hero-panel:hover {
  flex: 1.6;
}

/* ── Image container ── */
.hero-panel-images {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
}

/* Primary image */
.hero-img-primary {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.hero-img-primary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.hero-panel:hover .hero-img-primary img {
  transform: scale(1.04);
}

/* Secondary images row — hidden until hover */
.hero-img-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease 0.1s;
}

.hero-panel:hover .hero-img-secondary {
  max-height: 200px;
  opacity: 1;
}

.hero-img-secondary-item {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.hero-img-secondary-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-img-secondary-item:hover img {
  transform: scale(1.06);
}

/* ── Panel text ── */
.hero-panel-content {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hero-panel-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-glow);
  opacity: 0.65;
  transition: opacity 0.2s;
}

.hero-panel:hover .hero-panel-tag { opacity: 1; }

.hero-panel-content h2 {
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  color: var(--white);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

.hero-panel-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin: 0;
}

/* Detail bullets — revealed on hover */
.hero-panel-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.25rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.hero-panel:hover .hero-panel-details {
  opacity: 1;
  transform: translateY(0);
}

.hero-panel-detail-item {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-check {
  color: var(--green-glow);
  font-size: 0.7rem;
}

.hero-panel-cta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.3);
  margin-top: 0.5rem;
  display: inline-block;
  transition: color 0.2s, transform 0.2s;
}

.hero-panel:hover .hero-panel-cta {
  color: var(--white);
  transform: translateX(4px);
}

/* ── Panel price ── */
.hero-panel-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.hero-price {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.hero-shipping {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-glow);
  border: 1px solid var(--green-glow);
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
}

/* ── Center divider ── */
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  flex-shrink: 0;
  z-index: 3;
}

.hero-divider span {
  background: var(--black);
  color: rgba(255,255,255,0.2);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.55rem;
}

/* ── Bottom blurb ── */
.hero-blurb {
  text-align: center;
  padding: 2.5rem 2rem 1rem;
  z-index: 2;
  position: relative;
}

.hero-blurb h1 {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

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

.hero-blurb > p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

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

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

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

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

/* ── Responsive ── */
@media (max-width: 700px) {
  .hero-split {
    flex-direction: column;
    padding: 0 1rem;
    gap: 0.75rem;
  }

  .hero-panel { flex: none; }
  .hero-panel:hover { flex: none; }

  .hero-divider {
    width: 100%;
    height: 36px;
    flex-direction: row;
  }

  .hero-panel-details { opacity: 1; transform: none; }
  .hero-img-secondary { max-height: 150px; opacity: 1; }
}

/* ══════════════════════════════════════
   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(--gray-50);
}

.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 { color: var(--black); }
.feature-wide-text p { color: var(--gray-700); }

/* ── 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;
}
