/* QuantaSMS taste redesign — elevated product landing (Void/Pulse language) */
:root {
  --void: #020207;
  --void-elevated: #0b0c14;
  --card: rgba(10, 12, 22, 0.78);
  --card-border: rgba(45, 212, 191, 0.16);
  --teal: #2dd4bf;
  --cyan: #67e8f9;
  --violet: #8b5cf6;
  --text: #f4f6ff;
  --text-muted: rgba(244, 246, 255, 0.64);
  --text-dim: rgba(244, 246, 255, 0.4);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius-lg: 28px;
  --max: 1180px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html, body { overflow-x: hidden; }

/* Full-bleed hero composition */
.hero {
  min-height: 100dvh;
  padding-top: calc(var(--nav-h) + 2.5rem);
  padding-bottom: 3rem;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 2.5rem 3rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  background: rgba(45, 212, 191, 0.06);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.35rem;
}
.hero-copy { min-width: 0; }
.hero-copy h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 1.1rem;
}
.hero-hook {
  font-size: 1.12rem;
  max-width: 38ch;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 420px;
}
.hero-stats .stat {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--teal);
  letter-spacing: -0.02em;
}
.hero-stats .stat span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Phone stack — product as hero visual plane */
.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
}
.phone-stack {
  position: relative;
  width: min(100%, 420px);
  height: 560px;
}
.phone-stack .phone-mock {
  position: absolute;
  width: 230px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(45, 212, 191, 0.08);
  background: #000;
  transition: transform 0.6s var(--ease-out);
}
.phone-stack .phone-mock img {
  width: 100%;
  height: auto;
  display: block;
}
.phone-stack .phone-a {
  left: 50%;
  top: 18px;
  transform: translateX(-50%) rotate(-2deg);
  z-index: 3;
  width: 248px;
}
.phone-stack .phone-b {
  left: 0;
  top: 70px;
  transform: rotate(-12deg);
  z-index: 2;
  opacity: 0.92;
}
.phone-stack .phone-c {
  right: 0;
  top: 90px;
  transform: rotate(10deg);
  z-index: 1;
  opacity: 0.9;
}
.hero-visual:hover .phone-a { transform: translateX(-50%) rotate(0deg) translateY(-6px); }
.hero-visual:hover .phone-b { transform: rotate(-14deg) translateY(4px); }
.hero-visual:hover .phone-c { transform: rotate(12deg) translateY(4px); }

.phone-glow {
  position: absolute;
  inset: 18% 10% auto;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(45, 212, 191, 0.22), rgba(139, 92, 246, 0.12), transparent 70%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

/* Section rhythm */
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}
.section-title {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  letter-spacing: -0.03em;
}

/* Screenshot gallery — fluid, no crushed columns */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  align-items: end;
}
.shot-card {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #05050a;
  transition: transform 0.45s var(--ease-out), border-color 0.3s;
  min-width: 0;
}
.shot-card:hover {
  transform: translateY(-10px);
  border-color: rgba(45, 212, 191, 0.4);
}
.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
}
.shot-caption {
  padding: 0.7rem 0.85rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* Download notice band */
.dl-band {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(45, 212, 191, 0.22);
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.08), rgba(139, 92, 246, 0.06)),
    rgba(8, 10, 18, 0.9);
  margin: 2rem 0 1.5rem;
  min-width: 0;
}
.dl-band h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}
.dl-band p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}
.dl-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

/* Article / box overflow fixes */
.blog-article {
  max-width: 46rem;
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  overflow: hidden;
}
.blog-article p.lead::first-letter {
  float: none;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin: 0;
  background: none;
  -webkit-text-fill-color: inherit;
  color: inherit;
}
.callout-grid,
.pillars,
.community-grid,
.install-detail-grid,
.compare-wrap,
.deep-dive-grid,
.bento,
.bento-card,
.pillar-card,
.deep-card {
  min-width: 0;
  max-width: 100%;
}
.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  min-width: 520px;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .screenshot-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dl-band { grid-template-columns: 1fr; }
  .dl-meta { justify-content: flex-start; }
  .phone-stack { height: 480px; width: min(100%, 320px); }
  .phone-stack .phone-a { width: 210px; }
  .phone-stack .phone-b,
  .phone-stack .phone-c { width: 180px; }
}
@media (max-width: 640px) {
  .screenshot-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual { min-height: 440px; }
  .phone-stack .phone-b,
  .phone-stack .phone-c { display: none; }
  .phone-stack .phone-a {
    left: 50%;
    transform: translateX(-50%);
    width: min(72vw, 240px);
  }
  .pillars { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-stack .phone-mock,
  .shot-card { transition: none; }
}
