/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --navy: #0a1628;
  --navy2: #0f2a5c;
  --accent: #ffc83d;
  --green: #1c9a62;
  --green2: #0d7a4e;
  --chalk: #f4f2eb;
  --ink: #0a1628;
  --muted: #64748b;
  --card-bg: #ffffff;
  --border: #e2e0d8;
  --radius: 16px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--chalk);
  color: var(--ink);
  font: 16px/1.7 "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  background: rgba(10,22,40,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,200,61,.18);
  transition: background .3s;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font: 800 .9rem "Bricolage Grotesque", sans-serif;
  letter-spacing: .08em; color: #fff;
}
.logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,.75); font: 500 .9rem "Inter"; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--accent); color: var(--navy) !important;
  padding: 8px 20px; border-radius: 999px;
  font-weight: 700 !important; transition: opacity .2s !important;
}
.nav-cta:hover { opacity: .85; }
.nav-burger { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }
.nav-mobile {
  display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: var(--navy); padding: 16px 24px; flex-direction: column; gap: 16px;
  border-bottom: 2px solid var(--accent);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { color: rgba(255,255,255,.85); font-weight: 500; font-size: 1rem; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  background: linear-gradient(135deg, #060e1e 0%, #0a1628 50%, #0d2040 100%);
  display: flex; align-items: center; overflow: hidden; padding-top: 64px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35;
}
.orb1 { width: 600px; height: 600px; background: #1c4a8c; top: -200px; right: -100px; animation: drift 12s ease-in-out infinite alternate; }
.orb2 { width: 400px; height: 400px; background: #0d7a4e; bottom: -100px; left: -80px; animation: drift 16s ease-in-out infinite alternate-reverse; }
.orb3 { width: 300px; height: 300px; background: #ffc83d44; top: 40%; left: 40%; animation: drift 10s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,30px) scale(1.1); } }

.hero-inner {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto; padding: 80px 40px;
  display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(28,154,98,.15); border: 1px solid rgba(28,154,98,.4);
  color: #4ade80; padding: 6px 16px; border-radius: 999px;
  font: 600 .82rem "Inter"; margin-bottom: 24px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }

h1 {
  font: 800 clamp(2.6rem,6vw,4.8rem)/1.05 "Bricolage Grotesque", sans-serif;
  color: #fff; letter-spacing: -.03em; margin-bottom: 20px;
}
.hero-sub { color: rgba(255,255,255,.65); font-size: 1.1rem; max-width: 50ch; margin-bottom: 36px; }

/* Stats */
.stats {
  display: flex; gap: 0; margin-bottom: 36px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  overflow: hidden; width: fit-content; background: rgba(255,255,255,.04);
}
.stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 28px; border-right: 1px solid rgba(255,255,255,.1);
}
.stat:last-child { border-right: 0; }
.stat-n { font: 800 2rem/1 "Bricolage Grotesque", sans-serif; color: var(--accent); }
.stat-l { font-size: .75rem; color: rgba(255,255,255,.5); margin-top: 4px; white-space: nowrap; }

/* CTA */
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-call {
  display: flex; align-items: center; gap: 10px;
  background: var(--green); color: #fff;
  border: none; border-radius: 999px; padding: 16px 32px;
  font: 700 1rem "Bricolage Grotesque"; cursor: pointer;
  box-shadow: 0 0 0 0 rgba(28,154,98,.5);
  animation: callring 2.5s 1s 2;
  transition: background .2s, transform .15s;
}
.btn-call:hover { background: var(--green2); transform: translateY(-2px); }
.btn-call.live { background: #c0392b; animation: none; }
@keyframes callring { 0%,100%{box-shadow:0 0 0 0 rgba(28,154,98,.5)} 50%{box-shadow:0 0 0 20px rgba(28,154,98,0)} }
.btn-ghost { color: rgba(255,255,255,.7); font: 600 .95rem "Inter"; transition: color .2s; }
.btn-ghost:hover { color: #fff; }
.call-state { min-height: 1.4em; color: rgba(255,255,255,.6); font-size: .9rem; margin-top: 12px; }

/* Transcript */
.transcript-box {
  margin-top: 16px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); border-radius: 10px;
  padding: 12px 16px; max-width: 480px; max-height: 150px; overflow-y: auto;
}
.transcript-label { font: 700 .72rem "Inter"; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
#transcriptLog { display: flex; flex-direction: column; gap: 4px; }
.tr-line { font-size: .88rem; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.06); color: rgba(255,255,255,.75); }
.tr-line:last-child { border: 0; }
.tr-line.me { color: #4ade80; text-align: right; }

/* Profile photo */
.hero-photo { position: relative; display: flex; align-items: center; justify-content: center; }
.photo-img {
  width: 320px; height: 380px; object-fit: cover; border-radius: 24px;
  border: 3px solid rgba(255,200,61,.3);
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
  position: relative; z-index: 2;
}
.photo-placeholder {
  width: 320px; height: 380px; border-radius: 24px;
  border: 2px dashed rgba(255,255,255,.2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: rgba(255,255,255,.3); text-align: center; font-size: .85rem;
}
.photo-ring {
  position: absolute; inset: -16px; border-radius: 32px;
  border: 1px solid rgba(255,200,61,.15);
  animation: ringpulse 3s ease-in-out infinite;
}
@keyframes ringpulse { 0%,100%{opacity:.4;transform:scale(1)} 50%{opacity:.8;transform:scale(1.02)} }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-dark { background: var(--navy); }
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.section-header { margin-bottom: 48px; }
.section-tag {
  display: inline-block; background: rgba(255,200,61,.12); color: var(--accent);
  border: 1px solid rgba(255,200,61,.3); border-radius: 999px;
  padding: 4px 14px; font: 600 .78rem "Inter"; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 12px;
}
.section-dark .section-tag { background: rgba(255,200,61,.1); }
h2 {
  font: 800 clamp(1.8rem,4vw,3rem)/1.1 "Bricolage Grotesque", sans-serif;
  color: var(--ink); letter-spacing: -.02em;
}
.section-dark h2 { color: #fff; }
.section-sub { color: var(--muted); font-size: 1rem; max-width: 52ch; margin-top: 10px; }
.section-dark .section-sub { color: rgba(255,255,255,.5); }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s;
  opacity: 0; transform: translateY(30px);
}
.card.visible { opacity: 1; transform: translateY(0); }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(10,22,40,.12); }
.card-highlight {
  background: linear-gradient(135deg, #f0faf5 0%, #e6f7ef 100%);
  border-color: rgba(28,154,98,.3);
  box-shadow: 0 0 0 1px rgba(28,154,98,.15);
}
.card-img { height: 180px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-corp {
  font: 700 .72rem "Inter"; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy2); opacity: .6;
}
.card-highlight .card-corp { color: var(--green); opacity: 1; }
.card h3 { font: 800 1.15rem "Bricolage Grotesque"; color: var(--ink); }
.card p { font-size: .92rem; color: var(--muted); flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tags span {
  background: #f1f0ea; border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 12px;
  font: 600 .75rem "Inter"; color: var(--ink);
}
.card-highlight .tags span { background: #d4f0e4; border-color: rgba(28,154,98,.25); color: var(--green2); }

/* ── Stack pills ────────────────────────────────────────────────────────── */
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pills span {
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  padding: 8px 20px; font: 500 .9rem "Inter";
  transition: background .2s, border-color .2s;
  cursor: default;
}
.pills span:hover { background: rgba(255,200,61,.12); border-color: rgba(255,200,61,.4); color: var(--accent); }

/* ── Chat ───────────────────────────────────────────────────────────────── */
.chat-wrap { max-width: 680px; }
.chat {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 40px rgba(10,22,40,.08);
}
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font: 800 1rem "Bricolage Grotesque";
}
.chat-header strong { color: #fff; font-size: .95rem; }
.online-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; margin-left: 6px; animation: pulse 2s infinite;
}
#log {
  height: 340px; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  background: #f8f7f3;
}
.b {
  max-width: 80%; padding: 12px 16px; border-radius: 14px;
  font: 400 .95rem/1.6 "Inter", system-ui, sans-serif; color: #1e293b;
  letter-spacing: -.005em; overflow-wrap: anywhere;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.b.bot { border-bottom-left-radius: 4px; }
.b p + p, .b p + ul, .b ul + p { margin-top: 8px; }
.b ul { padding-left: 18px; display: grid; gap: 4px; }
.b strong { font-weight: 600; color: var(--ink); }
.b a { color: var(--green2); text-decoration: underline; text-underline-offset: 2px; }
.b.typing { color: var(--muted); font-style: italic; }
.b.me {
  align-self: flex-end; background: var(--navy);
  color: #fff; border-color: transparent; border-bottom-right-radius: 4px;
}
.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 12px 16px; background: #f1f0ea;
  border-top: 1px solid var(--border);
}
.chip {
  background: #fff; border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 14px;
  font: 500 .8rem "Inter"; color: var(--ink);
  cursor: pointer; transition: all .15s;
}
.chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
form {
  display: flex; border-top: 1px solid var(--border);
  background: #fff;
}
input {
  flex: 1; border: 0; padding: 16px 20px;
  font: inherit; font-size: .95rem; min-width: 0;
  background: transparent; outline: none;
}
form button {
  background: var(--navy); color: #fff; border: 0;
  padding: 0 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
form button:hover { background: var(--navy2); }

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact-inner { text-align: center; padding: 40px 0; }
.contact-h {
  font: 800 clamp(2rem,5vw,3.5rem)/1.1 "Bricolage Grotesque", sans-serif;
  color: #fff; margin-bottom: 16px;
}
.contact-sub { color: rgba(255,255,255,.5); font-size: 1rem; margin-bottom: 36px; }
.contact-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.contact-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--navy);
  padding: 14px 32px; border-radius: 999px;
  font: 700 1rem "Bricolage Grotesque";
  transition: opacity .2s, transform .15s;
}
.contact-btn:hover { opacity: .88; transform: translateY(-2px); }
.contact-btn-ghost {
  background: transparent; color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.2);
}
.contact-btn-ghost:hover { background: rgba(255,255,255,.06); opacity: 1; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: #060e1e; color: rgba(255,255,255,.35);
  padding: 24px 40px; display: flex;
  justify-content: space-between; align-items: center;
  font-size: .85rem;
}

/* ── Scroll reveal ──────────────────────────────────────────────────────── */
.reveal { transition: opacity .5s ease, transform .5s ease; }

/* ── Focus ──────────────────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px; }
  .hero-photo { order: -1; }
  .photo-img, .photo-placeholder { width: 220px; height: 260px; }
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .section-inner { padding: 0 24px; }
  .stats { flex-wrap: wrap; }
  .stat { flex: 1 1 40%; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 8px; text-align: center; }
  .hero-inner { padding: 48px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-call, .logo-dot, .badge-dot, .orb, .photo-ring { animation: none; }
  .card { transition: none; }
}
