:root {
  --bg-gradient-start: #e0f2fe;
  --bg-gradient-end: #eff6ff;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-soft: rgba(59, 130, 246, 0.12);
  --text-main: #0f172a;
  --text-soft: #64748b;
  --border-soft: rgba(148, 163, 184, 0.45);
  --panel-bg: rgba(255, 255, 255, 0.82);
  --panel-bg-soft: rgba(255, 255, 255, 0.74);
  --shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.22);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

/* Base layout */

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  background: radial-gradient(circle at top, #dbeafe 0, #e5e7eb 55%, #e5e5f7 100%);
}

/* Background visuals */

.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  opacity: 0.95;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.45;
}

.orb-1 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #bfdbfe, transparent 70%);
  top: -80px;
  right: 5%;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #c4b5fd, transparent 70%);
  bottom: -120px;
  left: 0;
}

.orb-3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, #a5f3fc, transparent 70%);
  bottom: 10%;
  right: -80px;
}

.bg-waves {
  position: absolute;
  bottom: -60px;
  left: 0;
  width: 120%;
  height: 380px;
  opacity: 0.6;
}

.wave {
  fill: none;
  stroke-width: 1.6;
}

/* Main shell */

.page {
  position: relative;
  min-height: 100vh;
  padding: 32px 16px 40px;
  display: flex;
  justify-content: center;
}

.page-shell {
  width: 100%;
  max-width: 1140px;
}

/* Glass shell that wraps all content */

.glass-shell {
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.95),
      rgba(248, 250, 252, 0.9)
    );
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(26px);
  padding: 24px 24px 28px;
}

/* Topbar / nav */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 8px 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: white;
  background: conic-gradient(
    from 180deg,
    #60a5fa,
    #a855f7,
    #22c55e,
    #60a5fa
  );
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.45);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 13px;
  color: var(--text-soft);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.top-nav a {
  text-decoration: none;
  color: var(--text-soft);
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.16s ease, background-color 0.16s ease, transform 0.12s ease;
}

.top-nav a:hover {
  color: var(--brand-600);
  background: rgba(148, 163, 184, 0.16);
  transform: translateY(-1px);
}

/* Hero */

.hero {
  margin-bottom: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
}

.glass-card {
  background: var(--panel-bg);
  backdrop-filter: blur(24px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  padding: 24px 24px 22px;
}

.hero-copy h1 {
  font-size: 30px;
  line-height: 1.16;
  margin: 0 0 14px;
}

@media (min-width: 1024px) {
  .hero-copy h1 {
    font-size: 34px;
  }
}

.lead {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-soft);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0f172a;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.96),
      rgba(248, 250, 252, 0.92)
    );
}

.pill-soft {
  border-color: transparent;
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
}

/* Signup block */

.signup-block {
  margin-top: 6px;
}

.signup-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.signup-subcopy {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0 0 10px;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 6px;
}

.input-wrap {
  width: 100%;
}

input[type="email"] {
  width: 100%;
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  font-size: 14px;
  outline: none;
  background: var(--panel-bg-soft);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

input[type="email"]:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5);
  background: rgba(255, 255, 255, 0.98);
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--text-soft);
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.radio-row input[type="radio"] {
  accent-color: var(--brand-500);
}

#submit-btn {
  align-self: flex-start;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #f1f5f9;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

#submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.42);
  filter: brightness(1.04);
}

#submit-btn:disabled {
  opacity: 0.7;
  cursor: default;
  box-shadow: none;
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.65);
  border-top-color: rgba(15, 23, 42, 0.3);
  display: none;
}

.btn-spinner.visible {
  display: inline-block;
  animation: spin 0.6s linear infinite;
}

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

.microcopy {
  font-size: 11px;
  color: var(--text-soft);
  margin: 4px 0 0;
}

.microcopy.error {
  color: #b91c1c;
}

.microcopy.success {
  color: #15803d;
}

/* Hero visual */

.hero-visual {
  padding: 20px 20px 18px;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.mock-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.75);
}

.mock-header .dot:nth-child(1) {
  background: #f97373;
}
.mock-header .dot:nth-child(2) {
  background: #facc15;
}
.mock-header .dot:nth-child(3) {
  background: #4ade80;
}

.mock-title {
  margin-left: 6px;
  font-size: 13px;
  color: var(--text-soft);
}

.mock-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-row {
  display: flex;
  gap: 12px;
}

.mock-row.cards {
  align-items: stretch;
}

.metric {
  flex: 1;
  border-radius: var(--radius-md);
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 10px 12px;
}

.metric-label {
  font-size: 11px;
  color: var(--text-soft);
}

.metric-value {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

.mini-card {
  flex: 1;
  border-radius: var(--radius-md);
  background: rgba(248, 250, 252, 0.97);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-title {
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mini-main {
  font-size: 14px;
  font-weight: 600;
}

.mini-sub {
  font-size: 12px;
  color: var(--text-soft);
}

.mini-chart {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0 2px;
}

.mini-chart .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-500);
  opacity: 0.4;
}

.mini-chart .dot.d3 {
  opacity: 1;
}

.mock-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-pill {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(248, 250, 252, 0.96);
}

.status-pill.soft {
  border-color: transparent;
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
}

/* --- CONTENT SECTIONS / STACKED GLASS PANELS --- */

.content-section.glass-card,
.content-section {
  background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.95),
      rgba(248, 250, 252, 0.9)
    );
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  padding: 22px 28px 22px;
  max-width: 760px;         /* keeps text readable */
  margin: 22px auto 0;      /* centered in shell */
  position: relative;
  overflow: hidden;
}

/* subtle inner highlight to feel more “glass” */
.content-section.glass-card::before,
.content-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.65),
      transparent 55%
    );
  opacity: 0.7;
  pointer-events: none;
}

/* we don't want the pseudo element to block content */
.content-section.glass-card > *,
.content-section > * {
  position: relative;
  z-index: 1;
}

/* section headings – softer & modern */

.content-section h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.content-section h3 {
  margin-top: 14px;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
}

/* body text */

.content-section p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0 0 8px;
  max-width: 65ch;
}

.content-section ul {
  margin: 8px 0 0 18px;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 65ch;
}

.content-section li + li {
  margin-top: 4px;
}

/* FEATURES GRID – modern tiles inside the glass panel */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.feature-card {
  border-radius: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

.feature-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.feature-card p {
  margin: 0;
  font-size: 13px;
}

/* FAQ items as subtle rows inside a glass panel */

.faq-item + .faq-item {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(203, 213, 225, 0.9);
}

.faq-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.faq-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

/* FOOTER inside shell */

.footer {
  max-width: 760px;
  margin: 26px auto 0;
  padding-top: 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 12px;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

/* Utility */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive tweaks */

@media (max-width: 960px) {
  .glass-shell {
    border-radius: 32px;
    padding: 18px 16px 22px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

  .hero-visual {
    order: -1; /* show preview on top for mobile */
  }

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

  .content-section.glass-card,
  .content-section {
    margin-top: 18px;
    padding: 18px 18px 18px;
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 18px 10px 32px;
  }

  .glass-shell {
    padding: 16px 12px 20px;
    border-radius: 26px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .top-nav a {
    font-size: 13px;
    padding-inline: 8px;
  }

  .content-section.glass-card,
  .content-section {
    max-width: 100%;
    margin-inline: 0;
  }

  .content-section h2 {
    font-size: 18px;
  }
}

.hero-cta-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-cta {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand-soft), rgba(255, 255, 255, 0.96));
  color: var(--text-main);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.hero-cta--client {
  background: rgba(255, 255, 255, 0.96);
}

.hero-cta--client::after {
  content: '· Beta';
  font-weight: 500;
  font-size: 11px;
  color: var(--text-soft);
}

.lead-magnet {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed rgba(148, 163, 184, 0.6);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lead-magnet-copy h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.lead-magnet-copy p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.lead-magnet-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lead-magnet-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#lead-magnet-submit {
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #f9fafb;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

#lead-magnet-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.4);
  filter: brightness(1.04);
}

#lead-magnet-submit:disabled {
  opacity: 0.7;
  cursor: default;
  box-shadow: none;
}

#lead-magnet-feedback {
  margin: 0;
}

#lead-magnet-feedback a {
  text-decoration: underline;
}

.btn-spinner.visible {
  display: inline-block;
}

/* Mobile tweaks for CTA + lead magnet */
@media (max-width: 600px) {
  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .lead-magnet-fields {
    flex-direction: column;
    align-items: stretch;
  }

  #lead-magnet-submit {
    width: 100%;
    justify-content: center;
  }
}
