:root {
  --bg: #0e0e10;
  --surface: #161618;
  --elevated: #1e1e22;
  --line: #34343a;
  --line-soft: rgba(52, 52, 58, 0.7);
  --text: #f4f0e8;
  --soft: #a8a29a;
  --mute: #6e6a64;
  --accent: #ff7a00;
  --accent-soft: #ffb326;
  --on: #120c06;
  --cyan: #ffc857;
  --violet: #ff8f2a;
  --ok: #34d399;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --font: "Be Vietnam Pro", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

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

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 480px at 85% -5%, rgba(255, 122, 0, 0.14), transparent 58%),
    radial-gradient(720px 400px at -5% 35%, rgba(255, 179, 38, 0.07), transparent 55%),
    radial-gradient(600px 320px at 50% 100%, rgba(212, 85, 0, 0.06), transparent 50%),
    var(--bg);
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 15, 25, 0.78);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 7px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.05rem;
}

.menu > a:not(.btn) {
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 500;
}

.menu > a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--soft);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.52rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on);
  font-weight: 650;
  font-size: 0.88rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

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

.btn-lg {
  min-width: 158px;
  padding: 0.8rem 1.25rem;
  font-size: 0.95rem;
}

/* —— Hero —— */
.hero {
  padding: 3.5rem 0 4.5rem;
  min-height: calc(100svh - 64px);
  display: grid;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem 3.5rem;
  align-items: center;
}

.kicker {
  margin: 0 0 1rem;
  color: var(--mute);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5.2vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.logo-word {
  display: block;
  margin-bottom: 0.15rem;
  background: linear-gradient(120deg, var(--violet), var(--accent) 55%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 1.15rem 0 0;
  max-width: 32rem;
  color: var(--soft);
  font-size: 1.08rem;
  line-height: 1.65;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: 1.85rem;
}

.text-link {
  color: var(--soft);
  font-weight: 500;
  border-bottom: 1px solid rgba(155, 167, 196, 0.35);
}

.text-link:hover {
  color: var(--text);
}

.hero-art {
  justify-self: end;
  width: min(100%, 460px);
}

.device {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--elevated);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 122, 0, 0.08);
}

.device-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}

.dots {
  display: flex;
  gap: 0.35rem;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b4a6e;
}

.dots i:nth-child(1) {
  background: #ff5f57;
}
.dots i:nth-child(2) {
  background: #febc2e;
}
.dots i:nth-child(3) {
  background: #28c840;
}

.device-bar em {
  font-style: normal;
  text-align: center;
  color: var(--mute);
  font-size: 0.74rem;
}

.device-quota {
  height: 3px;
  background: #1a2234;
}

.device-quota b {
  display: block;
  height: 100%;
  background: var(--accent);
}

.device-body {
  padding: 0.95rem;
  display: grid;
  gap: 0.75rem;
}

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.2rem;
  padding: 3px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line-soft);
}

.seg b {
  margin: 0;
  text-align: center;
  padding: 0.48rem 0.2rem;
  border-radius: 8px;
  color: var(--mute);
  font-size: 0.8rem;
  font-weight: 650;
}

.seg .active {
  background: var(--accent);
  color: var(--on);
}

.seg.compact {
  margin-bottom: 0.15rem;
}

.block {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: rgba(11, 15, 25, 0.45);
}

.block-h {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.chip {
  color: var(--accent);
  font-size: 0.75rem;
}

.block p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.primary {
  text-align: center;
  padding: 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on);
  font-weight: 650;
}

/* —— Topic sections —— */
.topic {
  padding: 5rem 0;
  border-top: 1px solid var(--line-soft);
}

.topic-alt {
  background: rgba(16, 22, 36, 0.65);
}

.topic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.75rem 3.5rem;
  align-items: center;
}

.topic-grid.flip .topic-copy {
  order: 2;
}

.topic-grid.flip .topic-visual {
  order: 1;
}

.topic-label {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topic-copy h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.topic-copy > p {
  margin: 0.9rem 0 0;
  max-width: 28rem;
  color: var(--soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  background: var(--elevated);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 0.75rem;
}

.panel-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--soft);
}

.drop {
  display: grid;
  place-items: center;
  gap: 0.25rem;
  min-height: 110px;
  border: 1px dashed rgba(255, 122, 0, 0.4);
  border-radius: 12px;
  background: rgba(255, 122, 0, 0.06);
  color: var(--accent);
  font-weight: 600;
}

.drop small {
  color: var(--mute);
  font-weight: 500;
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.file-list li {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: rgba(11, 15, 25, 0.5);
  border: 1px solid var(--line-soft);
  color: var(--soft);
  font-size: 0.88rem;
}

.answer {
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.28);
}

.answer-label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ok);
  font-size: 0.75rem;
  font-weight: 650;
}

.answer p {
  margin: 0;
  font-size: 0.9rem;
}

.chat {
  gap: 0.65rem;
}

.bubble {
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line-soft);
}

.bubble span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--mute);
}

.bubble p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.bubble.coach {
  background: rgba(255, 143, 42, 0.08);
  border-color: rgba(255, 143, 42, 0.28);
}

.bubble.coach span {
  color: var(--violet);
}

.bubble.you {
  margin-left: 1.5rem;
  background: rgba(255, 122, 0, 0.1);
  border-color: rgba(255, 122, 0, 0.28);
}

.bubble.you span {
  color: var(--accent);
}

.bubble.tight {
  margin-top: 0.15rem;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 650;
}

.cancel {
  color: #fb7185;
  font-weight: 600;
  font-size: 0.82rem;
}

.progress-bar {
  height: 4px;
  border-radius: 999px;
  background: #1a2234;
  overflow: hidden;
}

.progress-bar b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--accent), var(--cyan));
}

.choice {
  width: fit-content;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 122, 0, 0.16);
  border: 1px solid rgba(255, 122, 0, 0.35);
  color: var(--accent-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

/* —— Download slider —— */
.download {
  padding: 5rem 0 5.5rem;
  border-top: 1px solid var(--line-soft);
}

.download-head {
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.download-head h2 {
  margin: 0.35rem 0 0.55rem;
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  letter-spacing: -0.035em;
}

.download-head p {
  margin: 0;
  color: var(--soft);
  font-size: 1.05rem;
}

.dl {
  position: relative;
  padding: 1.15rem 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(165deg, rgba(255, 122, 0, 0.07), transparent 42%),
    rgba(22, 22, 26, 0.88);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 28px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.dl-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  padding: 0.3rem;
  margin-bottom: 1.15rem;
  border-radius: 999px;
  background: rgba(14, 14, 16, 0.72);
  border: 1px solid var(--line-soft);
}

.dl-tab-glow {
  position: absolute;
  top: 0.3rem;
  left: 0;
  bottom: 0.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 143, 42, 0.95), rgba(255, 122, 0, 0.92));
  box-shadow: 0 8px 22px rgba(255, 122, 0, 0.28);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.dl-tab {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--soft);
  font-weight: 650;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  padding: 0.72rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.dl-tab.is-active {
  color: var(--on);
}

.dl-tab:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.dl-stage {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
}

.dl-track {
  position: relative;
}

.dl-slide {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 1.5rem 1.75rem;
  align-items: center;
  padding: 0.35rem 0.35rem 0.15rem;
  opacity: 0;
  transform: translateX(18px) scale(0.985);
  pointer-events: none;
  position: absolute;
  inset: 0;
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.dl-slide.is-active {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 1;
}

.dl-copy h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.03em;
}

.dl-copy p {
  margin: 0 0 1.35rem;
  color: var(--soft);
  font-size: 1.02rem;
  max-width: 28rem;
}

.dl-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: var(--elevated);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.dl-shot img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.dl-shot-phone {
  max-width: 250px;
  margin-inline: auto;
  border-radius: 28px;
}

.dl-slide-phone {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.75fr);
}

.dl-chrome {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.dl-nav {
  appearance: none;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(14, 14, 16, 0.7);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dl-nav:hover {
  border-color: rgba(255, 122, 0, 0.5);
  background: rgba(255, 122, 0, 0.1);
}

.dl-dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.dl-dot {
  appearance: none;
  width: 0.48rem;
  height: 0.48rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(168, 162, 154, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.dl-dot.is-active {
  width: 1.35rem;
  background: linear-gradient(90deg, var(--violet), var(--accent));
}

@media (prefers-reduced-motion: reduce) {
  .dl-tab-glow,
  .dl-slide,
  .dl-dot {
    transition: none;
  }
}

/* —— Footer —— */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 3.2rem 0 2rem;
  background: rgba(10, 13, 22, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand p {
  margin: 0.85rem 0 0;
  max-width: 16rem;
  color: var(--mute);
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-heading {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 650;
}

.footer-grid nav {
  display: grid;
  gap: 0.45rem;
}

.footer-grid nav a {
  color: var(--mute);
  font-size: 0.88rem;
  width: fit-content;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
  padding-top: 1.25rem;
  color: var(--mute);
  font-size: 0.84rem;
}

.footer-bottom p {
  margin: 0;
}

/* —— Motion —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 920px) {
  .hero-grid,
  .topic-grid,
  .dl-slide,
  .dl-slide-phone {
    grid-template-columns: 1fr;
  }

  .dl {
    padding: 0.9rem;
  }

  .dl-tabs {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 16px;
  }

  .dl-tab-glow {
    border-radius: 12px;
  }

  .dl-stage {
    min-height: 0;
  }

  .dl-shot-phone {
    max-width: 200px;
  }

  .hero {
    min-height: 0;
    padding-top: 2.5rem;
  }

  .hero-art {
    justify-self: center;
  }

  .topic-grid.flip .topic-copy,
  .topic-grid.flip .topic-visual {
    order: initial;
  }

  .topic {
    padding: 3.5rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .menu {
    display: none;
    position: absolute;
    inset: calc(100% + 0.45rem) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--elevated);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }

  .menu.open {
    display: flex;
  }

  .menu > a:not(.btn) {
    padding: 0.5rem 0.35rem;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
