/* ============================================================
   Dynamo — streaming settlement for agent payments
   Brand gradient preserved: #ff006f (pink) -> #2eaeff / #006bff (blue)
   ============================================================ */

:root {
  --pink: #ff006f;
  --blue: #2eaeff;
  --blue-deep: #006bff;
  --ink: #05060f;
  --ink-2: #0b0d1c;
  --panel: #0f1222;
  --panel-2: #12152a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f8;
  --muted: #9aa3bd;
  --muted-2: #6b7393;
  --grad: linear-gradient(100deg, var(--blue) 0%, var(--blue-deep) 45%, var(--pink) 100%);
  --display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --maxw: 1120px;
}

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

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background:
    radial-gradient(900px 500px at 85% -8%, rgba(46, 174, 255, 0.10), transparent 60%),
    radial-gradient(800px 520px at 5% 12%, rgba(255, 0, 111, 0.08), transparent 55%),
    var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: #7cc8ff; }

h1, h2, h3 { font-family: var(--display); color: #fff; line-height: 1.12; letter-spacing: -0.01em; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.text-center { text-align: center; }

/* ---------- Header / nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(10px);
  background: rgba(5, 6, 15, 0.72);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: #fff;
}
.logo-svg { height: 30px; width: auto; }

.nav-menu { display: flex; gap: 28px; }
.nav-menu a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-menu a:hover { color: #fff; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  z-index: 100;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.menu-overlay { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--grad);
  color: #04101f;
  box-shadow: 0 6px 24px rgba(46, 174, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); color: #04101f; box-shadow: 0 10px 32px rgba(46, 174, 255, 0.4); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--blue); color: #fff; transform: translateY(-2px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta-center { justify-content: center; }
.micro { margin-top: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); letter-spacing: 0.02em; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; margin-bottom: 22px; }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 560px; }
.lede strong { color: var(--text); font-weight: 600; }

/* ---------- Signature: live stream meter ---------- */
.meter {
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}
.meter::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad);
}
.meter-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  margin-bottom: 22px;
}
.meter-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(46, 174, 255, 0.6);
  animation: pulse 1.6s infinite;
}
.meter-rate { margin-left: auto; color: var(--blue); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 174, 255, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(46, 174, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 174, 255, 0); }
}
.meter-readout { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.meter-spent {
  font-family: var(--mono);
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.meter-unit { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); }
.meter-bar {
  height: 8px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden; margin-bottom: 12px;
}
.meter-fill {
  height: 100%; width: 0%;
  background: var(--grad);
  transition: width 0.25s linear;
}
.meter-foot {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.meter-foot strong { color: var(--text); }
.meter-state { color: var(--blue); }
.meter-state.capped { color: var(--pink); }
.meter-state.stopped { color: var(--muted-2); }
.meter-toggle {
  width: 100%; margin-top: 18px;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  padding: 11px; border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text); cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.meter-toggle:hover { border-color: var(--blue); color: #fff; }

/* ---------- Problem strip ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  padding: 44px 0;
}
.strip-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.strip-lead { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.6vw, 28px); color: #fff; }
.strip-body { color: var(--muted); font-size: 16px; }

/* ---------- Generic block ---------- */
.block { padding: 80px 0; }
.block-alt { background: rgba(255, 255, 255, 0.018); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; margin-bottom: 16px; }
.block-lede { color: var(--muted); font-size: 17px; max-width: 640px; margin-bottom: 44px; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li {
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: 16px; padding: 28px;
  position: relative;
}
.step-n { font-family: var(--mono); font-size: 13px; color: var(--blue); letter-spacing: 0.1em; }
.steps h3 { font-size: 19px; margin: 14px 0 10px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- Cards (spend controls) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: 16px; padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); margin-right: 10px; vertical-align: middle; }
.card p { color: var(--muted); font-size: 15px; }
.roadmap-note { margin-top: 26px; font-size: 14px; color: var(--muted-2); }

/* ---------- x402 ---------- */
.x402-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.x402-grid p { color: var(--muted); margin-bottom: 18px; }
.code {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  background: #07080f;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 24px;
  color: #cdd3e6;
  overflow-x: auto;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
}
.c-com { color: #61708f; }
.c-kw { color: #ff79c6; }
.c-str { color: #f1fa8c; }
.c-fn { color: var(--blue); }
.c-num { color: #bd93f9; }

/* ---------- Use cases ---------- */
.uc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.uc {
  border-left: 2px solid transparent;
  border-image: var(--grad); border-image-slice: 1;
  background: rgba(255, 255, 255, 0.02);
  padding: 22px 24px; border-radius: 0 12px 12px 0;
}
.uc h3 { font-size: 17px; margin-bottom: 8px; }
.uc p { color: var(--muted); font-size: 15px; }

/* ---------- Status ---------- */
.status-list { list-style: none; display: grid; gap: 14px; max-width: 780px; }
.status-list li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 15.5px;
}
.s-live, .s-soon {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px; white-space: nowrap; flex-shrink: 0;
}
.s-live { color: #04101f; background: linear-gradient(100deg, var(--blue), var(--blue-deep)); }
.s-soon { color: var(--blue); border: 1px solid var(--line-strong); }

/* ---------- FAQ (class names kept for script.js) ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 820px; }
.faq-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px; overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item.active { border-color: var(--line-strong); }
.faq-question {
  padding: 20px 22px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-question:hover { background: rgba(46, 174, 255, 0.05); }
.faq-question h3 { font-size: 17px; margin: 0; font-weight: 600; }
.faq-toggle { font-size: 24px; color: var(--blue); transition: transform 0.3s ease; line-height: 1; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-answer p { color: var(--muted); font-size: 15px; }
.faq-item.active .faq-answer { padding: 0 22px 22px; max-height: 320px; }

/* ---------- Closing ---------- */
.closing .h2 { max-width: 740px; margin: 0 auto 8px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; background: rgba(5, 6, 15, 0.6); }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-copyright { color: var(--muted-2); font-size: 14px; font-family: var(--mono); line-height: 1.7; }
.footer-socials { display: flex; gap: 12px; }
.social-link {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); color: var(--muted);
  transition: all 0.2s ease;
}
.social-link:hover { color: #fff; border-color: var(--blue); transform: translateY(-2px); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .meter { max-width: 460px; }
  .x402-grid { grid-template-columns: 1fr; gap: 28px; }
  .strip-grid { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed; top: 0; right: -100%;
    width: 260px; height: 100vh;
    background: var(--ink-2);
    flex-direction: column; justify-content: flex-start;
    padding-top: 80px; gap: 0;
    transition: right 0.4s ease;
    z-index: 99;
    border-left: 1px solid var(--line-strong);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  }
  .nav-menu.active { right: 0; }
  .nav-menu a { padding: 16px 26px; width: 100%; border-bottom: 1px solid var(--line); }
  .menu-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.6); z-index: 98;
  }
  .menu-overlay.active { display: block; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 680px) {
  .cards { grid-template-columns: 1fr; }
  .uc-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* ============================================================
   Regeneration additions: budgets, on-chain, spotlight, capabilities
   ============================================================ */

/* Multi-agent budget diagram */
.budget-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; margin-top: 8px; }
.budget-svg {
  width: 100%; height: auto;
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line); border-radius: 16px; padding: 12px;
}
.flow-line {
  stroke-dasharray: 7 9;
  animation: flow 1.1s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -16; } }
.budget-points { display: grid; gap: 22px; }
.bp h3 { font-size: 18px; margin-bottom: 8px; }
.bp h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); margin-right: 10px; vertical-align: middle; }
.bp p { color: var(--muted); font-size: 15px; }

/* On-chain foundation grid */
.onchain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.oc {
  background: linear-gradient(180deg, var(--panel-2), var(--ink-2));
  border: 1px solid var(--line); border-radius: 16px; padding: 26px;
  border-top: 2px solid transparent; border-image: var(--grad); border-image-slice: 1;
}
.oc h3 { font-size: 18px; margin-bottom: 10px; }
.oc p { color: var(--muted); font-size: 15px; }

/* Consumer spotlight */
.spotlight {
  margin-top: 56px; padding: 40px;
  background: linear-gradient(135deg, rgba(46,174,255,0.06), rgba(255,0,111,0.05));
  border: 1px solid var(--line-strong); border-radius: 20px;
}
.spot-h { font-size: clamp(20px, 2.6vw, 26px); margin-bottom: 28px; color: #fff; }
.spot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.spot {
  background: rgba(8,9,18,0.55); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px;
}
.spot-tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #04101f; background: var(--grad);
  padding: 4px 10px; border-radius: 6px; margin-bottom: 14px;
}
.spot h4 { font-size: 19px; margin-bottom: 10px; }
.spot p { color: var(--muted); font-size: 15px; }
.spot-more { margin-top: 22px; color: var(--muted-2); font-size: 14.5px; }

/* Capabilities grid */
.cap-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cap-grid li {
  background: rgba(255,255,255,0.02); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 20px;
}
.cap-grid strong { display: block; color: #fff; font-family: var(--display); font-size: 15px; margin-bottom: 5px; }
.cap-grid span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

@media (max-width: 960px) {
  .budget-wrap { grid-template-columns: 1fr; gap: 28px; }
  .onchain-grid { grid-template-columns: 1fr; }
  .spot-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .cap-grid { grid-template-columns: 1fr; }
  .spotlight { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-line { animation: none; stroke-dasharray: none; }
}
