/* Synapse Asia — "Forest" theme of the Synapse Asia design system.
   Logo colours: green #003c26, amber #ffbd59, cream #fffbed. */
:root {
  --brand-green: #003c26;
  --brand-green-deep: #00281a;
  --brand-green-mid: #1f6b4a;
  --brand-green-tint: #d9eadf;
  --brand-amber: #ffbd59;
  --brand-amber-deep: #c98a2c;
  --brand-cream: #fffbed;

  --surface-100: #062a1c;
  --surface-200: #0b3524;
  --surface-300: #12432f;
  --surface-top: #0f3d2a;
  --ink: #fffbed;
  --ink-muted: #b9c8bd;
  --border-strong: #7f9a8a;
  --border-hairline: #1a4d37;
  --primary: #ffbd59;
  --primary-edge: #b07a26;
  --on-primary: #2b1d00;
  --danger: #ff8a80;
  --mint: #7fd8a6;

  --panel: rgba(11, 53, 36, 0.82);
  --bevel: inset 0 1px 0 rgba(255, 251, 237, 0.10), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  --elev-3: 0 24px 48px -16px rgba(0, 0, 0, 0.70), 0 8px 16px -8px rgba(0, 0, 0, 0.50);
  --well: inset 0 2px 3px rgba(0, 0, 0, 0.45);

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --display: "Lexend", "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-100);
  color: var(--ink);
  font: 400 15px/24px var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--brand-amber); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }
body.no-webgl #scene { display: none; }
body.no-webgl { background: radial-gradient(900px 600px at 75% 35%, #1f6b4a 0%, #062a1c 65%) fixed; }

/* ---------- loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  background: var(--surface-100); color: var(--ink-muted);
  font: 600 14px/1 var(--display); letter-spacing: 0.04em;
  transition: opacity 0.8s ease, visibility 0.8s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-mark {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-amber);
  box-shadow: 0 0 0 0 rgba(255, 189, 89, 0.5);
  animation: pulse 1.4s ease-out infinite;
}
@keyframes pulse { to { box-shadow: 0 0 0 22px rgba(255, 189, 89, 0); } }

/* ---------- overlays ---------- */
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.label {
  position: absolute; left: 0; top: 0;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(6, 42, 28, 0.82);
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  color: var(--ink);
  font: 600 12px/1 var(--display); letter-spacing: 0.03em; white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s, background 0.3s;
  will-change: transform;
}
.label::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px;
  border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c);
}
.label.active { background: color-mix(in srgb, var(--c) 28%, rgba(6, 42, 28, 0.9)); }

#tooltip {
  position: fixed; z-index: 3; pointer-events: none;
  padding: 6px 10px; border-radius: var(--r-sm);
  background: var(--brand-cream); color: var(--brand-green);
  font: 600 12px/1.2 var(--font);
  opacity: 0; transform: translate(14px, 14px); transition: opacity 0.15s;
}
#tooltip.show { opacity: 1; }
#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--brand-amber); z-index: 20;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(6, 42, 28, 0.92), rgba(6, 42, 28, 0));
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-text { display: grid; line-height: 1; gap: 4px; }
.brand-text b { font: 700 20px/1 var(--display); letter-spacing: -0.01em; }
.brand-text small { font: 600 10px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.nav nav { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 24px); }
.nav nav a:not(.btn) { color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: 14px; transition: color 0.2s; }
.nav nav a:not(.btn):hover { color: var(--ink); }

/* ---------- buttons: tactile, lit from above, sink on press ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 20px; border-radius: var(--r-md); border: 0;
  background: var(--primary); color: var(--on-primary);
  font: 600 15px/1 var(--display); text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--primary-edge), var(--bevel);
  transition: transform 80ms, box-shadow 80ms;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: var(--well); }
.btn-sm { min-height: 40px; padding: 9px 16px; font-size: 14px; }
.btn-ghost {
  background: var(--surface-200); color: var(--ink);
  box-shadow: 0 4px 0 var(--surface-300), var(--bevel);
  outline: 1px solid var(--border-hairline);
}
.btn-accent { background: var(--brand-amber); color: var(--on-primary); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand-amber); outline-offset: 2px;
}

/* ---------- sections ---------- */
main { position: relative; z-index: 2; }
.step {
  min-height: 100vh; display: flex; align-items: center;
  padding: 110px clamp(16px, 6vw, 96px);
  pointer-events: none;
}
.panel {
  pointer-events: auto; width: 100%; max-width: 520px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--panel);
  border: 1px solid var(--border-hairline); border-radius: var(--r-lg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 0 var(--surface-300), var(--bevel), var(--elev-3);
  opacity: 0.35; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.panel-wide { max-width: 760px; }
.step.in-view .panel { opacity: 1; transform: none; }
.panel-clear {
  background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  padding-left: 0; max-width: 580px; text-shadow: 0 2px 24px rgba(2, 20, 13, 0.85);
}

.eyebrow {
  display: block; margin: 0 0 12px;
  color: var(--c, var(--brand-amber));
  font: 600 13px/18px var(--display); letter-spacing: 0.08em; text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--display); margin: 0 0 14px; color: var(--ink); }
h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.07; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 600; margin-bottom: 4px; }
p { margin: 0 0 16px; color: var(--ink-muted); }
.lead { font-size: 18px; line-height: 28px; color: var(--brand-green-tint); max-width: 520px; }
.hl { color: var(--brand-amber); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 26px; }
.ticks-inline { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0 0 28px; }
.ticks-inline li, .ticks li { position: relative; padding-left: 24px; color: var(--brand-green-tint); font-size: 15px; }
.ticks-inline li::before, .ticks li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px;
  border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint);
  transform: rotate(-45deg);
}
.hint { font-size: 13px; letter-spacing: 0.06em; opacity: 0.75; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
.ticks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 9px; }

.cards { display: grid; gap: 12px; margin-top: 8px; }
.cards-4 { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
.card {
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--surface-200); border: 1px solid var(--border-hairline);
  box-shadow: var(--bevel);
}
.card p { margin: 0; font-size: 14px; line-height: 21px; }
.callout {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md);
  background: rgba(255, 189, 89, 0.08); border: 1px solid rgba(255, 189, 89, 0.35);
}
.callout b { font-family: var(--display); color: var(--brand-amber); }
.callout p { margin: 4px 0 0; font-size: 14px; line-height: 21px; color: var(--brand-green-tint); }

/* four layers list */
.layer-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.layer-list a {
  display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; min-height: 48px; border-radius: var(--r-md);
  background: var(--surface-200); border: 1px solid var(--border-hairline);
  color: var(--ink); text-decoration: none;
  box-shadow: 0 4px 0 var(--surface-300), var(--bevel);
  transition: transform 80ms, box-shadow 80ms;
}
.layer-list a:active { transform: translateY(4px); box-shadow: var(--well); }
.layer-list b { font-family: var(--display); }
.layer-list small { color: var(--ink-muted); font-size: 13px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }

/* who we build for */
.who-grid { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 24px; align-items: start; }
.demo-prompt { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip-btn {
  min-height: 36px; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); background: transparent; color: var(--ink);
  font: 600 13px/1 var(--font);
}
.chip-btn[aria-pressed="true"] { background: var(--brand-amber); border-color: var(--brand-amber); color: var(--on-primary); }
.demo-phone {
  border-radius: 22px; padding: 16px 14px;
  background: var(--brand-cream); color: var(--brand-green);
  border: 6px solid #00281a;
  box-shadow: 0 6px 0 #00140c, var(--elev-3);
}
.demo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.demo-head b { display: block; font: 700 16px/1.2 var(--display); }
.demo-head small { color: #4a6357; font-size: 12px; }
.demo-plus {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-green); color: var(--brand-cream); font: 600 20px/1 var(--display);
}
.demo-jobs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.demo-jobs li { padding: 10px 11px; border-radius: var(--r-md); background: #f6efd9; box-shadow: 0 3px 0 #ebe1c4; }
.demo-jobs div { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.demo-jobs b { font-size: 13px; line-height: 18px; }
.demo-jobs small { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; color: #4a6357; }
.badge { flex: none; padding: 3px 7px; border-radius: var(--r-sm); font: 600 11px/1.2 var(--font); color: var(--brand-green); }
.badge-done { background: var(--brand-green-tint); }
.badge-busy { background: var(--brand-amber); color: #3d2a00; }
.badge-auto { background: #ebe1c4; }
.industries { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.industries li { padding: 10px 14px; border-radius: var(--r-md); background: var(--surface-200); border: 1px solid var(--border-hairline); }
.industries b { display: block; font: 600 15px/1.3 var(--display); }
.industries span { font-size: 13.5px; line-height: 20px; color: var(--ink-muted); }
.industries .ask { background: rgba(255, 189, 89, 0.1); border-color: rgba(255, 189, 89, 0.4); }
.industries .ask a { display: inline-block; margin-top: 4px; font-weight: 600; }

/* compare table */
.table-wrap { overflow-x: auto; margin: 6px 0 4px; border-radius: var(--r-md); border: 1px solid var(--border-hairline); }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.compare th, .compare td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-hairline); }
.compare tr:last-child > * { border-bottom: 0; }
.compare thead th { font: 600 12px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-200); }
.compare thead th:last-child { color: var(--brand-amber); }
.compare tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.compare td { color: var(--ink-muted); }
.compare td:last-child { color: var(--brand-cream); background: rgba(255, 189, 89, 0.06); }

/* process */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 8px 0 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; }
.steps li::before {
  content: counter(s); grid-row: span 2;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-green-mid); color: var(--brand-cream);
  box-shadow: 0 3px 0 var(--brand-green-deep), var(--bevel);
  font: 700 16px/1 var(--display);
}
.steps li:last-child::before { background: var(--brand-amber); color: var(--on-primary); box-shadow: 0 3px 0 var(--primary-edge); }
.steps b { font-family: var(--display); }
.steps span { color: var(--ink-muted); font-size: 14.5px; line-height: 22px; }

/* packages */
.plans { display: grid; gap: 12px; margin: 6px 0 22px; }
.plan {
  position: relative; padding: 16px 18px; border-radius: var(--r-md);
  background: var(--surface-200); border: 1px solid var(--border-hairline);
  box-shadow: 0 4px 0 var(--surface-300), var(--bevel);
}
.plan.featured { background: var(--brand-green-mid); border-color: var(--brand-green-mid); box-shadow: 0 4px 0 var(--brand-green-deep), var(--bevel); }
.plan .price { margin: 0 0 4px; font: 600 14px/1.3 var(--display); color: var(--brand-amber); }
.plan p { margin: 0 0 8px; font-size: 14px; }
.plan.featured p:not(.price) { color: var(--brand-green-tint); }
.plan ul { margin: 0; padding-left: 18px; color: var(--brand-green-tint); font-size: 14px; display: grid; gap: 2px; }
.tag {
  position: absolute; top: 14px; right: 14px; padding: 4px 9px; border-radius: var(--r-sm);
  background: var(--brand-amber); color: var(--on-primary); font: 600 11px/1 var(--display);
  box-shadow: 0 2px 0 var(--primary-edge);
}

/* faq */
.faq { display: grid; gap: 8px; }
.faq details { border-radius: var(--r-md); background: var(--surface-200); border: 1px solid var(--border-hairline); }
.faq summary {
  cursor: pointer; list-style: none; padding: 12px 40px 12px 14px; position: relative;
  font: 600 15px/1.35 var(--display); color: var(--ink); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 14px; top: 10px; font-size: 20px; color: var(--brand-amber); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 14px 14px; font-size: 14px; line-height: 21px; }

/* contact */
.contact-lines { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
input, textarea, select {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-md);
  border: 1px solid var(--border-strong); background: var(--surface-100);
  box-shadow: var(--well);
  color: var(--ink); font: 400 15px/22px var(--font); resize: vertical;
}
input::placeholder, textarea::placeholder { color: #7f9a8a; }
input:invalid.touched { border-color: var(--danger); }
.form-status { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--mint); }
.form-status.error { color: var(--danger); }

footer {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px;
  padding: 32px clamp(16px, 6vw, 96px) 40px;
  background: var(--brand-green); border-top: 1px solid var(--border-hairline);
}
footer b { display: block; font: 700 18px/1.2 var(--display); margin-bottom: 4px; }
footer .eyebrow { margin: 0; font-size: 12px; }
footer p { margin: 0; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .nav nav a:not(.btn) { display: none; } }
@media (max-width: 900px) {
  .step { align-items: flex-end; padding-bottom: 60px; }
  .panel, .panel-wide { max-width: none; background: rgba(11, 53, 36, 0.9); }
  .panel-clear { background: none; }
  .label { font-size: 10px; padding: 4px 8px; }
  .label:not(.active) { display: none; }
  .hero { align-items: flex-start; padding-top: 96px; }
  .hero .hint { display: none; }
  .hero .ctas { margin: 20px 0 22px; }
  .who-grid { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
}
@media (max-width: 520px) {
  .row, .cards-4 { grid-template-columns: 1fr; }
  .compare tbody th { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hint, .loader-mark { animation: none; }
  .panel { transition: none; }
  .btn, .layer-list a { transition: none; }
}
