:root {
  --black: #000;
  --ink: #070707;
  --surface: #101010;
  --surface-2: #171717;
  --white: #fafafa;
  --muted: #b8b8b8;
  --subtle: #7d7d7d;
  --cream: #f3eee7;
  --cream-2: #ded0bf;
  --orange: #f07000;
  --yellow: #ffb71b;
  --brown: #ad5c05;
  --teal: #79e3d3;
  --green: #a8ff8d;
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 70% 4%, rgba(240, 112, 0, 0.16), transparent 28rem),
    linear-gradient(180deg, #000 0%, #080401 48%, #000 100%);
  color: var(--white);
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  padding: 0.7rem 1rem;
  font-weight: 700;
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
  will-change: transform;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: 360px;
  height: 360px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 112, 0, 0.13), transparent 62%);
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 260ms ease;
  mix-blend-mode: screen;
}

.ai-signal-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.54;
  mix-blend-mode: screen;
}

.ai-signal-field span {
  position: absolute;
  left: var(--signal-left);
  top: var(--signal-top);
  width: var(--signal-width);
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(121, 227, 211, 0.28), rgba(255, 183, 27, 0.18), transparent);
  opacity: 0;
  transform: rotate(var(--signal-rotate)) translate3d(-20%, 0, 0);
  animation: signalTrace var(--signal-duration) var(--ease) infinite;
  animation-delay: var(--signal-delay);
  will-change: transform, opacity;
}

@keyframes signalTrace {
  0%, 22% {
    opacity: 0;
    transform: rotate(var(--signal-rotate)) translate3d(-28%, 0, 0) scaleX(0.45);
  }
  36%, 58% {
    opacity: var(--signal-opacity);
  }
  100% {
    opacity: 0;
    transform: rotate(var(--signal-rotate)) translate3d(48%, 0, 0) scaleX(1);
  }
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: 64px;
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.2));
  transition: background 260ms var(--ease), border-color 260ms var(--ease);
}

.site-header.scrolled {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(22px) saturate(140%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1380px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 166px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 28px);
  color: rgba(250, 250, 250, 0.78);
  font-size: 0.88rem;
  font-weight: 520;
}

.nav-links a {
  position: relative;
  padding: 0.35rem 0;
}

.nav-links a:not(.nav-cta)::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease);
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.42rem 0.9rem !important;
  transition: border-color 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease);
}

.nav-cta::after {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.34rem;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  border-color: rgba(255, 183, 27, 0.38);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  transform: translateY(-1px);
}

.nav-cta:hover::after,
.nav-cta:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 15px;
  height: 1px;
  margin: 5px auto;
  background: var(--white);
  transition: transform 260ms var(--ease), opacity 260ms var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.chapter {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(86px, 9vw, 132px) var(--gutter);
}

.chapter::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 72% 16%, rgba(240, 112, 0, 0.12), transparent 34rem),
    linear-gradient(180deg, var(--section-top, #000), var(--section-bottom, #000));
}

.chapter::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}

[data-theme="dark"] {
  --section-top: #010100;
  --section-bottom: #080706;
}

[data-theme="warm"] {
  --section-top: #0f0702;
  --section-bottom: #1e0f04;
}

[data-theme="light"] {
  --section-top: #f1e8dc;
  --section-bottom: #ddd0c0;
  color: #0c0c0c;
  color-scheme: light;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  min-height: 100svh;
  gap: clamp(36px, 7vw, 96px);
  padding-top: 96px;
  padding-bottom: clamp(118px, 12vw, 178px);
  margin-bottom: clamp(-118px, -8vw, -72px);
}

.hero::before {
  background:
    radial-gradient(circle at 76% 42%, rgba(240, 112, 0, 0.2), transparent 30rem),
    radial-gradient(circle at 10% 84%, rgba(255, 183, 27, 0.08), transparent 22rem),
    linear-gradient(180deg, #000 0%, #030201 58%, #0f0702 100%);
}

.ambient,
.particle-field {
  position: absolute;
  pointer-events: none;
}

.ambient {
  z-index: -1;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.42;
  animation: drift 14s ease-in-out infinite alternate;
}

.ambient-one {
  right: 6vw;
  top: 18vh;
  width: 36vw;
  height: 36vw;
  background: radial-gradient(circle, rgba(240, 112, 0, 0.3), transparent 64%);
}

.ambient-two {
  left: 8vw;
  bottom: 8vh;
  width: 26vw;
  height: 26vw;
  background: radial-gradient(circle, rgba(255, 183, 27, 0.15), transparent 60%);
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(0.98); }
  to { transform: translate3d(2%, 2%, 0) scale(1.05); }
}

.particle-field {
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 183, 27, 0.48);
  animation: floatParticle var(--duration) linear infinite;
}

@keyframes floatParticle {
  from { transform: translate3d(0, 24px, 0); opacity: 0; }
  20%, 70% { opacity: 0.65; }
  to { transform: translate3d(var(--x), -80px, 0); opacity: 0; }
}

.hero-copy,
.section-heading,
.design-copy,
.feature-step {
  min-width: 0;
  max-width: 100%;
}

.hero-copy,
.hero-visual,
.scroll-cue {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.design-copy h2,
.feature-step h2,
.final-cta h2,
.story-card h2 {
  margin: 0;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(3.6rem, 6.8vw, 6.6rem);
}

.word-accent {
  background: linear-gradient(135deg, var(--yellow) 10%, var(--orange) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.word {
  display: inline-block;
  opacity: 0.08;
  filter: blur(7px);
  transform: translateY(18px) scale(0.99);
  animation: wordIn 520ms var(--ease) forwards;
  animation-delay: calc(var(--word-index) * 38ms + 80ms);
}

@keyframes wordIn {
  to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

.hero-subtitle,
.story-card p,
.section-heading p,
.design-copy p,
.feature-step p,
.final-cta p {
  max-width: 640px;
  color: rgba(250, 250, 250, 0.74);
  font-size: 1.08rem;
  line-height: 1.62;
}

.hero-subtitle {
  margin: 1.35rem 0 0;
}

.hero-subtitle span {
  display: block;
}

.hero-actions,
.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 183, 27, 0.46);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: #111;
  padding: 0 1.25rem;
  font-weight: 780;
  box-shadow: 0 18px 46px rgba(240, 112, 0, 0.2);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease), filter 280ms var(--ease);
}

.button::before {
  position: absolute;
  inset: -2px;
  content: "";
  background: linear-gradient(110deg, transparent 10%, rgba(255, 255, 255, 0.42) 48%, transparent 74%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-120%);
  transition: opacity 260ms var(--ease);
}

.button:hover::before,
.button:focus-visible::before {
  opacity: 0.5;
  animation: buttonSheen 900ms var(--ease);
}

@keyframes buttonSheen {
  to { transform: translateX(120%); }
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  filter: saturate(1.05);
  box-shadow: 0 22px 58px rgba(240, 112, 0, 0.28);
}

.ripple::after {
  position: absolute;
  left: var(--ripple-x, 50%);
  top: var(--ripple-y, 50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  content: "";
  background: rgba(255, 255, 255, 0.62);
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
}

.ripple.clicked::after {
  animation: ripple 650ms ease-out;
}

@keyframes ripple {
  from { opacity: 0.42; transform: translate(-50%, -50%) scale(0.2); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(18); }
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  perspective: 1300px;
}

.hero-visual > img {
  position: relative;
  z-index: 2;
  width: min(100%, 720px);
  filter: drop-shadow(0 46px 88px rgba(0, 0, 0, 0.62));
  transform: rotateX(6deg) rotateY(-8deg);
}

.chart-stat::before {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--teal);
  box-shadow: 0 0 16px rgba(121, 227, 211, 0.65);
  animation: statusPulse 2.8s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.86); }
  50% { opacity: 1; transform: scale(1); }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: rgba(250, 250, 250, 0.62);
  font-size: 0.74rem;
  transform: translateX(-50%);
}

.section-blend {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(-142px, -8vw, -82px);
  z-index: 1;
  height: clamp(260px, 24vw, 390px);
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(240, 112, 0, 0.055), transparent 58%),
    linear-gradient(180deg, rgba(4, 2, 1, 0) 0%, rgba(4, 2, 1, 0.62) 40%, #040201 78%, rgba(8, 3, 2, 0) 100%);
}

.scroll-cue span {
  width: 1px;
  height: 36px;
  background: linear-gradient(transparent, var(--yellow));
  animation: cue 1.6s ease-in-out infinite;
}

@keyframes cue {
  50% { transform: translateY(8px); opacity: 0.45; }
}

.story {
  padding-block: clamp(128px, 12vw, 190px) clamp(90px, 10vw, 150px);
}

.story::before {
  background:
    radial-gradient(circle at 64% 18%, rgba(240, 112, 0, 0.08), transparent 36rem),
    linear-gradient(180deg, #040201 0%, #080302 34%, #120802 62%, #1e0f04 100%);
}

.sticky-story {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1fr);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  gap: clamp(40px, 7vw, 96px);
}

.story-media {
  position: sticky;
  top: 104px;
  overflow: hidden;
  border-radius: 28px;
}

.story-media img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  transform: scale(1.04);
}

.media-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, transparent 45%, rgba(0, 0, 0, 0.42));
}

.story-panels {
  display: grid;
  gap: clamp(54px, 10vh, 96px);
  padding-block: 4vh;
}

.story-card {
  display: flex;
  min-height: 42vh;
  flex-direction: column;
  justify-content: center;
}

.story-card span,
.feature-step span {
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.story-card h2,
.section-heading h2,
.design-copy h2,
.feature-step h2 {
  max-width: 900px;
  margin: 0.65rem 0 0;
  font-size: 3.85rem;
}

.section-heading {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
}

.innovation-grid,
.metric-grid,
.compat-grid,
.quote-field {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: var(--max);
  margin: clamp(34px, 5vw, 68px) auto 0;
  gap: 18px;
}

.feature-tile,
.metric-card,
.compat-card,
.quote-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.032));
  padding: clamp(22px, 2.7vw, 32px);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  transition: transform 320ms var(--ease), border-color 320ms var(--ease), background 320ms var(--ease), box-shadow 320ms var(--ease);
  transform-style: preserve-3d;
}

.feature-tile::after,
.metric-card::after,
.compat-card::after,
.quote-card::after,
.app-context-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.08) 42%, transparent 58%);
  opacity: 0;
  transform: translateX(-70%);
  transition: opacity 260ms var(--ease), transform 700ms var(--ease);
  pointer-events: none;
}

.feature-tile:hover,
.metric-card:hover,
.compat-card:hover,
.quote-card:hover {
  border-color: rgba(255, 183, 27, 0.34);
  background: linear-gradient(145deg, rgba(255, 183, 27, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.28);
  transform: translateY(-6px);
}

.feature-tile:hover::after,
.metric-card:hover::after,
.compat-card:hover::after,
.quote-card:hover::after,
.app-context-card:hover::after {
  opacity: 1;
  transform: translateX(70%);
}

.tile-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 183, 27, 0.12);
  color: var(--yellow);
  font-weight: 800;
}

.feature-tile h3,
.compat-card h3 {
  margin: 1.35rem 0 0.75rem;
  font-size: 1.45rem;
}

.feature-tile p,
.compat-card p,
.quote-card blockquote,
.quote-card figcaption {
  color: rgba(250, 250, 250, 0.74);
  line-height: 1.58;
}

.ai-mark {
  display: inline-block;
  width: clamp(86px, 11vw, 150px);
  margin: 0 0.12em -0.12em;
  filter: drop-shadow(0 14px 30px rgba(121, 227, 211, 0.22));
  animation: aiMarkBreathe 5.4s ease-in-out infinite;
}

@keyframes aiMarkBreathe {
  0%, 100% { filter: drop-shadow(0 14px 30px rgba(121, 227, 211, 0.2)); transform: translateY(0); }
  50% { filter: drop-shadow(0 18px 36px rgba(121, 227, 211, 0.34)); transform: translateY(-2px); }
}

.ai-spark {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: var(--spark-size, 15px);
  height: var(--spark-size, 15px);
  vertical-align: middle;
  animation: sparkPulse var(--spark-dur, 3s) ease-in-out infinite;
  animation-delay: var(--spark-delay, 0s);
}

.ai-spark::before {
  position: absolute;
  inset: -55%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121, 227, 211, 0.28), transparent 64%);
}

.ai-spark::after,
.spark-float {
  background: linear-gradient(135deg, var(--teal), var(--green));
  clip-path: polygon(50% 0%, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0% 50%, 44% 44%);
}

.ai-spark::after {
  position: absolute;
  inset: 0;
  content: "";
}

.ai-spark.small {
  --spark-size: 9px;
  --spark-delay: -1.3s;
}

@keyframes sparkPulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(0.78) rotate(22.5deg); opacity: 0.62; }
}

.spark-float {
  position: absolute;
  z-index: 4;
  width: var(--spark-size, 15px);
  height: var(--spark-size, 15px);
  pointer-events: none;
  filter: drop-shadow(0 0 7px rgba(121, 227, 211, 0.5));
  animation: floatSpark var(--spark-dur, 4.4s) ease-in-out infinite;
  animation-delay: var(--spark-delay, 0s);
}

.spark-one { --spark-size: 18px; --spark-dur: 5.2s; top: 16%; left: 6%; }
.spark-two { --spark-size: 11px; --spark-dur: 3.7s; --spark-delay: -1.7s; top: 64%; right: 10%; }
.spark-three { --spark-size: 20px; --spark-dur: 6.1s; --spark-delay: -3.2s; bottom: 20%; left: 14%; }

@keyframes floatSpark {
  0%, 100% { transform: scale(1) rotate(0deg) translateY(0); opacity: 0.85; }
  50% { transform: scale(0.82) rotate(45deg) translateY(-10px); opacity: 0.45; }
}

.design {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  gap: clamp(36px, 7vw, 100px);
}

[data-theme="light"] .eyebrow {
  color: var(--brown);
}

[data-theme="light"] p,
[data-theme="light"] .section-heading p {
  color: rgba(12, 12, 12, 0.7);
}

.device-showcase {
  position: relative;
  min-height: 560px;
}

.masked-image {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(0, 0, 0, 0.06));
  box-shadow: 0 28px 90px rgba(41, 23, 6, 0.18);
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease);
}

.masked-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 34px 100px rgba(41, 23, 6, 0.22);
}

.masked-image img {
  width: min(80%, 520px);
  max-height: 88%;
  object-fit: contain;
  transform: translateY(4%) scale(1.03);
  transition: transform 500ms var(--ease);
}

.masked-image:hover img {
  transform: translateY(2%) scale(1.06);
}

.callout {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #17120d;
  padding: 0.72rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 760;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
}

.callout-one {
  left: 7%;
  top: 14%;
}

.callout-two {
  right: 7%;
  bottom: 14%;
}

.features {
  padding-inline: 0;
}

.pinned-feature {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  min-height: auto;
}

.feature-screen {
  position: sticky;
  top: 64px;
  display: grid;
  min-height: calc(100vh - 64px);
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(240, 112, 0, 0.14), transparent 48%);
}

.feature-image {
  position: absolute;
  width: min(78%, 650px);
  max-height: 74vh;
  object-fit: contain;
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.92);
  transition: opacity 520ms var(--ease), filter 520ms var(--ease), transform 700ms var(--ease);
}

.feature-image.active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.feature-steps {
  display: grid;
  gap: 8vh;
  padding: 12vh clamp(24px, 5vw, 82px) 10vh;
}

.feature-step {
  display: flex;
  min-height: 28vh;
  flex-direction: column;
  justify-content: center;
  opacity: 0.52;
  transform: translateY(8px);
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
}

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

.optimised-ai-mark {
  display: block;
  width: min(100%, 360px);
  margin: 1rem 0 0.25rem;
  filter: drop-shadow(0 0 20px rgba(121, 227, 211, 0.24));
}

.metric-card {
  min-height: 220px;
}

.metric-card .counter {
  font-size: 5.45rem;
  font-weight: 820;
  line-height: 0.9;
}

.metric-card sup {
  color: var(--yellow);
  font-size: 1.8rem;
  font-weight: 820;
}

.progress-system {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(220px, 1fr);
  align-items: center;
  max-width: 900px;
  margin: clamp(30px, 5vw, 54px) auto 0;
  gap: 16px 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  padding: clamp(20px, 3vw, 30px);
  backdrop-filter: blur(18px);
}

.progress-system span {
  display: block;
  color: rgba(250, 250, 250, 0.66);
  font-size: 0.86rem;
}

.progress-system strong {
  display: block;
  margin-top: 0.2rem;
}

.progress-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  transition: width 1.15s var(--ease);
}

.progress-system.in-view .progress-bar span {
  width: var(--target);
}

.gallery {
  min-height: 145vh;
  padding-inline: 0;
  overflow: clip;
}

.gallery-sticky {
  position: sticky;
  top: 0;
  display: grid;
  align-content: center;
  min-height: 100vh;
  padding: clamp(84px, 9vw, 120px) var(--gutter);
}

.gallery .section-heading {
  max-width: 720px;
  margin: 0;
}

.gallery .section-heading .eyebrow {
  font-size: 0.72rem;
}

.gallery .section-heading h2 {
  max-width: 660px;
  font-size: 2.65rem;
  line-height: 1.08;
}

.gallery-track {
  display: flex;
  gap: 22px;
  margin-top: 36px;
  will-change: transform;
}

.gallery-track figure {
  flex: 0 0 min(72vw, 620px);
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.06);
  box-shadow: 0 28px 84px rgba(26, 16, 6, 0.16);
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease);
}

.gallery-track figure:hover {
  transform: translateY(-5px);
  box-shadow: 0 34px 94px rgba(26, 16, 6, 0.22);
}

.gallery-track img {
  width: 100%;
  height: 56vh;
  min-height: 420px;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.gallery-track figure:hover img {
  transform: scale(1.04);
}

.gallery-track figcaption {
  padding: 0.95rem 1.1rem 1.15rem;
  color: rgba(12, 12, 12, 0.68);
  font-weight: 720;
}

.quote-field {
  align-items: start;
}

.quote-card {
  margin: 0;
}

.quote-card blockquote {
  margin: 0;
  color: rgba(250, 250, 250, 0.86);
  font-size: 1.55rem;
  line-height: 1.25;
}

.quote-card figcaption {
  margin-top: 1.3rem;
  color: var(--yellow);
}

.final-cta {
  display: grid;
  min-height: 82vh;
  place-items: center;
  text-align: center;
}

.cta-lighting {
  position: absolute;
  inset: 12% 6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 112, 0, 0.28), transparent 58%);
  filter: blur(18px);
  animation: drift 11s ease-in-out infinite alternate;
}

.conductify {
  width: min(72vw, 280px);
  margin: 0 auto 1.8rem;
}

.cta-sparks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 0 0.8rem;
}

.final-cta h2 {
  max-width: 860px;
  font-size: 4.8rem;
  line-height: 1;
}

.final-cta p {
  margin: 1.3rem auto 0;
}

.final-cta footer {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 26px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(250, 250, 250, 0.58);
  font-size: 0.84rem;
}

.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  transition: opacity 780ms var(--ease), transform 780ms var(--ease);
}

.reveal.in-view,
.hero .reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered reveals for grid children */
.innovation-grid .reveal:nth-child(2),
.metric-grid .reveal:nth-child(2),
.compat-grid .reveal:nth-child(2),
.quote-field .reveal:nth-child(2),
.app-context-grid .reveal:nth-child(2) { transition-delay: 110ms; }

.innovation-grid .reveal:nth-child(3),
.metric-grid .reveal:nth-child(3),
.compat-grid .reveal:nth-child(3),
.quote-field .reveal:nth-child(3),
.app-context-grid .reveal:nth-child(3) { transition-delay: 220ms; }

.app-context-grid .reveal:nth-child(4) { transition-delay: 330ms; }

.showcase {
  overflow: clip;
}

.flagship-heading {
  max-width: 920px;
  margin-bottom: clamp(42px, 6vw, 76px);
}

.flagship-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto 48px;
  gap: 42px;
}

.showcase .section-heading {
  margin: 0;
}

.battery-app-frame {
  position: relative;
  width: min(100%, 360px);
  justify-self: end;
  margin: 0;
  filter: drop-shadow(0 38px 90px rgba(240, 112, 0, 0.2));
}

.battery-app-frame::before {
  position: absolute;
  inset: 11% -8% 10%;
  z-index: -1;
  content: "";
  border-radius: 44px;
  background: radial-gradient(circle, rgba(240, 112, 0, 0.28), transparent 62%);
  filter: blur(24px);
}

.battery-app-frame img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.battery-story-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(300px, 0.68fr);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  gap: clamp(28px, 4.6vw, 60px);
}

.battery-story-visual {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
}

.battery-story-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.battery-story-proof span,
.battery-story-proof strong {
  display: block;
  min-width: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.045);
}

.battery-story-proof span {
  color: rgba(250, 250, 250, 0.54);
  font-size: 0.74rem;
  font-weight: 780;
  text-transform: uppercase;
}

.battery-story-proof strong {
  color: rgba(250, 250, 250, 0.9);
  font-size: 0.92rem;
  line-height: 1.32;
}

.battery-story-steps {
  display: grid;
  gap: clamp(70px, 14vh, 132px);
  padding-block: 4vh 10vh;
}

.battery-story-step {
  position: relative;
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.64;
  transform: translateY(14px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

.battery-story-step::before {
  position: absolute;
  left: -24px;
  top: 50%;
  width: 2px;
  height: 72%;
  content: "";
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(255, 183, 27, 0.72), transparent);
  opacity: 0;
  transform: translateY(-50%) scaleY(0.4);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

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

.battery-story-step.active::before {
  opacity: 1;
  transform: translateY(-50%) scaleY(1);
}

.battery-story-step span {
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

.battery-story-step h3 {
  max-width: 520px;
  margin: 0.7rem 0 0;
  color: var(--white);
  font-size: clamp(2rem, 4.1vw, 3.85rem);
  line-height: 1;
  letter-spacing: 0;
}

.battery-story-step p {
  max-width: 500px;
  margin: 1rem 0 0;
  color: rgba(250, 250, 250, 0.68);
  font-size: 1.02rem;
  line-height: 1.62;
}

.battery-chart-card {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 183, 27, 0.24);
  border-radius: 30px;
  background:
    radial-gradient(circle at 14% 0%, rgba(240, 112, 0, 0.2), transparent 24rem),
    radial-gradient(circle at 88% 18%, rgba(121, 227, 211, 0.1), transparent 20rem),
    linear-gradient(145deg, rgba(255, 183, 27, 0.13), rgba(255, 255, 255, 0.035) 34%, rgba(0, 0, 0, 0.42));
  padding: 34px;
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.battery-chart-card::before {
  position: absolute;
  inset: 1px;
  z-index: -1;
  content: "";
  border-radius: 29px;
  background: #030303;
}

.battery-chart-card::after {
  position: absolute;
  inset: 1px;
  z-index: 0;
  overflow: hidden;
  border-radius: 29px;
  content: "";
  background:
    linear-gradient(100deg, transparent 8%, rgba(121, 227, 211, 0.1) 42%, rgba(255, 183, 27, 0.09) 50%, transparent 62%),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(255, 255, 255, 0.028) 58px 59px);
  opacity: 0.42;
  transform: translateX(-26%);
  animation: chartIntelligenceSweep 9s var(--ease) infinite;
  pointer-events: none;
}

@keyframes chartIntelligenceSweep {
  0%, 18% { opacity: 0; transform: translateX(-38%); }
  36%, 54% { opacity: 0.42; }
  100% { opacity: 0; transform: translateX(38%); }
}

.battery-chart-card > * {
  position: relative;
  z-index: 1;
}

.chart-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  margin-bottom: 26px;
  padding-bottom: 18px;
}

.chart-header::before,
.chart-header::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  content: "";
  border-radius: 999px;
}

.chart-header::before {
  background: rgba(255, 255, 255, 0.1);
}

.chart-header::after {
  right: auto;
  width: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--teal));
  transform: scaleX(var(--story-progress, 0));
  transform-origin: left;
  transition: transform 480ms var(--ease);
}

.chart-stat-row,
.technique-list,
.chart-tooltip .tt-row {
  display: flex;
  align-items: center;
}

.chart-kicker {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chart-title {
  display: block;
  max-width: 700px;
  color: var(--white);
  font-size: 3.25rem;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
}

.chart-title strong {
  display: block;
  color: #96ff9a;
  font-weight: 760;
}

.chart-periods {
  display: flex;
  align-self: start;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.period-pill {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(250, 250, 250, 0.62);
  padding: 0.5rem 0.78rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 740;
  cursor: pointer;
}

.period-pill.active {
  background: var(--yellow);
  color: #080808;
}

.chart-stat-row {
  flex-wrap: wrap;
  gap: 18px 36px;
  margin-bottom: 18px;
}

.chart-stat {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 150px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}

.chart-stat:hover,
.chart-stat:focus-visible {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-2px);
}

.chart-stat span {
  color: rgba(250, 250, 250, 0.68);
  font-size: 0.9rem;
  font-weight: 700;
}

.chart-stat strong {
  color: #96ff9a;
  font-size: 2.55rem;
  font-weight: 760;
  line-height: 1;
}

.chart-stat.grid-charge strong {
  color: #ff6b70;
}

.chart-stat.net-return strong {
  color: var(--yellow);
}

.chart-metric-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(250, 250, 250, 0.72);
  padding: 0 0.9rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 720;
  cursor: pointer;
  transition: background 220ms var(--ease), border-color 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease);
}

.metric-pill:hover,
.metric-pill.active {
  border-color: color-mix(in srgb, var(--metric-color), white 18%);
  background: color-mix(in srgb, var(--metric-color), transparent 88%);
  color: var(--white);
  transform: translateY(-2px);
}

.metric-pill.active {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--metric-color), transparent 44%);
}

.metric-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--metric-color);
  box-shadow: 0 0 16px color-mix(in srgb, var(--metric-color), transparent 55%);
}

.metric-pill.active .metric-dot,
.technique-chip.active .technique-dot {
  animation: activeDot 1.9s ease-in-out infinite;
}

@keyframes activeDot {
  0%, 100% { transform: scale(0.88); }
  50% { transform: scale(1.18); }
}

.chart-stage {
  position: relative;
  overflow: visible;
  padding: 18px 6px 2px;
}

.chart-svg-wrap {
  position: relative;
  overflow: visible;
}

.chart-annotation {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 183, 27, 0.18);
  border-radius: 16px;
  background: rgba(255, 183, 27, 0.05);
  transition: opacity 360ms var(--ease);
}

.chart-annotation span {
  flex-shrink: 0;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 183, 27, 0.32);
  background: rgba(255, 183, 27, 0.1);
  color: var(--yellow);
  font-size: 0.68rem;
  font-weight: 820;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 0.1em;
}

.chart-annotation strong {
  display: block;
  color: rgba(250, 250, 250, 0.82);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.48;
}

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-series-line {
  stroke-dasharray: 1300;
  stroke-dashoffset: 1300;
  animation: drawChartLine 900ms var(--ease) forwards;
}

.chart-series-area {
  opacity: 0;
  animation: fadeChartArea 760ms var(--ease) 120ms forwards;
}

.chart-data-point {
  transform-box: fill-box;
  transform-origin: center;
  transition: r 180ms var(--ease), opacity 180ms var(--ease), filter 180ms var(--ease);
}

.chart-data-point:hover,
.chart-data-point:focus {
  filter: drop-shadow(0 0 10px currentColor);
}

.chart-active-halo {
  opacity: 0.42;
  transform-box: fill-box;
  transform-origin: center;
  animation: activeHaloPulse 2.4s ease-in-out infinite;
}

@keyframes activeHaloPulse {
  0%, 100% { opacity: 0.24; transform: scale(0.92); }
  50% { opacity: 0.44; transform: scale(1.08); }
}

@keyframes drawChartLine {
  to { stroke-dashoffset: 0; }
}

@keyframes fadeChartArea {
  to { opacity: 1; }
}

.chart-mode-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chart-detail-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  padding: 18px;
}

.chart-detail-panel div {
  display: grid;
  gap: 5px;
}

.chart-detail-panel span {
  color: rgba(250, 250, 250, 0.55);
  font-size: 0.78rem;
  font-weight: 740;
}

.chart-detail-panel strong {
  font-size: 1rem;
}

.chart-detail-panel p {
  grid-column: span 3;
  margin: 0;
  color: rgba(250, 250, 250, 0.7);
  line-height: 1.45;
}

.chart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(250, 250, 250, 0.76);
  padding: 0 1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 220ms var(--ease), border-color 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease);
}

.chart-btn:hover,
.chart-btn:focus-visible {
  transform: translateY(-2px);
}

.chart-btn.active {
  border-color: rgba(255, 183, 27, 0.48);
  background: rgba(255, 183, 27, 0.12);
  color: var(--yellow);
}

.chart-btn[data-mode="optimised"].active {
  border-color: rgba(121, 227, 211, 0.52);
  background: rgba(121, 227, 211, 0.1);
  color: var(--teal);
}

.technique-panel {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 24px;
}

.technique-panel h3 {
  margin: 0;
  font-size: 1.35rem;
}

.technique-panel p {
  margin: 0.45rem 0 0;
  color: rgba(250, 250, 250, 0.62);
}

.technique-list {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.technique-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(250, 250, 250, 0.78);
  padding: 0 0.9rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 720;
  cursor: pointer;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), color 220ms var(--ease), background 220ms var(--ease);
}

.technique-chip:hover,
.technique-chip.active {
  border-color: color-mix(in srgb, var(--chip-color), white 16%);
  background: color-mix(in srgb, var(--chip-color), transparent 86%);
  color: var(--white);
  transform: translateY(-2px);
}

.technique-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--chip-color);
  box-shadow: 0 0 18px color-mix(in srgb, var(--chip-color), transparent 58%);
}

.chart-tooltip .dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
}

.chart-tooltip .dot-grid {
  background: rgba(220, 70, 55, 0.9);
}

.chart-tooltip .dot-load {
  background: rgba(150, 255, 154, 0.95);
}

.chart-tooltip .dot-load-opt {
  background: rgba(121, 227, 211, 0.9);
}

.chart-tooltip {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(8, 8, 8, 0.9);
  padding: 9px 12px;
  color: rgba(250, 250, 250, 0.86);
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 120ms ease;
  backdrop-filter: blur(14px);
}

.chart-tooltip .tt-time {
  display: block;
  margin-bottom: 4px;
  color: rgba(250, 250, 250, 0.56);
  font-size: 0.74rem;
}

.chart-tooltip .tt-row {
  gap: 7px;
}

.chart-tooltip em {
  display: inline-block;
  font-style: normal;
}

.app-context-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--max);
  margin: 28px auto 0;
  gap: 14px;
}

.app-context-card {
  position: relative;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}

.app-context-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.68));
  pointer-events: none;
}

.app-context-card:hover {
  border-color: rgba(255, 183, 27, 0.28);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.26);
  transform: translateY(-5px);
}

.app-context-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top;
  opacity: 0.88;
  transition: transform 520ms var(--ease), opacity 520ms var(--ease);
}

.app-context-card:hover img {
  opacity: 1;
  transform: scale(1.045);
}

.app-context-card figcaption {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  padding: 16px;
}

.app-context-card strong {
  font-size: 1rem;
}

.app-context-card span {
  color: rgba(250, 250, 250, 0.62);
  font-size: 0.88rem;
  line-height: 1.38;
}


@media (max-width: 980px) {
  .menu-toggle {
    position: absolute;
    top: 13px;
    right: 18px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .menu-toggle span:not(.sr-only) {
    margin: 0;
  }

  .nav-links {
    position: fixed;
    inset: 64px 18px auto;
    display: grid;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.9);
    padding: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 220ms var(--ease), transform 220ms var(--ease);
    backdrop-filter: blur(20px);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links a {
    padding: 0.8rem 0.2rem;
  }

  .hero,
  .sticky-story,
  .design,
  .pinned-feature,
  .flagship-layout,
  .battery-story-shell {
    grid-template-columns: 1fr;
  }

  .flagship-layout {
    gap: 34px;
  }

  .battery-app-frame {
    justify-self: center;
    width: min(100%, 320px);
  }

  .hero {
    padding-top: 96px;
    text-align: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-subtitle {
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(3rem, 9vw, 4.8rem);
  }

  .story-card h2,
  .section-heading h2,
  .design-copy h2,
  .feature-step h2 {
    font-size: clamp(2.2rem, 5.5vw, 3.1rem);
  }

  .metric-card .counter {
    font-size: 4.7rem;
  }

  .final-cta h2 {
    font-size: 3.8rem;
  }

  .hero-visual {
    min-height: 430px;
  }

  .story-media,
  .feature-screen {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .story-card {
    min-height: auto;
  }

  .innovation-grid,
  .metric-grid,
  .compat-grid,
  .quote-field,
  .app-context-grid {
    grid-template-columns: 1fr;
  }

  .feature-screen {
    min-height: 560px;
  }

  .battery-story-visual {
    position: relative;
    top: auto;
  }

  .battery-story-steps {
    gap: 34px;
    padding-block: 28px 0;
  }

  .battery-story-step {
    min-height: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    padding: 22px;
    opacity: 1;
    transform: none;
  }

  .battery-story-step::before {
    display: none;
  }

  .feature-steps {
    gap: 42px;
    padding: 48px var(--gutter) 82px;
  }

  .feature-step {
    min-height: auto;
    opacity: 1;
    transform: none;
  }

  .device-showcase {
    min-height: 520px;
  }

  .spark-float {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 18px;
  }

  .cursor-glow {
    display: none;
  }

  .site-header {
    height: 58px;
  }

  .brand img {
    width: 136px;
  }

  .nav-links {
    inset: 58px 12px auto;
  }

  .chapter {
    padding-block: 72px;
  }

  .hero {
    min-height: 100svh;
    padding-top: 80px;
    padding-bottom: 46px;
    gap: 22px;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 8.5vw, 3.2rem);
    line-height: 1.05;
  }

  .hero-subtitle,
  .story-card p,
  .section-heading p,
  .design-copy p,
  .feature-step p,
  .final-cta p {
    font-size: 1rem;
  }

  .hero-actions,
  .store-actions,
  .final-cta footer {
    flex-direction: column;
    align-items: center;
  }

  .flagship-layout {
    margin-bottom: 34px;
  }

  .battery-app-frame {
    width: min(74vw, 260px);
  }

  .chart-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .battery-story-proof {
    grid-template-columns: 1fr 1fr;
  }

  .battery-story-proof span,
  .battery-story-proof strong {
    padding: 12px;
  }

  .chart-title {
    font-size: 2.2rem;
  }

  .chart-periods {
    width: 100%;
    overflow-x: auto;
  }

  .period-pill {
    flex: 1 0 auto;
    white-space: nowrap;
  }

  .chart-stat strong {
    font-size: 2.05rem;
  }

  .chart-stage {
    padding-inline: 0;
  }

  .chart-svg {
    height: 250px;
  }

  .chart-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .chart-stat {
    min-width: 0;
    padding: 8px;
  }

  .chart-stat::before {
    right: 8px;
    top: 8px;
    width: 5px;
    height: 5px;
  }

  .chart-stat span {
    padding-right: 10px;
    font-size: 0.68rem;
    line-height: 1.18;
  }

  .chart-stat strong {
    font-size: 1.42rem;
  }

  .chart-annotation {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 14px;
    padding: 14px 16px;
  }

  .button {
    width: min(320px, 100%);
  }

  .hero-visual {
    width: 100%;
    max-width: 100%;
    min-height: 300px;
    overflow: hidden;
  }

  .ai-signal-field {
    opacity: 0.32;
  }

  .hero-visual > img {
    width: min(100%, 420px);
    transform: none;
    margin: 0 auto;
  }

  .story-media {
    max-height: 540px;
  }

  .story-panels {
    gap: 34px;
    padding-block: 22px 0;
  }

  .story-card h2,
  .section-heading h2,
  .design-copy h2,
  .feature-step h2 {
    font-size: clamp(1.9rem, 5.5vw, 2.4rem);
    line-height: 1.08;
  }

  .feature-tile,
  .metric-card,
  .compat-card,
  .quote-card {
    border-radius: 18px;
    padding: 20px;
  }

  .battery-chart-card {
    border-radius: 18px;
    padding: 18px 14px;
    overflow: hidden;
  }

  .chart-svg-wrap,
  .chart-stage {
    overflow: hidden;
    max-width: 100%;
  }

  .chart-stat-row {
    gap: 6px;
  }

  .chart-mode-controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .chart-metric-controls {
    display: grid;
  }

  .chart-btn {
    flex: 1 1 130px;
    justify-content: center;
  }

  .chart-detail-panel {
    grid-template-columns: 1fr;
  }

  .chart-detail-panel p {
    grid-column: auto;
  }

  .app-context-card {
    min-height: auto;
  }

  .app-context-card img {
    height: 260px;
  }

  .technique-list {
    display: grid;
    gap: 10px;
  }

  .battery-story-shell,
  .battery-story-visual,
  .battery-story-steps {
    max-width: 100%;
    overflow: hidden;
  }

  .ai-mark {
    width: 100px;
  }

  .design {
    gap: 32px;
  }

  .device-showcase {
    display: grid;
    min-height: auto;
    gap: 14px;
  }

  .masked-image {
    position: relative;
    min-height: 420px;
    border-radius: 24px;
  }

  .masked-image img {
    width: min(88%, 340px);
  }

  .callout {
    position: relative;
    inset: auto;
    width: fit-content;
    max-width: 100%;
  }

  .feature-screen {
    min-height: 460px;
  }

  .feature-image {
    width: min(92%, 390px);
    max-height: 420px;
  }

  .metric-card {
    min-height: auto;
  }

  .metric-card .counter {
    font-size: 4rem;
  }

  .progress-system {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery {
    min-height: auto;
    padding-inline: var(--gutter);
  }

  .gallery-sticky {
    position: relative;
    min-height: auto;
    padding: 0;
  }

  .gallery .section-heading h2 {
    font-size: 1.9rem;
  }

  .gallery-track {
    display: grid;
    gap: 16px;
    transform: none !important;
  }

  .gallery-track figure {
    width: 100%;
  }

  .gallery-track img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .quote-card blockquote {
    font-size: 1.35rem;
  }

  .final-cta {
    min-height: auto;
  }

  .final-cta h2 {
    font-size: 2.55rem;
  }

  .final-cta footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 3.5rem;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 2.6rem);
  }

  .button {
    width: 100%;
    max-width: 360px;
  }

  .final-cta h2 {
    font-size: 2.2rem;
  }

  .metric-card .counter {
    font-size: 3.6rem;
  }

  .battery-story-step h3 {
    font-size: 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .word,
  .reveal {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition-delay: 0ms !important;
  }

  .ai-signal-field,
  .particle-field {
    display: none;
  }

  .chart-series-line,
  .chart-series-area {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
  }
}
