:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --surface-soft: #eaf2ff;
  --text: #172033;
  --text-soft: #475569;
  --muted: #64748b;
  --border: #bfd3ef;
  --border-soft: rgba(37, 99, 235, 0.14);
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --teal: #0f766e;
  --teal-soft: #e5f5f2;
  --warning: #fff7ed;
  --warning-text: #9a3412;
  --shadow: 0 18px 46px rgba(15, 23, 42, 0.10);
  --top-nav-height: 72px;
  --bottom-nav-height: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a {
  color: inherit;
}

.topnav,
.bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  border-color: var(--border-soft);
  backdrop-filter: blur(14px);
}

.topnav {
  top: 0;
  min-height: var(--top-nav-height);
  border-bottom: 1px solid var(--border-soft);
}

.bottomnav {
  bottom: 0;
  min-height: var(--bottom-nav-height);
  border-top: 1px solid var(--border-soft);
}

.nav-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  min-height: inherit;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blue-dark);
  background: var(--surface-soft);
}

main {
  padding: calc(var(--top-nav-height) + 22px) 18px calc(var(--bottom-nav-height) + 34px);
}

.hero,
.section-grid,
.showcase,
.download-card,
.trust-section,
.status-band {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.hero {
  min-height: calc(100dvh - var(--top-nav-height) - var(--bottom-nav-height) - 42px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.84fr);
  align-items: center;
  gap: 34px;
  padding-bottom: 24px;
}

.hero-copy {
  min-width: 0;
}

.pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.pill {
  padding: 8px 12px;
  color: var(--warning-text);
  background: var(--warning);
  border: 1px solid rgba(234, 88, 12, 0.18);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 16px 0 12px;
  color: var(--text);
  font-size: clamp(2.35rem, 7vw, 5.3rem);
  line-height: 0.95;
}

h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.05;
}

h3 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 1.05rem;
}

.lede,
.hero-copy p,
.feature-card p,
.showcase p,
.download-card p,
.platform p,
.trust-section p,
.status-band span {
  color: var(--text-soft);
  line-height: 1.6;
}

.lede {
  max-width: 680px;
  margin: 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 10px;
  margin-top: 22px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px solid transparent;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
}

.btn.primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.btn.primary:hover {
  background: var(--blue-dark);
}

.btn.secondary {
  background: var(--surface);
  color: var(--teal);
  border-color: rgba(15, 118, 110, 0.35);
}

.btn.secondary:hover {
  background: var(--teal-soft);
}

.phone-stage {
  min-height: 540px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-stage::before {
  content: "";
  position: absolute;
  inset: 12% 0 9% 8%;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(15, 118, 110, 0.15));
}

.phone {
  position: relative;
  width: min(250px, 46vw);
  border-radius: 28px;
  border: 8px solid #172033;
  background: #172033;
  box-shadow: var(--shadow);
}

.phone-main {
  z-index: 2;
  transform: rotate(1deg);
}

.phone-side {
  position: absolute;
  z-index: 1;
  right: 5%;
  width: min(205px, 38vw);
  opacity: 0.92;
  transform: translateY(28px) rotate(7deg);
}

.status-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 2px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: var(--teal-soft);
}

.status-band strong {
  display: block;
  margin-bottom: 4px;
  color: var(--teal);
}

.status-band a {
  white-space: nowrap;
  color: var(--teal);
  font-weight: 900;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.feature-card,
.showcase,
.download-card,
.trust-section {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.feature-card {
  padding: 18px;
}

.feature-coach {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #ffffff, #edf7f5);
}

.feature-coach img {
  width: 130px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(15, 118, 110, 0.18);
}

.showcase {
  margin-top: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 22px;
  align-items: center;
}

.showcase-copy {
  min-width: 0;
}

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.screenshot-row img {
  width: 100%;
  border-radius: 18px;
  border: 5px solid #172033;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
  background: #172033;
}

.download-card {
  margin-top: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 22px;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.platform {
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: #fbfdff;
}

.platform .btn {
  width: 100%;
  margin-top: 6px;
}

.qr {
  display: block;
  width: 148px;
  height: 148px;
  margin: 14px auto 7px;
  padding: 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
}

small {
  display: block;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.trust-section {
  margin-top: 18px;
  padding: 16px 18px;
  background: #fff;
}

.trust-section p {
  margin: 0;
  font-size: 0.95rem;
}

.copyright {
  color: var(--muted);
  font-weight: 900;
}

.footer-brand,
.footer-socials {
  display: inline-flex;
  align-items: center;
}

.footer-brand {
  gap: 12px;
  flex-wrap: wrap;
}

.footer-socials {
  gap: 8px;
}

.social-icon {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.social-icon:hover {
  transform: translateY(-1px);
  background: var(--surface-soft);
}

.social-icon.youtube {
  color: #dc2626;
}

.social-icon.youtube::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
}

.social-icon.tiktok {
  color: #111827;
}

.social-icon.tiktok::before {
  content: "";
  width: 9px;
  height: 16px;
  border-left: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  border-radius: 0 0 0 8px;
}

.social-icon.tiktok::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 8px;
  width: 9px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

@media (max-width: 860px) {
  :root {
    --top-nav-height: 86px;
    --bottom-nav-height: 84px;
  }

  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .bottomnav .nav-inner {
    align-items: center;
  }

  .hero,
  .showcase,
  .download-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .phone-stage {
    min-height: 430px;
  }

  .section-grid,
  .platforms {
    grid-template-columns: 1fr;
  }

  .feature-coach {
    grid-column: span 1;
  }
}

@media (max-width: 620px) {
  main {
    padding-left: 12px;
    padding-right: 12px;
  }

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

  .phone-stage {
    min-height: 370px;
  }

  .phone {
    width: min(210px, 62vw);
  }

  .phone-side {
    right: 0;
    width: min(168px, 48vw);
  }

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

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

  .feature-coach img {
    width: 112px;
  }

  .screenshot-row {
    grid-template-columns: 1fr;
  }

  .screenshot-row img {
    max-width: 260px;
    margin: 0 auto;
  }
}

.article-shell {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: calc(var(--top-nav-height) + 26px) 18px 42px;
}

.article-card {
  margin-top: 14px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.article-card h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.article-card p {
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

.article-card .note {
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.link-grid a {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
}

.link-grid a:hover {
  color: var(--blue-dark);
  background: var(--surface-soft);
}

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

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.social-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 900;
}

.page-hero {
  width: min(1120px, 100%);
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.58fr);
  align-items: center;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #edf7f5);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.page-hero img,
.feature-image {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
  object-fit: cover;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 0.98;
}

.page-hero p {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.62;
}

.content-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.content-card {
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.content-card p,
.content-card li {
  color: var(--text-soft);
  line-height: 1.58;
}

.content-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.wide-card {
  grid-column: span 2;
}

.full-card {
  grid-column: 1 / -1;
}

.site-main {
  padding: calc(var(--top-nav-height) + 22px) 18px calc(var(--bottom-nav-height) + 34px);
}

@media (max-width: 860px) {
  .page-hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-column: span 1;
  }
}
