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

:root {
  --ink: #1a1a1a;
  --paper: #f8f8f8;
  --muted: #666;
  --faint: #999;
  --hairline: #e2e2e2;
  --mono: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.5;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- nav ---------- */

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

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

.nav-links a {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.nav-cta:hover { background: #444; }

.nav-cta.signed {
  background: #fff;
  border: 1px solid var(--hairline);
  color: var(--ink) !important;
  font-size: 0.8rem;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-cta.signed:hover { background: #fff; border-color: var(--ink); }

/* ---------- buttons ---------- */

.cta-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.btn:hover { background: #444; }

.btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.btn.ghost:hover { background: #fff; border-color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  padding: 4.5rem 0 4rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 17ch;
}

.hero .sub {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 56ch;
}

/* ---------- terminal ---------- */

.terminal {
  margin-top: 2.5rem;
  max-width: 620px;
  background: var(--ink);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.35);
}

.terminal-bar {
  padding: 0.55rem 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #777;
  border-bottom: 1px solid #2c2c2c;
}

.terminal pre {
  padding: 1rem 1.25rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.9;
  color: #e0e0e0;
  overflow-x: auto;
}

.terminal .dim { color: #6f6f6f; }
.terminal .ok { color: #8fd694; }

/* ---------- sections ---------- */

.section { padding: 3.5rem 0; }

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--faint);
  margin-bottom: 1.5rem;
}

/* ---------- feature / pricing cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: #fff;
  border: 1px solid var(--hairline);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #cfcad9;
}

a.card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.card:focus-visible {
  outline: 2px solid #6d5bff;
  outline-offset: 2px;
}

.grid .card, .features .card { animation: rise 0.55s ease backwards; }
.grid .card:nth-child(1), .features .card:nth-child(1) { animation-delay: 0.05s; }
.grid .card:nth-child(2), .features .card:nth-child(2) { animation-delay: 0.18s; }
.grid .card:nth-child(3), .features .card:nth-child(3) { animation-delay: 0.31s; }

/* ---------- bento feature cards ---------- */

.features {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1.25rem;
}

.card.feature {
  padding: 0;
  border-radius: 14px;
  border-color: #e8e6ef;
  overflow: hidden;
}

.feature-body { padding: 2rem 2rem 1.6rem; }

.feature h3 { font-size: 1.4rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.feature p { font-size: 0.92rem; line-height: 1.65; flex-grow: 0; max-width: 60ch; }

.feature-c {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.feature-c .feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
}

.feature-c .viz {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: 2.5rem;
  min-height: 340px;
}

.feature-c .win { position: static; width: min(420px, 100%); }

@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
  .feature-c { grid-template-columns: 1fr; }
  .feature-c .viz { padding: 1.75rem; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- animated card visuals ---------- */

.viz {
  position: relative;
  flex-grow: 1;
  overflow: hidden;
  min-height: 320px;
}

.grad-a {
  background:
    radial-gradient(120% 100% at 8% 110%, #ffc795 0%, rgba(255, 199, 149, 0) 55%),
    radial-gradient(110% 100% at 92% -10%, #b9a8ff 0%, rgba(185, 168, 255, 0) 60%),
    linear-gradient(150deg, #efeaff 0%, #f6e9ff 50%, #ffe9d6 100%);
}

.grad-b {
  background:
    radial-gradient(120% 110% at 90% 110%, #ffb1e2 0%, rgba(255, 177, 226, 0) 60%),
    radial-gradient(110% 100% at 0% 0%, #a8c4ff 0%, rgba(168, 196, 255, 0) 55%),
    linear-gradient(160deg, #eef1ff 0%, #f3ebff 100%);
}

.grad-c {
  background:
    radial-gradient(110% 120% at 100% 100%, #ffd29b 0%, rgba(255, 210, 155, 0) 55%),
    radial-gradient(120% 100% at 0% 0%, #9fb6ff 0%, rgba(159, 182, 255, 0) 55%),
    linear-gradient(140deg, #ecebff 0%, #f7ecff 60%, #ffeede 100%);
}

.win {
  position: absolute;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 24px 48px -20px rgba(48, 30, 100, 0.4);
  font-family: var(--mono);
  font-size: 0.74rem;
  overflow: hidden;
  white-space: nowrap;
}

.float { animation: floaty 7s ease-in-out infinite alternate; }

@keyframes floaty {
  from { transform: translateY(4px); }
  to { transform: translateY(-6px); }
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.62rem;
  color: #9a9aa2;
  border-bottom: 1px solid #efeff2;
  background: #fafafc;
}

.win-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: #e3e3e8; flex-shrink: 0; }
.win-bar .url { margin-left: 0.35rem; }

.win.term { background: var(--ink); }
.win.term .win-bar { background: #232326; border-bottom-color: #2e2e33; color: #88888f; }
.win.term .win-bar .dot { background: #3a3a40; }
.win pre { padding: 0.7rem 1rem 0.9rem; line-height: 2.1; color: #3a3a40; }
.win.term pre { color: #e0e0e0; }
.win .dim { color: #9a9aa2; }
.win.term .dim { color: #6f6f6f; }
.win .ok { color: #1e9e3e; }
.win.term .ok { color: #8fd694; }

/* hosting: browser window pinned to the card edge, terminal floating over it */
.feature-a .win.browser {
  left: 2rem;
  top: 2.25rem;
  right: 36%;
  bottom: 0;
  border-radius: 10px 10px 0 0;
}

.feature-a .win.term {
  right: 1.75rem;
  bottom: 1.75rem;
  width: 56%;
  min-width: 250px;
}

.browser-body { padding: 1.1rem; }
.sk { height: 9px; border-radius: 5px; background: #ececf1; margin-bottom: 0.65rem; }
.sk-1 { width: 45%; background: #dcd9f5; }
.sk-2 { width: 82%; }
.sk-3 { width: 64%; }

/* email: delivery feed window */
.feature-b .win.feed { left: 1.75rem; right: 1.75rem; top: 2.5rem; }

.feed-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #f2f2f5;
  color: #3a3a40;
}

.feed-row .ok { margin-left: auto; }
.feed-row .ms { color: #b0b0b8; font-size: 0.62rem; }
.feed-total { padding: 0.55rem 0.9rem; font-size: 0.64rem; color: #9a9aa2; background: #fafafc; }

/* orchestration: pipeline chips + response window */
.stages { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.stages .arrow { color: #8d83c9; font-family: var(--mono); font-size: 0.8rem; }

.chip {
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #4a4a52;
  box-shadow: 0 10px 24px -12px rgba(48, 30, 100, 0.35);
  animation: chippulse 6s ease infinite;
}

.chip.d0 { animation-delay: 0s; }
.chip.d1 { animation-delay: 1.4s; }
.chip.d2 { animation-delay: 2.8s; }
.chip.d3 { animation-delay: 4.2s; }

@keyframes chippulse {
  0%, 36%, 100% { background: #fff; color: #4a4a52; }
  7%, 26% { background: #6d5bff; color: #fff; }
}

.viz-line { display: block; opacity: 0.18; animation: vline 7s ease infinite; }
.viz-line:nth-child(1) { animation-delay: 0.2s; }
.viz-line:nth-child(2) { animation-delay: 1.1s; }
.viz-line:nth-child(3) { animation-delay: 2s; }
.viz-line:nth-child(4) { animation-delay: 2.9s; }

@keyframes vline {
  0%, 3% { opacity: 0.18; }
  9%, 78% { opacity: 1; }
  92%, 100% { opacity: 0.18; }
}

.cursor {
  display: inline-block;
  animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .grid .card, .features .card, .viz-line, .chip, .cursor, .float, .terminal .viz-line { animation: none !important; }
  .viz-line { opacity: 1; }
}

.card-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.9rem;
  flex-grow: 1;
}

.card .meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  margin-top: 1.25rem;
}

.card-cta {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.8rem;
  background: #6d5bff;
  color: #fff;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 1.25rem;
  transition: background 0.15s ease;
}

.card-cta:hover,
.card:hover .card-cta { background: #5a48f5; }

.fineprint {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  text-align: center;
}

/* ---------- steps ---------- */

.how {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.how .terminal { margin-top: 0; max-width: none; }

.how-steps .step { margin-bottom: 1.4rem; }
.how-steps .step:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .how { grid-template-columns: 1fr; }
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--faint);
  margin-bottom: 0.5rem;
}

code.block {
  display: block;
  background: var(--ink);
  color: #e0e0e0;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.88rem;
  -webkit-user-select: all;
  user-select: all;
  white-space: nowrap;
  overflow-x: auto;
}

.note { color: #888; font-size: 0.8rem; margin-top: 0.45rem; }

/* ---------- pricing ---------- */

.price {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.price .per {
  color: var(--faint);
  font-size: 0.85rem;
  font-weight: 400;
}

.card ul.includes {
  list-style: none;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.card ul.includes li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--hairline);
}

.card ul.includes li:last-child { border-bottom: none; }

.subscribe {
  display: block;
  text-align: center;
  margin-top: auto;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.subscribe:hover { background: #444; }

/* email slider */

.slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0 0.5rem;
}

.slider-bound {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
  flex-shrink: 0;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: #ddd;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--ink);
  border-radius: 2px;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--ink);
  border: none;
  border-radius: 2px;
  cursor: pointer;
}

input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.slider-readout {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 1rem;
}

/* ---------- footer ---------- */

footer {
  margin-top: 3rem;
  border-top: 1px solid var(--hairline);
  padding: 2.5rem 0 3rem;
  display: grid;
  grid-template-columns: minmax(0, 540px) 1fr;
  gap: 2rem;
}

.foot-head {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 0.5rem;
}

.foot-trust p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.foot-links {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 1.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

.foot-base {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #b5b5b5;
}

@media (max-width: 640px) {
  footer { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
}
