@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&family=Oxanium:wght@500;600;700;800&display=swap');

:root {
  --bg: #06080e;
  --bg2: #0a0e18;
  --bg3: #0f1726;
  --panel: #0c1020;
  --panel2: #111827;
  --bg-gradient:
    radial-gradient(1200px 600px at 12% 8%, rgba(56, 189, 248, 0.08), transparent 60%),
    radial-gradient(900px 500px at 85% 15%, rgba(14, 165, 233, 0.06), transparent 55%),
    radial-gradient(700px 420px at 50% 80%, rgba(59, 130, 246, 0.04), transparent 50%),
    linear-gradient(180deg, rgba(10, 14, 24, 0.98), rgba(6, 8, 14, 1));
  --text: #e2e8f0;
  --text-hi: #f8fbff;
  --muted: #94a3b8;
  --muted2: #64748b;
  --brand: #7eb8d8;
  --brand2: #0ea5e9;
  --brand3: #7dd3fc;
  --brand-light: rgba(56, 189, 248, 0.12);
  --brand-glow: rgba(56, 189, 248, 0.24);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.22);
  --border-soft: rgba(226, 232, 240, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.32);
  --shadow-brand: 0 10px 28px rgba(56, 189, 248, 0.2);
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  --glass-panel:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(56, 189, 248, 0.05), rgba(125, 211, 252, 0.01));
  --glass-blur: blur(16px);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-display: "Oxanium", Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  --content-max: 1160px;
  --urgent: #fbbf24;
  --urgent-dark: #f59e0b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-gradient);
  line-height: 1.5;
}

a { color: inherit; }

/* Container - Centered content */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 30px 24px;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: var(--shadow-brand);
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--brand2);
  border-color: var(--brand2);
  transform: translateY(-1px);
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

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

/* Card styling */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass-panel);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.cardTitle {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.muted { color: var(--muted); }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 8, 14, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navinner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  height: 76px;
}

.navlinks {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.navlinks a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.navlinks a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

/* Hero Section - Centered */
.hero {
  padding: 64px 0 38px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(56, 189, 248, 0.08);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(125, 211, 252, 0.88);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.grad {
  background: linear-gradient(135deg, var(--brand) 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.h1 {
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 5.2vw, 4.15rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 18px auto 18px;
  max-width: 16ch;
  text-align: center;
}

.p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
  max-width: 60ch;
  margin: 0 auto 32px;
  text-align: center;
}

.h2 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.7rem);
  letter-spacing: -0.03em;
  text-align: center;
}

.section {
  padding: 32px 0;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(56, 189, 248, 0.08);
  color: var(--brand3);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-lede {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  text-align: center;
}

/* Newsletter - Fixed sizing and styling */
.newsletter-card {
  margin: 32px auto;
  padding: 48px 40px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.06), rgba(56, 189, 248, 0.02)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(56, 189, 248, 0.18);
  text-align: center;
  max-width: 700px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.newsletter-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.newsletter-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-size: 1rem;
}

.newsletter-form input::placeholder {
  color: var(--muted);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}

/* Choice buttons */
.choice {
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 18px 16px;
  color: var(--text);
  text-align: left;
  line-height: 1.4;
  transition: all 0.15s ease;
  position: relative;
  z-index: 1;
}

.choice .choice-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
  pointer-events: none;
}

.choice .choice-desc {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.choice:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.choice[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-light);
  box-shadow: 0 0 0 3px var(--brand-light);
}

.choice[aria-pressed="true"] .choice-title {
  color: #fff;
}

/* Flow cards */
.flow-card {
  margin: 16px auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  background: var(--glass-panel);
  max-width: 900px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.flow-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--brand3);
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* Summary card */
.summary-card {
  margin: 16px auto;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    linear-gradient(135deg, rgba(56, 189, 248, 0.03), rgba(14, 165, 233, 0.01));
  text-align: center;
  max-width: 700px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.summary-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.summary-card .p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 8px;
}

.plan-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}

/* Urgency box */
.urgency-box {
  margin: 20px auto;
  padding: 18px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(251, 191, 36, 0.4);
  text-align: center;
  max-width: 600px;
}

.urgency-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  color: var(--urgent);
  font-size: 1.05rem;
  flex-wrap: wrap;
}

.urgency-count {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  background: var(--urgent-dark);
  padding: 4px 14px;
  border-radius: 8px;
}

/* Footer */
.footer {
  padding: 36px 0 42px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .container {
    padding: 20px 16px;
  }

  .navinner {
    grid-template-columns: 1fr auto auto;
    height: auto;
    padding: 12px 0;
    row-gap: 8px;
  }

  .navlinks {
    display: none;
    order: 4;
    grid-column: 1/-1;
    justify-content: flex-start;
    overflow: auto;
    padding: 6px 4px 10px;
  }

  .navinner.open .navlinks {
    display: flex;
  }

  .hero {
    padding: 32px 0 24px;
  }

  .h1 {
    font-size: 2.15rem;
  }

  .p {
    font-size: 1rem;
  }

  .eyebrow,
  .section-kicker {
    letter-spacing: 0.12em;
  }

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

  .button-row {
    flex-direction: column;
  }

  .button-row .btn {
    width: 100%;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    width: 100%;
    min-width: auto;
  }

  .newsletter-card {
    padding: 32px 20px;
  }

  .section {
    padding: 20px 0;
  }
}

/* Top navigation bar (alternative) */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.top nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.top nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.top nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

/* ===========================================
   GLOBAL MOBILE FIXES — Critical Overflow Prevention
   =========================================== */

/* Safety net: prevent horizontal scroll site-wide */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Global header overflow fix — applies to all pages with .header-inner */
.header-inner,
.navinner {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Ensure all images and SVGs respect container bounds */
img, svg, video, iframe, table {
  max-width: 100%;
}

/* Minimum font size enforcement — no text below 12px on mobile */
@media (max-width: 768px) {
  .subtitle, .price-note, .step-content p, .perfect-card p,
  .site-footer-col a, .site-footer-bottom-links a,
  .site-footer-copy, .site-footer-trust span {
    font-size: max(0.8rem, 12px) !important;
  }
}

/* Header mobile overflow: shrink "Start Free Trial" button text */
@media (max-width: 900px) {
  .header-inner {
    max-width: 100vw;
    overflow: visible; /* allow dropdown */
    box-sizing: border-box;
  }
  .mobile-deploy-btn {
    padding: 8px 10px !important;
    font-size: 0.72rem !important;
    min-width: 0 !important;
    white-space: nowrap;
    flex-shrink: 1 !important;
    max-width: 110px;
  }
  .hamburger-btn {
    flex-shrink: 0 !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 8px 12px !important;
  }
  .brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
  }
  .header-actions {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
  }
}

@media (max-width: 380px) {
  .mobile-deploy-btn {
    font-size: 0.68rem !important;
    padding: 6px 8px !important;
    max-width: 90px;
  }
  .brand-text {
    max-width: 80px;
    font-size: 0.7rem !important;
  }
}

/* Footer touch target fixes — 44px minimum tap area */
.site-footer-social a {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  min-height: 44px;
}
.site-footer-social a svg {
  width: 18px !important;
  height: 18px !important;
}
.site-footer-social {
  gap: 10px !important;
  max-width: 240px !important;
}
.site-footer-col li {
  margin: 0 0 4px !important;
}
.site-footer-col a {
  display: inline-block;
  padding: 6px 0;
  min-height: 44px;
  line-height: 32px;
}
.site-footer-bottom-links a {
  display: inline-block;
  padding: 8px 4px;
  min-height: 44px;
  line-height: 28px;
}
.site-footer-trust span {
  padding: 6px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
