:root {
  --emerald: #0f766e;
  --emerald-deep: #0a5853;
  --gold: #d4a574;
  --ink: #0b1f1c;
  --bg: #fafaf7;
  --bg-warm: #f2efe7;
  --mist: #e3ede9;
  --muted: #5c6b66;
  --radius: 16px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(11, 31, 28, 0.04), 0 12px 32px rgba(11, 31, 28, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Sora", system-ui, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1rem; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: clamp(56px, 9vw, 104px) 0; }

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 1rem;
}

.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 56ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--emerald); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--emerald-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(11, 31, 28, 0.18); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mist);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-family: "Sora", sans-serif; font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-icon { height: 26px; width: auto; display: block; }
.brand-word { font-size: 1.15rem; color: #fff; letter-spacing: -0.01em; }
.brand-ai { color: var(--gold); }
.nav-links { display: none; gap: 1.8rem; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }

@media (min-width: 860px) {
  .nav-links { display: flex; }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--mist) 0%, var(--bg) 70%); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 span { color: var(--emerald); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.hero-note { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }

/* Phone mockup */
.phone {
  background: #fff;
  border-radius: 28px;
  border: 1px solid var(--mist);
  box-shadow: var(--shadow);
  padding: 18px;
  max-width: 360px;
  margin: 0 auto;
}
.phone-head { display: flex; align-items: center; gap: 0.6rem; padding-bottom: 12px; border-bottom: 1px solid var(--mist); margin-bottom: 14px; }
.phone-head .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--emerald); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: "Sora", sans-serif; }
.phone-head .who { font-weight: 600; font-size: 0.95rem; }
.phone-head .who small { display: block; color: var(--muted); font-weight: 400; font-size: 0.78rem; }
.bubble { padding: 10px 13px; border-radius: 14px; margin-bottom: 10px; font-size: 0.92rem; max-width: 85%; }
.bubble.in { background: var(--bg-warm); border-top-left-radius: 4px; }
.bubble.draft { background: var(--mist); border: 1px dashed var(--emerald); margin-left: auto; border-top-right-radius: 4px; }
.bubble .tag { display: block; font-family: "JetBrains Mono", monospace; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--emerald); margin-bottom: 4px; }
.approve-row { display: flex; gap: 8px; }
.approve-row button { flex: 1; font-size: 0.8rem; padding: 8px; border-radius: 10px; border: 1px solid var(--mist); background: #fff; font-family: "Sora", sans-serif; font-weight: 600; cursor: default; }
.approve-row .yes { background: var(--emerald); color: #fff; border-color: var(--emerald); }

/* Pain points */
.pain { background: var(--bg-warm); }
.pain-list { display: grid; gap: 18px; margin-top: 2rem; }
.pain-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--mist); border-radius: var(--radius); padding: 20px 22px; }
.pain-item .x { color: #c0392b; font-weight: 700; font-size: 1.2rem; line-height: 1.4; }

/* Feature grid */
.grid { display: grid; gap: 22px; margin-top: 2.4rem; }
.card { background: #fff; border: 1px solid var(--mist); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--mist); color: var(--emerald); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

@media (min-width: 720px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 720px) { .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* How it works */
.how { background: var(--emerald-deep); color: #fff; }
.how .eyebrow { color: var(--gold); }
.how h2 { color: #fff; }
.steps { display: grid; gap: 22px; margin-top: 2.4rem; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); padding: 26px; }
.step .num { font-family: "JetBrains Mono", monospace; font-size: 0.85rem; color: var(--gold); letter-spacing: 0.1em; }
.step h3 { color: #fff; margin: 0.6rem 0 0.4rem; }
.step p { color: rgba(255, 255, 255, 0.78); margin: 0; }

/* Verticals */
.vert-grid { display: grid; gap: 18px; margin-top: 2.4rem; }
@media (min-width: 640px) { .vert-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .vert-grid { grid-template-columns: repeat(3, 1fr); } }
.vert {
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
  border-top: 3px solid var(--accent, var(--emerald));
}
.vert .name { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.05rem; }
.vert .for { font-size: 0.82rem; color: var(--muted); margin: 2px 0 10px; }
.vert .feat { font-size: 0.92rem; color: var(--ink); margin: 0; }

/* Malaysia / trust */
.malaysia { background: var(--bg-warm); }
.checks { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .tick { color: var(--emerald); font-weight: 700; }

.trust { text-align: center; }
.trust .pill { display: inline-block; background: var(--mist); color: var(--emerald-deep); border-radius: 999px; padding: 8px 18px; font-family: "JetBrains Mono", monospace; font-size: 0.78rem; letter-spacing: 0.08em; margin-bottom: 1.4rem; }
.trust h2 { max-width: 22ch; margin-inline: auto; }

/* Final CTA */
.final { background: var(--emerald); color: #fff; text-align: center; }
.final h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.final p { color: rgba(255, 255, 255, 0.85); }
.final .btn-primary { background: #fff; color: var(--emerald-deep); }
.final .btn-primary:hover { background: var(--bg); }
.final .sub { font-size: 0.9rem; margin-top: 1rem; }
.final .sub a { color: #fff; text-decoration: underline; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding: 48px 0; font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Waitlist modal */
.modal { position: fixed; inset: 0; background: rgba(11, 31, 28, 0.5); display: none; place-items: center; padding: 20px; z-index: 100; }
.modal[open], .modal.show { display: grid; }
.modal-card { background: var(--bg); border-radius: var(--radius); max-width: 460px; width: 100%; padding: 30px; box-shadow: var(--shadow); }
.modal-card h3 { font-size: 1.4rem; }
.modal-card .close { float: right; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--muted); line-height: 1; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--mist);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--emerald); border-color: var(--emerald); }
.modal .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }
.form-msg { margin-top: 12px; font-size: 0.9rem; min-height: 1.2em; }
.form-msg.error { color: #c0392b; }
.form-msg.ok { color: var(--emerald-deep); }
.thanks { text-align: center; }
.thanks .big { font-size: 3rem; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 0; }
.legal h1 { margin-bottom: 0.2em; }
.legal .updated { color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 0.8rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.legal .note { background: var(--bg-warm); border-left: 3px solid var(--gold); padding: 14px 18px; border-radius: 8px; color: var(--muted); font-size: 0.92rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--mist); vertical-align: top; }
.legal th { background: var(--mist); font-family: "Sora", sans-serif; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
