@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #171522;
  --muted: #6b6878;
  --line: rgba(23,21,34,0.08);
  --glass: rgba(255,255,255,0.55);
  --glass-strong: rgba(255,255,255,0.72);
  --magenta: #e02a9a;
  --cyan: #17b6e8;
  --green: #1cbf75;
  --indigo: #3a3aa8;
  --grad: linear-gradient(100deg, var(--magenta) 0%, var(--cyan) 32%, var(--green) 62%, var(--indigo) 100%);
  --shadow-sm: 0 2px 10px rgba(23,21,34,0.05);
  --shadow-md: 0 16px 40px -16px rgba(23,21,34,0.16);
  --shadow-glow: 0 12px 30px -10px rgba(224,42,154,0.28);
  --radius: 20px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

::selection{ background: var(--magenta); color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible{
  outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px;
}

a{ color: inherit; }
img{ max-width: 100%; display: block; }

.mono{ font-family: 'IBM Plex Mono', monospace; }

/* ---------- background blobs ---------- */
.bg-layer{ position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob{ position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.blob-1{ width: 480px; height: 480px; background: radial-gradient(circle, var(--magenta), transparent 70%); top: -160px; left: -120px; opacity: 0.16; animation: drift1 24s ease-in-out infinite; }
.blob-2{ width: 560px; height: 560px; background: radial-gradient(circle, var(--cyan), transparent 70%); bottom: -220px; right: -160px; opacity: 0.14; animation: drift2 28s ease-in-out infinite; }
.blob-3{ width: 420px; height: 420px; background: radial-gradient(circle, var(--green), transparent 70%); top: 35%; left: 60%; opacity: 0.10; animation: drift3 32s ease-in-out infinite; }

@keyframes drift1{ 0%,100%{ transform: translate(0,0) scale(1); } 50%{ transform: translate(60px,80px) scale(1.15); } }
@keyframes drift2{ 0%,100%{ transform: translate(0,0) scale(1); } 50%{ transform: translate(-70px,-50px) scale(1.1); } }
@keyframes drift3{ 0%,100%{ transform: translate(0,0) scale(1); } 50%{ transform: translate(-90px,60px) scale(0.9); } }

/* ---------- layout helpers ---------- */
.wrap{ max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
section{ padding: 96px 0; }
.eyebrow{ font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before{ content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

.tooltip{ position: relative; cursor: help; }
.tooltip::after{
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 10px); left: 0;
  width: max-content; max-width: 260px;
  background: rgba(28,28,30,0.96); color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12.5px; font-weight: 400; letter-spacing: normal; text-transform: none;
  line-height: 1.45; padding: 8px 11px; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none; z-index: 20;
}
.tooltip:hover::after{ opacity: 1; visibility: visible; transform: translateY(0); }
h1,h2,h3{ font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.grad-text{ background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
p{ color: var(--muted); }

/* ---------- nav ---------- */
header.navbar{
  position: sticky; top: 0; z-index: 100;
  background: var(--glass-strong);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.navbar-inner{ max-width: 1160px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand{ display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo{ height: 34px; width: auto; transition: transform 0.3s ease; }
.brand:hover .brand-logo{ transform: scale(1.08) rotate(-4deg); }
.brand-name{ font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.nav-links{ display: flex; align-items: center; gap: 32px; }
.nav-links a{ text-decoration: none; color: var(--text); font-size: 14.5px; font-weight: 500; position: relative; padding: 4px 0; }
.nav-links a::after{ content:''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--grad); transition: width 0.25s ease; }
.nav-links a:hover::after{ width: 100%; }
.nav-cta{ display: flex; gap: 12px; align-items: center; }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 14.5px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.4s ease, border-color 0.2s ease;
}
.btn-primary{
  background: var(--grad); background-size: 160% 160%; background-position: 0% 50%;
  color: #fff; box-shadow: var(--shadow-glow);
}
.btn-primary:hover{ background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(224,42,154,0.4); }
.btn-ghost{ background: var(--glass); border-color: var(--line); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover{ transform: translateY(-2px); border-color: var(--cyan); box-shadow: var(--shadow-sm); }
.btn-sm{ padding: 9px 18px; font-size: 13px; }
.btn-block{ width: 100%; }
.btn:disabled{ opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ---------- glass card ---------- */
.card{
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.card-hover:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(23,182,232,0.35); }

/* ---------- hero ---------- */
.hero{ padding-top: 110px; padding-bottom: 80px; text-align: center; }
.hero h1{ font-size: clamp(38px, 6vw, 68px); line-height: 1.05; margin: 22px auto 0; max-width: 900px; }
.hero .sub{ max-width: 640px; margin: 22px auto 0; font-size: 17px; }
.hero-cta{ display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero-note{ margin-top: 18px; font-size: 12.5px; color: var(--muted); }

/* ---------- two-card grid ---------- */
.grid-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
@media (max-width: 860px){ .grid-2{ grid-template-columns: 1fr; } }
.pitch-card{ padding: 36px; }
.pitch-card .tag{ font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; display: inline-block; }
.pitch-card.crm .tag{ background: rgba(224,42,154,0.1); color: var(--magenta); }
.pitch-card.services .tag{ background: rgba(23,182,232,0.1); color: #0d8fb8; }
.pitch-card h3{ font-size: 26px; margin-top: 16px; }
.pitch-card p{ margin-top: 10px; }
.pitch-card ul{ list-style: none; padding: 0; margin: 22px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.pitch-card li{ display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.pitch-card li::before{ content: ''; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }

/* ---------- chip strip ---------- */
.chip-strip{ display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
.chip{
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: 0.04em;
  padding: 9px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(10px); transition: transform 0.2s ease, border-color 0.2s ease;
}
.chip:hover{ transform: translateY(-2px); border-color: var(--green); }

/* ---------- how it works ---------- */
.how-steps{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
@media (max-width: 860px){ .how-steps{ grid-template-columns: 1fr; } }
.how-step{ padding: 28px; text-align: left; }
.how-step .num{ font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--muted); }
.how-step h4{ margin: 10px 0 8px; font-size: 18px; }

/* ---------- FAQ ---------- */
.faq-list{ display: flex; flex-direction: column; gap: 14px; margin-top: 44px; max-width: 780px; margin-left: auto; margin-right: auto; }
.faq-item{ padding: 22px 26px; }
.faq-q-wrap{ margin: 0; font-size: inherit; font-weight: inherit; }
.faq-q{
  display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 16px;
  font-family: inherit; font-weight: 600; font-size: 15.5px; color: inherit;
  background: none; border: none; padding: 0; margin: 0; cursor: pointer; text-align: left;
}
.faq-q .plus{ font-size: 20px; color: var(--muted); transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item.open .faq-q .plus{ transform: rotate(45deg); color: var(--magenta); }
.faq-a{ max-height: 0; overflow: hidden; transition: max-height 0.3s ease, margin-top 0.3s ease; font-size: 14.5px; }
.faq-item.open .faq-a{ max-height: 240px; margin-top: 12px; }

/* ---------- section heading ---------- */
.section-head{ text-align: center; max-width: 640px; margin: 0 auto; }
.section-head h2{ font-size: clamp(28px, 4vw, 40px); margin-top: 14px; }
.section-head p{ margin-top: 14px; }

/* ---------- forms ---------- */
.field{ display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field label{ font-size: 13px; font-weight: 600; }
.field .hint{ font-size: 12px; color: var(--muted); }
.char-counter{ align-self: flex-end; font-size: 11.5px; color: var(--muted); margin-top: -2px; }
input, select, textarea{
  font-family: 'Space Grotesk', sans-serif; font-size: 14.5px; color: var(--text);
  background: rgba(255,255,255,0.7); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
textarea{ resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus{ border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(23,182,232,0.15); }
.field.error input, .field.error select, .field.error textarea{ border-color: var(--magenta); }
.field-error{ font-size: 12px; color: var(--magenta); display: none; }
.field.error .field-error{ display: block; }
.hp-field{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px){ .form-row{ grid-template-columns: 1fr; } }

.form-card{ padding: 40px; max-width: 640px; margin: 0 auto; }
.form-card form{ display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }

/* ---------- waitlist bar (compact, single-row) ---------- */
.waitlist-bar{
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: nowrap; padding: 22px 32px;
}
.waitlist-copy{ display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.waitlist-copy p{ font-size: 14px; margin: 0; }
.waitlist-bar .inline-form{ flex-wrap: nowrap; flex: 0 0 auto; }
.waitlist-bar .inline-form input{ min-width: 320px; flex: 0 1 320px; }
.waitlist-bar .form-msg{ flex-basis: 100%; }
@media (max-width: 640px){
  .waitlist-bar{ flex-direction: column; align-items: stretch; text-align: center; padding: 26px 24px; flex-wrap: wrap; }
  .waitlist-copy{ flex: 1 1 auto; }
  .waitlist-bar .inline-form{ flex-wrap: wrap; justify-content: center; }
}

.inline-form{ display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input{ flex: 1 1 220px; width: auto; min-width: 220px; }
.inline-form button{ flex: 0 0 auto; }

.form-msg{ font-size: 13.5px; padding: 10px 14px; border-radius: 10px; display: none; }
.form-msg.show{ display: block; }
.form-msg.success{ background: rgba(28,191,117,0.12); color: #0e7a4a; }
.form-msg.error{ background: rgba(224,42,154,0.1); color: #a01d70; }

.success-state{ display: none; text-align: center; padding: 20px 0; }
.success-state.show{ display: block; }
.success-state .icon{
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--grad);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px;
  animation: icon-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.success-state .icon svg{ overflow: visible; }
.success-state .icon-ring{ stroke: rgba(255,255,255,0.001); }
.success-state .icon-check{
  stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 36; stroke-dashoffset: 36;
  animation: icon-draw 0.4s ease-out 0.3s forwards;
}
@keyframes icon-pop{
  0%{ transform: scale(0.4); opacity: 0; }
  60%{ transform: scale(1.08); opacity: 1; }
  100%{ transform: scale(1); }
}
@keyframes icon-draw{ to{ stroke-dashoffset: 0; } }

/* ---------- toast / flash notification ---------- */
.toast-container{
  position: fixed; top: 20px; right: 20px; z-index: 1000;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast{
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--glass-strong); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; min-width: 240px; max-width: 340px;
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--shadow-md);
  font-size: 13.5px; font-weight: 500; color: var(--text);
  transform: translateX(120%); opacity: 0;
  animation: toast-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.toast.toast-out{ animation: toast-out 0.3s ease forwards; }
.toast .toast-dot{
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px;
}
.toast.success .toast-dot{ background: var(--green); }
.toast.error .toast-dot{ background: var(--magenta); }
@keyframes toast-in{ to{ transform: translateX(0); opacity: 1; } }
@keyframes toast-out{ to{ transform: translateX(120%); opacity: 0; } }
@media (max-width: 480px){
  .toast-container{ left: 16px; right: 16px; top: 16px; }
  .toast{ max-width: none; }
}

/* ---------- multi-step (onboarding) ---------- */
.progress-track{ display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.progress-step{ flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; transition: background 0.35s ease; }
.progress-step.done{ background: var(--grad); }
.progress-step.active{ background: var(--grad); opacity: 0.5; }
.step-label{ font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.step{ display: none; flex-direction: column; gap: 18px; }
.step.active{ display: flex; }
.step-actions{ display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }

/* ---------- footer ---------- */
footer{ border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner{ display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand{ display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.footer-brand .brand{ pointer-events: none; }
.footer-links{ display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col{ display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.footer-col strong{ font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-family: 'IBM Plex Mono', monospace; margin-bottom: 4px; }
.footer-col a{ text-decoration: none; color: var(--text); transition: color 0.2s ease; }
.footer-col a:hover{ color: var(--magenta); }
.footer-bottom{ margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); }
.footer-legal-links{ display: flex; gap: 18px; }
.footer-legal-links a{ text-decoration: none; color: var(--muted); transition: color 0.2s ease; }
.footer-legal-links a:hover{ color: var(--magenta); }

/* ---------- legal pages ---------- */
.legal-card{ padding: 44px; max-width: 760px; margin: 0 auto; }
.legal-card p{ font-size: 14.5px; margin-top: 10px; }
.legal-card h3{ font-size: 18px; margin-top: 30px; }
.legal-card h3:first-child{ margin-top: 0; }
.legal-card ul{ margin: 10px 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.legal-card li{ margin-top: 6px; }
.legal-card a{ color: var(--cyan); text-decoration: underline; }

/* ---------- page-header (onboarding/contact) ---------- */
.page-header{ text-align: center; padding: 70px 0 20px; }
.page-header .eyebrow{ justify-content: center; }
.page-header h1{ font-size: clamp(32px, 5vw, 48px); margin-top: 14px; }
.page-header p{ max-width: 560px; margin: 14px auto 0; }

@media (max-width: 720px){
  .navbar-inner .nav-links{ display: none; }
  section{ padding: 64px 0; }
  .footer-inner{ flex-direction: column; }
}

@media (max-width: 480px){
  .navbar-inner{ padding: 14px 16px; }
  .brand-logo{ height: 28px; }
  .brand-name{ font-size: 15px; }
  .nav-cta{ gap: 8px; }
  .nav-cta .btn-sm{ padding: 8px 12px; font-size: 12px; white-space: nowrap; }
  .nav-cta .nav-cta-optional{ display: none; }
}
