:root {
  color-scheme: dark;
  --bg: #0f0f0f;
  --panel: #171717;
  --text: #f6f6f0;
  --muted: #a8aaa2;
  --line: rgba(246, 246, 240, 0.14);
  --green: #caff45;
  --coral: #ff6a3d;
  --blue: #54a9ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-page {
  overflow-x: hidden;
}

.home-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  min-height: 100svh;
  overflow: clip;
  padding: clamp(20px, 4vw, 56px) clamp(18px, 4vw, 80px) 22px;
  isolation: isolate;
}

.home-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--bg);
}

.home-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(246, 246, 240, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 246, 240, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

.site-main {
  display: grid;
  gap: clamp(46px, 6vw, 72px);
  width: 100%;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  width: min(1240px, 100%);
  margin: 0 auto;
  min-height: min(720px, calc(100svh - 130px));
  padding-bottom: clamp(28px, 5vw, 60px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 22px;
}

.hero-logo {
  width: clamp(92px, 9vw, 132px);
  height: auto;
}

.hero-kicker {
  margin: 6px 0 -6px;
  color: var(--green);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-size: clamp(46px, 7.2vw, 92px);
  font-weight: 840;
  line-height: 0.92;
}

.hero-subtitle {
  max-width: 620px;
  margin: 0;
  color: var(--text);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.24;
}

.hero-note {
  max-width: 560px;
  margin: -4px 0 0;
  color: rgba(246, 246, 240, 0.68);
  font-size: 17px;
  font-weight: 620;
  line-height: 1.52;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-decoration: none;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
  transition: transform 160ms ease;
}

.app-store-button img {
  width: 100%;
  height: auto;
}

.app-store-button:focus-visible,
.secondary-cta:focus-visible,
.site-footer a:focus-visible,
.policy-header a:focus-visible,
.policy-content a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.app-store-button:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: clamp(420px, 52vw, 620px);
  max-width: 100%;
}

.hero-visual::before {
  content: "";
  position: absolute;
  right: 14%;
  bottom: 8%;
  width: 44%;
  aspect-ratio: 1;
  border: 1px solid rgba(202, 255, 69, 0.4);
  border-radius: 999px;
}

.phone-mockups {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  aspect-ratio: 879 / 775;
  min-width: 0;
  filter: drop-shadow(0 36px 52px rgba(0, 0, 0, 0.54));
}

.wearable-system {
  position: absolute;
  inset: -9% -24% -10% -28%;
  z-index: 1;
  pointer-events: none;
}

.wearable-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wearable-route {
  --line-color: rgba(202, 255, 69, 0.82);
  animation: wearableRouteFloat 6s ease-in-out infinite;
}

.route-oura {
  --line-color: rgba(246, 246, 240, 0.8);
  animation-delay: -1.6s;
}

.route-garmin {
  --line-color: rgba(84, 169, 255, 0.86);
  animation-delay: -3.2s;
}

.line-base,
.line-flow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-base {
  stroke: var(--line-color);
  stroke-width: 1.4;
  opacity: 0.28;
}

.line-flow {
  stroke: var(--line-color);
  stroke-width: 2.8;
  stroke-dasharray: 9 17;
  opacity: 0.92;
  filter:
    drop-shadow(0 0 8px var(--line-color))
    drop-shadow(0 0 18px var(--line-color));
  animation:
    wearableFlow 4.4s linear infinite,
    wearableLinePulse 2.7s ease-in-out infinite;
}

.route-oura .line-flow {
  animation-delay: -0.9s, -0.4s;
}

.route-garmin .line-flow {
  animation-delay: -1.8s, -0.9s;
}

.wearable-node {
  --node-glow: rgba(202, 255, 69, 0.36);
  position: absolute;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(246, 246, 240, 0.18);
  border-radius: 24px;
  background: rgba(12, 12, 12, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 30px var(--node-glow),
    0 18px 36px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  animation: wearableNodePulse 3.4s ease-in-out infinite;
}

.wearable-node img {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  object-fit: cover;
}

.node-whoop {
  left: calc(14% - 41px);
  top: calc(23.5% - 41px);
}

.node-oura {
  --node-glow: rgba(246, 246, 240, 0.26);
  left: calc(18% - 41px);
  top: calc(80.5% - 41px);
  animation-delay: -1.1s;
}

.node-garmin {
  --node-glow: rgba(84, 169, 255, 0.38);
  left: calc(84% - 41px);
  top: calc(20% - 41px);
  animation-delay: -2.1s;
}

.hero-proof {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: rgba(246, 246, 240, 0.74);
  font-size: 13px;
  font-weight: 760;
}

.hero-proof span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.78);
  backdrop-filter: blur(14px);
}

.feature-band,
.workflow-band,
.integration-band {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-copy {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.section-kicker {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 820;
  line-height: 1;
}

.section-copy p {
  margin: 0;
  color: rgba(246, 246, 240, 0.7);
  font-size: 18px;
  font-weight: 560;
  line-height: 1.58;
}

.feature-grid,
.workflow-list {
  list-style: none;
  padding: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
}

.feature-grid li,
.workflow-list li {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 23, 23, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.feature-grid li {
  padding: 22px;
}

.feature-grid h3,
.workflow-list h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.18;
}

.feature-grid p,
.workflow-list p {
  margin: 12px 0 0;
  color: rgba(246, 246, 240, 0.68);
  font-size: 15px;
  font-weight: 520;
  line-height: 1.52;
}

.workflow-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
}

.workflow-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.workflow-list li {
  position: relative;
  padding: 22px 22px 22px 70px;
}

.workflow-list span {
  position: absolute;
  left: 22px;
  top: 23px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 820;
}

.integration-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid rgba(84, 169, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(84, 169, 255, 0.14), transparent 42%),
    rgba(23, 23, 23, 0.72);
}

.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(202, 255, 69, 0.5);
  border-radius: 8px;
  color: var(--bg);
  background: var(--green);
  font-size: 15px;
  font-weight: 820;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.secondary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(202, 255, 69, 0.16);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  min-height: 42px;
  margin-top: clamp(46px, 7vw, 86px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.site-footer a {
  padding: 8px 2px;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.policy-page {
  background:
    linear-gradient(rgba(246, 246, 240, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: 100% 48px;
}

.policy-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(15, 15, 15, 0.86);
  backdrop-filter: blur(16px);
}

.policy-logo-link {
  display: inline-flex;
  align-items: center;
}

.policy-logo-link img {
  width: 76px;
  height: auto;
}

.policy-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
}

.policy-nav a,
.policy-support-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.policy-nav a:hover,
.policy-support-link:hover {
  color: var(--text);
}

.policy-content {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(38px, 7vw, 72px) 0 80px;
}

.policy-content h1 {
  margin: 0;
  font-size: 72px;
  line-height: 0.96;
}

.policy-updated {
  margin-top: 14px;
  color: var(--green);
  font-weight: 750;
}

.policy-content section {
  margin-top: 34px;
}

.policy-content h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 30px;
  line-height: 1.08;
}

.policy-content h3 {
  margin: 24px 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.policy-content p {
  margin: 0 0 16px;
  color: rgba(246, 246, 240, 0.78);
  font-size: 17px;
  line-height: 1.68;
}

.policy-content a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

@media (min-width: 1280px) {
  .hero {
    width: min(1320px, 100%);
    grid-template-columns: minmax(560px, 0.95fr) minmax(560px, 0.95fr);
    gap: clamp(36px, 3.5vw, 56px);
  }

  .hero-subtitle {
    max-width: 620px;
    font-size: 28px;
  }
}

@media (max-width: 900px) {
  .home-shell {
    padding-top: 30px;
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 20px;
    min-height: auto;
    padding-bottom: 0;
  }

  .hero-copy {
    justify-items: center;
    text-align: center;
  }

  .hero h1 {
    max-width: 620px;
  }

  .hero-subtitle {
    max-width: 520px;
    font-size: 24px;
  }

  .hero-note {
    max-width: 520px;
  }

  .hero-visual {
    position: absolute;
    inset: auto -120px 26px auto;
    z-index: 0;
    width: 560px;
    max-width: none;
    opacity: 0.28;
  }

  .hero-visual::before {
    display: none;
  }

  .phone-mockups {
    width: 100%;
    min-width: 0;
  }

  .wearable-system {
    display: none;
  }

  .hero-proof {
    position: static;
    grid-column: 1 / -1;
    margin-top: 6px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-band,
  .integration-band {
    grid-template-columns: 1fr;
  }

  .secondary-cta {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .home-shell {
    padding: 26px 18px 16px;
  }

  .site-main {
    gap: 54px;
  }

  .hero {
    align-content: center;
  }

  .hero-copy {
    gap: 18px;
  }

  .hero-logo {
    width: 84px;
  }

  .hero-kicker {
    font-size: 13px;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 0.96;
  }

  .hero-subtitle {
    max-width: 340px;
    font-size: 19px;
    line-height: 1.34;
  }

  .hero-note {
    max-width: 340px;
    font-size: 15px;
  }

  .hero-proof {
    gap: 8px;
    font-size: 12px;
  }

  .hero-proof span {
    padding: 8px 10px;
  }

  .app-store-button {
    width: 166px;
  }

  .site-footer {
    gap: 22px;
    font-size: 13px;
  }

  .hero-visual {
    display: none;
  }

  .section-copy h2 {
    font-size: 32px;
    line-height: 1.04;
  }

  .section-copy p {
    font-size: 16px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid li,
  .workflow-list li {
    padding: 18px;
  }

  .workflow-list li {
    padding-left: 58px;
  }

  .workflow-list span {
    left: 18px;
    top: 20px;
  }

  .integration-band {
    padding: 22px;
  }

  .secondary-cta {
    width: 100%;
  }
}

@media (max-height: 720px) and (max-width: 900px) {
  .hero-copy {
    gap: 14px;
  }

  .hero-logo {
    width: 70px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .app-store-button {
    width: 156px;
  }

  .hero-visual {
    opacity: 0.18;
  }
}

@keyframes wearableFlow {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -104;
  }
}

@keyframes wearableLinePulse {
  0%,
  100% {
    opacity: 0.48;
    stroke-width: 2.2;
  }

  45% {
    opacity: 1;
    stroke-width: 3;
  }
}

@keyframes wearableNodePulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  45% {
    transform: translateY(-4px) scale(1.045);
  }
}

@keyframes wearableRouteFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wearable-route,
  .line-flow,
  .wearable-node {
    animation: none;
  }
}

@media (max-width: 560px) {
  .policy-content h1 {
    font-size: 42px;
  }

  .policy-content h2 {
    font-size: 24px;
  }
}
