/* Public home page. Colours are taken from the logo artwork. */
:root {
  --bg: #0d111c;
  --bg-2: #111827;
  --panel: #141b29;
  --line: #243044;
  --text: #f1f5f9;
  --muted: #a3b1c6;
  --green: #22c58b;
  --green-dark: #17a673;
  --teal: #1fb6c9;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); background: var(--bg); line-height: 1.5;
  background-image:
    radial-gradient(900px 500px at 85% 12%, rgba(34, 197, 139, .16), transparent 70%),
    radial-gradient(700px 500px at 0% 0%, rgba(31, 182, 201, .08), transparent 70%);
  background-repeat: no-repeat;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.green { color: var(--green); }

/* ---- top bar ---- */
.nav { border-bottom: 1px solid var(--line); background: rgba(13, 17, 28, .85); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-size: 22px; font-weight: 800; letter-spacing: .2px; }
.logo-tag { font-size: 11px; color: var(--muted); letter-spacing: 1.2px; text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; margin-inline: auto; font-size: 15px; color: #d5deea; }
.nav-links a:hover, .nav-login:hover, .footer a:hover { color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }
.nav-login { font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px;
  border-radius: 8px; font-weight: 700; font-size: 17px; border: 1px solid transparent; white-space: nowrap;
}
.btn-small { padding: 10px 18px; font-size: 15px; }
.btn-primary { background: var(--green); color: #04130d; box-shadow: 0 8px 28px rgba(34, 197, 139, .28); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { border-color: #46546a; background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--green); }

/* ---- hero ---- */
.hero { padding: 72px 0 56px; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid #334357;
  border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #dbe4ef;
}
.pill-star { color: var(--green); }
h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.07; letter-spacing: -1px; margin: 18px 0 20px; font-weight: 800; }
.lead { font-size: 19px; color: #c9d4e3; max-width: 34em; margin: 0 0 30px; }
.hero-actions, .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; max-width: 34em; }

/* ---- dashboard illustration ---- */
.mock { position: relative; padding: 0 8px; }
.mock::before {
  content: ""; position: absolute; inset: -30px -10px 10px; z-index: -1; border-radius: 24px;
  background-image: linear-gradient(rgba(34, 197, 139, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 197, 139, .09) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.mock-screen {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) 150px; min-height: 330px; overflow: hidden;
  background: #0f1624; border: 10px solid #c9ced6; border-bottom-width: 26px; border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55); font-size: 11px;
}
.mock-side { background: #0c1220; border-right: 1px solid var(--line); padding: 12px 8px; display: flex; flex-direction: column; gap: 4px; }
.mock-brand { display: flex; align-items: center; gap: 6px; font-weight: 700; margin-bottom: 10px; }
.mock-item { padding: 6px 8px; border-radius: 6px; color: var(--muted); }
.mock-item.on { background: rgba(34, 197, 139, .14); color: var(--green); }
.mock-main { padding: 12px; }
.mock-title { font-weight: 700; margin-bottom: 10px; display: flex; justify-content: space-between; }
.mock-live { color: var(--green); font-weight: 600; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-tile { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.t1 { background: linear-gradient(160deg, #7c9a7a 0%, #4d6a58 45%, #2d3b3a 100%); border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.t2 { background: linear-gradient(170deg, #b8c2cf 0%, #7d8b9c 50%, #4a5463 100%); }
.t3 { background: linear-gradient(150deg, #c9a983 0%, #8d7358 50%, #4b4037 100%); }
.t4 { background: linear-gradient(175deg, #9fb0c2 0%, #5d6b7b 45%, #343c48 100%); }
.mock-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; background: rgba(8, 12, 20, .78); font-size: 10px; }
.mock-tag { position: absolute; left: 5px; top: 5px; padding: 1px 6px; border-radius: 3px; background: var(--green); color: #04130d; font-weight: 700; font-size: 9px; }
.mock-box { position: absolute; left: 52%; top: 26%; width: 16%; height: 46%; border: 1.5px solid var(--green); border-radius: 2px; }
.mock-box.wide { left: 22%; top: 40%; width: 34%; height: 30%; }
.mock-alerts { background: #0c1220; border-left: 1px solid var(--line); padding: 12px 10px; }
.mock-alert { padding: 7px 8px; margin-bottom: 7px; border-radius: 6px; background: #151d2c; border-left: 2px solid var(--green); color: #cfd8e5; }
.mock-alert span { display: block; color: var(--muted); font-size: 9.5px; margin-top: 2px; }
.mock-stand { width: 16%; height: 46px; margin: 0 auto; background: linear-gradient(#aeb4bd, #d5d9df); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.mock-base { width: 30%; height: 8px; margin: 0 auto; background: #d5d9df; border-radius: 6px; }

/* ---- feature cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 24px 0 72px; scroll-margin-top: 90px; }
.card { display: flex; gap: 16px; padding: 24px; background: rgba(20, 27, 41, .85); border: 1px solid var(--line); border-radius: 12px; scroll-margin-top: 100px; }
.card-icon {
  flex: none; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(88, 118, 190, .22); color: #a9c0f5; font-weight: 800; font-size: 16px;
}
.green-icon { background: rgba(34, 197, 139, .16); color: var(--green); }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---- how it works / support ---- */
.how, .support { padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 76px; }
h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 28px; letter-spacing: -.4px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: rgba(20, 27, 41, .5); }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #04130d; font-weight: 800; }
.steps h3 { margin: 14px 0 6px; font-size: 18px; }
.steps p, .support p { margin: 0; color: var(--muted); }
.support p { max-width: 46em; margin-bottom: 28px; font-size: 17px; }

.footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-links + .nav-actions { margin-left: auto; }
  .hero { padding-top: 44px; }
  .hero-row { grid-template-columns: 1fr; gap: 44px; }
  .cards, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .logo-tag { display: none; }
  .nav-row { gap: 12px; height: 64px; }
  .nav-actions { gap: 12px; }
  .mock-screen { grid-template-columns: minmax(0, 1fr); }
  .mock-side, .mock-alerts { display: none; }
  .btn { width: 100%; }
  .btn-small { width: auto; }
}

/* ---- text pages (privacy policy) ---- */
.doc { max-width: 820px; padding: 56px 0 72px; }
.doc h1 { margin: 0 0 6px; font-size: clamp(32px, 4vw, 44px); }
.doc-date { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { color: #c9d4e3; font-size: 16.5px; }
.doc ul { padding-left: 22px; margin: 0 0 12px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); }
.doc a { color: var(--green); text-decoration: underline; }
