/* Holix Studio — marketing site */
:root {
  color-scheme: dark;
  --bg: #07090f;
  --bg-elevated: #0d111a;
  --bg-card: rgba(18, 24, 38, 0.72);
  --bg-card-solid: #121826;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e8eef9;
  --text-muted: #94a3b8;
  --text-soft: #64748b;
  --accent: #4f8cff;
  --accent-2: #7c5cff;
  --accent-3: #22d3ee;
  --accent-soft: rgba(79, 140, 255, 0.14);
  --ok: #34d399;
  --danger: #f87171;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --max: 1160px;
  --header-h: 72px;
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Deep links from site chat land below fixed header */
[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* Background atmosphere */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(79, 140, 255, 0.22), transparent 60%),
    radial-gradient(700px 480px at 90% 8%, rgba(124, 92, 255, 0.18), transparent 55%),
    radial-gradient(800px 500px at 50% 100%, rgba(34, 211, 238, 0.08), transparent 50%),
    var(--bg);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.5;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Prevent horizontal overflow from long words / tables */
img, video, svg, canvas {
  max-width: 100%;
}

.compare-wrap {
  max-width: 100%;
}

/* Mobile drawer CTAs — hidden on desktop, flex on ≤900px (see media query) */
.nav .nav-mobile-cta {
  display: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(7, 9, 15, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 9, 15, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(79, 140, 255, 0.35);
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: var(--text-muted);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #4f8cff 0%, #6b6bff 55%, #7c5cff 100%);
  box-shadow: 0 10px 30px rgba(79, 140, 255, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(79, 140, 255, 0.42);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.btn-lg {
  padding: 0.95rem 1.55rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid rgba(79, 140, 255, 0.25);
  color: #b7d0ff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 12px var(--accent-3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero h1 .grad {
  background: linear-gradient(120deg, #8ec5ff 0%, #a78bfa 45%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.stat {
  min-width: 6.5rem;
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.stat span {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  background: radial-gradient(circle, rgba(79, 140, 255, 0.35), transparent 65%);
  filter: blur(30px);
  z-index: 0;
  animation: float-glow 6s ease-in-out infinite;
}

@keyframes float-glow {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-12px) scale(1.05); opacity: 1; }
}

.hero-frame {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  background: var(--bg-card-solid);
  transform: perspective(1200px) rotateY(-6deg) rotateX(4deg);
  transition: transform 0.6s var(--ease);
}

.hero-frame:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) scale(1.01);
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.float-badge {
  position: absolute;
  z-index: 2;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  background: rgba(12, 16, 28, 0.82);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  font-size: 0.82rem;
  color: var(--text-muted);
  animation: float-y 5s ease-in-out infinite;
}

.float-badge strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

.float-badge.one { top: 10%; left: -6%; animation-delay: 0s; }
.float-badge.two { bottom: 12%; right: -4%; animation-delay: 1.2s; }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-head {
  max-width: 40rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.section-kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-head h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Feature cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 140, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(79, 140, 255, 0.1);
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0e18;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.25rem 1.3rem 1.4rem;
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 140, 255, 0.2);
  font-size: 1.05rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Feature rows (detailed) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4.5rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-row.reverse .feature-media {
  order: 1;
}

.feature-copy h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.025em;
}

.feature-copy p {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.feature-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-3)) border-box;
  border: 1.5px solid transparent;
  box-shadow: inset 0 0 0 4px var(--bg-elevated);
}

.feature-media {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: var(--bg-card-solid);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Logos / trust strip */
.trust {
  padding: 1.5rem 0 0;
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 1.4rem 1.2rem 1.3rem;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 140, 255, 0.35);
}

.price-card.featured {
  border-color: rgba(124, 92, 255, 0.55);
  background:
    linear-gradient(180deg, rgba(124, 92, 255, 0.14), rgba(18, 24, 38, 0.85));
  box-shadow: 0 20px 50px rgba(124, 92, 255, 0.18);
  transform: scale(1.03);
}

.price-card.featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.price-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  white-space: nowrap;
}

.price-card h3 {
  margin: 0.3rem 0 0.35rem;
  font-size: 1.2rem;
}

.price-card .desc {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  min-height: 2.4em;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.price .amount {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price .period {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.price-features {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}

.price-features li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-features li::before {
  content: "✓";
  color: var(--ok);
  font-weight: 700;
  flex: 0 0 auto;
}

.price-features li.muted {
  color: var(--text-soft);
}

.price-features li.muted::before {
  content: "–";
  color: var(--text-soft);
}

.price-card .btn {
  width: 100%;
}

.pricing-note {
  margin: 1.5rem auto 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  max-width: 42rem;
}

/* Compare matrix */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  -webkit-overflow-scrolling: touch;
}

.compare-scroll-hint {
  display: none;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.92rem;
}

.compare th,
.compare td {
  padding: 0.9rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare th:first-child,
.compare td:first-child {
  text-align: left;
  color: var(--text-muted);
  position: sticky;
  left: 0;
  background: #101624;
  z-index: 1;
}

.compare thead th {
  color: var(--text);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
}

.compare tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.compare .yes { color: var(--ok); font-weight: 700; }
.compare .no { color: var(--text-soft); }
.compare .num { color: var(--text); font-variant-numeric: tabular-nums; }

/* CTA band */
.cta-band {
  padding: 1rem 0 5rem;
}

.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(79, 140, 255, 0.3);
  background:
    radial-gradient(600px 280px at 20% 0%, rgba(79, 140, 255, 0.28), transparent 60%),
    radial-gradient(500px 260px at 90% 100%, rgba(124, 92, 255, 0.22), transparent 55%),
    var(--bg-card-solid);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.cta-card p {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  max-width: 18rem;
  line-height: 1.55;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  color: var(--text);
  font-size: 0.92rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Page hero (inner pages) */
.page-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* Business page */
.business-hero-media {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: var(--bg-card-solid);
  max-width: 960px;
  margin: 0 auto;
}

.business-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.value-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 1.4rem 1.45rem 1.5rem;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 140, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.value-num {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.value-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.value-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.scenario-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.scenario {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.25rem 1.3rem 1.35rem;
}

.scenario h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.scenario p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.step {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.4rem;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
  margin-inline: auto;
}

.faq details {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 0.95rem 1.15rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 500;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: 0.75rem 0 0.2rem;
  color: var(--text-muted);
}

/* ========== Responsive / mobile ========== */

/* Safe areas (notch / home indicator) */
@supports (padding: env(safe-area-inset-top)) {
  .site-header {
    padding-top: env(safe-area-inset-top);
    height: calc(var(--header-h) + env(safe-area-inset-top));
  }
  .site-footer {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
  body.nav-open {
    padding-right: 0;
  }
}

/* Touch-friendly defaults */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav a,
  .nav-toggle,
  .faq summary {
    min-height: 44px;
  }

  .card:hover,
  .price-card:hover,
  .value-card:hover {
    transform: none;
  }

  .card:hover .card-media img {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-card.featured {
    transform: none;
  }

  .price-card.featured:hover {
    transform: translateY(-4px);
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .scenario-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    width: min(var(--max), calc(100% - 1.25rem));
    gap: 0.5rem;
  }

  .brand {
    font-size: 0.98rem;
    min-width: 0;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .hero-grid,
  .feature-row,
  .feature-row.reverse,
  .cards,
  .steps,
  .value-grid,
  .scenario-list,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .feature-row {
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-media {
    order: initial;
  }

  .hero {
    padding: 2.25rem 0 1.75rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.6rem);
  }

  .hero-lead {
    font-size: 1.02rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 1rem 1.25rem;
  }

  .hero-frame {
    transform: none !important;
  }

  .hero-frame:hover {
    transform: none !important;
  }

  .float-badge {
    display: none;
  }

  /* Full-screen drawer menu */
  .nav {
    position: fixed;
    inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 1rem 1.1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    background: rgba(7, 9, 15, 0.97);
    border-bottom: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.3s var(--ease),
      opacity 0.3s var(--ease),
      visibility 0.3s;
  }

  .nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.95rem 1.1rem;
    font-size: 1.05rem;
    border-radius: 14px;
    border: 1px solid transparent;
  }

  .nav a:hover,
  .nav a[aria-current="page"] {
    background: rgba(79, 140, 255, 0.1);
    border-color: rgba(79, 140, 255, 0.2);
  }

  /* Mobile menu also shows login/register for reachability */
  .nav .nav-mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }

  .nav .nav-mobile-cta .btn {
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .nav-toggle[aria-expanded="true"] span {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    transition: transform 0.25s var(--ease), top 0.25s var(--ease), background 0.2s;
  }

  /* Keep primary CTA on narrow screens; hide secondary to free space */
  .header-actions .btn-ghost {
    display: none;
  }

  .header-actions .btn-primary {
    padding: 0.55rem 0.9rem;
    font-size: 0.88rem;
  }

  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .section-head {
    margin-bottom: 2rem;
  }

  .section-head h2 {
    font-size: clamp(1.45rem, 5.5vw, 2rem);
  }

  .page-hero {
    padding: 2.25rem 0 1.25rem;
  }

  .page-hero h1 {
    font-size: clamp(1.65rem, 6.5vw, 2.4rem);
  }

  .trust-inner {
    gap: 0.5rem;
    justify-content: flex-start;
  }

  .chip {
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
  }

  .cta-card {
    border-radius: 20px;
    padding: 1.75rem 1.25rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .footer-inner {
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  /* Horizontal scroll hint for compare matrix */
  .compare-wrap {
    margin-inline: -0.25rem;
    border-radius: 14px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .compare-scroll-hint {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-soft);
    padding: 0.45rem 0.5rem 0.15rem;
    letter-spacing: 0.02em;
  }

  .compare th,
  .compare td {
    padding: 0.7rem 0.75rem;
    font-size: 0.85rem;
  }

  .faq details {
    padding: 0.85rem 1rem;
  }

  .faq summary {
    font-size: 0.95rem;
    align-items: center;
    gap: 0.75rem;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(var(--max), calc(100% - 1.25rem));
  }

  .header-inner {
    width: min(var(--max), calc(100% - 1rem));
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .price-card {
    padding: 1.25rem 1.1rem 1.2rem;
  }

  .price .amount {
    font-size: 1.65rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .card-body {
    padding: 1.1rem 1.15rem 1.25rem;
  }

  .hero {
    padding-top: 1.75rem;
  }

  section {
    padding: 2.75rem 0;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .stat {
    min-width: 0;
    padding: 0.65rem 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
  }

  .stat strong {
    font-size: 1.1rem;
  }

  .stat span {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  /* Hide header CTA text-heavy button on very small; menu has it */
  .header-actions .btn-primary {
    display: none;
  }

  .reg-card {
    margin: 1.25rem auto 2.5rem !important;
    padding: 1.35rem 1.15rem !important;
    border-radius: 16px !important;
  }

  .reg-card h1 {
    font-size: 1.45rem !important;
  }

  .reg-field input {
    font-size: 16px !important; /* prevent iOS zoom on focus */
    min-height: 48px;
  }

  .bg-grid {
    background-size: 40px 40px;
    opacity: 0.35;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .brand span:not(.brand-mark) {
    /* keep brand readable */
    letter-spacing: -0.03em;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 0.7rem 0.9rem;
  }
}

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

/* Sales contact modal (pricing when checkout is off) */
body.contact-modal-open {
  overflow: hidden;
}
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.contact-modal.hidden {
  display: none;
}
.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 14, 0.72);
  backdrop-filter: blur(6px);
}
.contact-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-card-solid);
  box-shadow: var(--shadow);
}
.contact-modal-card h2 {
  margin: 0 2rem 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.contact-modal-lead {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.contact-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.contact-modal-close:hover {
  color: var(--text);
  background: var(--accent-soft);
}
.contact-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.contact-field input {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.contact-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-modal-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.9rem;
}
.contact-modal-error.hidden {
  display: none;
}
.contact-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}
.contact-modal-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
}
