:root {
  --bg: #0a0f18;
  --bg-soft: #101828;
  --panel: rgba(17, 24, 39, 0.72);
  --panel-strong: rgba(12, 18, 31, 0.92);
  --text: #eef2ff;
  --muted: #96a3b8;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --primary: #7c5cff;
  --primary-2: #16d8c1;
  --accent: #5be37d;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 16px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, rgba(124, 92, 255, 0.09), transparent 34%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.section { padding: 84px 0; position: relative; z-index: 2; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02)); }

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,0.75), transparent 78%);
  pointer-events: none;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.45;
}
.orb-1 {
  width: 360px;
  height: 360px;
  top: -80px;
  left: -60px;
  background: rgba(124, 92, 255, 0.22);
}
.orb-2 {
  width: 300px;
  height: 300px;
  right: -80px;
  top: 180px;
  background: rgba(22, 216, 193, 0.16);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(10, 15, 24, 0.72);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.36);
}

.brand-text { font-size: 1.06rem; }

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a:hover { color: var(--text); }

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-cta,
.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), #8f70ff 50%, var(--primary-2));
  box-shadow: 0 18px 40px rgba(124, 92, 255, 0.27);
}

.btn:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.hero {
  padding-top: 72px;
  padding-bottom: 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: #c9d2e5;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero h1,
.section-head h2,
.how-grid h2,
.privacy-banner h2,
.policy-card h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.section-head h2,
.how-grid h2,
.privacy-banner h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #a7b7ff 42%, #59f0d3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text,
.section-head p,
.section-copy,
.privacy-banner p,
.footer-copy,
.policy-card p,
.policy-card li {
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

.meta-pill {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: #d8deea;
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 590px;
}

.phone-card {
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.96), rgba(9, 14, 24, 0.96));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-main {
  width: min(100%, 380px);
  margin-left: auto;
}

.phone-header {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.phone-header span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.22);
}

.screen {
  padding: 18px;
}

.screen-dashboard {
  min-height: 540px;
  background:
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.screen-topline,
.screen-panel,
.mini-line {
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.05);
}

.screen-topline { height: 12px; width: 42%; margin-bottom: 14px; }
.screen-title { color: #f7f8fe; font-weight: 800; margin-bottom: 16px; }
.screen-panel { height: 84px; }
.screen-panel.large { height: 148px; margin-bottom: 14px; }
.screen-panel.medium { height: 112px; margin-top: 14px; }
.screen-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.screen-row.stats { grid-template-columns: repeat(3, 1fr); margin-top: 14px; }

.stat-box {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
}
.stat-box span { display: block; color: var(--muted); font-size: 0.76rem; }
.stat-box strong { font-size: 1.1rem; color: var(--text); }

.phone-float {
  position: absolute;
  width: 220px;
}
.phone-float.a { left: 20px; top: 92px; transform: rotate(-6deg); }
.phone-float.b { left: 0; bottom: 48px; transform: rotate(4deg); }
.screen-mini { min-height: 150px; }
.mini-title { font-weight: 800; margin-bottom: 14px; }
.mini-line { height: 12px; margin-bottom: 10px; }
.mini-line.short { width: 62%; }
.mini-chip {
  display: inline-flex;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(91, 227, 125, 0.15);
  color: #d9ffe2;
  border: 1px solid rgba(91, 227, 125, 0.22);
  font-size: 0.82rem;
  font-weight: 700;
}
.mini-bars { display: flex; align-items: end; gap: 8px; height: 72px; margin-bottom: 14px; }
.mini-bars span {
  flex: 1;
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.85), rgba(22, 216, 193, 0.85));
}
.mini-bars span:nth-child(1) { height: 40%; }
.mini-bars span:nth-child(2) { height: 72%; }
.mini-bars span:nth-child(3) { height: 90%; }
.mini-bars span:nth-child(4) { height: 55%; }

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.feature-grid,
.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.screens-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 22px;
  min-height: 230px;
}
.feature-card h3,
.screenshot-card h3,
.step-card h3 { margin: 0 0 8px 0; font-size: 1.08rem; }
.feature-card p,
.screenshot-card p,
.step-card p { margin: 0; color: var(--muted); }
.icon-wrap {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 1.5rem;
}

.how-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
}
.steps { display: grid; gap: 14px; }
.step-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px;
}
.step-number {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(22, 216, 193, 0.16));
  border: 1px solid rgba(255,255,255,0.08);
  font-weight: 800;
}

.screenshot-card { padding: 18px; }
.placeholder-shot {
  height: 380px;
  border-radius: 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.07);
  background-color: rgba(255,255,255,0.04);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    radial-gradient(circle at top right, rgba(124, 92, 255, 0.2), transparent 34%);
  position: relative;
  overflow: hidden;
}
.placeholder-shot::before,
.placeholder-shot::after {
  content: '';
  position: absolute;
  border-radius: 14px;
  left: 16px;
  right: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.05);
}
.placeholder-shot::before { top: 22px; height: 92px; }
.placeholder-shot::after { top: 130px; bottom: 18px; }
.placeholder-shot.workout { background-image: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)), radial-gradient(circle at bottom left, rgba(22, 216, 193, 0.24), transparent 36%); }
.placeholder-shot.stats { background-image: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)), radial-gradient(circle at center, rgba(91, 227, 125, 0.18), transparent 33%); }

.privacy-banner {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 24, 39, 0.84), rgba(9, 13, 25, 0.9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 30px 0 20px;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 15, 0.76);
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 24px;
  padding-bottom: 18px;
}
.footer-brand { margin-bottom: 10px; }
.footer-grid h4 {
  margin: 0 0 12px 0;
  font-size: 0.96rem;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.footer-grid a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.policy-wrap { max-width: 960px; }
.policy-card {
  padding: 30px;
  border-radius: 28px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.policy-card h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.25rem;
}
.policy-card ul { color: var(--muted); }
.policy-updated { color: #c9d2e5; }
.compact-header .nav { min-height: 70px; }

@media (max-width: 1040px) {
  .hero-grid,
  .how-grid,
  .privacy-banner,
  .footer-grid,
  .feature-grid,
  .screens-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
    display: grid;
    gap: 18px;
  }
  .phone-main { margin: 0 auto; }
  .phone-float {
    position: static;
    width: 100%;
    max-width: 340px;
    transform: none !important;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .nav { min-height: 72px; flex-wrap: wrap; padding: 12px 0; }
  .nav-links {
    width: 100%;
    order: 3;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 2px;
  }
  .hero h1 { font-size: clamp(2.05rem, 11vw, 3rem); }
  .hero-actions,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .step-card { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .policy-card { padding: 22px; }
}
