:root {
  --ink: #ecf5e9;
  --muted: #9fb09e;
  --night: #07110c;
  --night-soft: #0d1d14;
  --lime: #7ee34e;
  --lime-bright: #a8ff78;
  --blue: #79a9ff;
  --orange: #ff9852;
  --line: rgba(222, 255, 212, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -20%, #173724 0%, transparent 40%),
    var(--night);
  font-family: Manrope, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 42vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.12;
  pointer-events: none;
}

.glow-one {
  top: 20vh;
  left: -20vw;
  background: var(--lime);
}

.glow-two {
  right: -20vw;
  bottom: 12vh;
  background: var(--blue);
}

.story-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  max-width: 100vw;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 17, 12, 0.72);
  backdrop-filter: blur(18px);
}

.story-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: Sora, Manrope, sans-serif;
  font-weight: 800;
}

.brand-orbit {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(168, 255, 120, 0.38);
  border-radius: 50%;
  background: rgba(126, 227, 78, 0.08);
  box-shadow: inset 0 0 18px rgba(126, 227, 78, 0.12);
}

.brand-orbit span {
  font-size: 13px;
  color: var(--lime-bright);
}

.header-link {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c8d7c5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.story-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(222, 255, 212, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.language-options {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.language-switch button {
  min-width: 32px;
  height: 29px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  color: #8fa08e;
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.language-options button.is-active {
  color: #102714;
  background: var(--lime);
}

.language-trigger {
  display: none;
}

.mobile-label {
  display: none;
}

.story-hero {
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.75fr);
  align-items: center;
  gap: 8vw;
  padding: 130px clamp(24px, 8vw, 130px) 90px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(158, 255, 121, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 255, 121, 0.08) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  max-width: 770px;
  overflow: hidden;
}

.hero-copy > p:not(.overline) {
  overflow-wrap: break-word;
}

.overline,
.step-label {
  margin: 0 0 17px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Sora, Manrope, sans-serif;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(56px, 8.5vw, 126px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.hero-copy > p:not(.overline) {
  max-width: 660px;
  margin: 29px 0 0;
  color: #b7c6b5;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.story-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 54px;
  margin-top: 31px;
  padding: 0 21px;
  border: 1px solid rgba(168, 255, 120, 0.34);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(126, 227, 78, 0.08);
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}

.story-cta:hover {
  transform: translateY(-2px);
  background: rgba(126, 227, 78, 0.15);
}

.story-cta .arrow {
  color: var(--lime);
  animation: arrow-bob 1.5s ease-in-out infinite;
}

.hero-orbit {
  position: relative;
  width: min(35vw, 480px);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(168, 255, 120, 0.18);
  border-radius: 50%;
}

.orbit-a {
  inset: 0;
  animation: orbit-spin 18s linear infinite;
}

.orbit-a::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 12%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 30px var(--lime);
}

.orbit-b {
  inset: 13%;
  border-style: dashed;
  animation: orbit-spin 13s linear infinite reverse;
}

.hero-radar {
  position: relative;
  width: 54%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(168, 255, 120, 0.35);
  border-radius: 50%;
  color: var(--lime-bright);
  background:
    repeating-radial-gradient(circle, transparent 0 22%, rgba(126, 227, 78, 0.1) 23% 24%),
    #0a1b11;
  box-shadow: 0 0 80px rgba(126, 227, 78, 0.18);
  font-family: Sora, sans-serif;
  font-size: clamp(26px, 4vw, 58px);
}

.radar-sweep {
  position: absolute;
  inset: -2%;
  background: conic-gradient(from 0deg, transparent 0 74%, rgba(126, 227, 78, 0.36) 92%, transparent);
  animation: orbit-spin 3.2s linear infinite;
}

.radar-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime-bright);
  box-shadow: 0 0 14px var(--lime);
}

.dot-a {
  top: 28%;
  left: 61%;
}

.dot-b {
  top: 63%;
  left: 32%;
}

.dot-c {
  top: 54%;
  right: 20%;
}

.hero-radar strong {
  position: relative;
  z-index: 2;
}

.scroll-note {
  position: absolute;
  bottom: 28px;
  left: 50%;
  margin: 0;
  color: #718171;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.journey {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(60px, 10vw, 170px);
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0;
}

.journey-visual {
  position: sticky;
  top: 104px;
  height: calc(100svh - 130px);
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-wrap {
  position: relative;
  transition: opacity 300ms ease;
}

.phone-glow {
  position: absolute;
  inset: 15% -28%;
  border-radius: 50%;
  background: rgba(126, 227, 78, 0.16);
  filter: blur(70px);
}

.phone {
  position: relative;
  width: min(340px, 38vw);
  aspect-ratio: 0.493;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 48px;
  background: linear-gradient(150deg, #26352c, #07100b 35%, #1a2a20);
  box-shadow:
    0 42px 90px rgba(0, 0, 0, 0.48),
    inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.phone-speaker {
  position: absolute;
  z-index: 10;
  top: 19px;
  left: 50%;
  width: 32%;
  height: 24px;
  border-radius: 999px;
  background: #050a07;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 39px;
  background: #101712;
}

.app-status {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  width: 100%;
  height: 53px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 20px 11px;
  color: #dce7da;
  background: linear-gradient(to bottom, rgba(4, 9, 6, 0.86), transparent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.app-scene {
  position: absolute;
  inset: 0;
  padding: 58px 14px 18px;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.app-scene.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.camera-view {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.camera-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-view::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(3, 8, 5, 0.1), transparent 50%, rgba(3, 8, 5, 0.78));
}

.scan-line {
  position: absolute;
  z-index: 2;
  top: 23%;
  left: 11%;
  width: 78%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime-bright), transparent);
  box-shadow: 0 0 14px var(--lime);
  animation: scan 2.3s ease-in-out infinite;
}

.scan-corner {
  position: absolute;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-color: var(--lime-bright);
  border-style: solid;
}

.corner-a {
  top: 19%;
  left: 9%;
  border-width: 2px 0 0 2px;
}

.corner-b {
  top: 19%;
  right: 9%;
  border-width: 2px 2px 0 0;
}

.corner-c {
  right: 9%;
  bottom: 27%;
  border-width: 0 2px 2px 0;
}

.corner-d {
  bottom: 27%;
  left: 9%;
  border-width: 0 0 2px 2px;
}

.camera-label {
  position: absolute;
  z-index: 3;
  bottom: 20%;
  left: 50%;
  width: max-content;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: white;
  background: rgba(4, 10, 6, 0.54);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
  transform: translateX(-50%);
}

.capture-bar {
  position: absolute;
  z-index: 4;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.gallery-dot,
.text-dot {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.gallery-dot::after {
  content: "";
  width: 16px;
  height: 13px;
  border: 1px solid white;
  border-radius: 3px;
  background: linear-gradient(145deg, transparent 45%, rgba(126, 227, 78, 0.9) 46%);
}

.shutter {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
}

.shutter span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.analysis-preview {
  position: relative;
  height: 53%;
  overflow: hidden;
  border-radius: 22px;
}

.analysis-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) brightness(0.68);
}

.analysis-radar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 108px;
  height: 108px;
  border: 1px solid rgba(168, 255, 120, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.analysis-radar::before,
.analysis-radar::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(168, 255, 120, 0.35);
  border-radius: 50%;
}

.analysis-radar::after {
  inset: -1px;
  border-color: transparent transparent var(--lime) transparent;
  animation: orbit-spin 1.4s linear infinite;
}

.analysis-radar span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}

.analysis-radar span:nth-child(1) {
  top: 23%;
  left: 58%;
}

.analysis-radar span:nth-child(2) {
  top: 60%;
  left: 28%;
}

.analysis-radar span:nth-child(3) {
  top: 65%;
  right: 20%;
}

.thinking-copy {
  padding: 22px 5px 0;
}

.thinking-copy p,
.thinking-copy strong {
  display: block;
  margin: 0;
}

.thinking-copy p {
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.thinking-copy strong {
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.35;
}

.analysis-lines {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.analysis-lines span {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #263b2c 10%, #4a6951 50%, #263b2c 90%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}

.analysis-lines span:nth-child(2) {
  width: 76%;
}

.analysis-lines span:nth-child(3) {
  width: 54%;
}

.result-image {
  position: relative;
  height: 31%;
  overflow: hidden;
  border-radius: 18px;
}

.result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-image span {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #14301b;
  background: var(--lime-bright);
  font-size: 9px;
  font-weight: 800;
}

.result-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 2px 12px;
}

.result-title small,
.result-title strong {
  display: block;
}

.result-title small,
.macro-grid small,
.macro-grid span {
  color: #859687;
  font-size: 9px;
}

.result-title strong {
  margin-top: 3px;
  font-size: 18px;
}

.check-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #102714;
  background: var(--lime);
  font-weight: 900;
}

.macro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.macro-grid div {
  padding: 10px;
  border: 1px solid #2b3a2e;
  border-radius: 13px;
  background: #182019;
}

.macro-grid small {
  display: block;
}

.macro-grid strong {
  display: inline-block;
  margin: 4px 3px 0 0;
  color: #e8f3e5;
  font-size: 20px;
}

.nutrient-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 10px;
}

.nutrient-row span {
  flex: 1;
  padding: 8px 2px;
  border-radius: 9px;
  color: #a4b2a3;
  background: #1a251d;
  text-align: center;
  font-size: 8px;
}

.coach-card {
  margin-top: 8px;
  padding: 17px;
  border: 1px solid rgba(126, 227, 78, 0.26);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 5%, rgba(126, 227, 78, 0.15), transparent 34%),
    #15291b;
}

.coach-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coach-head span,
.coach-head small {
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
}

.coach-head span {
  color: var(--lime);
  background: rgba(126, 227, 78, 0.1);
}

.coach-head small {
  color: #b6c8b4;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.coach-card h3 {
  margin: 15px 0 8px;
  font-size: 23px;
}

.coach-card > p {
  margin: 0;
  color: #9daf9c;
  font-size: 11px;
  line-height: 1.5;
}

.coach-balance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 15px;
}

.coach-balance div {
  padding: 10px;
  border-radius: 12px;
  color: #14301b;
  background: #e4f3df;
}

.coach-balance small,
.coach-balance strong {
  display: block;
}

.coach-balance small {
  opacity: 0.58;
  font-size: 8px;
}

.coach-balance strong {
  margin-top: 3px;
  color: #55a939;
  font-size: 15px;
}

.coach-card button {
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  border: 0;
  border-radius: 12px;
  color: #102714;
  background: var(--lime);
  font: inherit;
  font-size: 10px;
  font-weight: 900;
}

.wellbeing-strip,
.report-card,
.recipe-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 11px;
  padding: 12px;
  border: 1px solid #2c3b2f;
  border-radius: 15px;
  background: #171f19;
}

.energy-battery {
  width: 22px;
  height: 37px;
  display: flex;
  align-items: flex-end;
  padding: 3px;
  border: 2px solid #829083;
  border-radius: 5px;
}

.energy-battery::before {
  content: "";
  position: absolute;
}

.energy-battery i {
  width: 100%;
  height: 76%;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(126, 227, 78, 0.35);
  animation: battery-fill 2.1s ease-in-out infinite alternate;
}

.wellbeing-strip small,
.wellbeing-strip strong,
.report-card small,
.report-card strong,
.recipe-card small,
.recipe-card strong {
  display: block;
}

.wellbeing-strip small,
.report-card small,
.recipe-card small {
  color: #819083;
  font-size: 8px;
}

.wellbeing-strip strong,
.report-card strong,
.recipe-card strong {
  margin-top: 3px;
  font-size: 11px;
}

.progress-head {
  padding: 11px 4px 14px;
}

.progress-head small,
.progress-head strong {
  display: block;
}

.progress-head small {
  color: var(--lime);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.progress-head strong {
  margin-top: 4px;
  font-size: 19px;
}

.chart {
  position: relative;
  height: 190px;
  overflow: hidden;
  border: 1px solid #2a392d;
  border-radius: 19px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #121a14;
  background-size: 100% 25%, 25% 100%;
}

.chart-line {
  position: absolute;
  top: 52%;
  left: 7%;
  width: 80%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--lime));
  box-shadow: 0 0 15px rgba(126, 227, 78, 0.3);
  transform: rotate(-27deg);
}

.chart i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 9px;
  height: 9px;
  border: 2px solid #112016;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(126, 227, 78, 0.5);
}

.report-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #122918;
  background: var(--lime);
  font-size: 9px;
  font-weight: 900;
}

.report-arrow {
  margin-left: auto;
  color: var(--lime);
  font-size: 19px;
}

.recipe-card img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
}

.step-meter {
  position: absolute;
  right: -26px;
  top: 50%;
  width: 3px;
  height: 42%;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-50%);
}

.meter-fill {
  display: block;
  width: 100%;
  height: 20%;
  border-radius: inherit;
  background: var(--lime);
  box-shadow: 0 0 15px var(--lime);
  transition: height 420ms ease;
}

.journey-steps {
  min-width: 0;
}

.story-step {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.26;
  transform: translateY(34px);
  transition: opacity 420ms ease, transform 520ms ease;
}

.story-step.is-active {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  display: block;
  margin-bottom: 28px;
  color: rgba(126, 227, 78, 0.38);
  font-family: Sora, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.story-step h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(39px, 5.3vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.story-step > p:not(.step-label) {
  max-width: 660px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.7;
}

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

.step-tags span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b8c7b5;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  font-weight: 700;
}

.finale {
  position: relative;
  min-height: 84svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 24px;
  text-align: center;
}

.finale h2 {
  max-width: 950px;
  margin: 0;
  font-size: clamp(44px, 7vw, 98px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.finale > p:not(.overline) {
  max-width: 620px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.finale-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.story-cta.primary {
  color: #0c2512;
  border-color: var(--lime);
  background: var(--lime);
}

.story-cta.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.finale-rings {
  position: absolute;
  z-index: -1;
  width: min(78vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
}

.finale-rings span {
  position: absolute;
  border: 1px solid rgba(126, 227, 78, 0.11);
  border-radius: 50%;
  animation: finale-pulse 5s ease-in-out infinite;
}

.finale-rings span:nth-child(1) {
  inset: 0;
}

.finale-rings span:nth-child(2) {
  inset: 15%;
  animation-delay: -1.6s;
}

.finale-rings span:nth-child(3) {
  inset: 30%;
  animation-delay: -3.2s;
}

.story-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(24px, 6vw, 90px);
  border-top: 1px solid var(--line);
  color: #748274;
  font-size: 13px;
}

.story-footer div {
  display: flex;
  gap: 20px;
}

.story-footer a {
  text-decoration: none;
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes arrow-bob {
  50% {
    transform: translateY(4px);
  }
}

@keyframes scan {
  0%,
  100% {
    top: 23%;
  }
  50% {
    top: 67%;
  }
}

@keyframes shimmer {
  to {
    background-position: -120% 0;
  }
}

@keyframes battery-fill {
  from {
    height: 42%;
  }
  to {
    height: 82%;
  }
}

@keyframes finale-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@media (max-width: 960px) {
  .story-hero {
    grid-template-columns: 1fr;
    padding-top: 145px;
  }

  .hero-orbit {
    position: absolute;
    right: -15vw;
    bottom: -3vw;
    width: 54vw;
    opacity: 0.48;
  }

  .journey {
    display: block;
  }

  .journey-visual {
    z-index: 5;
    top: 88px;
    height: 56svh;
    min-height: 470px;
    justify-content: flex-end;
    padding-right: 4vw;
    pointer-events: none;
  }

  .phone-wrap {
    opacity: 0.82;
  }

  .phone {
    width: min(260px, 48vw);
  }

  .step-meter {
    right: auto;
    left: 8px;
    height: 52%;
  }

  .story-step {
    min-height: 86svh;
    padding: 38svh 5vw 8vh 0;
  }

  .story-step h2,
  .story-step > p:not(.step-label),
  .step-tags {
    max-width: 56%;
  }
}

@media (max-width: 640px) {
  .story-header {
    min-height: 66px;
    padding: 10px 15px;
    overflow: hidden;
  }

  .story-brand {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 15px;
  }

  .brand-orbit {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
  }

  .header-link {
    flex: 0 0 auto;
    padding: 8px 11px;
    font-size: 12px;
  }

  .story-header-actions {
    gap: 5px;
  }

  .language-switch {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .language-trigger {
    width: 39px;
    height: 39px;
    display: grid;
    grid-template-columns: 14px 1fr;
    place-items: center;
    gap: 1px;
    padding: 0 4px;
    border: 1px solid rgba(126, 227, 78, 0.26);
    border-radius: 12px;
    color: var(--ink);
    background: rgba(14, 28, 19, 0.94);
    font-size: 8px;
  }

  .language-globe {
    color: var(--lime);
    font-size: 16px;
  }

  .language-options {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    min-width: 138px;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(222, 255, 212, 0.16);
    border-radius: 14px;
    background: rgba(10, 22, 14, 0.98);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
  }

  .language-switch.is-open .language-options {
    display: grid;
  }

  .language-options button {
    min-width: 52px;
    height: 32px;
    padding: 0 7px;
    font-size: 10px;
  }

  .desktop-label {
    display: none;
  }

  .mobile-label {
    display: inline;
  }

  .story-hero {
    display: block;
    width: 100vw;
    max-width: 100vw;
    min-height: 92svh;
    padding: 120px 20px 90px;
  }

  .hero-copy {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }

  .hero-copy > p:not(.overline) {
    width: 100%;
    max-width: 100%;
  }

  h1 {
    max-width: 100%;
    overflow-wrap: normal;
    font-size: clamp(48px, 14vw, 62px);
    letter-spacing: -0.065em;
  }

  .hero-orbit {
    right: -30vw;
    bottom: 2vh;
    width: 84vw;
  }

  .journey {
    width: calc(100% - 24px);
    padding-top: 40px;
  }

  .journey-visual {
    top: 74px;
    height: 55svh;
    min-height: 420px;
    justify-content: center;
    padding: 0;
  }

  .phone {
    width: min(245px, 66vw);
    border-radius: 38px;
  }

  .phone-wrap {
    opacity: 0.64;
  }

  .phone-glow {
    opacity: 0.45;
  }

  .phone-screen {
    border-radius: 29px;
  }

  .phone-speaker {
    top: 17px;
    height: 20px;
  }

  .step-meter {
    display: none;
  }

  .story-step {
    min-height: 92svh;
    justify-content: flex-end;
    padding: 56svh 8px 9vh;
    text-align: center;
  }

  .story-step h2,
  .story-step > p:not(.step-label),
  .step-tags {
    max-width: none;
  }

  .story-step h2 {
    font-size: clamp(34px, 10vw, 52px);
  }

  .step-number {
    display: none;
  }

  .step-label {
    margin-bottom: 11px;
  }

  .step-tags {
    justify-content: center;
  }

  .finale {
    min-height: 78svh;
  }

  .story-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --ink: #102033;
    --muted: #52677a;
    --night: #eef5ef;
    --night-soft: #f8fbf7;
    --lime: #43b93b;
    --lime-bright: #77dd50;
    --line: rgba(16, 32, 51, 0.13);
  }

  body {
    background:
      radial-gradient(circle at 50% -20%, rgba(84, 203, 92, 0.2) 0%, transparent 40%),
      #eef5ef;
  }

  .story-header {
    border-bottom-color: rgba(16, 32, 51, 0.08);
    background: rgba(246, 251, 247, 0.82);
  }

  .brand-orbit,
  .header-link,
  .language-switch {
    border-color: rgba(16, 32, 51, 0.13);
  }

  .header-link,
  .story-step > p:not(.step-label),
  .finale > p:not(.overline),
  .story-footer {
    color: #52677a;
  }

  .hero-copy > p:not(.overline) {
    color: #415a6c;
  }

  .story-cta,
  .step-tags span {
    color: #173824;
    border-color: rgba(67, 185, 59, 0.3);
    background: rgba(67, 185, 59, 0.09);
  }

  .scroll-note {
    color: #697e6d;
  }

  .story-footer {
    border-top-color: rgba(16, 32, 51, 0.1);
  }

  @media (max-width: 640px) {
    .language-trigger {
      color: #173824;
      border-color: rgba(67, 185, 59, 0.26);
      background: rgba(255, 255, 255, 0.96);
      box-shadow: 0 10px 26px rgba(15, 38, 60, 0.14);
    }

    .language-options {
      border-color: rgba(16, 32, 51, 0.12);
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 18px 38px rgba(15, 38, 60, 0.2);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
