/* ============================================================
   LAABS Audio — Landing Page Sections
   Hero, Features, Screenshots, Why, Docs Teaser
   ============================================================ */

/* ── ─── ─── HERO ─── ─── ── */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

/* Atmospheric background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, oklch(36% 0.088 150 / 0.35) 0%, transparent 65%),
    radial-gradient(ellipse 60% 80% at 85% 20%, oklch(27% 0.07 152 / 0.5) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 70% 85%, oklch(20% 0.055 152 / 0.4) 0%, transparent 55%);
  pointer-events: none;
}

/* Subtle noise texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-20));
  align-items: center;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 56ch;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-400);
  padding: var(--space-2) var(--space-4);
  background-color: oklch(46% 0.1 148 / 0.12);
  border: 1px solid oklch(46% 0.1 148 / 0.25);
  border-radius: var(--radius-full);
  width: fit-content;
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--forest-400);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

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

.hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero__headline em {
  font-style: italic;
  color: var(--forest-300);
}

.hero__subhead {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--forest-300);
  max-width: 50ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.hero__requirement {
  font-size: var(--text-xs);
  color: var(--forest-500);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__requirement::before {
  content: '';
  display: block;
  width: 1em;
  height: 1px;
  background-color: var(--forest-600);
}

/* Hero visual — phone composition */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.hero__phone-stack {
  position: relative;
  width: 100%;
  max-width: 340px;
}

/* Primary phone */
.hero__phone-primary {
  position: relative;
  z-index: 2;
  width: 78%;
  margin-left: 11%;
}

/* Secondary phone — peeking behind */
.hero__phone-secondary {
  position: absolute;
  z-index: 1;
  width: 62%;
  top: 5%;
  right: -8%;
  opacity: 0.65;
  filter: blur(1px);
  transform: rotate(6deg);
}

.hero__phone-tertiary {
  position: absolute;
  z-index: 1;
  width: 60%;
  top: 8%;
  left: -6%;
  opacity: 0.5;
  filter: blur(2px);
  transform: rotate(-8deg);
}

/* ── ─── ─── FEATURES SECTION ─── ─── ── */

.features-section {
  background-color: var(--bg-light-2);
}

/* Wide card — spans full row */
.feature-card--wide {
  grid-column: 1 / -1;
}

.feature-card--wide .feature-card__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (max-width: 640px) {
  .feature-card--wide .feature-card__body {
    grid-template-columns: 1fr;
  }
}

/* ── ─── ─── SCREENSHOTS SECTION ─── ─── ── */

.screenshots-section {
  background-color: var(--bg-primary);
}

/* Horizontal scrolling strip */
.screenshot-strip {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  padding-bottom: var(--space-4);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--forest-700) transparent;
  padding-inline: 1px;
}

.screenshot-strip::-webkit-scrollbar {
  height: 4px;
}

.screenshot-strip::-webkit-scrollbar-thumb {
  background-color: var(--forest-700);
  border-radius: var(--radius-full);
}

.screenshot-item {
  flex: 0 0 auto;
  width: clamp(160px, 20vw, 220px);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.screenshot-item__frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: var(--forest-900);
  border: 1.5px solid var(--border-dark);
  transition: transform var(--duration-base) var(--ease-out-quart),
              box-shadow var(--duration-base) var(--ease-out-quart);
}

.screenshot-item:hover .screenshot-item__frame {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

.screenshot-item__frame img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-item__caption {
  font-size: var(--text-xs);
  color: var(--forest-500);
  text-align: center;
  line-height: 1.4;
}

/* ── ─── ─── WHY SECTION ─── ─── ── */

.why-section {
  background-color: var(--forest-900);
  position: relative;
  overflow: hidden;
}

.why-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 0% 100%, oklch(27% 0.07 152 / 0.6) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 100% 0%, oklch(36% 0.088 150 / 0.3) 0%, transparent 55%);
  pointer-events: none;
}

.why__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(var(--space-10), 6vw, var(--space-24));
  align-items: center;
}

.why__quote {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.3;
  color: var(--text-primary);
  font-style: italic;
  position: relative;
  padding-left: var(--space-8);
}

.why__quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--forest-500));
  border-radius: var(--radius-full);
}

.why__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.why__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.why__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: oklch(56% 0.11 146 / 0.15);
  border: 1px solid oklch(56% 0.11 146 / 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--forest-400);
  font-size: 0.65rem;
}

.why__item-text {
  font-size: var(--text-base);
  color: var(--forest-300);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero__visual {
    order: -1;
  }

  .hero__phone-stack {
    max-width: 260px;
  }

  .hero__headline {
    font-size: clamp(2.2rem, 6vw, 3rem);
  }

  .why__inner {
    grid-template-columns: 1fr;
  }

  .why__quote {
    font-size: var(--text-2xl);
  }
}

/* ── ─── ─── DOCS TEASER ─── ─── ── */

.docs-teaser {
  background-color: var(--bg-light);
}

.docs-teaser__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}

@media (max-width: 640px) {
  .docs-teaser__inner {
    grid-template-columns: 1fr;
  }
}

.docs-teaser__sidebar {
  max-width: 28ch;
}

.docs-teaser__sidebar .section-heading__title {
  font-size: var(--text-3xl);
}

/* ── ─── ─── HERO GRADIENT DIVIDER ─── ─── ── */

.gradient-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--forest-700), transparent);
  opacity: 0.5;
}
