:root {
  --bg: #07110b;
  --panel: rgba(18, 31, 23, 0.88);
  --panel-border: rgba(122, 255, 168, 0.14);
  --text: #f4f7f4;
  --muted: #a9b8ac;
  --accent: #6fe28e;
  --accent-strong: #4fb86d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(84, 199, 122, 0.14), transparent 38%),
    linear-gradient(180deg, #08130d 0%, #050907 100%);
  color: var(--text);
}

a {
  color: var(--accent);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.wordmark {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.store-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(122, 255, 168, 0.2);
  background: rgba(111, 226, 142, 0.12);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

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

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 390px);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.hero {
  margin-bottom: 20px;
  padding: 36px;
}

.hero-copy {
  padding: 36px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.metric {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.metric span {
  color: var(--muted);
  line-height: 1.6;
}

.phone-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(15, 26, 19, 0.95), rgba(7, 13, 9, 0.95));
  border: 1px solid rgba(122, 255, 168, 0.12);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--muted);
  padding: 2px 4px 10px;
}

.phone-status {
  color: var(--text);
  font-weight: 700;
}

.phone-card {
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.ring-card {
  text-align: center;
}

.ring-visual {
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  margin: 4px auto 12px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 292deg, rgba(255, 255, 255, 0.08) 292deg 360deg);
}

.ring-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: #0d1610;
  text-align: center;
}

.ring-inner strong {
  font-size: 2rem;
  line-height: 1;
}

.ring-inner span,
.ring-card p,
.compact-weight p {
  color: var(--muted);
}

.macro-card {
  display: grid;
  gap: 10px;
}

.macro-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
}

.bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.fill-green {
  background: linear-gradient(90deg, #4fb86d, #7fe29d);
}

.fill-amber {
  background: linear-gradient(90deg, #b28a27, #f0c456);
}

.fill-rose {
  background: linear-gradient(90deg, #945160, #d78397);
}

.compact-weight strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
}

.mini-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(111, 226, 142, 0.12);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.tab-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.73rem;
  text-align: center;
  color: var(--muted);
}

.tab-strip span {
  padding: 8px 4px;
  border-radius: 999px;
}

.tab-strip .active {
  background: rgba(111, 226, 142, 0.14);
  color: var(--accent);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(111, 226, 142, 0.12);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin: 18px 0 14px;
}

h2 {
  font-size: 1.2rem;
  margin-top: 0;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 720px;
}

.compact {
  max-width: 100%;
}

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

.download-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.tab-band {
  margin-bottom: 20px;
}

.tab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.tab-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-card h2 {
  margin-bottom: 8px;
}

.tab-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #0a120d;
  font-weight: 700;
  text-decoration: none;
}

.button-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.button-store {
  background: linear-gradient(135deg, #7fe29d, #56c879);
  color: #07110b;
  box-shadow: 0 10px 24px rgba(79, 184, 109, 0.22);
}

.download-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.download-band h2 {
  margin-bottom: 10px;
}

.download-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 260px;
}

.subtle-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.card-accent {
  background:
    linear-gradient(180deg, rgba(79, 184, 109, 0.14), rgba(18, 31, 23, 0.88)),
    var(--panel);
}

.coming-soon {
  text-align: center;
}

.notice {
  margin: 24px auto 0;
  max-width: 720px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(122, 255, 168, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  line-height: 1.7;
}

.compact-grid {
  margin-top: 24px;
}

.mini-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

ul {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.prose p,
.prose li {
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 980px);
    padding: 24px 0 40px;
  }

  .app-hero {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .card {
    padding: 22px;
    border-radius: 20px;
  }
}
}
