:root {
  --navy: #0d1b2a;
  --navy-2: #1b2a3a;
  --teal: #14868a;
  --teal-2: #0f6e72;
  --accent: #2bd576;
  --accent-2: #19b85f;
  --ink: #16202b;
  --muted: #5b6b7a;
  --line: #e3e9ef;
  --bg: #f6f9fc;
  --card: #ffffff;
  --warn: #d9534f;
  --shadow: 0 6px 24px rgba(13, 27, 42, 0.08);
  --radius: 14px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---- nav ---- */
nav.top {
  background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20;
}
nav.top .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
nav.top .brand { font-weight: 800; font-size: 20px; color: #fff; letter-spacing: -0.02em; }
nav.top .brand span { color: var(--accent); }
nav.top .links a { color: #cdd8e3; margin-left: 22px; font-weight: 500; }
nav.top .links a:hover { color: #fff; text-decoration: none; }

/* ---- buttons ---- */
.btn {
  display: inline-block; border: 0; cursor: pointer; font-weight: 700;
  padding: 13px 22px; border-radius: 10px; font-size: 15px; transition: .15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #07241a; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-2); }
.btn-outline { background: #fff; color: var(--teal); border: 1px solid var(--teal); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---- hero ---- */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, #19405a 0%, var(--navy) 55%);
  color: #fff; padding: 72px 0 64px;
}
.hero h1 { font-size: 46px; margin: 0 0 14px; max-width: 16ch; }
.hero p.sub { font-size: 19px; color: #c5d3df; max-width: 56ch; margin: 0 0 26px; }
.hero .pill { display:inline-block; background: rgba(43,213,118,.16); color: var(--accent);
  border: 1px solid rgba(43,213,118,.4); padding: 6px 13px; border-radius: 999px;
  font-weight: 700; font-size: 13px; margin-bottom: 22px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero small { display:block; margin-top:14px; color:#9fb2c2; }

/* ---- sections ---- */
section { padding: 56px 0; }
section h2 { font-size: 30px; margin: 0 0 8px; }
section .lead { color: var(--muted); font-size: 17px; margin: 0 0 30px; max-width: 60ch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- demo layout ---- */
.demo-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.phone {
  background: var(--navy); border-radius: 22px; padding: 16px; box-shadow: var(--shadow);
  color: #fff; display: flex; flex-direction: column; min-height: 460px;
}
.phone .screen {
  background: #0a1420; border-radius: 14px; flex: 1; padding: 14px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px; max-height: 420px;
}
.mode-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.mode-tabs button {
  flex: 1; padding: 9px; border-radius: 9px; border: 1px solid rgba(255,255,255,.2);
  background: transparent; color: #c5d3df; font-weight: 700; cursor: pointer; font-size: 13px;
}
.mode-tabs button.active { background: var(--accent); color: #07241a; border-color: var(--accent); }
.bubble { max-width: 84%; padding: 9px 13px; border-radius: 13px; font-size: 14px; }
.bubble.att { background: #13314a; color: #eaf2f8; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.cust { background: var(--accent); color: #07241a; align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 600; }
.bubble.sys { align-self: center; background: transparent; color: #6f8499; font-size: 12px; font-style: italic; }
.phone .composer { display: flex; gap: 8px; margin-top: 12px; }
.phone .composer input {
  flex: 1; padding: 11px 13px; border-radius: 10px; border: 0; font-size: 14px; background: #fff; color: var(--ink);
}
.hint-chips { display:flex; gap:6px; flex-wrap:wrap; margin-top:10px; }
.hint-chips button {
  background:#13314a; color:#bcd0e0; border:1px solid rgba(255,255,255,.12);
  border-radius:999px; padding:5px 11px; font-size:12px; cursor:pointer;
}
.hint-chips button:hover { background:#1b4061; }

/* ---- calendar ---- */
.calendar { background: var(--card); border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow:hidden; }
.calendar .cal-head { background: var(--teal); color:#fff; padding: 13px 18px; font-weight:700; display:flex; justify-content:space-between; align-items:center; }
.calendar .cal-head .live { font-size:12px; background: rgba(255,255,255,.18); padding:3px 9px; border-radius:999px; }
.cal-body { padding: 8px 12px 16px; max-height: 430px; overflow-y:auto; }
.cal-day { margin-top: 12px; }
.cal-day .day-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight:700; margin: 8px 4px; }
.appt {
  display:flex; gap: 12px; align-items: stretch; border:1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; margin: 7px 0; background: #fff;
  animation: pop .35s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.appt .time { font-weight: 800; color: var(--navy); min-width: 88px; font-size: 13px; }
.appt .meta { flex: 1; }
.appt .meta .t { font-weight: 700; font-size: 14px; }
.appt .meta .s { font-size: 12px; color: var(--muted); }
.appt.booked { border-left: 4px solid var(--accent); }
.appt.pending { border-left: 4px solid #e6a700; background:#fffdf5; }
.appt.blocked { border-left: 4px solid #94a3b2; background:#f4f6f8; }
.appt .badge { font-size: 10px; font-weight:800; text-transform:uppercase; padding:2px 7px; border-radius:999px; align-self:center; }
.badge.pending { background:#fff0c2; color:#8a6400; }
.badge.blocked { background:#e6ebf0; color:#5b6b7a; }
.cal-empty { color: var(--muted); text-align:center; padding: 30px 10px; font-size: 14px; }

/* ---- forms / wizard ---- */
.wizard { max-width: 720px; margin: 0 auto; }
.steps { display:flex; gap: 8px; margin-bottom: 26px; }
.steps .step { flex:1; height:6px; border-radius:999px; background: var(--line); }
.steps .step.done { background: var(--accent); }
.steps .step.active { background: var(--teal); }
.field { margin-bottom: 16px; }
.field label { display:block; font-weight:700; font-size:14px; margin-bottom:6px; }
.field .help { font-weight:400; color: var(--muted); font-size: 12px; }
.field input, .field select, .field textarea {
  width:100%; padding: 12px 13px; border:1px solid var(--line); border-radius:10px; font-size:15px; font-family:inherit; background:#fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.radio-row { display:flex; gap:10px; }
.radio-row label { flex:1; border:1px solid var(--line); border-radius:10px; padding:12px; cursor:pointer; font-weight:600; }
.radio-row input { width:auto; margin-right:8px; }
.radio-row label.sel { border-color: var(--teal); background:#f0fbfb; }
.wizard-actions { display:flex; justify-content:space-between; margin-top: 22px; }
.spec-box { background:#0a1420; color:#cfe6ea; border-radius:12px; padding:16px; font-family: ui-monospace, "Cascadia Code", monospace; font-size:13px; white-space:pre-wrap; }
.numbercard { background: linear-gradient(120deg, var(--teal), var(--navy)); color:#fff; border-radius:14px; padding:20px; text-align:center; }
.numbercard .num { font-size:30px; font-weight:800; letter-spacing:.02em; }
.notice { background:#eefaf3; border:1px solid #bdebcf; color:#16602f; padding:12px 14px; border-radius:10px; font-size:14px; }
.notice.warn { background:#fdecea; border-color:#f5c2bd; color:#9a2b22; }

/* ---- dashboard ---- */
.dash-head { display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:14px; margin-bottom: 22px; }
.stat { display:flex; gap:22px; }
.stat .s { background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px 16px; box-shadow:var(--shadow); }
.stat .s .k { font-size:12px; color:var(--muted); font-weight:700; text-transform:uppercase; }
.stat .s .v { font-size:20px; font-weight:800; }
.console { background:#0a1420; border-radius:14px; padding:14px; color:#fff; }
.console .log { min-height:120px; max-height:260px; overflow-y:auto; display:flex; flex-direction:column; gap:8px; margin-bottom:10px; }

footer { background: var(--navy); color:#9fb2c2; padding: 28px 0; margin-top: 40px; font-size: 13px; }
footer .container { display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .demo-wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
}
