:root {
  color-scheme: dark;
  --ink: #f4f7f7;
  --muted: #9aabb3;
  --line: rgba(183, 223, 220, .16);
  --accent: #58e0cc;
  --accent-deep: #1a8b86;
  --night: #07121a;
  --panel: rgba(11, 27, 36, .72);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 16%, rgba(67, 164, 158, .16), transparent 31rem),
    linear-gradient(150deg, #091923 0%, var(--night) 54%, #050c12 100%);
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: .2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.atmosphere {
  position: fixed;
  width: 70vw;
  height: 70vw;
  right: -32vw;
  bottom: -42vw;
  z-index: -1;
  border: 1px solid rgba(88, 224, 204, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 8vw rgba(40, 130, 126, .025), 0 0 0 18vw rgba(40, 130, 126, .018);
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  letter-spacing: .08em;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: var(--accent);
  box-shadow: 0 10px 35px rgba(88, 224, 204, .2);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.brand-mark::before { width: 29px; height: 29px; background: #09242a; }
.brand-mark::after { width: 13px; height: 13px; background: var(--accent); }
.brand-mark i { width: 34px; height: 17px; top: 3px; background: var(--accent); transform: rotate(-10deg); }

.brand strong,
.brand small { display: block; }
.brand strong { font-size: 14px; }
.brand small { margin-top: 2px; color: #7e949d; font-size: 9px; }

.status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #9db0b7;
  font: 600 10px/1 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: .12em;
}

.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
  min-height: 650px;
  padding: 76px 0 70px;
}

.eyebrow {
  margin: 0 0 23px;
  color: var(--accent);
  font: 600 11px/1 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: .17em;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(58px, 7.7vw, 104px);
  font-weight: 650;
  line-height: .91;
  letter-spacing: -.065em;
}

.lede {
  max-width: 650px;
  margin: 34px 0 0;
  color: #afbdc3;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
}

.actions { margin-top: 40px; }

.download {
  display: inline-flex;
  min-width: 310px;
  padding: 17px 20px 16px;
  flex-direction: column;
  color: #06171b;
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 0 18px 55px rgba(35, 154, 145, .2);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.download:hover,
.download:focus-visible {
  outline: none;
  transform: translateY(-2px);
  background: #76ead9;
  box-shadow: 0 22px 65px rgba(35, 154, 145, .28);
}

.download span { font-size: 16px; font-weight: 750; }
.download small { margin-top: 5px; color: #25545a; font-size: 11px; }
.actions p { margin: 14px 0 0 2px; color: #71868f; font-size: 11px; }

.world-window {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(to bottom, rgba(72, 144, 155, .24), rgba(9, 26, 36, .16) 49%, rgba(4, 14, 20, .72)),
    #0c202b;
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 40px 100px rgba(0, 0, 0, .28);
}

.world-window::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 18%, rgba(153, 246, 231, .07) 42%, transparent 65%);
}

.sun {
  position: absolute;
  width: 76px;
  height: 76px;
  right: 17%;
  top: 17%;
  border-radius: 50%;
  background: #dffbf4;
  box-shadow: 0 0 65px 14px rgba(171, 241, 228, .24);
}

.cloud {
  position: absolute;
  height: 20px;
  border-radius: 50%;
  opacity: .3;
  filter: blur(8px);
  background: #b7d8d6;
}
.cloud-one { width: 180px; left: 7%; top: 21%; }
.cloud-two { width: 130px; right: 4%; top: 36%; opacity: .18; }

.horizon {
  position: absolute;
  left: 50%;
  width: 160%;
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
  transform-origin: center top;
}

.horizon-far {
  height: 43%;
  bottom: 23%;
  background: #1e5555;
  clip-path: polygon(0 62%, 10% 49%, 18% 54%, 28% 35%, 37% 50%, 45% 28%, 55% 47%, 67% 31%, 77% 52%, 88% 42%, 100% 59%, 100% 100%, 0 100%);
}

.horizon-mid {
  height: 39%;
  bottom: 11%;
  background: #123b42;
  clip-path: polygon(0 60%, 14% 42%, 25% 58%, 38% 33%, 51% 58%, 65% 38%, 78% 54%, 91% 34%, 100% 48%, 100% 100%, 0 100%);
}

.horizon-near {
  width: 190%;
  height: 49%;
  bottom: -23%;
  background: radial-gradient(circle at 50% 0, #17434a, #07171e 66%);
  box-shadow: 0 -1px 0 rgba(111, 228, 209, .18), 0 -18px 50px rgba(49, 189, 171, .08);
}

.coordinates {
  position: absolute;
  left: 22px;
  bottom: 20px;
  color: rgba(168, 194, 197, .55);
  font: 9px/1.7 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: .12em;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.features article { min-height: 245px; padding: 42px clamp(26px, 3.2vw, 44px); }
.features article + article { border-left: 1px solid var(--line); }
.features span { color: var(--accent); font: 600 10px/1 ui-monospace, "Cascadia Mono", monospace; }
.features h2 { margin: 42px 0 13px; font-size: 19px; letter-spacing: -.02em; }
.features p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 35px 0 48px;
  color: #61747c;
  font-size: 11px;
}

footer p { margin: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .world-window { min-height: 390px; }
  .features { grid-template-columns: 1fr; }
  .features article { min-height: 0; }
  .features article + article { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 82px; }
  .status { display: none; }
  .hero { min-height: 0; padding-top: 58px; }
  h1 { font-size: clamp(52px, 18vw, 78px); }
  .download { width: 100%; min-width: 0; }
  .world-window { min-height: 320px; border-radius: 20px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
