:root {
  --white: #ffffff;
  --mist: #f6f5fb;
  --haze: #ecebf4;
  --line: #e1dfec;
  --grey: #8a879c;
  --slate: #5c5970;
  --ink: #1d1a2e;

  --lilac: #ede8ff;
  --lavender: #c6b8ff;
  --violet: #8b6cff;
  --purple: #6a4cf0;
  --deep: #4a33c2;
  --night: #241a5c;

  --ombre-button: linear-gradient(120deg, #8b6cff 0%, #6a4cf0 55%, #5a3fd9 100%);
  --ombre-dark: linear-gradient(160deg, #2a1f63 0%, #3f2fa0 55%, #6b5bc4 100%);
  --shadow-soft: 0 24px 60px -24px rgba(74, 51, 194, 0.28), 0 8px 24px -12px rgba(29, 26, 46, 0.10);

  --display: "Sora", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.025em;
}
p { margin: 0; }
a { color: var(--purple); }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; border-radius: 10px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.narrow { max-width: 780px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 20; }
.skip:focus { left: 8px; }

/* Header: floating glass bar */
.site-header {
  position: sticky; top: 0; z-index: 10;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(225, 223, 236, 0.7);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.mark { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--slate); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.nav a:hover { background: var(--mist); color: var(--ink); }
.nav .nav-cta { background: var(--ink); color: #fff; margin-left: 6px; }
.nav .nav-cta:hover { background: var(--night); color: #fff; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 9vw, 120px) 0 clamp(72px, 10vw, 136px);
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(198, 184, 255, 0.55) 0%, rgba(198, 184, 255, 0) 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(237, 232, 255, 0.9) 0%, rgba(237, 232, 255, 0) 70%),
    linear-gradient(180deg, #ffffff 0%, #f8f6ff 55%, #ffffff 100%);
}
.hero-glow { position: absolute; inset: 0; pointer-events: none; }
.ring {
  position: absolute; left: 76%; top: 46%;
  border-radius: 50%; border: 1px solid rgba(106, 76, 240, 0.16);
  transform: translate(-50%, -50%);
}
.r1 { width: 420px; height: 420px; }
.r2 { width: 720px; height: 720px; border-color: rgba(106, 76, 240, 0.11); }
.r3 { width: 1040px; height: 1040px; border-color: rgba(106, 76, 240, 0.07); }
.pulse {
  width: 420px; height: 420px; border: 1.5px solid rgba(139, 108, 255, 0.35);
  animation: pulse 6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
@keyframes pulse {
  0% { width: 420px; height: 420px; opacity: 0.9; }
  100% { width: 1040px; height: 1040px; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; opacity: 0; } }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 88px); align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.3rem); font-weight: 400; max-width: 14ch;
  background: linear-gradient(120deg, #1d1a2e 0%, #2e2560 45%, #6a4cf0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.06em;
}
.lede { margin-top: 26px; font-size: 1.2rem; color: var(--slate); max-width: 33em; }

.signup { margin-top: 38px; max-width: 560px; }
.signup-label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--slate); margin-bottom: 10px; padding-left: 6px; }
.signup-row {
  display: flex; gap: 6px; padding: 6px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.signup input[type="email"] {
  flex: 1; min-width: 0; font: inherit; font-size: 1rem;
  padding: 12px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink);
}
.signup input[type="email"]:focus { outline: none; }
.signup-row:focus-within { border-color: var(--lavender); box-shadow: 0 0 0 4px rgba(198, 184, 255, 0.45), var(--shadow-soft); }
.signup input[type="email"]::placeholder { color: var(--grey); }

.signup button, .closing-cta, .plan-cta {
  font: inherit; font-weight: 600; font-size: 1rem;
  background: var(--ombre-button); color: #fff;
  border: 0; border-radius: 999px; padding: 13px 24px; cursor: pointer; white-space: nowrap;
  text-decoration: none; display: inline-block;
  box-shadow: 0 10px 24px -10px rgba(106, 76, 240, 0.65);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.signup button:hover, .closing-cta:hover, .plan-cta:hover { filter: brightness(1.06); box-shadow: 0 14px 30px -10px rgba(106, 76, 240, 0.75); }
.signup button[disabled] { opacity: 0.75; cursor: progress; }
.signup-note { margin-top: 12px; padding-left: 6px; font-size: 0.9rem; color: var(--grey); min-height: 1.5em; }
.signup-note.is-ok { color: var(--purple); font-weight: 600; }
.signup-note.is-error { color: #b4235a; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Example digest: frosted glass card */
.digest {
  margin: 0; position: relative;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 90px -36px rgba(74, 51, 194, 0.45), 0 0 0 1px rgba(198, 184, 255, 0.35);
  padding: 10px;
}
.digest-chrome {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--ombre-dark); color: #fff;
  padding: 12px 18px; font-size: 0.85rem; border-radius: var(--r-md) var(--r-md) 8px 8px;
}
.digest-from { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
.digest-time { font-variant-numeric: tabular-nums; opacity: 0.8; }
.digest-subject { padding: 16px 14px 10px; font-family: var(--display); font-weight: 500; font-size: 1.05rem; }
.bids { list-style: none; margin: 0; padding: 0 4px; display: grid; gap: 8px; }
.bid { padding: 14px 16px; background: var(--mist); border-radius: var(--r-sm); }
.bid-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.fit { font-size: 0.76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.fit-small { background: var(--lilac); color: var(--deep); }
.fit-large { background: var(--haze); color: var(--slate); }
.due { font-size: 0.84rem; font-weight: 600; color: var(--slate); font-variant-numeric: tabular-nums; }
.bid-title { font-weight: 700; line-height: 1.35; }
.bid-agency { font-size: 0.88rem; color: var(--grey); }
.bid-scope { font-size: 0.88rem; margin-top: 4px; color: var(--slate); }
.bid-flag { font-size: 0.84rem; margin-top: 6px; color: var(--purple); font-weight: 700; }
.digest-caption { font-size: 0.78rem; color: var(--grey); padding: 12px 14px 6px; }

/* Problem: deep ombre band */
.problem {
  position: relative; color: #fff; padding: clamp(72px, 10vw, 120px) 0;
  background: var(--ombre-dark);
  border-radius: 40px; margin: 0 clamp(8px, 2vw, 24px);
  overflow: hidden;
}
.problem::after {
  content: ""; position: absolute; width: 600px; height: 600px; right: -160px; bottom: -260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(198, 184, 255, 0.35) 0%, rgba(198, 184, 255, 0) 70%);
}
.problem-line { position: relative; font-family: var(--display); font-weight: 300; font-size: clamp(1.5rem, 2.9vw, 2.2rem); line-height: 1.35; letter-spacing: -0.02em; }
.problem-follow { position: relative; margin-top: 22px; font-size: 1.15rem; color: rgba(255, 255, 255, 0.72); max-width: 36em; }

/* Sections */
.how, .anatomy, .pricing, .faq { padding: clamp(72px, 10vw, 124px) 0; }
.how h2, .anatomy h2, .pricing h2, .faq h2, .closing h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 400; }
.section-lede { margin-top: 12px; color: var(--slate); font-size: 1.1rem; }

.steps {
  list-style: none; counter-reset: step; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.steps li {
  counter-increment: step; padding: 28px 28px 30px;
  background: linear-gradient(180deg, var(--mist) 0%, #ffffff 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--display); font-weight: 500; font-size: 1.1rem; color: #fff;
  background: var(--ombre-button); box-shadow: 0 8px 18px -8px rgba(106, 76, 240, 0.7);
  margin-bottom: 20px;
}
.steps h3 { font-size: 1.2rem; }
.steps p { margin-top: 10px; color: var(--slate); }

.anatomy { background: linear-gradient(180deg, #ffffff 0%, var(--mist) 100%); }
.anatomy-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.fields { margin: 0; display: grid; gap: 10px; }
.fields div {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: baseline;
  padding: 18px 22px; background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.fields dt { font-family: var(--display); font-weight: 500; color: var(--deep); }
.fields dd { margin: 0; color: var(--slate); }

/* Pricing */
.plans { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  padding: 30px 28px 32px; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.plan-main {
  position: relative; border: 1px solid transparent;
  background:
    linear-gradient(180deg, #ffffff, #faf8ff) padding-box,
    linear-gradient(150deg, #c6b8ff, #6a4cf0 60%, #c6b8ff) border-box;
  box-shadow: var(--shadow-soft);
}
.plan h3 { font-size: 1.15rem; color: var(--slate); font-weight: 500; }
.price { font-family: var(--display); font-weight: 400; font-size: 2.7rem; margin-top: 6px; letter-spacing: -0.03em; }
.price span { font-family: var(--body); font-size: 1rem; font-weight: 500; color: var(--grey); margin-left: 4px; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 26px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; color: var(--slate); }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 0.82em; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle, var(--purple) 0 3px, var(--lilac) 3.5px);
}
.plan .plan-cta { text-align: center; }
.plan:not(.plan-main) .plan-cta { background: var(--mist); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.plan:not(.plan-main) .plan-cta:hover { background: var(--lilac); }
.plan-note { margin-top: 12px; font-size: 0.85rem; color: var(--grey); text-align: center; }
.plan-soon { font-weight: 600; color: var(--grey); padding: 12px 0; text-align: center; background: var(--mist); border-radius: 999px; }

/* FAQ */
.faq h2 { margin-bottom: 28px; }
.faq details {
  background: var(--mist); border-radius: var(--r-md); margin-bottom: 10px;
  transition: background 0.2s;
}
.faq details[open] { background: var(--lilac); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--purple); font-weight: 600; font-size: 1.1rem; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 24px 22px; color: var(--slate); max-width: 42em; }

/* Closing */
.closing { padding: 0 clamp(8px, 2vw, 24px) clamp(24px, 4vw, 40px); }
.closing-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 64px);
  border-radius: 40px; color: #fff; background: var(--ombre-dark);
  position: relative; overflow: hidden;
}
.closing-inner::before {
  content: ""; position: absolute; width: 520px; height: 520px; left: -180px; top: -240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 184, 255, 0.3) 0%, rgba(198, 184, 255, 0) 70%);
}
.closing h2 { position: relative; max-width: 15ch; }
.closing-cta { position: relative; background: #fff; color: var(--deep); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.45); }
.closing-cta:hover { background: var(--lilac); }

/* Footer */
.site-footer { padding: 28px 0 44px; font-size: 0.88rem; color: var(--grey); }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .anatomy-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .ring { left: 70%; top: 70%; }
  .steps, .plans { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav a:not(.nav-cta) { display: none; }
  .signup-row { flex-direction: column; border-radius: var(--r-md); }
  .signup input[type="email"] { padding: 14px 14px; }
  .signup button { width: 100%; }
  .fields div { grid-template-columns: 1fr; gap: 4px; }
  .problem, .closing-inner { border-radius: 28px; }
  .closing-cta { width: 100%; text-align: center; }
}
