:root {
  --bg: #061317;
  --bg2: #0a1c18;
  --card: #122820;
  --card2: #163833;
  --line: rgba(71, 241, 156, 0.18);
  --mint: #47f19c;
  --green: #40bb84;
  --gold: #f5b731;
  --sand: #fde68a;
  --text: #f0fdf4;
  --muted: #8da8a0;
  --muted2: #b8cfc8;
  --danger: #f0564a;
  --cyan: #3dd8d8;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --radius: 16px;
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 90% 50% at 15% -10%, rgba(71, 241, 156, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 95% 90%, rgba(245, 183, 49, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* —— Nav —— */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 19, 23, 0.88);
  border-bottom: 1px solid var(--line);
  padding: calc(10px + var(--safe-t)) 18px 10px;
}

.topnav .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(145deg, var(--gold), var(--mint));
  display: grid; place-items: center; font-size: 1.1rem;
}
.brand span { font-size: 0.98rem; }
.brand small {
  display: block; font-weight: 600; font-size: 0.68rem;
  color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase;
}

.navlinks {
  display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center;
}
.navlinks a {
  color: var(--muted2);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 999px;
  text-decoration: none;
}
.navlinks a:hover, .navlinks a.on {
  color: var(--mint);
  background: rgba(71, 241, 156, 0.1);
  text-decoration: none;
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #052e16 !important;
  font-weight: 750;
  padding: 9px 14px !important;
  border-radius: 999px !important;
  font-size: 0.88rem !important;
}
.nav-cta:hover { filter: brightness(1.06); text-decoration: none !important; }

/* —— Layout —— */
main { max-width: var(--max); margin: 0 auto; padding: 28px 18px 80px; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #052e16;
  background: linear-gradient(135deg, var(--gold), var(--mint));
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 14px;
}

.lead {
  color: var(--muted2);
  font-size: 1.08rem;
  max-width: 36rem;
  margin-bottom: 22px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #052e16;
}
.btn-gold {
  background: linear-gradient(135deg, #f5b731, #fbbf24);
  color: #1a1200;
}
.btn-ghost {
  background: transparent;
  color: var(--mint);
  border: 1px solid var(--line);
}
.btn-danger {
  background: linear-gradient(145deg, #be123c, #fb7185);
  color: #fff;
}

.trust {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--cyan);
  border: 1px solid rgba(61, 216, 216, 0.25);
  background: rgba(61, 216, 216, 0.06);
  padding: 6px 10px;
  border-radius: 999px;
}

.hero-media {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 28px 60px rgba(0,0,0,0.45);
  aspect-ratio: 1 / 1;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* —— Sections —— */
.section { margin: 40px 0; }
.section h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.section .sub {
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 40rem;
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) {
  .grid3, .grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 750;
  margin-bottom: 6px;
}
.card p, .card li { color: var(--muted2); font-size: 0.92rem; }
.card ul { margin: 8px 0 0 1.1rem; }
.card li { margin: 4px 0; }
.card .icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(71, 241, 156, 0.12);
  margin-bottom: 12px;
  font-size: 1.25rem;
}
.card.gold-edge { border-top: 3px solid var(--gold); }
.card.mint-edge { border-top: 3px solid var(--mint); }
.card.img-card { padding: 0; overflow: hidden; }
.card.img-card .body { padding: 16px 18px 18px; }
.card.img-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

/* —— Steps —— */
.steps { counter-reset: step; list-style: none; display: grid; gap: 12px; }
.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--mint);
  color: #052e16;
  font-weight: 800;
  display: grid; place-items: center;
}
.steps strong { display: block; margin-bottom: 4px; color: var(--text); }
.steps span { color: var(--muted2); font-size: 0.92rem; }

/* —— Phone mock —— */
.phone-wrap {
  display: flex; justify-content: center; padding: 8px 0 12px;
}
.phone {
  width: min(340px, 100%);
  background: linear-gradient(165deg, #0f2a22, #0a1814 60%);
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: 18px 16px 22px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.55);
}
.phone .notch {
  width: 90px; height: 20px; border-radius: 0 0 12px 12px;
  background: #050c0a; margin: -6px auto 14px;
  border: 1px solid rgba(255,255,255,0.06); border-top: none;
}
.phone .badge {
  display: inline-block;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #052e16;
  background: linear-gradient(135deg, var(--gold), var(--mint));
  padding: 5px 10px; border-radius: 999px; margin-bottom: 10px;
}
.phone h3 { font-size: 1.15rem; margin-bottom: 4px; }
.phone .psub { color: var(--muted); font-size: 0.82rem; margin-bottom: 14px; }
.phone .screen {
  border-radius: 18px;
  background: radial-gradient(circle at 50% 30%, rgba(52,211,153,0.14), transparent 55%), #06140f;
  border: 1px solid rgba(52,211,153,0.18);
  min-height: 200px;
  padding: 18px 14px;
  text-align: center;
}
.phone .avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 10px;
  background: linear-gradient(145deg, var(--gold), var(--mint));
  display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; color: #061018;
}
.phone .who { font-weight: 750; }
.phone .state { color: var(--muted); font-size: 0.8rem; font-family: ui-monospace, Menlo, monospace; margin-top: 4px; }
.phone .controls {
  display: flex; justify-content: center; gap: 14px; margin-top: 16px; align-items: center;
}
.phone .fab {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  font-size: 1.25rem; display: grid; place-items: center;
}
.phone .fab.call {
  background: linear-gradient(145deg, #059669, #34d399);
  color: #052e16;
  box-shadow: 0 0 28px rgba(52,211,153,0.35);
}
.phone .fab.end {
  background: linear-gradient(145deg, #be123c, #fb7185);
  color: #fff;
  display: none;
}
.phone .fab.mute {
  width: 44px; height: 44px; font-size: 1rem;
  background: rgba(255,255,255,0.08); color: var(--text);
  border: 1px solid var(--line);
}
.phone .status {
  margin-top: 12px; font-size: 0.75rem; color: var(--muted); text-align: center; min-height: 1.2em;
}
.phone .status.ok { color: var(--mint); }
.phone .status.bad { color: var(--danger); }
.mode-row { display: flex; gap: 8px; margin-bottom: 12px; }
.mode-btn {
  flex: 1; border-radius: 12px; padding: 9px 8px; font: inherit; font-weight: 750; font-size: 0.8rem;
  cursor: pointer; border: 1px solid rgba(52,211,153,0.25);
  background: rgba(0,0,0,0.25); color: var(--muted);
}
.mode-btn.active {
  color: #052e16;
  background: linear-gradient(135deg, #34d399, #fbbf24);
  border-color: transparent;
}

/* —— Cocobot chat demo —— */
.coco-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 800px) {
  .coco-panel { grid-template-columns: 1fr; }
}
.coco-chat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  overflow: hidden;
}
.coco-chat header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.coco-chat header img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
}
.coco-chat .msgs {
  flex: 1; padding: 14px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
}
.bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.bubble.bot {
  align-self: flex-start;
  background: #14352c;
  color: var(--text);
}
.bubble.me {
  align-self: flex-end;
  background: linear-gradient(135deg, #059669, #0ea5e9);
  color: #ecfdf5;
}
.coco-chat footer {
  padding: 10px;
  border-top: 1px solid var(--line);
  display: flex; gap: 8px;
}
.coco-chat input {
  flex: 1;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}
.coco-chat input:focus { outline: 1px solid var(--mint); }
.quick {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.quick button {
  background: rgba(71,241,156,0.08);
  border: 1px solid var(--line);
  color: var(--mint);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}
.quick button:hover { background: rgba(71,241,156,0.16); }

/* —— Callout —— */
.callout {
  background: linear-gradient(135deg, rgba(71,241,156,0.1), rgba(245,183,49,0.08));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 24px 0;
}
.callout strong { color: var(--sand); }

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 18px calc(28px + var(--safe-b));
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 16px 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer a { color: var(--muted2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.site-footer .note { max-width: 28rem; line-height: 1.45; }

/* —— Page title banner —— */
.page-banner {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.page-banner h1 { margin-bottom: 8px; }
.page-banner p { color: var(--muted2); max-width: 40rem; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}
