/* ==========================================================================
   鱼录相机 (PreReel Camera) — V4 Scroll-Driven Apple Experience
   ========================================================================== */

:root {
  --bg-white: #ffffff;
  --bg-gray: #f5f5f7;
  --bg-watch: #edf1ef;
  --bg-black: #000000;

  --ink-1: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --ink-dark-1: #f5f5f7;
  --ink-dark-2: #a1a1a6;

  /* Ownable 鱼录相机 Brand Palette (Derived from Lake-Teal App Icon) */
  --brand: #0d7a84;
  --brand-hover: #09646d;
  --brand-tint: rgba(13, 122, 132, 0.1);
  --link-light: #0d7a84;

  --rec-red: #ff3b30;
  --preroll-green: #30e15c;
  --ring-green: #34c759;
  --level-yellow: #ffd60a;

  --border-light: rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.12);

  --nav-h: 68px;
  --radius-xl: 28px;
  --radius-pill: 980px;

  --font: "SF Pro Display", "SF Pro SC", "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    sans-serif;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-1);
  background: var(--bg-white);
  font-size: 17px;
  line-height: 1.47;
  overflow-x: clip;
}

h1, h2, h3, p {
  text-wrap: balance;
}

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

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

button {
  font: inherit;
  color: inherit;
}

sup {
  font-size: 0.6em;
  line-height: 0;
  vertical-align: super;
  margin-left: 1px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 920px;
}

/* ==========================================================================
   1. Floating Frosted Island Nav (Ownable Flagship Indie App Style)
   ========================================================================== */

.floating-nav-wrap {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 18px;
  pointer-events: none;
}

.floating-nav {
  pointer-events: auto;
  max-width: 940px;
  height: 50px;
  margin: 0 auto;
  padding: 0 10px 0 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(15, 25, 28, 0.09);
  box-shadow:
    0 10px 30px -10px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.nav-icon {
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(13, 122, 132, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(29, 29, 31, 0.72);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--brand);
}

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

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.025);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px 5px 9px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  max-width: 136px;
  transition: background 0.2s, border-color 0.2s;
}

.lang-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(13, 122, 132, 0.35);
}

.lang-toggle svg {
  flex-shrink: 0;
  opacity: 0.72;
}

.lang-toggle-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 36-Language Frosted Glass Picker Modal */
.lang-sheet {
  width: 100%;
  max-width: 680px;
  max-height: 82vh;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(26px);
  -webkit-backdrop-filter: saturate(180%) blur(26px);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.lang-grid {
  padding: 16px 20px 24px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: rgba(245, 245, 247, 0.7);
  color: var(--ink-1);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}

.lang-option:hover {
  background: rgba(13, 122, 132, 0.09);
  border-color: rgba(13, 122, 132, 0.32);
}

.lang-option.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  font-weight: 600;
}

.lang-option .lang-check {
  font-size: 12px;
  opacity: 0;
}

.lang-option.is-active .lang-check {
  opacity: 1;
}

/* RTL Support (Arabic & Hebrew) */
html[dir="rtl"] .real-iphone,
html[dir="rtl"] .native-timeline-box,
html[dir="rtl"] .poster-hud-top {
  direction: ltr;
}

html[dir="rtl"] .lang-option {
  text-align: right;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-1);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--brand);
}

.mobile-menu-btn {
  display: none;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 16px;
  height: 1.6px;
  background: var(--ink-1);
  border-radius: 2px;
  transition: transform 0.22s var(--ease);
}

.mobile-menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(3.3px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-3.3px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  pointer-events: auto;
  max-width: 940px;
  margin: 8px auto 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.12);
  padding: 14px 22px 20px;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  font-size: 16px;
  font-weight: 500;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-drawer a.mobile-drawer-cta {
  border-bottom: 0;
  color: var(--brand);
  font-weight: 600;
}

/* ==========================================================================
   2. Dynamic Poster Hero (Golden-Ratio Mobile Framing + Zero Black Bleed)
   ========================================================================== */

.hero-section {
  position: relative;
  height: 155vh;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: calc(var(--nav-h) + clamp(14px, 2.4vh, 28px));
  overflow: hidden;
}

.hero-header {
  text-align: center;
  max-width: 780px;
  padding: 0 24px;
  margin-bottom: clamp(16px, 2.6vh, 28px);
  will-change: transform, opacity;
  z-index: 2;
}

.hero-top-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-icon {
  margin: 0;
  border-radius: 22.5%;
  box-shadow: 0 14px 30px -8px rgba(13, 122, 132, 0.28);
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.version-pill::after {
  content: " ›";
  font-size: 14px;
  line-height: 1;
}

.version-pill:hover {
  background: rgba(13, 122, 132, 0.16);
}

.v-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.hero-title {
  margin: 0 0 10px;
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink-1);
}

.hero-sub {
  margin: 0 auto 20px;
  max-width: 560px;
  font-size: clamp(15.5px, 1.75vw, 19px);
  line-height: 1.46;
  color: var(--ink-2);
}

.hero-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 24px -8px rgba(13, 122, 132, 0.55);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease-expo), box-shadow 0.2s;
}

.btn-brand:hover {
  background: var(--brand-hover);
  box-shadow: 0 14px 28px -8px rgba(13, 122, 132, 0.65);
}

.link-brand,
.link-arrow,
.link-arrow-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--brand);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
}

.link-brand::after,
.link-arrow::after,
.link-arrow-btn::after {
  content: " ›";
}

.link-brand:hover,
.link-arrow:hover,
.link-arrow-btn:hover {
  text-decoration: underline;
}

/* Dynamic Poster Container */
.poster-wrap {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding-bottom: 0;
}

.dynamic-poster {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0d191b;
  clip-path: inset(0 var(--p-inset, 6vw) round var(--p-rad, 28px));
  will-change: clip-path;
}

/* Fixed: inset:0 + width/height:100% + max-width:none -> ZERO right-side black bar bleed! */
.poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 24%;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(var(--p-scale, 1.07));
  will-change: transform;
  animation: posterBreathe 16s ease-in-out infinite alternate;
}

@keyframes posterBreathe {
  0% { filter: brightness(0.98) contrast(1.01); }
  100% { filter: brightness(1.03) contrast(1.03); }
}

.poster-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 16, 18, 0.34) 0%, rgba(8, 16, 18, 0) 32%, rgba(8, 16, 18, 0) 64%, rgba(8, 16, 18, 0.56) 100%);
  pointer-events: none;
}

/* Subtle Camera Viewfinder Corner Brackets (track poster inset smoothly) */
.poster-corners span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(255, 255, 255, 0.42);
  border-style: solid;
  pointer-events: none;
}

.c-tl { top: 20px; left: calc(var(--p-inset, 7vw) + 22px); border-width: 1.5px 0 0 1.5px; }
.c-tr { top: 20px; right: calc(var(--p-inset, 7vw) + 22px); border-width: 1.5px 1.5px 0 0; }
.c-bl { bottom: 20px; left: calc(var(--p-inset, 7vw) + 22px); border-width: 0 0 1.5px 1.5px; }
.c-br { bottom: 20px; right: calc(var(--p-inset, 7vw) + 22px); border-width: 0 1.5px 1.5px 0; }

.poster-hud-top {
  position: absolute;
  top: 24px;
  left: calc(var(--p-inset, 7vw) + 34px);
  right: calc(var(--p-inset, 7vw) + 34px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  will-change: transform;
}

.poster-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.live-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--preroll-green);
  box-shadow: 0 0 8px rgba(48, 225, 92, 0.9);
  animation: recBlink 2.2s ease-in-out infinite;
}

@keyframes recBlink {
  0%, 70%, 100% { opacity: 1; }
  85% { opacity: 0.3; }
}

.poster-spec {
  font-variant-numeric: tabular-nums;
  opacity: 0.86;
}

.poster-hud-bottom {
  position: absolute;
  left: calc(var(--p-inset, 7vw) + 34px);
  right: calc(var(--p-inset, 7vw) + 34px);
  bottom: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  will-change: transform;
}

.poster-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
}

.poster-line {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.poster-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.scroll-line {
  display: block;
  width: 24px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.65);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  transform: translateX(-100%);
  animation: cueSlide 2s ease-in-out infinite;
}

@keyframes cueSlide {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

.intro {
  opacity: 0;
  transform: translateY(14px);
  animation: introIn 0.85s var(--ease-expo) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes introIn {
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   3. Real Uploaded iPhone Hardware Frame (assets/iphone-bezel.png)
   ========================================================================== */

.real-iphone {
  position: relative;
  width: clamp(256px, 23vw, 310px);
  aspect-ratio: 697 / 1423;
  flex-shrink: 0;
  will-change: transform;
}

.real-iphone-bezel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.65));
}

.real-iphone-screen {
  position: absolute;
  /* Exact measured inner screen cutout of assets/iphone-bezel.png */
  left: 6.89%;
  top: 3.02%;
  width: 86.37%;
  height: 93.96%;
  border-radius: 14.78% / 6.66%;
  overflow: hidden;
  background: #000000;
  z-index: 10;
  container-type: inline-size;
}

/* ---------- Native CameraScreen.swift UI (exact Enlay_iPhone layout) ---------- */
.native-camera-ui {
  display: flex;
  flex-direction: column;
  background: #000000;
  color: #ffffff;
}

.ps-live-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #000000;
  color: #ffffff;
}

.ios-statusbar {
  position: relative;
  height: 7.4%;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  z-index: 20;
  flex-shrink: 0;
}

.ios-island {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28%;
  height: 54%;
  min-height: 16px;
  border-radius: 99px;
  background: #050506;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

.ios-status-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ios-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 8px;
}

.ios-bars i {
  display: block;
  width: 2px;
  background: #ffffff;
  border-radius: 1px;
}
.ios-bars i:nth-child(1) { height: 3px; }
.ios-bars i:nth-child(2) { height: 5px; }
.ios-bars i:nth-child(3) { height: 6.5px; }
.ios-bars i:nth-child(4) { height: 8px; }

.ios-bat-mini {
  padding: 1px 4px;
  border-radius: 3.5px;
  background: var(--ring-green);
  color: #000000;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.25;
}

/* Native 9:16 Viewfinder Region */
.native-vf {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #141819;
}

.native-vf::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.36) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 5;
}

.vf-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.vf-strike {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease-expo);
}

.vf-strike.is-visible {
  opacity: 1;
  transform: scale(1);
}

.vf-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.24) 0.7px, transparent 0.7px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.24) 0.7px, transparent 0.7px);
  background-size: 33.333% 33.333%;
  pointer-events: none;
}

.vf-top-hud {
  position: absolute;
  top: 2.4%;
  left: 0;
  right: 0;
  height: 11cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.vf-hud-center-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2.2cqw;
}

.vf-slot-side {
  width: 14cqw;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vf-gear-overlay {
  position: absolute;
  right: 5.5%;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vf-sf {
  width: 5.4cqw;
  height: 5.4cqw;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.vf-status-slot {
  position: relative;
  height: 8cqw;
  min-width: 15cqw;
  display: grid;
  place-items: center;
  transition: min-width 0.35s var(--ease-expo);
}

.vf-status-slot.is-rec {
  min-width: 26cqw;
}

.vf-green-dot {
  width: 5.4cqw;
  height: 5.4cqw;
  border-radius: 50%;
  background: var(--preroll-green);
  box-shadow: 0 0 8px rgba(48, 225, 92, 0.55);
  transition: opacity 0.25s, transform 0.25s;
}

.vf-rec-pill {
  position: absolute;
  padding: 0.9cqw 2.4cqw;
  border-radius: 1.8cqw;
  background: var(--rec-red);
  color: #ffffff;
  font-size: 3.8cqw;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s, transform 0.25s var(--ease-expo);
}

.vf-res-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 3.1cqw;
  line-height: 1.18;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.vf-horizon,
.eso-horizon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.hz-side {
  width: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
}

.hz-main {
  width: 92px;
  height: 1.5px;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  will-change: transform;
}

.hz-main.yellow {
  background: var(--level-yellow);
}

.vf-lens-pill {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(24, 24, 26, 0.72);
  color: var(--level-yellow);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* Native Bottom Control Bar (proportional cqw matching CameraScreen.swift 76pt/48pt on 393pt) */
.native-bottom {
  height: 16.5%;
  padding: 0 11.5%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.nb-side {
  width: 12.6cqw;
  height: 12.6cqw;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}

.nb-side svg {
  width: 5.6cqw;
  height: 5.6cqw;
}

.nb-shutter {
  position: relative;
  width: 20.5cqw;
  height: 20.5cqw;
  display: grid;
  place-items: center;
}

.nb-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.nb-core {
  width: 16.4cqw;
  height: 16.4cqw;
  border-radius: 50%;
  background: var(--rec-red);
  display: grid;
  place-items: center;
  transition: width 0.3s var(--ease-expo), height 0.3s var(--ease-expo), border-radius 0.3s var(--ease-expo);
}

.nb-shutter.is-recording .nb-core {
  width: 8.8cqw;
  height: 8.8cqw;
  border-radius: 2.2cqw;
}

/* ---------- Exact Source-Code-Mapped EnergySavingOverlay (Autonomous Continuous Transitions) ---------- */
.ps-energy-overlay {
  position: absolute;
  inset: 0;
  background: #000000;
  opacity: 0;
  z-index: 25;
  transition: opacity 0.55s cubic-bezier(0.12, 0.8, 0.2, 1);
}

.ps-energy-overlay.is-active {
  opacity: 1;
}

.eso-top-row {
  position: relative;
  height: 7.4%;
  padding: 0 5.5%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Exact NotchBatteryIndicator (CameraScreen.swift:988, 1014, 1136-1195) */
.notch-battery {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.45s ease-in-out 0.35s;
}

.ps-energy-overlay.is-active .notch-battery {
  opacity: 1;
}

.nbat-body {
  position: relative;
  width: 54px;
  height: 19px;
  border-radius: 5px;
  background: #000000;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  padding: 2px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.nbat-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: rgba(52, 199, 89, 0.75);
  transition: width 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.45s;
}

.ps-energy-overlay.is-active .nbat-fill {
  width: 85%;
}

.ps-energy-overlay:not(.is-active) .notch-battery,
.ps-energy-overlay:not(.is-active) .nbat-fill {
  transition-delay: 0s;
  transition-duration: 0.25s;
}

.eso-horizon .hz-main {
  transform: rotate(-4deg);
  transition: transform 0.65s var(--ease-expo) 0.3s, background-color 0.3s 0.75s;
}

.ps-energy-overlay.is-active .eso-horizon .hz-main {
  transform: rotate(0deg);
  background: var(--level-yellow);
}

.nbat-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  text-shadow: 0 1px 2px #000000;
}

.nbat-cap {
  width: 3px;
  height: 7.5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.75);
}

/* Exact PrerollIndicator at v = 19% (CameraScreen.swift:948-949, 1113) */
.eso-preroll-dot {
  position: absolute;
  left: 50%;
  top: 19%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--preroll-green);
  animation: prerollRealBlink 2.6s ease-in-out infinite;
}

@keyframes prerollRealBlink {
  0%, 66% { opacity: 1; }
  74%, 92% { opacity: 0.12; }
  100% { opacity: 1; }
}

/* Exact EnergySavingHint at v = 86% with Autonomous Continuous Shimmer Sweep */
.eso-hint-primary {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 86%;
  transform: translateY(-50%);
  text-align: center;
  font-size: 10.5px;
  font-weight: 400;
  color: transparent;
  background: linear-gradient(
    90deg,
    rgb(122, 122, 122) 0%,
    rgb(122, 122, 122) 38%,
    #ffffff 50%,
    rgb(122, 122, 122) 62%,
    rgb(122, 122, 122) 100%
  );
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
}

.ps-energy-overlay.is-active .eso-hint-primary {
  animation: hintShimmer 3.6s linear 0.6s infinite;
}

@keyframes hintShimmer {
  0% { background-position: 100% 0; }
  55%, 100% { background-position: -30% 0; }
}

/* Exact Voice Cue Caption at v = 94% (CameraScreen.swift:957-964) */
.eso-hint-secondary {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 93.5%;
  transform: translateY(-50%);
  text-align: center;
  font-size: 9.5px;
  color: rgba(235, 235, 245, 0.56);
}

/* ==========================================================================
   4. Bidirectional Scroll-Scrubbed Sticky Chapters (Pre-Roll & Power-Save)
   ========================================================================== */

.scroll-chapter {
  position: relative;
}

/* Crisp Architectural Stage Cards resting on calm #f5f5f7 canvas -> unmistakable boundary between Demo 1 & Demo 2! */
.dark-chapter {
  height: 175vh;
  background: var(--bg-gray);
  color: var(--ink-dark-1);
}

.oled-chapter {
  height: 160vh;
  background: var(--bg-gray);
  color: var(--ink-dark-1);
}

.chapter-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 12px) 24px 20px;
}

.chapter-inner {
  width: 100%;
  max-width: 1120px;
  padding: clamp(32px, 4.4vh, 56px) clamp(28px, 4.8vw, 64px);
  border-radius: 32px;
  display: grid;
  grid-template-columns: minmax(250px, 320px) 1fr;
  align-items: center;
  gap: clamp(32px, 5.5vw, 76px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 64px -26px rgba(10, 16, 20, 0.42);
}

.dark-chapter .chapter-inner {
  background:
    radial-gradient(circle at 18% 26%, rgba(13, 122, 132, 0.24), transparent 52%),
    linear-gradient(160deg, #151920 0%, #0b0d11 100%);
}

.oled-chapter .chapter-inner {
  background:
    radial-gradient(circle at 22% 52%, rgba(48, 225, 92, 0.11), transparent 46%),
    linear-gradient(160deg, #0b0c0e 0%, #030304 100%);
}

.chapter-inner.reverse {
  grid-template-columns: minmax(250px, 320px) 1fr;
}

.phone-stage {
  display: flex;
  justify-content: center;
  align-items: center;
}

.story-copy-col {
  max-width: 540px;
}

.story-progress-rail {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.rail-seg {
  flex: 1;
  max-width: 56px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.rail-seg i {
  display: block;
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 99px;
  will-change: width;
}

/* Grid-stacked steps: container ALWAYS grows to tallest step -> mathematically impossible to overlap timeline on mobile */
.story-steps {
  display: grid;
}

.story-step {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.45s var(--ease-expo), transform 0.45s var(--ease-expo);
}

.story-step.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.step-kicker {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-dark-2);
}

.step-kicker.accent-red {
  color: var(--rec-red);
}

.step-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.026em;
  color: #ffffff;
}

.step-desc {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.58;
  color: var(--ink-dark-2);
}

/* Native ReplayPlayerView Scroll-Scrubbed Timeline */
.native-timeline-box {
  position: relative;
  margin-top: 28px;
  padding-top: 38px;
}

.nt-marker {
  position: absolute;
  left: 58%;
  top: 0;
  transform: translateX(-50%) scale(0.7);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: opacity 0.35s var(--ease-expo), transform 0.35s var(--ease-expo);
}

.nt-marker.visible {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.nt-pill {
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--rec-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.nt-stem {
  width: 3px;
  height: 22px;
  border-radius: 2px;
  background: var(--rec-red);
}

.nt-track {
  position: relative;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  margin-bottom: 10px;
}

.nt-pre {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: var(--ring-green);
  transition: width 1.1s var(--ease-expo);
}

.nt-post {
  position: absolute;
  left: 58%;
  top: 0;
  bottom: 0;
  width: 0%;
  background: #ffffff;
  will-change: width;
}

.rail-seg i {
  display: block;
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 99px;
  transition: width 0.55s var(--ease-expo);
}

.nb-ring-svg circle#nbGreenArc {
  transition: stroke-dashoffset 1.2s var(--ease-expo), opacity 0.25s;
}

.nt-axis {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-dark-2);
}

.ps-state-indicator {
  margin-top: 26px;
}

.ps-pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: var(--ink-dark-2);
}

/* ==========================================================================
   4.5. Dedicated 1.2.0 Save-Only Spotlight Band (Crisp Elevated White Card)
   ========================================================================== */

.saveonly-band {
  background: var(--bg-gray);
  padding: 20px 0 88px;
}

.saveonly-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 44px;
  padding: 46px 54px;
  border-radius: 32px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 22px 48px -24px rgba(0, 0, 0, 0.09);
  color: var(--ink-1);
}

.saveonly-card::before {
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(13, 122, 132, 0.06),
    transparent 65%
  );
}

.saveonly-visual {
  display: grid;
  place-items: center;
}

.saveonly-glyph-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
}

.saveonly-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.saveonly-ring circle:first-child {
  stroke: rgba(0, 0, 0, 0.08);
}

.saveonly-red-sq {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: var(--rec-red);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 34px rgba(255, 59, 48, 0.3);
  transition: transform 0.35s var(--ease-expo);
}

.saveonly-sf-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.saveonly-card:hover .saveonly-red-sq {
  transform: scale(1.05);
}

.saveonly-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.024em;
  color: var(--ink-1);
}

.saveonly-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-2);
}

/* Crisp Native System Font 4K Badge */
.glyph-4k-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 5.5px;
  border: 1.6px solid #1d1d1f;
  border-radius: 5px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   5. Apple-Inspired Horizontal Snap Feature Gallery (Zero Vertical Lock!)
   ========================================================================== */

.eco-gallery-section {
  background: var(--bg-white);
  padding: 96px 0 88px;
  overflow: hidden;
}

.eco-gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.eco-head-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eyebrow {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
}

.eco-heading {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
}

.eco-arrows {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.eco-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(242, 242, 245, 0.92);
  color: var(--ink-1);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease-expo), opacity 0.2s;
}

.eco-arrow-btn:hover:not(:disabled) {
  background: #e6e6eb;
  transform: scale(1.05);
}

.eco-arrow-btn:disabled {
  opacity: 0.34;
  cursor: default;
}

/* Full-bleed horizontal snap track aligned with container + peeking next card */
.eco-carousel {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 12px max(24px, calc((100vw - 1080px) / 2 + 24px)) 28px;
  scroll-padding-left: max(24px, calc((100vw - 1080px) / 2 + 24px));
  scrollbar-width: none;
  cursor: grab;
}

.eco-carousel:active {
  cursor: grabbing;
}

.eco-carousel::-webkit-scrollbar {
  display: none;
}

/* Tall Editorial Apple-Style Feature Card */
.eco-card {
  position: relative;
  flex: 0 0 clamp(320px, 38vw, 440px);
  height: 540px;
  border-radius: 28px;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 28px 30px;
  color: #ffffff;
  background: #121418;
  box-shadow: 0 18px 42px -20px rgba(0, 0, 0, 0.26);
  transform: scale(0.965);
  opacity: 0.88;
  transition:
    transform 0.55s var(--ease-expo),
    opacity 0.45s var(--ease),
    box-shadow 0.55s var(--ease-expo);
}

.eco-card.is-active {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 28px 60px -22px rgba(0, 0, 0, 0.36);
}

.eco-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease-expo);
  z-index: 0;
}

.eco-card.is-active .eco-card-bg {
  transform: scale(1.0);
}

.eco-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 10, 14, 0.32) 0%,
    rgba(6, 10, 14, 0.08) 38%,
    rgba(6, 10, 14, 0.72) 72%,
    rgba(6, 10, 14, 0.92) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.eco-card-top,
.eco-card-body {
  position: relative;
  z-index: 3;
}

.eco-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(18, 20, 24, 0.56);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}

/* Live Pulsing Voice Waveform inside Card 0 */
.voice-wave {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 12px;
}

.voice-wave i {
  display: block;
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: #5ce6d0;
  animation: waveBar 1.2s ease-in-out infinite;
}

.voice-wave i:nth-child(2) { animation-delay: 0.16s; height: 9px; }
.voice-wave i:nth-child(3) { animation-delay: 0.32s; height: 12px; }
.voice-wave i:nth-child(4) { animation-delay: 0.48s; height: 8px; }
.voice-wave i:nth-child(5) { animation-delay: 0.64s; height: 5px; }

@keyframes waveBar {
  0%, 100% { transform: scaleY(0.45); opacity: 0.65; }
  50% { transform: scaleY(1.15); opacity: 1; }
}

.chip-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--preroll-green);
  box-shadow: 0 0 8px rgba(48, 225, 92, 0.8);
}

.chip-dot-amber {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd60a;
  box-shadow: 0 0 8px rgba(255, 214, 10, 0.85);
}

/* Neutral Dark-Titanium Studio Card for Apple Watch (ZERO ugly green!) */
.eco-card-watch {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.11), transparent 56%),
    linear-gradient(180deg, #1c1e24 0%, #0d0f13 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.eco-watch-visual {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 0;
}

.eco-watch-visual .watch-hw {
  width: auto;
  height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.55));
  transition: transform 0.8s var(--ease-expo);
}

.eco-card-watch.is-active .w-left {
  animation: watchFloatA 5.2s ease-in-out infinite;
}

.eco-card-watch.is-active .w-right {
  animation: watchFloatB 5.2s ease-in-out infinite;
}

@keyframes watchFloatA {
  0%, 100% { transform: translateY(-4px); }
  50% { transform: translateY(5px); }
}

@keyframes watchFloatB {
  0%, 100% { transform: translateY(6px); }
  50% { transform: translateY(-4px); }
}

/* Breathing Night Flashlight Glow inside Card 2 */
.night-beam-aura {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 46% 58%, rgba(255, 222, 140, 0.18), transparent 52%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
}

.eco-card-night.is-active .night-beam-aura {
  animation: nightBeamBreath 4.2s ease-in-out infinite;
}

@keyframes nightBeamBreath {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.85; }
}

.eco-card-body h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.2vw, 27px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.eco-card-body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.56;
  color: rgba(255, 255, 255, 0.82);
}

.phrase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.phrase-tags span {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
}

.eco-pager-bar {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.eco-nav-pills {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--bg-gray);
}

.eco-pill {
  border: 0;
  background: transparent;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.28s, color 0.28s;
}

.eco-pill:hover {
  color: var(--ink-1);
}

.eco-pill.is-active {
  background: var(--ink-1);
  color: #ffffff;
}

/* ==========================================================================
   6. Waterfront Craft + Mouse-Reactive Cards + Precision SF-Grade Icons
   ========================================================================== */

.details-section {
  background: var(--bg-gray);
  padding: 112px 0;
}

.interactive-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-expo), box-shadow 0.35s var(--ease);
}

.interactive-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(29, 29, 31, 0.045),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 2;
}

.interactive-card:hover::before {
  opacity: 1;
}

.interactive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -14px rgba(0, 0, 0, 0.09);
}

.lifestyle-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
}

.lifestyle-media {
  min-height: 360px;
  overflow: hidden;
}

.lifestyle-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  transition: transform 0.8s var(--ease-expo);
}

.lifestyle-card:hover .lifestyle-media img {
  transform: scale(1.03);
}

.lifestyle-copy {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lifestyle-title {
  margin: 8px 0 14px;
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.022em;
}

.lifestyle-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-2);
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.craft-card {
  background: var(--bg-white);
  border-radius: 24px;
  padding: 32px 28px;
}

.craft-glyph {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f5f5f7;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: transform 0.3s var(--ease-expo);
}

.craft-card:hover .craft-glyph {
  transform: scale(1.06);
}

.craft-card h3 {
  margin: 0 0 8px;
  font-size: 18.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.craft-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--ink-2);
}

/* ==========================================================================
   7. Privacy, Hairline Specs, Download & Footer
   ========================================================================== */

.privacy-section {
  background: var(--bg-white);
  padding: 112px 0;
  text-align: center;
}

.privacy-head {
  max-width: 640px;
  margin: 0 auto 48px;
}

.privacy-lock {
  margin: 0 auto 18px;
}

.section-heading {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.privacy-sub {
  margin: 14px 0 0;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
}

.privacy-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  text-align: left;
  padding: 34px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.privacy-cols h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.privacy-cols p {
  margin: 0;
  font-size: 14px;
  line-height: 1.56;
  color: var(--ink-2);
}

.privacy-action {
  margin-top: 28px;
}

.specs-section {
  background: var(--bg-gray);
  padding: 96px 0;
}

.specs-title {
  margin: 0 0 36px;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.specs-list {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.spec-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}

.spec-k {
  font-size: 15px;
  font-weight: 600;
}

.spec-v {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.download-section {
  background: var(--bg-white);
  padding: 104px 0 112px;
  text-align: center;
}

.download-icon {
  margin: 0 auto 22px;
  border-radius: 22.5%;
  box-shadow: 0 18px 38px -10px rgba(0, 0, 0, 0.2);
}

.download-title {
  margin: 0 0 12px;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
}

.download-sub {
  margin: 0 0 30px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
}

.download-btn-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.appstore-link {
  display: inline-block;
  transition: transform 0.2s var(--ease-expo);
}

.download-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.download-links .sep {
  color: var(--ink-3);
}

.site-footer {
  background: var(--bg-gray);
  border-top: 1px solid var(--border-light);
  padding: 36px 0 46px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
}

.footnotes {
  margin: 0 0 22px;
  padding: 0 0 20px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}

.footnotes li {
  margin-bottom: 6px;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links span {
  opacity: 0.35;
}

.footer-links button,
.footer-links a {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink-1);
  cursor: pointer;
}

.footer-links button:hover,
.footer-links a:hover {
  text-decoration: underline;
}

/* Modal Sheet */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  width: min(720px, 100%);
  max-height: min(82vh, 740px);
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.3s var(--ease-expo);
}

.modal-backdrop.open .modal-sheet {
  transform: none;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}

.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-gray);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.modal-body {
  padding: 22px 26px 32px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.66;
  color: var(--ink-2);
}

.modal-body h3 {
  margin: 20px 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-1);
}

.modal-body h3:first-child { margin-top: 0; }
.modal-body p { margin: 0 0 10px; text-wrap: pretty; }
.modal-body a { color: var(--link-light); }

/* Bidirectional Reveal (animates in & gently rests) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo);
}

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

@media (prefers-reduced-motion: reduce) {
  .intro, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .poster-img, .live-dot-green, .scroll-line::after, .eso-preroll-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   8. Responsive Breakpoints
   ========================================================================== */

@media (max-width: 920px) {
  /* ZERO sticky scroll-locking on mobile / touch devices + clear card boundaries on #f5f5f7! */
  .dark-chapter,
  .oled-chapter {
    height: auto;
  }

  .chapter-sticky {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
    padding: 12px 14px;
  }

  .chapter-inner,
  .chapter-inner.reverse {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 28px;
    border-radius: 28px;
    padding: 40px 22px 34px;
  }

  .real-iphone {
    width: clamp(216px, 58vw, 260px);
  }

  .story-progress-rail {
    justify-content: center;
    margin-bottom: 16px;
  }

  .step-title {
    font-size: clamp(24px, 6.2vw, 32px);
    margin-bottom: 10px;
  }

  .step-desc {
    font-size: 15px;
    line-height: 1.56;
  }

  .native-timeline-box {
    margin-top: 22px;
    padding-top: 34px;
  }

  .saveonly-band {
    padding: 12px 0 64px;
  }

  .saveonly-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 36px 24px;
    gap: 28px;
    border-radius: 28px;
  }

  /* Apple-style Horizontal Snap Gallery on Mobile: silky horizontal swipe + peeking next card */
  .eco-gallery-section {
    padding: 72px 0 68px;
  }

  .eco-gallery-head {
    margin-bottom: 22px;
  }

  .eco-carousel {
    gap: 14px;
    padding: 10px 20px 22px;
    scroll-padding-left: 20px;
  }

  .eco-card {
    flex: 0 0 82vw;
    max-width: 360px;
    height: 486px;
    border-radius: 26px;
    padding: 20px 22px 24px;
    scroll-snap-align: center;
  }

  .eco-watch-visual .watch-hw {
    height: 176px;
  }

  .eco-nav-pills {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    max-width: calc(100vw - 28px);
    scrollbar-width: none;
    gap: 4px;
    padding: 4px;
  }

  .eco-nav-pills::-webkit-scrollbar {
    display: none;
  }

  .eco-pill {
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .lifestyle-card {
    grid-template-columns: 1fr;
  }

  .craft-grid,
  .privacy-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: inline-flex; }

  .floating-nav-wrap {
    top: 8px;
    padding: 0 12px;
  }

  .floating-nav {
    height: 46px;
    padding: 0 8px 0 14px;
  }

  /* Continuous light canvas Hero -> ZERO split knife-cut, uniform 4-corner rounded poster */
  .hero-section {
    height: auto;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  }

  .hero-sticky {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
    padding-top: calc(var(--nav-h) + 12px);
    justify-content: flex-start;
  }

  .hero-header {
    margin-bottom: 20px;
    transform: none !important;
    opacity: 1 !important;
  }

  .hero-icon {
    width: 56px;
    height: 56px;
  }

  .poster-wrap {
    flex: none;
    width: 100%;
    height: auto;
    padding: 0 14px 20px;
    background: transparent;
  }

  .dynamic-poster {
    aspect-ratio: 4 / 3;
    height: auto;
    clip-path: none !important;
    border-radius: 24px;
    box-shadow: 0 22px 46px -18px rgba(15, 25, 28, 0.24);
  }

  .poster-img {
    object-position: 86% 40%;
    transform: none !important;
  }

  .poster-hud-top {
    top: 14px;
    left: 16px;
    right: 16px;
    transform: none !important;
  }

  .poster-badge {
    font-size: 9.5px;
    padding: 4px 9px;
    white-space: nowrap;
  }

  .poster-spec {
    display: none;
  }

  .poster-hud-bottom {
    bottom: 14px;
    left: 16px;
    right: 16px;
    transform: none !important;
  }

  .poster-kicker {
    font-size: 10.5px;
  }

  .poster-line {
    font-size: 16px;
  }

  .c-tl { top: 12px; left: 12px; }
  .c-tr { top: 12px; right: 12px; }
  .c-bl { bottom: 12px; left: 12px; }
  .c-br { bottom: 12px; right: 12px; }

  .lang-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lang-toggle {
    max-width: 104px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .poster-scroll-cue { display: none; }

  .craft-grid,
  .privacy-cols {
    grid-template-columns: 1fr;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .details-section,
  .privacy-section,
  .specs-section,
  .download-section {
    padding: 72px 0;
  }

  .lifestyle-copy {
    padding: 30px 22px;
  }
}
