:root {
  --bg: #050a18;
  --bg-2: #081228;
  --bg-3: #0c1a36;
  --line: rgba(0, 229, 255, 0.14);
  --line-strong: rgba(0, 229, 255, 0.28);
  --text: #f4fbff;
  --muted: #8aa3c2;
  --cyan: #00e5ff;
  --cyan-2: #7af0ff;
  --blue: #1a7cff;
  --lime: #4dff88;
  --ink: #03101c;
  --shadow: 0 30px 70px rgba(0, 12, 40, 0.5);
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1120px;
  --header-h: 76px;
  --header-bg: #000616;
  --accent: var(--cyan);
  --font-display: "Outfit", sans-serif;
  --font-body: "Outfit", sans-serif;
}

[data-theme="blumelle"] { --accent: #d9a39a; }
[data-theme="bodybattery"] { --accent: #4ade80; }
[data-theme="gymnotebook"] { --accent: #d6ff3f; }
[data-theme="pickleball"] { --accent: #9adf4a; }
[data-theme="trainer"] { --accent: #5eead4; }

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 400;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--cyan-2); }
button { font-family: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--cyan);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(5, 10, 24, 0.42) 0%, rgba(5, 10, 24, 0.78) 48%, rgba(5, 10, 24, 0.94) 100%),
    url("/assets/brand/pattern.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: var(--header-h);
  min-height: var(--header-h);
  gap: 1rem;
  padding-block: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-logo {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.site-header .brand {
  align-items: stretch;
  height: 100%;
  flex-shrink: 0;
}
.site-header .brand-logo {
  height: 100%;
  max-height: 100%;
  max-width: none;
  width: auto;
  object-fit: contain;
  object-position: left center;
}
.site-header .brand-sub {
  align-self: center;
}
.site-nav,
.nav-toggle {
  align-self: center;
}
.brand-sub {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-left: 1px solid var(--line-strong);
  padding-left: 0.85rem;
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  min-height: 44px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.site-nav a {
  color: var(--muted);
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(0, 229, 255, 0.12);
}

.nav-apps {
  position: relative;
}
.nav-apps-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 240px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.5rem;
  box-shadow: var(--shadow);
}
.nav-apps:hover .nav-apps-menu,
.nav-apps:focus-within .nav-apps-menu {
  display: grid;
}
.nav-apps-menu a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 10px;
  color: var(--text);
}
.nav-apps-menu img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

main { position: relative; z-index: 1; }

.hero {
  padding: 4.5rem 0 3.2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero.solo { grid-template-columns: 1fr; max-width: 760px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cyan);
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: 1.28;
  margin: 0 0 1rem;
  font-weight: 600;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.95rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; font-weight: 600; }
h1 span, h2 span { color: var(--accent); }

.lead {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 1.6rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  color: var(--ink);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.22);
}
.btn-primary:hover { background: var(--cyan-2); color: var(--ink); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  border: 1px solid var(--line);
  color: var(--muted);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.badge.accent {
  color: var(--ink);
  background: var(--lime);
  border-color: transparent;
}

.section {
  padding: 4.2rem 0;
  border-top: 1px solid var(--line);
}
.section-head { max-width: 640px; margin-bottom: 2rem; }
.section-head p, .intro {
  color: var(--muted);
  margin: 0;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }

.card, .app-card, .service-card, .feature-card {
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.07), rgba(26, 124, 255, 0.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  backdrop-filter: blur(10px);
}
.card:hover, .app-card:hover, .service-card:hover {
  border-color: var(--line-strong);
}

.app-card {
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.app-card:hover { color: var(--text); transform: translateY(-3px); transition: 0.2s ease; }
.app-card img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 1rem;
}
.app-card .meta { color: var(--muted); font-size: 0.88rem; margin: 0 0 0.7rem; }
.app-card p { color: var(--muted); margin: 0 0 1rem; flex: 1; }
.app-card .card-link { color: var(--accent); font-weight: 600; font-size: 0.92rem; }

.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); margin: 0; }
.service-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.feature-card p { color: var(--muted); margin: 0; }
.feature-tag {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stat {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
}
.stat > span { color: var(--muted); font-size: 0.92rem; }

.hero-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  transform: rotate(-2deg);
}
.hero-stack .phone:nth-child(2) { transform: translateY(28px); }

.phone {
  width: 100%;
  background: #050608;
  border: 3px solid rgba(0, 229, 255, 0.28);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 40px rgba(0, 229, 255, 0.12);
  aspect-ratio: 9 / 19.5;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }

.shot-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 280px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.8rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.shot-card { scroll-snap-align: start; color: var(--muted); font-size: 0.86rem; }
.shot-card figcaption { margin-top: 0.55rem; }

.carousel {
  position: relative;
}
.carousel-frame {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}
.carousel-viewport { overflow: hidden; }
.carousel-slide { display: none; }
.carousel-slide.is-active { display: block; }
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(5, 10, 24, 0.7);
  color: var(--text);
  cursor: pointer;
}
.carousel-nav--prev { left: -1.2rem; }
.carousel-nav--next { right: -1.2rem; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #3a3f4a;
  padding: 0;
  cursor: pointer;
}
.carousel-dot.is-active { background: var(--accent); }

.watch-row {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
}
.watch-row img {
  width: 120px;
  border-radius: 28px;
  border: 2px solid #2a303c;
}

.list-check {
  margin: 0;
  padding: 0;
  list-style: none;
}
.list-check li {
  position: relative;
  padding-left: 1.15rem;
  margin: 0.4rem 0;
  color: var(--muted);
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: start;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.08), rgba(5, 10, 24, 0.7));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2rem;
}
.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  font-family: var(--font-body);
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--cyan);
  margin: 0 0 1.2rem;
  overflow-wrap: anywhere;
}

.policy { padding: 3rem 0 5rem; }
.policy h1 { margin-bottom: 0.4rem; }
.policy-meta { color: var(--muted); margin-bottom: 2rem; }
.policy h2 { margin: 2rem 0 0.7rem; font-size: 1.35rem; }
.policy p, .policy li { color: var(--muted); }
.back-link { color: var(--muted); font-size: 0.92rem; display: inline-block; margin-bottom: 1.2rem; }

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-links { display: grid; gap: 0.35rem; }
.copyright { border-top: 1px solid var(--line); padding-top: 1rem; font-size: 0.82rem; }

@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .hero, .grid-3, .stat-row, .split, .contact-panel, .footer-grid {
    grid-template-columns: 1fr;
  }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-stack { max-width: 320px; }
  .hero, .carousel { min-width: 0; }
}

@media (max-width: 640px) {
  .grid-5 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .brand-sub { display: none; }
  .bg-glow { background-attachment: scroll; }
  .site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(var(--header-h) + 0.5rem);
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.6rem;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .nav-apps-menu {
    position: static;
    display: grid;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0 0.4rem;
  }
  .hero { padding-top: 2.4rem; gap: 2rem; }
  h1 { font-size: clamp(1.7rem, 6.8vw, 2.05rem); line-height: 1.3; letter-spacing: 0; font-weight: 600; }
  .section { padding: 3rem 0; }
  .shot-rail {
    grid-auto-columns: min(78vw, 360px);
    margin-inline: -1rem;
    padding-inline: 1rem;
  }
  .carousel-frame {
    max-width: none;
    width: 100%;
    min-width: 0;
  }
  .carousel-viewport {
    display: flex;
    overflow-x: auto;
    gap: 0.85rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 0.4rem;
    min-width: 0;
    max-width: 100%;
  }
  .carousel-slide {
    display: block !important;
    flex: 0 0 min(78vw, 360px);
    width: min(78vw, 360px);
    min-width: min(78vw, 360px);
    max-width: min(78vw, 360px);
    scroll-snap-align: start;
  }
  .carousel-nav,
  .carousel-dots {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app-card:hover { transform: none; }
}
