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

:root {
  --bg: #13131a;
  --bg-soft: #0e0e14;
  --surface: #1c1c26;
  --surface-raised: #252532;
  --surface-hover: #2a2a38;
  --text: #f4f4f8;
  --text-secondary: #b4b4cc;
  --text-muted: #72728a;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --primary: #5151e6;
  --primary-hover: #7676f4;
  --primary-soft: rgba(81, 81, 230, 0.15);
  --primary-glow: rgba(81, 81, 230, 0.35);
  --accent-orange: #fe8c52;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --container: 1120px;
  --font: "Nunito", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 19, 26, 0.75);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, #6363f0 100%);
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

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

.nav-links > a:not(.btn) {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links > a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.925rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #6363f0 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(118, 118, 244, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--primary-soft);
  border-color: rgba(118, 118, 244, 0.35);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
}

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

.hero-glow {
  position: absolute;
  top: -200px;
  left: 30%;
  width: 700px;
  height: 600px;
  background: radial-gradient(circle, rgba(81, 81, 230, 0.2) 0%, rgba(81, 81, 230, 0.04) 45%, transparent 70%);
  pointer-events: none;
}

.hero-glow::after {
  content: "";
  position: absolute;
  top: 200px;
  right: -200px;
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, rgba(254, 140, 82, 0.08) 0%, transparent 65%);
}

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

.label-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-hover);
  background: var(--primary-soft);
  border: 1px solid rgba(118, 118, 244, 0.25);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.pulse {
  width: 7px;
  height: 7px;
  background: var(--primary-hover);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(118, 118, 244, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(118, 118, 244, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(118, 118, 244, 0); }
  100% { box-shadow: 0 0 0 0 rgba(118, 118, 244, 0); }
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--primary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-strong);
}

/* Dashboard preview */
.hero-preview {
  perspective: 1200px;
}

.preview-window {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(81, 81, 230, 0.08);
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s var(--ease);
}

.preview-window:hover {
  transform: rotateY(0) rotateX(0);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.85rem 1.25rem;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
}

.preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.preview-bar span:first-child { background: #ff5f57; }
.preview-bar span:nth-child(2) { background: #febc2e; }
.preview-bar span:nth-child(3) { background: #28c840; }

.preview-bar p {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.preview-body {
  padding: 1.25rem;
}

.metric-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.metric-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
}

.metric-card.highlight {
  background: linear-gradient(135deg, rgba(81, 81, 230, 0.2) 0%, rgba(81, 81, 230, 0.05) 100%);
  border-color: rgba(118, 118, 244, 0.3);
}

.metric-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.metric-card strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.metric-up {
  font-size: 0.7rem;
  font-weight: 700;
  color: #4ade80;
}

.chart-area {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1rem 0.65rem;
  margin-bottom: 1rem;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 100px;
  margin-bottom: 0.5rem;
}

.chart-bars div {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--primary-hover) 0%, var(--primary) 100%);
  border-radius: 4px 4px 2px 2px;
  opacity: 0.85;
  animation: barGrow 1s var(--ease) backwards;
}

.chart-bars div:nth-child(1) { animation-delay: 0.1s; }
.chart-bars div:nth-child(2) { animation-delay: 0.15s; }
.chart-bars div:nth-child(3) { animation-delay: 0.2s; }
.chart-bars div:nth-child(4) { animation-delay: 0.25s; }
.chart-bars div:nth-child(5) { animation-delay: 0.3s; }
.chart-bars div:nth-child(6) { animation-delay: 0.35s; }
.chart-bars div:nth-child(7) { animation-delay: 0.4s; }

@keyframes barGrow {
  from { height: 0; opacity: 0; }
}

.chart-labels {
  display: flex;
  justify-content: space-between;
}

.chart-labels span {
  flex: 1;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
}

.channel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.channel {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
}

.channel-more,
.stack-more {
  color: var(--text-muted);
  font-style: italic;
  border-style: dashed;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot.meta { background: #0084ff; }
.dot.google { background: #4ade80; }
.dot.organic { background: var(--accent-orange); }
.dot.node { background: #68a063; }
.dot.python { background: #5b9bd5; }
.dot.flutter { background: #54c5f8; }
.dot.ts { background: #3178c6; }
.dot.aws { background: #ff9900; }
.dot.docker { background: #2496ed; }

/* Trust */
.trust {
  padding: 2rem 0;
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.trust-inner p {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.trust-row span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.trust-row span:hover {
  border-color: rgba(118, 118, 244, 0.3);
  color: var(--text);
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-glow {
  position: relative;
  border-block: 1px solid var(--border);
}

.section-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(81, 81, 230, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

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

.label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-hover);
  margin-bottom: 0.85rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(81, 81, 230, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(118, 118, 244, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(118, 118, 244, 0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--primary-soft);
  border: 1px solid rgba(118, 118, 244, 0.2);
  color: var(--primary-hover);
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.feature-card h3 {
  position: relative;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.feature-card p {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Integrate */
.integrate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.integrate-copy h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.integrate-copy > p {
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack-row span {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.stack-row span:hover {
  border-color: rgba(118, 118, 244, 0.3);
  background: var(--primary-soft);
}

.tech-stack {
  margin-top: 1rem;
}

.code-panel {
  background: #0c0c12;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.code-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.code-dots {
  display: flex;
  gap: 5px;
}

.code-dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.code-dots i:nth-child(1) { background: #ff5f57; }
.code-dots i:nth-child(2) { background: #febc2e; }
.code-dots i:nth-child(3) { background: #28c840; }

.code-panel pre {
  padding: 1.35rem;
  overflow-x: auto;
}

.code-panel code {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.8rem;
  line-height: 1.75;
  color: #e8e8f0;
}

.tok-kw { color: #7676f4; }
.tok-key { color: #aaaaca; }
.tok-str { color: var(--accent-orange); }

/* Split cards */
.split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.info-card,
.quote-card {
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border);
}

.info-card {
  background: var(--surface);
}

.info-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.info-card li svg {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--primary-hover);
  margin-top: 0.15rem;
}

.quote-card {
  background: linear-gradient(145deg, rgba(81, 81, 230, 0.25) 0%, var(--surface) 60%);
  border-color: rgba(118, 118, 244, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary-hover);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.quote-card p {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #6363f0 100%);
  font-weight: 800;
  font-size: 0.9rem;
}

.quote-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
}

.quote-author span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: rgba(118, 118, 244, 0.25);
}

.faq-item summary {
  padding: 1.15rem 1.35rem;
  font-size: 0.975rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--primary-hover);
}

.faq-item summary:hover {
  color: var(--primary-hover);
}

.faq-item p {
  padding: 0 1.35rem 1.15rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA */
.cta-panel {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 3rem;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(81, 81, 230, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-copy {
  position: relative;
  z-index: 1;
}

.cta-copy h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.cta-copy p {
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 400px;
}

.cta-email {
  margin-top: 0.75rem !important;
}

.cta-email a {
  color: var(--primary-hover);
  font-weight: 700;
  text-decoration: none;
}

.cta-email a:hover {
  text-decoration: underline;
}

.cta-form-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 420px;
  padding-top: 0.15rem;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.cta-form input,
.cta-form textarea {
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.925rem;
  font-weight: 500;
  width: 100%;
  background: var(--surface-raised);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.cta-form input {
  border-radius: var(--radius-pill);
}

.cta-form input:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
  color: var(--text-muted);
}

.btn-full {
  width: 100%;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.btn.is-loading::after {
  content: "";
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  z-index: 200;
  padding: 0.85rem 1.35rem;
  background: var(--surface-raised);
  border: 1px solid rgba(118, 118, 244, 0.35);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.925rem;
  font-weight: 700;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cta-legal {
  position: relative;
  z-index: 1;
  width: 100%;
  flex-basis: 100%;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.cta-legal a {
  color: var(--primary-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Legal pages */
.legal-page {
  padding: 4rem 0 5.5rem;
}

.legal-content {
  max-width: 720px;
}

.legal-content h1 {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.legal-meta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-content > p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-content li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.legal-content a {
  color: var(--primary-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--text);
}

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 260px;
}

.footer-email {
  margin-top: 0.5rem !important;
}

.footer-email a {
  color: var(--primary-hover);
  font-weight: 600;
  text-decoration: none;
}

.footer-email a:hover {
  text-decoration: underline;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile nav */
.nav-open .nav-links {
  display: flex;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-preview {
    max-width: 520px;
    margin-inline: auto;
  }

  .preview-window {
    transform: none;
  }

  .feature-grid,
  .integrate-grid,
  .split-cards,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .metric-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  }

  .nav-links > a:not(.btn) {
    padding: 0.85rem 1.25rem;
  }

  .nav-links .btn {
    margin: 0.5rem 1.25rem 0;
    text-align: center;
  }

  .cta-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1.5rem;
  }

  .cta-form-wrap {
    max-width: none;
  }

  .cta-form input,
  .cta-form textarea {
    width: 100%;
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding: 2.5rem 0 3.5rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .stat-divider {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .chart-bars div {
    animation: none;
  }

  .pulse {
    animation: none;
  }
}
