/* BAS EDGE landing page (basedge.in). Same light, soft "neumorphic" look and colour tokens as the web app
   (cloud/app/src/app/globals.css), so going from here to Sign in feels like one product. Text at least 4.5:1 on the
   surface, status always has a word next to its colour, no dark mode (as in the app). */
:root {
  color-scheme: light;
  --bg: #e8edf3;
  --text: #1c2733;
  --muted: #526173;         /* 5.5:1 on --bg */
  --line: #d2dae4;
  --brand: #0b5cad;         /* 5.8:1 on --bg */
  --brand-deep: #084a8c;
  --brand-text: #ffffff;
  --ok: #1e7f45;
  --ok-bg: #dcefe3;
  --warn: #8a5200;
  --warn-bg: #f6e8cf;
  --radius: 18px;
  --shade: rgba(150, 165, 186, 0.55);
  --shine: rgba(255, 255, 255, 0.95);
  --raised: 7px 7px 16px var(--shade), -7px -7px 16px var(--shine);
  --raised-lg: 14px 14px 32px var(--shade), -12px -12px 28px var(--shine);
  --raised-sm: 3px 3px 7px var(--shade), -3px -3px 7px var(--shine);
  --inset: inset 3px 3px 7px var(--shade), inset -3px -3px 7px var(--shine);
  --viz-series: #2a78d6; --viz-grid: #d0d7e0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); max-width: 22ch; }
h3 { font-size: 1.08rem; margin-bottom: 6px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-text); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 5; background: rgba(232, 237, 243, 0.92); box-shadow: 0 6px 14px -8px var(--shade); }
@supports (backdrop-filter: blur(8px)) { .top { backdrop-filter: blur(8px); } }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; letter-spacing: 0.05em; font-size: 1.05rem; }
.brand img { border-radius: 8px; box-shadow: var(--raised-sm); }
.brand b { color: var(--brand); font-weight: 700; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.top nav a:not(.btn):hover { color: var(--brand); }
@media (max-width: 760px) { .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-sm { min-height: 38px; padding: 0 18px; font-size: 0.95rem; }
.btn-primary { background: var(--brand); color: var(--brand-text); box-shadow: 5px 5px 12px rgba(11, 92, 173, 0.35), -5px -5px 12px var(--shine); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-soft { background: var(--bg); color: var(--brand); box-shadow: var(--raised-sm); border: 1px solid rgba(255, 255, 255, 0.7); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; box-shadow: var(--inset); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-in { display: grid; gap: 48px; align-items: center; grid-template-columns: 1.05fr 1fr; }
@media (max-width: 920px) { .hero { padding-top: 44px; } .hero-in { grid-template-columns: 1fr; gap: 40px; } }
.eyebrow, .card .eyebrow { color: var(--brand); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); letter-spacing: -0.03em; max-width: 17ch; }
.lead { font-size: 1.12rem; color: var(--muted); margin-top: 18px; max-width: 54ch; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.actions.center { justify-content: center; }
.newhere { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }
.newhere a { font-weight: 600; }
.assure { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 0.93rem; }
.assure li { display: inline-flex; align-items: center; gap: 8px; }
.assure li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--ok-bg) center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5.2l2.2 2.2L8.5 2.6' fill='none' stroke='%231e7f45' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Example screen */
.mock { margin: 0; }
.mock-panel {
  background: var(--bg); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 24px; padding: 22px;
  box-shadow: var(--raised-lg);
}
.mock-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mock-title { font-weight: 700; font-size: 1.05rem; }
.mock-sub { color: var(--muted); font-size: 0.85rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-ok { color: var(--ok); background: var(--ok-bg); }
.chip-warn { color: var(--warn); background: var(--warn-bg); }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.stat { border-radius: 14px; padding: 12px; box-shadow: var(--inset); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-label { color: var(--muted); font-size: 0.78rem; }
.stat-value { font-size: 1.45rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stat-value small { font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-left: 2px; }
.mock-chart { margin-top: 16px; border-radius: 14px; padding: 12px 12px 6px; box-shadow: var(--inset); }
.mock-chart svg { display: block; width: 100%; height: auto; margin-top: 6px; }
.mock-chart .grid line { stroke: var(--viz-grid); stroke-width: 1; }
.mock-chart .series { fill: none; stroke: var(--viz-series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mock-chart .dot { fill: var(--viz-series); stroke: var(--bg); stroke-width: 2; }
.mock-alarm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; font-size: 0.88rem; }
.mock-alarm .muted { margin-left: auto; font-size: 0.8rem; }
.mock figcaption { color: var(--muted); font-size: 0.82rem; margin-top: 14px; text-align: center; }
@media (max-width: 420px) {
  .mock-panel { padding: 16px; }
  .mock-stats { gap: 8px; }
  .stat { padding: 10px 8px; }
  .stat-value { font-size: 1.15rem; }
}

/* Sections */
.section { padding: 64px 0; }
.card { background: var(--bg); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: var(--radius); padding: 24px; box-shadow: var(--raised); }
.card p { color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 14px;
  color: var(--brand); font-weight: 700; box-shadow: var(--inset);
}
.protocols { margin-top: 24px; display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 20px 32px; align-items: center; }
@media (max-width: 820px) { .protocols { grid-template-columns: 1fr; } }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { padding: 6px 14px; border-radius: 999px; font-size: 0.9rem; box-shadow: var(--raised-sm); border: 1px solid rgba(255, 255, 255, 0.7); }

.features { margin-top: 32px; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.feature .ico {
  width: 44px; height: 44px; padding: 10px; border-radius: 12px; margin-bottom: 14px; box-shadow: var(--inset);
  fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.sec-in { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
.sec-in .btn { margin-top: 26px; }
@media (max-width: 860px) { .sec-in { grid-template-columns: 1fr; } }
.checks { list-style: none; margin: 0; padding: 26px 26px 26px 24px; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li b { color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok-bg) center / 11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5.2l2.2 2.2L8.5 2.6' fill='none' stroke='%231e7f45' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.about { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px 40px; align-items: center; padding: 36px; }
.about > p { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; padding: 24px; } }

.cta { padding-bottom: 80px; }
.cta-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta h2 { max-width: 20ch; }
.addr { font-style: normal; margin-top: 32px; color: var(--muted); line-height: 1.7; }
.addr b { color: var(--text); }

/* Footer */
.foot { padding: 24px 0 32px; box-shadow: 0 -6px 14px -8px var(--shade); font-size: 0.9rem; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--brand); }
