/* QuantaSMS Landing — Quantum Void design system */
:root {
  --void: #030308;
  --void-elevated: #0a0a14;
  --card: rgba(12, 14, 28, 0.72);
  --card-border: rgba(45, 212, 191, 0.14);
  --card-glow: rgba(45, 212, 191, 0.08);
  --teal: #2dd4bf;
  --teal-dim: #14b8a6;
  --cyan: #22d3ee;
  --violet: #a855f7;
  --magenta: #ec4899;
  --text: #f0f4ff;
  --text-muted: rgba(240, 244, 255, 0.62);
  --text-dim: rgba(240, 244, 255, 0.42);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --leading-body: 1.7;
  --leading-display: 1.22;
  --leading-display-tight: 1.18;
  --tracking-display: -0.01em;
  --space-title: 0.45em;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --nav-h: 72px;
  --max: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--void);
  color: var(--text);
  line-height: var(--leading-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  padding: 0.75rem 1.25rem; background: var(--teal); color: var(--void);
  font-weight: 700; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ── Background layers ── */
.bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
#particle-canvas { width: 100%; height: 100%; opacity: 0.55; }
.bg-aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(168, 85, 247, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 25%, rgba(45, 212, 191, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(236, 72, 153, 0.08), transparent 55%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.04;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.5) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
}

/* ── Nav ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: center;
  padding: 0 1.5rem;
  background: rgba(3, 3, 8, 0.65);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(45, 212, 191, 0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-nav.scrolled {
  background: rgba(3, 3, 8, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.nav-inner {
  width: 100%; max-width: var(--max);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  color: var(--text); letter-spacing: 0.02em;
}
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand span { background: linear-gradient(90deg, var(--teal), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  padding: 0.5rem 0.85rem; border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a.is-active {
  color: var(--teal);
  background: rgba(45, 212, 191, 0.1);
}
.nav-links a:hover { color: var(--text); background: rgba(45, 212, 191, 0.08); }

.nav-cta {
  display: flex; gap: 0.5rem; align-items: center;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.65rem 1.25rem; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  border: none; cursor: pointer; text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal-dim), var(--teal));
  color: var(--void); box-shadow: 0 0 24px rgba(45, 212, 191, 0.35);
}
.btn-primary:hover {
  color: var(--void);
  box-shadow: 0 0 40px rgba(45, 212, 191, 0.5);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text); border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-ghost:hover { background: rgba(45, 212, 191, 0.1); border-color: rgba(45, 212, 191, 0.3); color: var(--teal); }
.btn-lg { padding: 0.9rem 1.75rem; font-size: 1rem; }

.menu-toggle {
  display: none; background: none; border: none; color: var(--text);
  padding: 0.5rem; cursor: pointer;
}

/* ── Layout ── */
main { position: relative; z-index: 1; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5.5rem 0; }
.section-header {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2.75rem;
  max-width: 52rem;
}
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 1.35rem;
}
.section-label::before {
  content: ""; width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 700;
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  margin: 0 0 1.35rem;
  text-wrap: balance;
  display: flex;
  flex-direction: column;
  gap: var(--space-title);
}
.section-title .title-line {
  display: block;
}
.section-lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0;
}
.section-header .section-lead {
  margin-top: 0.15rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--teal) 0%, var(--cyan) 40%, var(--violet) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Hero ── */
.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; padding-top: var(--nav-h);
  padding-bottom: 4rem;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  color: var(--teal); margin-bottom: 1.5rem;
  animation: fade-up 0.8s var(--ease-out) both;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 12px var(--teal);
  animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 6.5vw, 4.5rem);
  font-weight: 700;
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  margin: 0 0 1.5rem;
  text-wrap: balance;
  display: flex;
  flex-direction: column;
  gap: var(--space-title);
  animation: fade-up 0.8s 0.1s var(--ease-out) both;
}
.hero h1 .title-line {
  display: block;
}
.hero-hook {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 36ch;
  margin: 0 0 2.25rem;
  animation: fade-up 0.8s 0.2s var(--ease-out) both;
}
.hero-hook em {
  font-style: normal;
  color: rgba(240, 244, 255, 0.88);
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem;
  animation: fade-up 0.8s 0.3s var(--ease-out) both;
}
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2rem;
  animation: fade-up 0.8s 0.4s var(--ease-out) both;
}
.stat strong {
  display: block; font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 800; color: var(--text);
  line-height: 1;
}
.stat span { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }

.hero-visual {
  position: relative; display: flex; justify-content: center;
  animation: fade-up 1s 0.2s var(--ease-out) both;
}
.hero-orbit {
  position: absolute; inset: -10%; border-radius: 50%;
  border: 1px solid rgba(45, 212, 191, 0.15);
  animation: orbit-spin 24s linear infinite;
}
.hero-orbit:nth-child(2) {
  inset: 5%; border-color: rgba(168, 85, 247, 0.12);
  animation-duration: 32s; animation-direction: reverse;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }

.phone-mock {
  position: relative; width: min(280px, 42vw);
  border-radius: 32px; padding: 10px;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.2), rgba(168, 85, 247, 0.15));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(45, 212, 191, 0.15);
  animation: float-phone 6s ease-in-out infinite;
}
@keyframes float-phone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.phone-mock img {
  border-radius: 24px; width: 100%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.phone-glow {
  position: absolute; bottom: -20%; left: 50%; transform: translateX(-50%);
  width: 80%; height: 40%;
  background: radial-gradient(ellipse, rgba(45, 212, 191, 0.25), transparent 70%);
  filter: blur(24px); pointer-events: none;
}

/* ── Bento grid ── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: 1rem;
}
.bento-card {
  position: relative; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.bento-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at var(--mx, 50%) var(--my, 0%), var(--card-glow), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 30px rgba(45, 212, 191, 0.06);
}
.bento-card:hover::before { opacity: 1; }

.bento-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 1rem;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.2);
}
.bento-card h3 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  margin: 0 0 0.65rem; letter-spacing: -0.005em; line-height: 1.35;
}
.bento-card p { margin: 0; font-size: 0.95rem; color: var(--text-muted); line-height: 1.65; }
.bento-tag {
  display: inline-block; margin-top: 0.85rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); padding: 0.25rem 0.6rem;
  background: rgba(45, 212, 191, 0.1); border-radius: 4px;
}

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.row-2 { grid-row: span 2; }

.bento-featured {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: var(--card);
}
.bento-featured-visual {
  position: relative;
  min-height: 240px;
  padding: 1.5rem 1.75rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1rem;
  background:
    linear-gradient(165deg, rgba(45, 212, 191, 0.14) 0%, transparent 55%),
    linear-gradient(220deg, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
    rgba(8, 10, 22, 0.6);
  border-bottom: 1px solid rgba(45, 212, 191, 0.1);
  overflow: hidden;
}
.bento-featured-type {
  position: relative;
  top: auto;
  left: auto;
  display: flex;
  flex-direction: column;
  gap: 0.08em;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: rgba(240, 244, 255, 0.22);
  padding-bottom: 1rem;
}
.bento-featured-type span {
  display: block;
}
.bento-featured-shot {
  position: relative;
  width: min(48%, 175px);
  flex-shrink: 0;
  border-radius: 18px 18px 0 0;
  padding: 6px 6px 0;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.25), rgba(168, 85, 247, 0.15));
  box-shadow:
    0 -8px 32px rgba(45, 212, 191, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(8px);
  transition: transform 0.4s var(--ease-out);
}
.bento-featured:hover .bento-featured-shot {
  transform: translateY(0);
}
.bento-featured-shot img {
  width: 100%;
  height: auto;
  max-height: 230px;
  object-fit: cover;
  object-position: top;
  border-radius: 14px 14px 0 0;
  display: block;
}
.bento-featured-body {
  padding: 1.5rem 1.75rem 1.75rem;
  flex: 1;
}
.bento-featured h3 { font-size: 1.55rem; line-height: 1.3; }
.bento-featured .bento-icon { width: 52px; height: 52px; font-size: 1.6rem; }
.bento-featured-body .bento-icon { margin-bottom: 0.85rem; }

/* ── Themes strip ── */
.themes-strip {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem;
}
.theme-chip {
  padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fade-up 0.6s var(--ease-out) both;
}
.theme-chip:nth-child(1) { background: #050508; color: #2dd4bf; animation-delay: 0.05s; }
.theme-chip:nth-child(2) { background: #f4f6fb; color: #0f172a; animation-delay: 0.1s; }
.theme-chip:nth-child(3) { background: linear-gradient(135deg, #1a0533, #0d1b2a); color: #ec4899; animation-delay: 0.15s; }
.theme-chip:nth-child(4) { background: #1c1410; color: #d4a574; animation-delay: 0.2s; }
.theme-chip:nth-child(5) { background: #001a0a; color: #4ade80; animation-delay: 0.25s; }
.theme-chip:nth-child(6) { background: #111; color: #94a3b8; animation-delay: 0.3s; }

/* ── Screenshots ── */
.screenshot-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.shot-card {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--void-elevated);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.shot-card:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(45, 212, 191, 0.1);
}
.shot-card img { width: 100%; aspect-ratio: 9/19; object-fit: cover; object-position: top; }
.shot-caption {
  padding: 0.85rem 1rem; font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted); border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Compare table ── */
.compare-wrap {
  overflow-x: auto; border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: var(--card);
}
.compare-table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
.compare-table th, .compare-table td {
  padding: 1rem 1.25rem; text-align: left; line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.compare-table th {
  font-family: var(--font-display); font-weight: 700;
  background: rgba(45, 212, 191, 0.06);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .yes { color: var(--teal); font-weight: 700; }
.compare-table .no { color: var(--text-dim); }
.compare-table .highlight { background: rgba(45, 212, 191, 0.04); }

/* ── CTA band ── */
.cta-band {
  text-align: center; padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(168, 85, 247, 0.1)),
    var(--void-elevated);
  border: 1px solid var(--card-border);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(45, 212, 191, 0.2), transparent 50%);
}
.cta-band h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 700; line-height: var(--leading-display); letter-spacing: var(--tracking-display);
  margin: 0 0 1rem; position: relative; text-wrap: balance;
  display: flex; flex-direction: column; gap: var(--space-title); align-items: center;
}
.cta-band h2 .title-line { display: block; }
.cta-band p {
  color: var(--text-muted); max-width: 48ch; margin: 0 auto 2.25rem;
  position: relative; line-height: 1.7; font-size: 1.05rem;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; position: relative; }

/* ── Footer ── */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; max-width: 32ch; margin: 0.75rem 0 0; line-height: 1.65; }
.footer-col h4 {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted);
  margin: 0 0 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-dim); font-size: 0.9rem; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem; color: var(--text-dim);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-hook { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-primary { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(3, 3, 8, 0.98); padding: 1rem;
    border-bottom: 1px solid rgba(45, 212, 191, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  }
  .nav-links.open .nav-mobile-cta { display: block; margin-top: 0.5rem; }
  .nav-links.open .nav-mobile-cta .btn { width: 100%; }
  .nav-mobile-cta { display: none; }
  section { padding: 3.5rem 0; }
  .bento-featured-visual { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .bento-featured-shot { width: min(55%, 200px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  #particle-canvas { display: none; }
}
