/* ============================================================
   Sections
   ============================================================ */

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand .mark {
  width: 27px; height: 27px;
  flex: none; display: block;
  filter: drop-shadow(0 4px 14px rgba(var(--accent-rgb), 0.45));
}
.brand .role { color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; padding-left: 11px; margin-left: 4px; border-left: 1px solid var(--line); }
.nav .btn { padding: 10px 18px; font-size: 14.5px; }
@media (max-width: 620px) { .brand .role { display: none; } }

/* ---------- HERO ---------- */
.hero { position: relative; padding-top: 132px; padding-bottom: clamp(48px, 8vw, 96px); overflow: hidden; }
.hero-glow {
  position: absolute; top: -10%; right: -6%;
  width: 760px; height: 760px;
  background: var(--glow); opacity: 0.5;
  pointer-events: none; filter: blur(8px);
}
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { max-width: 600px; }
.status-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--ink-2);
  padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-elev);
}
.status-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); position: relative; }
.status-chip .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.7); opacity: 0.8; } 80%,100% { transform: scale(1.9); opacity: 0; } }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 6.1vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.032em;
  margin: 26px 0 0;
}
.hero h1 .line2 { color: var(--ink-3); }
.hero .sub {
  color: var(--ink-2);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.5;
  margin-top: 24px;
  max-width: 520px;
}
.hero .sub strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; align-items: center; gap: 18px; margin-top: 34px; flex-wrap: wrap; }
.hero-cta .note { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* ---------- AGENT GRAPH ---------- */
.hero-visual { position: relative; }
.graph-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), transparent 40%),
    var(--bg-elev);
  overflow: hidden;
  aspect-ratio: 1 / 1.02;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.8);
}
.graph-card::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.4; pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 100% at 70% 20%, #000 30%, transparent 80%);
          mask-image: radial-gradient(120% 100% at 70% 20%, #000 30%, transparent 80%);
}
.graph-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elev) 80%, transparent);
  backdrop-filter: blur(4px);
}
.graph-head .ttl { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.graph-head .lights { display: flex; gap: 6px; }
.graph-head .lights i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); display: block; }
.graph-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.edge { stroke: var(--line-strong); stroke-width: 1.4; fill: none; }
.pulse { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }

.node-g { cursor: default; }
.node-box {
  fill: var(--bg-elev-2);
  stroke: var(--line-strong);
  stroke-width: 1.2;
  transition: stroke 0.3s var(--ease);
}
.node-g.active .node-box { stroke: var(--accent); }
.node-g.active .node-box { filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.5)); }
.node-label { font-family: var(--font-mono); font-size: 11px; fill: var(--ink); letter-spacing: 0.02em; }
.node-kind { font-family: var(--font-mono); font-size: 8.5px; fill: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; }
.node-core .node-box { fill: color-mix(in srgb, var(--accent) 14%, var(--bg-elev-2)); stroke: var(--accent); }
.node-core .node-label { fill: var(--ink); }

.graph-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 11px 16px; border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elev) 80%, transparent);
  backdrop-filter: blur(4px);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2);
  display: flex; gap: 8px; align-items: center; min-height: 40px;
}
.graph-foot .tag { color: var(--accent); }
.graph-foot .cursor { width: 7px; height: 14px; background: var(--accent); display: inline-block; animation: blink 1s steps(1) infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- OUTCOMES / VALUE PROP ---------- */
.outcomes { padding-bottom: clamp(20px, 4vw, 48px); }
.outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
@media (max-width: 820px) { .outcome-grid { grid-template-columns: 1fr; } }
.outcome {
  padding: 6px 34px 6px 30px;
  border-left: 1px solid var(--line);
}
.outcome:first-child { padding-left: 0; border-left: none; }
@media (max-width: 820px) {
  .outcome { padding: 26px 0; border-left: none; border-top: 1px solid var(--line); }
  .outcome:first-child { border-top: none; padding-top: 0; }
}
.outcome .o-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px;
}
.outcome .o-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16); }
.outcome h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 2.2vw, 25px); letter-spacing: -0.018em; line-height: 1.08; margin-bottom: 12px; }
.outcome p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }

/* ---------- PROOF BAR ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-elev); }
.proof-inner { padding-block: 34px; }
.proof-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px; }
.proof-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; }
.proof-item {
  flex: 1 1 0; min-width: 150px;
  padding: 6px 26px;
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.proof-item:first-child { border-left: none; padding-left: 0; }
.proof-item .pname { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.proof-item .pmeta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }
.proof-item.live .pname { display: flex; align-items: center; gap: 8px; }
.proof-item.live .pname::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),0.18); }
a.proof-item .pname { transition: color 0.2s var(--ease); }
a.proof-item:hover .pname { color: var(--accent); }
.clink { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.25); text-underline-offset: 3px; transition: text-decoration-color 0.2s var(--ease); }
.clink:hover { text-decoration-color: var(--accent); }
@media (max-width: 760px) {
  .proof-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .proof-item { border-left: none; padding: 14px 0; border-top: 1px solid var(--line); min-width: 0; }
  .proof-item:first-child, .proof-item:nth-child(2) { border-top: none; padding-top: 0; }
  .proof-item .pname { font-size: 16px; }
  /* flagship spans full width so it isn't orphaned in a 2-col grid */
  .proof-item.live { grid-column: 1 / -1; }
}

/* ---------- SERVICES ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }
.svc {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-elev);
  padding: 30px 28px 32px;
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), background 0.35s var(--ease);
}
.svc:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.svc::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.svc:hover::after { transform: scaleX(1); }
.svc .idx { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.svc h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; margin: 18px 0 12px; }
.svc p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.svc .stack { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.svc .chip { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.svc-icon { width: 38px; height: 38px; }

/* react loop mini-trace inside first card */
.trace { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.7; color: var(--ink-3); margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; min-height: 64px; }
.trace .k { color: var(--accent); }
.trace .v { color: var(--ink-2); }

/* ---------- PERSONAS ---------- */
.persona-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (max-width: 760px) { .persona-list { grid-template-columns: 1fr; } }
.persona {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.persona:hover { background: var(--bg-elev); }
.persona .num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); flex: none; width: 28px; }
.persona .txt { font-size: 16.5px; color: var(--ink); }
@media (min-width: 761px) {
  .persona:nth-child(even) { border-right: none; }
  .persona:nth-last-child(1), .persona:nth-last-child(2) { border-bottom: none; }
  .persona:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- WHY ME ---------- */
.why-grid { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 880px) { .why-grid { grid-template-columns: 1fr; } }
.why-photo-wrap { position: relative; }
.why-photo-wrap .why-photo { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; display: block; border: 1px solid var(--line); border-radius: var(--r-lg); }
.why-photo-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.why-photo-frame::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.why-photo-tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink); background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(6px); padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line);
}
.why-points { display: flex; flex-direction: column; gap: 4px; }
.why-point {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 22px 4px; border-bottom: 1px solid var(--line);
}
.why-point:last-child { border-bottom: none; }
.why-point .pi { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); padding-top: 4px; }
.why-point h4 { font-family: var(--font-display); font-weight: 600; font-size: 18.5px; letter-spacing: -0.01em; margin-bottom: 6px; }
.why-point h4 b { color: var(--accent); font-weight: 600; }
.why-point p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* ---------- HOW IT WORKS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 38px 32px 38px 0; border-top: 1px solid var(--line-strong); margin-right: 32px; }
@media (max-width: 820px) { .step { margin-right: 0; padding-right: 0; } }
.step .sn {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px;
}
.step .sn::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(var(--accent-rgb),0.14); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; margin-bottom: 12px; }
.step p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.step .free { color: var(--accent); font-weight: 600; }

/* ---------- FINAL CTA ---------- */
.final { position: relative; overflow: hidden; }
.final-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(var(--accent-rgb), 0.14), transparent 45%),
    var(--bg-elev);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
}
.final-card::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px; opacity: 0.35;
  -webkit-mask-image: radial-gradient(80% 90% at 50% 0%, #000, transparent 75%);
          mask-image: radial-gradient(80% 90% at 50% 0%, #000, transparent 75%);
}
.final-card > * { position: relative; }
.final-card .avail {
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  margin-bottom: 26px;
}
.final-card .avail .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.final-card h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 5vw, 54px); line-height: 1.04; letter-spacing: -0.025em; max-width: 14ch; margin: 0 auto; }
.final-card p { color: var(--ink-2); font-size: 18px; margin: 20px auto 34px; max-width: 44ch; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .brand { font-size: 15px; }
.footer .meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.footer .links { display: flex; gap: 22px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); }
.footer .links a:hover { color: var(--accent); }

/* ---------- CONTACT FORM ---------- */
.contact-form { max-width: 540px; margin: 34px auto 0; text-align: left; display: flex; flex-direction: column; gap: 16px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } }
.cf-field { display: flex; flex-direction: column; gap: 7px; }
.cf-field > span, .cf-field > legend > span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.cf-field span i { color: var(--accent); font-style: normal; }
.cf-field input, .cf-field textarea {
  font-family: var(--font-sans); font-size: 15.5px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 12px 14px; width: 100%; resize: vertical;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cf-field input::placeholder, .cf-field textarea::placeholder { color: var(--ink-3); }
.cf-field input:focus, .cf-field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}
.cf-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.cf-submit[disabled] { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.cf-status { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.cf-status.ok { color: var(--accent); }
.cf-status.err { color: #f87171; }
.cf-alt { max-width: 540px; margin: 16px auto 0; font-size: 14px; color: var(--ink-3); text-align: left; }
.cf-alt a { color: var(--accent); text-decoration: none; }
.cf-alt a:hover { text-decoration: underline; }

/* select — matches input styling with a custom chevron */
.cf-select { position: relative; }
.cf-select::after {
  content: ""; position: absolute; right: 15px; top: 50%; width: 9px; height: 9px;
  transform: translateY(-65%) rotate(45deg); border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3); pointer-events: none;
}
.cf-select select {
  font-family: var(--font-sans); font-size: 15.5px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 12px 38px 12px 14px; width: 100%; cursor: pointer;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cf-select select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}
.cf-select select:invalid { color: var(--ink-3); }
.cf-select option { color: var(--ink); background: #14131a; }

/* fieldset reset so checkbox group aligns with other fields */
.cf-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.cf-fieldset legend { padding: 0; }

/* checkbox grid */
.cf-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .cf-checks { grid-template-columns: 1fr; } }
.cf-check {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 11px 13px; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.cf-check:hover { border-color: var(--ink-3); }
.cf-check span { font-size: 14.5px; color: var(--ink-2); }
.cf-check input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 17px; height: 17px; border-radius: 5px;
  border: 1.5px solid var(--line-strong); background: transparent;
  cursor: pointer; position: relative; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.cf-check input:checked { background: var(--accent); border-color: var(--accent); }
.cf-check input:checked::after {
  content: ""; position: absolute; left: 5px; top: 1.5px; width: 4px; height: 9px;
  border-right: 2px solid #1a0a0e; border-bottom: 2px solid #1a0a0e; transform: rotate(45deg);
}
.cf-check:has(input:checked) { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.07); }
.cf-check:has(input:checked) span { color: var(--ink); }
