/* Octa Voice — Light / Synthflow-inspired design system */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --bg-soft: #f8f9fc;
  --bg-muted: #f1f3f9;
  --surface: #ffffff;
  --border: #e5e7eb;
  --border-light: #f0f1f5;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --primary: #7c3aed;
  --primary-light: #ede9fe;
  --primary-dark: #5b21b6;
  --accent: #06b6d4;
  --accent-light: #ecfeff;
  --green: #10b981;
  --green-light: #ecfdf5;
  --orange: #f59e0b;
  --red: #ef4444;
  --grad: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, #ede9fe 0%, #ecfeff 100%);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --nav-h: 72px;
  --container: 1200px;
  --container-narrow: 720px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); letter-spacing: -0.03em; }
h1.smaller { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; }
p { color: var(--text-secondary); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.accent { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Layout ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }
section.tight { padding: 60px 0; }

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(140%) blur(18px); -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
nav.scrolled {
  background: rgba(255,255,255,0.9);
  border-bottom-color: var(--border-light);
  box-shadow: 0 1px 0 rgba(17,24,39,0.02), 0 6px 20px rgba(17,24,39,0.04);
}
nav .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.2rem;
  color: var(--text); text-decoration: none; letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }
.logo-mark { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; }
.logo-mark svg { width: 34px; height: 34px; display: block; filter: drop-shadow(0 2px 6px rgba(124,58,237,0.22)); }

.nav-links { display: flex; align-items: center; gap: 1px; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 13px; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
  background: none; border: none; cursor: pointer; font-family: inherit; white-space: nowrap;
  line-height: 1;
}
.nav-link:hover, .nav-trigger:hover { color: var(--text); background: rgba(17,24,39,0.04); text-decoration: none; }
.nav-link:focus-visible, .nav-trigger:focus-visible, .nav-signin:focus-visible, .nav-cta:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
.nav-link.active { color: var(--text); font-weight: 600; position: relative; }
.nav-link.active::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: -2px;
  height: 2px; background: var(--grad); border-radius: 2px;
}

.nav-item { position: relative; }
.nav-trigger svg { transition: transform 0.22s ease; width: 10px; height: 10px; opacity: 0.5; }

.nav-dropdown {
  position: absolute; top: 100%; left: -8px;
  min-width: 296px; padding: 8px;
  margin-top: 10px;
  background: #fff; border: 1px solid rgba(17,24,39,0.06);
  border-radius: 14px;
  box-shadow:
    0 2px 4px rgba(17,24,39,0.04),
    0 12px 32px rgba(17,24,39,0.10),
    0 0 0 1px rgba(17,24,39,0.02);
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(0.985);
  transform-origin: top left;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 110;
}
/* Invisible hover bridge so moving from trigger → dropdown doesn't drop hover */
.nav-dropdown::after {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
  background: transparent;
}
.nav-dropdown::before {
  content: ''; position: absolute; top: -5px; left: 26px;
  width: 10px; height: 10px; background: #fff;
  border-top: 1px solid rgba(17,24,39,0.06); border-left: 1px solid rgba(17,24,39,0.06);
  transform: rotate(45deg);
  z-index: 1;
}
.nav-dropdown a {
  display: block; padding: 10px 12px; border-radius: 9px;
  color: var(--text); text-decoration: none;
  transition: background 0.12s ease, transform 0.12s ease;
  position: relative;
}
.nav-dropdown a:hover { background: var(--bg-soft); text-decoration: none; }
.nav-dropdown a:active { transform: scale(0.99); }
.nav-dropdown .dd-title { color: var(--text); font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
.nav-dropdown .dd-desc { color: var(--text-muted); font-size: 0.78rem; margin-top: 2px; line-height: 1.4; }

@media (hover: hover) and (min-width: 901px) {
  .nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
  .nav-item:hover .nav-trigger { color: var(--text); background: rgba(17,24,39,0.04); }
  .nav-item:hover .nav-trigger svg { transform: rotate(180deg); opacity: 0.9; }
}
.nav-item.open .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.nav-item.open .nav-trigger { color: var(--text); background: rgba(17,24,39,0.04); }
.nav-item.open .nav-trigger svg { transform: rotate(180deg); opacity: 0.9; }

.nav-spacer { flex: 1; min-width: 12px; }

.nav-signin {
  padding: 8px 14px; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-signin:hover { color: var(--text); background: rgba(17,24,39,0.04); text-decoration: none; }

.nav-cta {
  background: var(--text); color: #fff !important; padding: 9px 16px 9px 18px;
  border-radius: var(--radius-full); font-weight: 600; font-size: 0.88rem;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  display: inline-flex; align-items: center; gap: 6px; line-height: 1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.1);
}
.nav-cta:hover { background: var(--primary) !important; text-decoration: none !important; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(124, 58, 237, 0.28); }
.nav-cta:active { transform: translateY(0); }
.nav-cta svg { transition: transform 0.2s ease; }
.nav-cta:hover svg { transform: translateX(2px); }
.mobile-toggle {
  display: none; background: none; border: none; color: var(--text); cursor: pointer;
  padding: 8px; border-radius: 8px; transition: background 0.15s ease;
}
.mobile-toggle:hover { background: rgba(17,24,39,0.04); }
.mobile-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.mobile-toggle svg { transition: transform 0.25s ease; }
body.nav-open .mobile-toggle svg { transform: rotate(90deg); color: var(--primary); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 1rem; border: none; cursor: pointer; transition: all 0.2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 16px rgba(124,58,237,0.3); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 24px rgba(124,58,237,0.4); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ── Badges / Pills ── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: var(--radius-full);
  background: var(--primary-light); color: var(--primary);
  font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--primary); margin-bottom: 12px;
}
.pill {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-full);
  background: var(--primary-light); color: var(--primary); font-size: 0.75rem; font-weight: 600;
}
.tag {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-full);
  background: var(--bg-muted); color: var(--text-muted); font-size: 0.75rem; font-weight: 500;
}
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

/* ── Hero ── */
.hero {
  padding-top: calc(var(--nav-h) + 80px); padding-bottom: 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}
.hero-narrow { padding-bottom: 60px; }
.hero h1 { margin-bottom: 20px; }
.hero-sub { max-width: 640px; margin: 0 auto 32px; font-size: 1.15rem; line-height: 1.7; }

/* ── Signup form ── */
.signup-form {
  display: flex; gap: 12px; max-width: 460px; margin: 0 auto;
  align-items: stretch;
}
.signup-form input {
  flex: 1; padding: 14px 20px; border: 2px solid var(--border);
  border-radius: var(--radius-full); font-size: 0.95rem;
  background: var(--bg); color: var(--text); outline: none; transition: border-color 0.2s;
}
.signup-form input:focus { border-color: var(--primary); }
.signup-form .btn { white-space: nowrap; }
.form-msg { text-align: center; margin-top: 8px; font-size: 0.85rem; }
.form-msg.success { color: var(--green); }
.form-msg.error { color: var(--red); }

/* ── Hero visual (orb) ── */
.hero-visual { margin-top: 60px; position: relative; height: 280px; }
.orb-container { position: relative; width: 280px; height: 280px; margin: 0 auto; }
.orb {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 60px rgba(124,58,237,0.2), 0 0 120px rgba(6,182,212,0.1);
  animation: orb-glow 4s ease-in-out infinite alternate;
}
@keyframes orb-glow {
  0% { box-shadow: 0 0 60px rgba(124,58,237,0.2), 0 0 120px rgba(6,182,212,0.1); }
  100% { box-shadow: 0 0 80px rgba(124,58,237,0.3), 0 0 160px rgba(6,182,212,0.15); }
}
.orb-ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 180px; height: 180px; border-radius: 50%;
  border: 2px dashed rgba(124,58,237,0.15);
  animation: spin 30s linear infinite;
}
.orb-ring-2 {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 260px; height: 260px; border-radius: 50%;
  border: 1px solid rgba(124,58,237,0.06);
  animation: spin 50s linear infinite reverse;
}
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.channel-icon {
  position: absolute; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border-light);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
}
.channel-icon svg { width: 20px; height: 20px; stroke: var(--primary); }
.ci-1 { top: 0; left: 50%; transform: translateX(-50%); }
.ci-2 { right: 0; top: 50%; transform: translateY(-50%); }
.ci-3 { bottom: 0; left: 50%; transform: translateX(-50%); }
.ci-4 { left: 0; top: 50%; transform: translateY(-50%); }

/* ── Trust / stats ── */
.trust { margin-top: 60px; }
.trust-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 20px; }
.stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ── Section heads ── */
.section-head { text-align: center; margin-bottom: 60px; }
.section-sub { max-width: 600px; margin: 12px auto 0; font-size: 1.05rem; }

/* ── Features grid ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  padding: 32px; border-radius: var(--radius-lg);
  background: var(--bg-soft); border: 1px solid var(--border-light);
  transition: all 0.3s;
}
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; stroke: var(--primary); }
.feature-card h3 { margin-bottom: 8px; color: var(--text); }
.feature-card p { font-size: 0.9rem; line-height: 1.6; }

/* ── Omnichannel ── */
.omni { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.omni-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.omni-list li { display: flex; gap: 14px; align-items: flex-start; }
.omni-list li span { color: var(--text-secondary); }
.check {
  width: 28px; height: 28px; min-width: 28px; border-radius: 50%;
  background: var(--green-light); display: flex; align-items: center; justify-content: center;
}
.check svg { width: 16px; height: 16px; stroke: var(--green); }

.omni-visual {
  position: relative; height: 340px; background: var(--bg-soft); border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.channel-node {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.channel-node svg { width: 28px; height: 28px; stroke: var(--primary); }
.channel-node small { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); }
.cn-1 { top: 20px; left: 50%; transform: translateX(-50%); }
.cn-2 { right: 30px; top: 50%; transform: translateY(-50%); }
.cn-3 { bottom: 20px; left: 50%; transform: translateX(-50%); }
.cn-4 { left: 30px; top: 50%; transform: translateY(-50%); }
.center-brain {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px rgba(124,58,237,0.15);
}
.center-brain svg { width: 28px; height: 28px; stroke: #fff; }
.line { position: absolute; background: linear-gradient(to bottom, rgba(124,58,237,0.1), rgba(124,58,237,0)); }
.l-1 { width: 2px; height: 80px; top: 60px; left: 50%; }
.l-2 { width: 80px; height: 2px; right: 70px; top: 50%; background: linear-gradient(to right, rgba(124,58,237,0), rgba(124,58,237,0.1)); }
.l-3 { width: 2px; height: 80px; bottom: 60px; left: 50%; background: linear-gradient(to top, rgba(124,58,237,0.1), rgba(124,58,237,0)); }
.l-4 { width: 80px; height: 2px; left: 70px; top: 50%; background: linear-gradient(to left, rgba(124,58,237,0), rgba(124,58,237,0.1)); }

/* ── Steps / How it works ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  text-align: center; padding: 32px 20px; border-radius: var(--radius-lg);
  background: var(--bg-soft); border: 1px solid var(--border-light);
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.25rem;
}
.step h4 { margin-bottom: 8px; }
.step p { font-size: 0.9rem; }

/* ── Industries ── */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.industry {
  position: relative; padding: 32px; border-radius: var(--radius-lg);
  background: var(--bg-soft); border: 1px solid var(--border-light);
  text-decoration: none; color: var(--text); transition: all 0.3s; overflow: hidden;
}
.industry:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); text-decoration: none; }
.industry-glow { display: none; }
.industry-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.industry-icon svg { width: 24px; height: 24px; stroke: var(--primary); }
.industry h3 { margin-bottom: 8px; }
.industry p { font-size: 0.9rem; color: var(--text-secondary); }

/* ── Demo CTA ── */
.demo-cta {
  text-align: center; padding: 60px 40px; border-radius: var(--radius-lg);
  background: var(--grad-soft); border: 1px solid rgba(124,58,237,0.1);
}
.demo-cta h2 { margin-bottom: 16px; }
.demo-cta p { max-width: 560px; margin: 0 auto 28px; font-size: 1.05rem; }
.demo-hint { margin-top: 16px; font-size: 0.85rem; color: var(--text-muted); }
.demo-hint .arrow { display: inline-block; animation: bounce-arrow 2s infinite; }
@keyframes bounce-arrow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ── Pricing ── */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.price-card {
  padding: 36px; border-radius: var(--radius-lg);
  background: var(--surface); border: 2px solid var(--border-light);
  transition: all 0.3s;
}
.price-card:hover { border-color: var(--border); box-shadow: var(--shadow); }
.price-card.featured {
  border-color: var(--primary); position: relative;
  box-shadow: 0 8px 30px rgba(124,58,237,0.12);
}
.price-card.featured::before {
  content: 'Most Popular'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; border-radius: var(--radius-full);
  background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 700;
}
.tier-name { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; }
.price { font-family: 'Space Grotesk', sans-serif; font-size: 3rem; font-weight: 700; line-height: 1; margin-bottom: 8px; }
.currency { font-size: 1.5rem; vertical-align: top; color: var(--text-muted); }
.period { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.tier-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.tier-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.tier-features li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-secondary); }
.tier-features svg { width: 18px; height: 18px; min-width: 18px; stroke: var(--green); }
.tier-cta {
  display: block; text-align: center; padding: 14px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.95rem; transition: all 0.2s; text-decoration: none;
  background: var(--bg-muted); color: var(--text);
}
.tier-cta:hover { background: var(--primary); color: #fff; text-decoration: none; }
.featured .tier-cta { background: var(--primary); color: #fff; }
.featured .tier-cta:hover { background: var(--primary-dark); }

/* ── Footer ── */
footer {
  padding: 60px 0 40px;
  background: var(--bg-soft); border-top: 1px solid var(--border-light);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 12px; font-size: 0.85rem; color: var(--text-muted); max-width: 280px; }
.footer-col h5 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); text-decoration: none; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-light);
  font-size: 0.8rem; color: var(--text-muted);
}

/* ── Blog ── */
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card {
  display: block; padding: 32px; border-radius: var(--radius-lg);
  background: var(--bg-soft); border: 1px solid var(--border-light);
  text-decoration: none; color: var(--text); transition: all 0.3s;
}
.post-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.8rem; color: var(--text-muted); }
.post-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.post-card p { font-size: 0.9rem; }
.read-more { margin-top: 16px; font-size: 0.85rem; font-weight: 600; color: var(--primary); }

/* ── Changelog ── */
.changelog-list { position: relative; padding-left: 32px; }
.changelog-list::before {
  content: ''; position: absolute; left: 6px; top: 0; bottom: 0;
  width: 2px; background: var(--border-light);
}
.changelog-entry { position: relative; margin-bottom: 40px; }
.changelog-entry::before {
  content: ''; position: absolute; left: -27px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary-light); border: 3px solid var(--primary);
}
.changelog-date { font-size: 0.8rem; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.changelog-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.changelog-entry ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.changelog-entry li { padding-left: 20px; position: relative; font-size: 0.9rem; color: var(--text-secondary); }
.changelog-entry li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--border); }

/* ── Content / Prose (blog posts) ── */
.content-page { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 60px; }
.content-meta { display: flex; align-items: center; gap: 10px; margin: 16px 0 32px; font-size: 0.85rem; color: var(--text-muted); }
.prose h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.prose p { margin-bottom: 16px; line-height: 1.8; }
.prose ul { margin: 16px 0; padding-left: 24px; }
.prose li { margin-bottom: 8px; color: var(--text-secondary); }
.prose strong { color: var(--text); }
.prose a { color: var(--primary); text-decoration: underline; }
.prose em { font-style: italic; }

/* ── Pricing page specific ── */
.calc-section { padding: 80px 0; background: var(--bg-soft); }
.calculator {
  max-width: 640px; margin: 0 auto; padding: 40px;
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border-light); box-shadow: var(--shadow);
}
.calc-row { margin-bottom: 28px; }
.calc-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.calc-row .range-wrapper { display: flex; align-items: center; gap: 16px; }
.calc-row input[type="range"] {
  flex: 1; -webkit-appearance: none; height: 6px; border-radius: 3px;
  background: var(--bg-muted); outline: none;
}
.calc-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); cursor: pointer; box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}
.calc-row .range-val { min-width: 60px; text-align: right; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; }
.calc-result {
  text-align: center; padding: 24px; border-radius: var(--radius);
  background: var(--grad-soft); border: 1px solid rgba(124,58,237,0.1);
}
.calc-result .est-price { font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.calc-result p { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

.compare-table { width: 100%; border-collapse: collapse; margin-top: 40px; }
.compare-table th, .compare-table td { padding: 14px 20px; text-align: left; font-size: 0.9rem; border-bottom: 1px solid var(--border-light); }
.compare-table th { font-weight: 700; background: var(--bg-soft); color: var(--text); }
.compare-table td { color: var(--text-secondary); }
.compare-table .check-cell { text-align: center; color: var(--green); font-size: 1.2rem; }
.compare-table .dash-cell { text-align: center; color: var(--text-muted); }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 1rem;
  color: var(--text); transition: color 0.2s;
}
.faq-q:hover { color: var(--primary); }
.faq-q svg { width: 20px; height: 20px; stroke: var(--text-muted); transition: transform 0.3s; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { padding-bottom: 20px; font-size: 0.95rem; line-height: 1.7; }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  section { padding: 56px 0; }
  section.tight { padding: 40px 0; }

  .container, .container-narrow { padding: 0 18px; }

  /* iOS/Safari: backdrop-filter on <nav> makes it the containing block
     for position:fixed descendants, which collapses .nav-links to 0 height.
     Drop the blur on mobile and use a solid background instead. */
  nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,0.96); }
  nav.scrolled { background: #fff; }

  .nav-links {
    display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--bg, #fff);
    padding: 10px 16px max(24px, env(safe-area-inset-bottom));
    flex-direction: column;
    gap: 2px; align-items: stretch;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 12px 32px rgba(17,24,39,0.08);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav-links.open { display: flex; animation: navSlideDown 0.22s ease; }
  @keyframes navSlideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
  html.nav-open, body.nav-open { overflow: hidden; height: 100%; }
  .mobile-toggle { display: block; }
  .nav-item, .nav-link, .nav-signin, .nav-cta { width: 100%; }
  .nav-link, .nav-signin {
    padding: 13px 14px; font-size: 1rem; border-radius: 10px;
    color: var(--text); font-weight: 500;
  }
  .nav-link.active::after { display: none; }
  .nav-link.active { background: var(--primary-light); color: var(--primary); }
  .nav-trigger {
    width: 100%; justify-content: space-between;
    padding: 13px 14px; font-size: 1rem; border-radius: 10px;
    color: var(--text); font-weight: 500;
  }
  .nav-trigger svg { width: 14px; height: 14px; opacity: 0.55; }
  .nav-item.open > .nav-trigger {
    background: var(--primary-light); color: var(--primary);
  }
  .nav-item.open > .nav-trigger svg { opacity: 1; }
  .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent;
    min-width: 0; padding: 0; margin: 0 0 2px 14px;
    border-left: 2px solid var(--border-light);
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.2s ease;
  }
  .nav-dropdown::before, .nav-dropdown::after { display: none; }
  .nav-item.open .nav-dropdown { max-height: 600px; padding: 4px 0 8px; }
  .nav-dropdown a { padding: 10px 14px; margin-left: 6px; border-radius: 8px; }
  .nav-dropdown .dd-title { font-size: 0.92rem; }
  .nav-dropdown .dd-desc { font-size: 0.78rem; margin-top: 2px; }
  .nav-spacer { display: none; }
  .nav-signin {
    text-align: left;
    border-top: 1px solid var(--border-light);
    margin-top: 12px; padding-top: 16px;
    border-radius: 0;
  }
  .nav-cta {
    text-align: center; justify-content: center;
    margin-top: 10px; padding: 14px 18px; font-size: 0.98rem;
    width: 100%;
  }
  .logo { font-size: 1.1rem; gap: 8px; }
  .logo-mark, .logo-mark svg { width: 30px; height: 30px; }

  h1 { font-size: clamp(1.9rem, 8vw, 2.25rem); }
  h1.smaller { font-size: clamp(1.7rem, 7vw, 2rem); }
  h1 br { display: none; }
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  h3 { font-size: 1.15rem; }
  .hero-sub { font-size: 1rem; line-height: 1.6; margin-bottom: 24px; }
  .section-head { margin-bottom: 40px; }
  .section-sub { font-size: 0.98rem; }

  .hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 40px; }
  .hero-narrow { padding-bottom: 32px; }
  .hero-visual { margin-top: 40px; height: 200px; }
  .orb-container { width: 200px; height: 200px; }
  .orb { width: 70px; height: 70px; }
  .orb-ring { width: 130px; height: 130px; }
  .orb-ring-2 { width: 190px; height: 190px; }
  .channel-icon { width: 36px; height: 36px; }
  .channel-icon svg { width: 16px; height: 16px; }
  .trust { margin-top: 40px; }

  .signup-form { flex-direction: column; gap: 10px; }
  .signup-form input, .signup-form .btn { width: 100%; }
  .btn { padding: 13px 22px; font-size: 0.95rem; }

  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 24px; }
  .industries { grid-template-columns: 1fr; gap: 16px; }
  .industry { padding: 24px; }
  .pricing { grid-template-columns: 1fr; gap: 20px; }
  .price-card { padding: 28px 24px; }
  .price { font-size: 2.5rem; }
  .omni { grid-template-columns: 1fr; gap: 32px; }
  .omni-visual { height: 240px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 16px; }
  .step { padding: 24px 16px; }
  .stats { gap: 24px; }
  .stat-num { font-size: 1.65rem; }
  .posts-grid { grid-template-columns: 1fr; gap: 16px; }
  .post-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .demo-cta { padding: 36px 20px; }
  .demo-cta h2 { font-size: clamp(1.4rem, 6vw, 1.85rem); }

  /* Pricing page calculator + tables */
  .calc-section { padding: 56px 0; }
  .calculator { padding: 24px 20px; }
  .calc-row input[type="range"]::-webkit-slider-thumb { width: 26px; height: 26px; }
  .calc-result .est-price { font-size: 2rem; }
  .compare-table { font-size: 0.8rem; }
  .compare-table th, .compare-table td { padding: 10px 12px; }

  /* Content / prose pages */
  .content-page { padding-top: calc(var(--nav-h) + 24px); }
  .prose h2 { font-size: 1.3rem; margin: 28px 0 12px; }

  /* Changelog */
  .changelog-list { padding-left: 24px; }
  .changelog-entry { margin-bottom: 28px; }
}

@media (max-width: 480px) {
  section { padding: 44px 0; }
  .container, .container-narrow { padding: 0 14px; }

  .badge { padding: 6px 14px; font-size: 0.78rem; margin-bottom: 16px; }
  h1 { font-size: clamp(1.7rem, 9vw, 2rem); line-height: 1.2; }
  h1.smaller { font-size: clamp(1.55rem, 8vw, 1.85rem); }
  h2 { font-size: clamp(1.4rem, 6.5vw, 1.75rem); line-height: 1.25; }
  .hero-sub { font-size: 0.95rem; }

  .hero { padding-top: calc(var(--nav-h) + 28px); padding-bottom: 32px; }
  .hero-visual { margin-top: 32px; height: 180px; }
  .orb-container { width: 180px; height: 180px; }
  .orb { width: 64px; height: 64px; }
  .orb-ring { width: 118px; height: 118px; }
  .orb-ring-2 { width: 170px; height: 170px; }

  .steps { grid-template-columns: 1fr; }
  .stats { flex-direction: column; gap: 16px; }
  .pricing .price-card.featured { margin-top: 0; }
  .pricing .price-card.featured::before { top: -12px; font-size: 0.7rem; padding: 3px 12px; }

  .feature-card, .industry, .post-card { padding: 22px 18px; }
  .price-card { padding: 24px 20px; }
  .feature-icon, .industry-icon { width: 42px; height: 42px; }
  .feature-icon svg, .industry-icon svg { width: 22px; height: 22px; }

  .demo-cta { padding: 28px 16px; }
  .calculator { padding: 20px 16px; }
  .calc-row .range-wrapper { gap: 12px; }
  .calc-row .range-val { min-width: 52px; font-size: 1rem; }

  .tier-features li { font-size: 0.88rem; }
  footer { padding: 40px 0 28px; }
  .footer-brand p { max-width: 100%; }
}

@media (max-width: 360px) {
  .container, .container-narrow { padding: 0 12px; }
  h1 { font-size: 1.6rem; }
  .logo { font-size: 1rem; }
  .nav-cta { padding: 12px; font-size: 0.9rem; }
  .badge { font-size: 0.72rem; }
  .feature-card, .industry, .post-card, .price-card { padding: 20px 16px; }
  .demo-cta { padding: 24px 14px; }
}
