:root {
  --ink: #f7f5ee;
  --muted: #a7adb7;
  --night: #090c11;
  --panel: #121821;
  --panel-soft: #171f2a;
  --line: #2b3542;
  --yellow: #ffca3a;
  --blue: #29a9ef;
  --red: #ff565f;
  --mint: #56dc9a;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% -10%, rgba(41, 169, 239, 0.18), transparent 34rem),
    radial-gradient(circle at -10% 30%, rgba(255, 202, 58, 0.12), transparent 28rem),
    var(--night);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 12, 17, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border: 3px solid var(--yellow);
  border-radius: 4px;
  box-shadow: 20px 0 0 -4px var(--blue), 30px 0 0 -4px var(--red);
  margin-right: 26px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 750;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  min-height: 68vh;
  padding: 88px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
}

h3 {
  font-size: 1.3rem;
}

.lead {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.meter-card {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 36px;
  background:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(145deg, #1c2632, #0c1118);
  background-size: 25% 20%, 25% 20%, auto;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.meter-card::after {
  content: "";
  position: absolute;
  inset: 42% 32% 36% 42%;
  border: 5px solid var(--yellow);
  border-radius: 13px;
  box-shadow: 0 0 32px rgba(255, 202, 58, 0.24);
}

.reading {
  position: absolute;
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  text-shadow: 0 2px 5px #000;
}

.reading.one { top: 11%; left: 12%; color: var(--red); }
.reading.two { top: 22%; right: 13%; color: var(--blue); }
.reading.three { top: 47%; left: 11%; color: var(--blue); }
.reading.four { top: 64%; right: 16%; color: var(--red); }
.reading.five { bottom: 9%; left: 39%; color: var(--ink); }

.app-icon {
  position: absolute;
  width: 102px;
  height: 102px;
  left: 28px;
  bottom: 26px;
  border-radius: 23px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.5);
}

.section {
  padding: 82px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.section-heading p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.product {
  min-height: 330px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--panel-soft), var(--panel));
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
}

.product.live {
  border-color: rgba(255, 202, 58, 0.45);
}

.product-status {
  width: fit-content;
  margin-bottom: auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--mint);
  background: rgba(86, 220, 154, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-status.building {
  color: var(--blue);
  background: rgba(41, 169, 239, 0.1);
}

.product p {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  font-weight: 850;
}

.button.primary {
  border-color: var(--yellow);
  color: #111;
  background: var(--yellow);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.legal-hero {
  padding: 72px 0 36px;
}

.legal-hero h1 {
  max-width: 880px;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
}

.legal-layout {
  padding: 18px 0 90px;
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: 56px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 98px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(18, 24, 33, 0.78);
}

.legal-nav a {
  display: block;
  padding: 7px 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: var(--yellow);
}

.legal-copy section {
  padding: 0 0 30px;
  scroll-margin-top: 100px;
}

.legal-copy p,
.legal-copy li {
  color: #c3c8d0;
}

.legal-copy li + li {
  margin-top: 8px;
}

.notice {
  padding: 18px 20px;
  border-left: 4px solid var(--yellow);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 202, 58, 0.08);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 40px;
}

.support-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.support-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 14px;
}

@media (max-width: 800px) {
  .nav {
    min-height: 64px;
  }

  .nav-links a:not(:last-child) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 58px 0;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .meter-card {
    width: min(100%, 480px);
    min-height: 390px;
    transform: none;
  }

  .section-heading,
  .footer .shell {
    display: block;
  }

  .product-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .legal-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;
  }

  .footer-links {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: reveal 650ms ease-out both;
  }

  .meter-card {
    animation: reveal 650ms 120ms ease-out both;
  }

  @keyframes reveal {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; }
  }
}
