:root {
  color-scheme: dark;
  --bg: #050605;
  --bg-elevated: #121512;
  --bg-sunken: #030403;
  --text: #f4f7f4;
  --muted: #9aa39a;
  --accent: #c8ff00;
  --accent-pressed: #a8d900;
  --accent-muted: rgba(200, 255, 0, 0.14);
  --border: #2c332c;
  --radius: 16px;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page-x: max(16px, env(safe-area-inset-left));
  --page-x-right: max(16px, env(safe-area-inset-right));
  --nav-h: 64px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
}

/* —— Buttons (mobile base) —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #0a0c0a;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost[aria-disabled='true'],
.btn-ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-lg {
  min-height: 52px;
  padding: 14px 22px;
  font-size: 1rem;
  width: 100%;
}

.label-short {
  display: inline;
}
.label-long {
  display: none;
}

/* —— Nav (mobile) —— */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--nav-h);
  padding:
    max(10px, env(safe-area-inset-top))
    var(--page-x-right)
    10px
    var(--page-x);
  background: rgba(5, 6, 5, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
}

.nav-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1rem;
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.nav .btn {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.84rem;
}

/* —— Hero (mobile) —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding:
    calc(var(--nav-h) + env(safe-area-inset-top) + 24px)
    var(--page-x)
    max(28px, env(safe-area-inset-bottom))
    var(--page-x);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(5, 6, 5, 0.45) 0%,
      rgba(5, 6, 5, 0.5) 35%,
      rgba(5, 6, 5, 0.97) 100%
    ),
    radial-gradient(ellipse at 70% 15%, rgba(200, 255, 0, 0.1), transparent 48%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
}

.hero-logo {
  width: min(148px, 42vw);
  height: auto;
  margin-bottom: 18px;
  opacity: 0;
  animation: riseIn 0.8s var(--ease) 0.08s forwards;
  filter: drop-shadow(0 8px 28px rgba(200, 255, 0, 0.16));
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 7.2vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  opacity: 0;
  animation: riseIn 0.8s var(--ease) 0.18s forwards;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 34rem;
  opacity: 0;
  animation: riseIn 0.8s var(--ease) 0.28s forwards;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  opacity: 0;
  animation: riseIn 0.8s var(--ease) 0.38s forwards;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Sections —— */
.section {
  padding: 56px var(--page-x);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 10px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  max-width: none;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 40rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Coaching —— */
.coaching {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(200, 255, 0, 0.08), transparent 45%),
    var(--bg-sunken);
  border-block: 1px solid var(--border);
}

.coaching-grid {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.coaching-visual {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  position: relative;
  background: var(--bg-elevated);
}

.coaching-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coaching-copy p {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 0.98rem;
}

.coaching-copy strong {
  color: var(--text);
  font-weight: 700;
}

/* —— App showcase —— */
.showcase-head {
  margin-bottom: 24px;
}

.showcase-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  margin-inline: calc(-1 * var(--page-x));
  padding: 4px var(--page-x) 16px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--page-x);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.showcase-track::-webkit-scrollbar {
  display: none;
}

.phone {
  flex: 0 0 min(78vw, 280px);
  scroll-snap-align: start;
}

.phone-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.phone-frame img {
  width: 100%;
  height: auto;
}

.phone figcaption {
  margin-top: 12px;
  padding-inline: 2px;
}

.phone figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 2px;
}

.phone figcaption span {
  color: var(--muted);
  font-size: 0.88rem;
}

.store-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.store-row .btn {
  width: 100%;
}

/* —— Steps —— */
.steps {
  background: var(--bg-elevated);
}

.steps-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.step {
  padding: 0;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 6px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Apply —— */
.apply {
  position: relative;
  overflow: hidden;
  padding-bottom: max(56px, env(safe-area-inset-bottom));
}

.apply::before {
  content: '';
  position: absolute;
  inset: auto -30% -30% 20%;
  height: 50%;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.1), transparent 65%);
  pointer-events: none;
}

.apply-layout {
  position: relative;
  display: grid;
  gap: 28px;
}

.form {
  display: grid;
  gap: 12px;
}

.field label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-sunken);
  color: var(--text);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px; /* avoid iOS zoom */
  outline: none;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form .btn {
  width: 100%;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* —— Footer —— */
.footer {
  padding:
    32px var(--page-x)
    max(40px, calc(24px + env(safe-area-inset-bottom)));
  border-top: 1px solid var(--border);
  background: var(--bg-sunken);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-copy {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ========== Tablet+ ========== */
@media (min-width: 600px) {
  :root {
    --page-x: max(24px, env(safe-area-inset-left));
    --page-x-right: max(24px, env(safe-area-inset-right));
    --radius: 18px;
  }

  .label-short {
    display: none;
  }
  .label-long {
    display: inline;
  }

  .nav {
    padding-top: max(14px, env(safe-area-inset-top));
    padding-bottom: 14px;
    background: linear-gradient(to bottom, rgba(5, 6, 5, 0.92), rgba(5, 6, 5, 0));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
  }

  .nav-brand img {
    width: 36px;
    height: 36px;
  }

  .nav .btn {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.88rem;
  }

  .hero {
    padding-bottom: 48px;
  }

  .hero-logo {
    width: min(180px, 36vw);
    margin-bottom: 22px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 4.5vw, 2.8rem);
  }

  .hero-lead {
    font-size: 1.05rem;
    margin-bottom: 26px;
  }

  .hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
  }

  .hero-ctas .btn-lg {
    width: auto;
  }

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

  .btn-primary:hover {
    background: var(--accent-pressed);
  }

  .btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  .section {
    padding: 72px var(--page-x);
  }

  .section h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.35rem);
    max-width: 18ch;
  }

  .section-lead {
    font-size: 1.05rem;
  }

  .coaching-visual {
    aspect-ratio: 4 / 3;
    max-height: 420px;
  }

  .showcase-track {
    gap: 18px;
  }

  .phone {
    flex-basis: min(240px, 42vw);
  }

  .store-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .store-row .btn {
    width: auto;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }

  .footer-links a {
    min-height: auto;
  }
}

/* ========== Desktop ========== */
@media (min-width: 800px) {
  :root {
    --page-x: max(40px, env(safe-area-inset-left));
    --page-x-right: max(40px, env(safe-area-inset-right));
  }

  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: clamp(96px, 14vh, 140px);
    padding-bottom: clamp(40px, 8vh, 72px);
  }

  .hero-bg img {
    transform: scale(1.04);
    animation: heroDrift 28s var(--ease) infinite alternate;
  }

  .hero-logo {
    width: min(220px, 28vw);
    margin-bottom: 28px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
  }

  .hero-lead {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  }

  .section {
    padding: clamp(80px, 10vh, 112px) var(--page-x);
  }

  .coaching-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 28px;
    margin-top: 40px;
  }

  .coaching-visual {
    aspect-ratio: 4 / 5;
    max-height: 520px;
  }

  .coaching-copy p {
    font-size: 1.05rem;
  }

  .phone {
    flex-basis: 260px;
    animation: phoneFloat 6s ease-in-out infinite;
  }

  .phone:nth-child(2) {
    animation-delay: 0.6s;
  }
  .phone:nth-child(3) {
    animation-delay: 1.2s;
  }
  .phone:nth-child(4) {
    animation-delay: 1.8s;
  }

  .steps-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
  }

  .step {
    border-top: none;
    padding-top: 0;
  }

  .step-num {
    font-size: 2.5rem;
  }
}

@media (min-width: 880px) {
  .apply-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 40px;
  }

  .form .btn {
    width: auto;
    justify-self: start;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
