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

:root {
  --bg: #000;
  --surface: #0a0a0a;
  --border: #1a1a1a;
  --text: #e5e5e5;
  --text-secondary: #888;
  --text-tertiary: #777;
  --white: #fff;
  --accent: #e5333d;
  --max-width: 680px;
  --max-width-wide: 1080px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---- FOCUS ---- */

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

/* ---- NAV ---- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}

nav .nav-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
}

nav .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

nav .nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

nav .nav-links .beta-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px 6px 10px;
  border-radius: 10px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  text-decoration: none;
  height: 36px;
}

nav .nav-links .beta-badge:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.05);
}

nav .nav-links .beta-badge .beta-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.beta-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.beta-badge-text small {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.beta-badge-text {
  font-size: 13px;
  font-weight: 600;
}

/* ---- LAYOUT ---- */

.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.page-content h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.page-content .subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.page-content h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-top: 48px;
  margin-bottom: 12px;
}

.page-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-top: 32px;
  margin-bottom: 8px;
}

.page-content p {
  margin-bottom: 16px;
}

.page-content ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.page-content li {
  margin-bottom: 8px;
}

.page-content a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.page-content a:hover {
  opacity: 0.8;
}

.page-content strong {
  color: var(--white);
  font-weight: 600;
}

/* ---- HOMEPAGE ---- */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1100px;
  height: 1100px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 35%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' fill='white' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

.hero-image {
  width: 220px;
  height: auto;
  margin-bottom: 40px;
  border-radius: 24px;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 80px rgba(255, 255, 255, 0.05));
  animation: heroFloat 6s ease-in-out infinite;
}

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

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

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  background: linear-gradient(to bottom, #fff 30%, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero .hero-sub {
  font-size: clamp(16px, 2.5vw, 19px);
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 40px;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.hero .beta-link {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

/* ---- HERO PHOTOS ---- */
/* right/left: 50% anchors each photo's inner edge to viewport center.
   translateX(±N) pushes it past the phone's left/right edge so it tucks
   behind the phone (photos z-index:0, phone z-index:1). */

.hero-photos {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-photo {
  position: absolute;
  width: 130px;
  margin: 0;
}

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* phone half-width ~90px (mobile) → translateX(-55px) = 35px overlap */
.hero-photo--left {
  right: 50%;
  top: 50%;
  transform: translateX(-55px) translateY(-55%) rotate(-6deg);
  animation: hpLeft 1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.hero-photo--right {
  left: 50%;
  top: 50%;
  transform: translateX(55px) translateY(-42%) rotate(5deg);
  animation: hpRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

@keyframes hpLeft {
  from {
    opacity: 0;
    transform: translateX(-155px) translateY(-55%) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: translateX(-55px) translateY(-55%) rotate(-6deg);
  }
}

@keyframes hpRight {
  from {
    opacity: 0;
    transform: translateX(155px) translateY(-42%) rotate(5deg);
  }
  to {
    opacity: 1;
    transform: translateX(55px) translateY(-42%) rotate(5deg);
  }
}

/* phone half-width ~110px (641px–1399px) → translateX(±70px) = 40px overlap */
@media (min-width: 641px) {
  .hero-photo {
    width: 175px;
  }
  .hero-photo--left {
    transform: translateX(-70px) translateY(-55%) rotate(-6deg);
    animation-name: hpLeftMd;
  }
  .hero-photo--right {
    transform: translateX(70px) translateY(-42%) rotate(5deg);
    animation-name: hpRightMd;
  }
}

@keyframes hpLeftMd {
  from {
    opacity: 0;
    transform: translateX(-170px) translateY(-55%) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: translateX(-70px) translateY(-55%) rotate(-6deg);
  }
}

@keyframes hpRightMd {
  from {
    opacity: 0;
    transform: translateX(170px) translateY(-42%) rotate(5deg);
  }
  to {
    opacity: 1;
    transform: translateX(70px) translateY(-42%) rotate(5deg);
  }
}

@media (min-width: 1100px) {
  .hero-photo {
    width: 240px;
  }
}

/* phone half-width ~180px (1400px+) → translateX(±140px) = 40px overlap */
@media (min-width: 1400px) {
  .hero-photo {
    width: 260px;
  }
  .hero-photo--left {
    transform: translateX(-140px) translateY(-55%) rotate(-6deg);
    animation-name: hpLeftXl;
  }
  .hero-photo--right {
    transform: translateX(140px) translateY(-42%) rotate(5deg);
    animation-name: hpRightXl;
  }
}

@keyframes hpLeftXl {
  from {
    opacity: 0;
    transform: translateX(-240px) translateY(-55%) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: translateX(-140px) translateY(-55%) rotate(-6deg);
  }
}

@keyframes hpRightXl {
  from {
    opacity: 0;
    transform: translateX(240px) translateY(-42%) rotate(5deg);
  }
  to {
    opacity: 1;
    transform: translateX(140px) translateY(-42%) rotate(5deg);
  }
}

.beta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s;
}

.beta-link:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.beta-link .beta-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.beta-link-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.beta-link-text small {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.beta-link-text {
  font-size: 19px;
  font-weight: 600;
}

/* ---- GALLERY ---- */

.section.gallery-section {
  overflow: hidden;
  max-width: 2560px;
  margin: 0 auto;
}

.gallery-track {
  position: relative;
  margin: 0 -20px;
}

.gallery-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px;
  scroll-padding-left: 20px;
  scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 72vw;
  scroll-snap-align: start;
}

.gallery-item picture {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.gallery-item figcaption {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 10px;
  padding-left: 2px;
  transition: color 0.3s;
}

.gallery-item:hover figcaption {
  color: var(--text);
}

.gallery-credit {
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: right;
  max-width: var(--max-width-wide);
  margin: 16px auto 0;
  padding: 0 24px;
}

.gallery-credit a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.gallery-credit a:hover {
  color: var(--white);
}

@media (min-width: 641px) {
  .gallery-track {
    margin: 0 -24px;
  }

  .gallery-scroll {
    gap: 16px;
    padding: 0 24px;
    scroll-padding-left: 24px;
  }

  .gallery-item {
    flex: 0 0 48vw;
  }

  .gallery-item picture {
    border-radius: 12px;
  }

  .gallery-img {
    border-radius: 12px;
  }
}

@media (min-width: 900px) {
  .gallery-item {
    flex: 0 0 calc((100% - 48px) / 3.3);
  }
}

@media (min-width: 1800px) {
  .gallery-track {
    margin: 0 auto;
    padding: 0 48px;
  }

  .gallery-scroll {
    overflow-x: visible;
    gap: 20px;
    padding: 0;
  }

  .gallery-item {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* ---- SECTIONS ---- */

.section {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 100px 24px;
  border-top: 1px solid var(--border);
  position: relative;
}

.section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  pointer-events: none;
}

.section-header {
  max-width: var(--max-width);
  margin: 0 auto 56px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: "";
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
  opacity: 0.7;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
}

/* Preset reel video */

.stocks-hero {
  max-width: var(--max-width-wide);
  margin: 0 auto 64px;
}

.preset-reel {
  display: flex;
  justify-content: center;
}

.preset-reel-phone {
  width: 240px;
  position: relative;
  filter: drop-shadow(0 24px 80px rgba(0, 0, 0, 0.7));
}

.preset-reel-phone video {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 641px) {
  .preset-reel-phone {
    width: 300px;
  }
}

@media (min-width: 900px) {
  .stocks-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
  }

  .stocks-hero .section-header {
    max-width: none;
    margin-bottom: 0;
  }

  .stocks-hero .section-header h2 {
    font-size: clamp(32px, 4vw, 44px);
  }

  .stocks-hero .section-header p {
    max-width: none;
    font-size: 18px;
  }

  .preset-reel {
    justify-content: flex-end;
  }
}

@media (min-width: 1400px) {
  .preset-reel-phone {
    width: 340px;
  }
}

/* Film stocks grid */

.stocks-group h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.stocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.stock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
}

.stock-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: #111;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.stock-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.stock-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.stocks-note {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 15px;
  color: var(--text-secondary);
}

/* Film stock color DNA — left bar accent per stock */
.stocks-grid .stock-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--card-bar, transparent);
}

/* Color stocks */
.stocks-grid .stock-card:nth-child(1) {
  --card-bar: #c47840;
} /* Kodak Portra 400 */
.stocks-grid .stock-card:nth-child(2) {
  --card-bar: #d4a030;
} /* Kodak Gold 200 */
.stocks-grid .stock-card:nth-child(3) {
  --card-bar: #d44830;
} /* Kodak Ektar 100 */
.stocks-grid .stock-card:nth-child(4) {
  --card-bar: #a83030;
} /* Kodachrome 64 */
.stocks-grid .stock-card:nth-child(5) {
  --card-bar: #38a040;
} /* Fujifilm Velvia 50 */
.stocks-grid .stock-card:nth-child(6) {
  --card-bar: #38a880;
} /* Fujifilm Superia 400 */
.stocks-grid .stock-card:nth-child(7) {
  --card-bar: #8298d0;
} /* Fujifilm Pro 400H */
.stocks-grid .stock-card:nth-child(8) {
  --card-bar: #2878b8;
} /* CineStill 800T */

/* Black & white stocks (second .stocks-group) */
.stocks-group + .stocks-group .stocks-grid .stock-card:nth-child(1) {
  --card-bar: #808080;
} /* Tri-X 400 */
.stocks-group + .stocks-group .stocks-grid .stock-card:nth-child(2) {
  --card-bar: #585858;
} /* Ilford HP5 */

/* Print stocks */

.print-list {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.print-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
}

.print-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: #111;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.print-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.print-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Cinema print stock color accents */
.print-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--card-bar, transparent);
}

.print-card:nth-child(1) {
  --card-bar: #c06820;
} /* Kodak Vision 2383 */
.print-card:nth-child(2) {
  --card-bar: #8a6840;
} /* Kodak Vision 2393 */
.print-card:nth-child(3) {
  --card-bar: #2878b0;
} /* Fuji Eterna 3510 */

/* Pipeline */

.pipeline {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pipeline {
  counter-reset: pipeline-counter;
}

.pipeline-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  counter-increment: pipeline-counter;
  transition:
    border-color 0.3s,
    color 0.3s;
}

.pipeline-stage::before {
  content: counter(pipeline-counter) ". ";
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pipeline-stage:hover {
  border-color: rgba(229, 51, 61, 0.3);
  color: var(--text);
}

.pipeline.visible .pipeline-stage {
  animation: heroFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pipeline.visible .pipeline-stage:nth-child(1) {
  animation-delay: 0s;
}
.pipeline.visible .pipeline-stage:nth-child(2) {
  animation-delay: 0.04s;
}
.pipeline.visible .pipeline-stage:nth-child(3) {
  animation-delay: 0.08s;
}
.pipeline.visible .pipeline-stage:nth-child(4) {
  animation-delay: 0.12s;
}
.pipeline.visible .pipeline-stage:nth-child(5) {
  animation-delay: 0.16s;
}
.pipeline.visible .pipeline-stage:nth-child(6) {
  animation-delay: 0.2s;
}
.pipeline.visible .pipeline-stage:nth-child(7) {
  animation-delay: 0.24s;
}
.pipeline.visible .pipeline-stage:nth-child(8) {
  animation-delay: 0.28s;
}
.pipeline.visible .pipeline-stage:nth-child(9) {
  animation-delay: 0.32s;
}
.pipeline.visible .pipeline-stage:nth-child(10) {
  animation-delay: 0.36s;
}
.pipeline.visible .pipeline-stage:nth-child(11) {
  animation-delay: 0.4s;
}
.pipeline.visible .pipeline-stage:nth-child(12) {
  animation-delay: 0.44s;
}
.pipeline.visible .pipeline-stage:nth-child(13) {
  animation-delay: 0.48s;
}
.pipeline.visible .pipeline-stage:nth-child(14) {
  animation-delay: 0.52s;
}

.pipeline-note {
  max-width: var(--max-width);
  margin: 24px auto 0;
  font-size: 15px;
  color: var(--text-secondary);
}

/* Formats */

.formats-row {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.format-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.3s;
}

.format-tag:hover {
  border-color: rgba(229, 51, 61, 0.35);
  background: rgba(229, 51, 61, 0.05);
  transform: translateY(-2px);
}

.formats-note {
  max-width: var(--max-width);
  margin: 16px auto 0;
  font-size: 15px;
  color: var(--text-secondary);
}

/* Details */

.details-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.detail-item {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 12px 0 12px 20px;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s;
  position: relative;
}

.detail-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.65;
}

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

/* CTA */

.cta-section {
  text-align: center;
  padding: 120px 24px;
  border-top: 1px solid var(--border);
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  background: linear-gradient(to bottom, #fff 30%, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-section > p {
  font-size: clamp(17px, 2.5vw, 19px);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Newsletter */

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

.cta-section .beta-link {
  margin-bottom: 80px;
}

.newsletter-note {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.newsletter {
  display: grid;
  min-height: 100px;
  align-items: flex-start;
}

.newsletter-form,
.newsletter-result {
  grid-area: 1 / 1;
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.newsletter-result {
  flex-direction: column;
  visibility: hidden;
  pointer-events: none;
}

.newsletter-form input[type="email"] {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  align-self: stretch;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--white);
  font-family: inherit;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  min-width: 0;
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--text-tertiary);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.newsletter-form button {
  background: var(--white);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.newsletter-form button:hover {
  opacity: 0.88;
}

.newsletter-loading {
  display: none;
  background: var(--text-tertiary);
  cursor: default;
}

.newsletter-loading:hover {
  opacity: 1;
}

.newsletter-success,
.newsletter-error {
  font-size: 16px;
  line-height: 1.5;
}

.newsletter-success {
  color: var(--white);
}

.newsletter-error {
  color: var(--accent);
}

.newsletter-back {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s;
}

.newsletter-back:hover {
  color: var(--white);
}

/* States */

.newsletter[data-state="loading"] .newsletter-form button[type="submit"] {
  display: none;
}

.newsletter[data-state="loading"] .newsletter-loading {
  display: block;
}

.newsletter[data-state="loading"] .newsletter-form input {
  display: none;
}

.newsletter[data-state="success"] .newsletter-form,
.newsletter[data-state="error"] .newsletter-form {
  visibility: hidden;
  pointer-events: none;
}

.newsletter[data-state="success"] .newsletter-result,
.newsletter[data-state="error"] .newsletter-result {
  visibility: visible;
  pointer-events: auto;
}

.newsletter[data-state="error"] .newsletter-success {
  display: none;
}

.newsletter[data-state="success"] .newsletter-error {
  display: none;
}

@media (max-width: 640px) {
  .newsletter-form {
    flex-direction: column;
    max-width: 320px;
  }

  .newsletter-form button {
    padding: 14px 24px;
    width: 100%;
  }
}

/* ---- FOOTER ---- */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  list-style: none;
}

footer .footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

footer .footer-links a:hover {
  color: var(--white);
}

footer .footer-disclaimer {
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
  margin-bottom: 16px;
  opacity: 0.7;
}

footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer .copyright {
  font-size: 13px;
  color: var(--text-tertiary);
}

footer .copyright a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

footer .copyright a:hover {
  color: var(--white);
}

/* FAQ */

.faq {
  max-width: var(--max-width);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-q {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.faq-a {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-a a {
  color: var(--accent);
  text-decoration: none;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 640px) {
  .hero-image {
    width: 180px;
  }

  .section {
    padding: 72px 20px;
  }

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

  .nav-links .nav-text {
    display: none;
  }
}

@media (min-width: 1400px) {
  .hero-image {
    width: 360px;
  }
}

@media (min-width: 1600px) {
  .hero-image {
    width: 400px;
  }
}

/* ---- SCROLL REVEAL ---- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}

/* ---- CTA GLOW ---- */

.cta-section {
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 40%,
    transparent 65%
  );
  pointer-events: none;
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

/* ---- REDUCED MOTION ---- */

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

  .hero-image {
    animation: none;
  }

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

/* ---- LANGUAGE SWITCHER ---- */

.lang-switcher {
  position: relative;
}

.lang-current {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  padding: 4px 10px;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
  font-family: inherit;
}

.lang-current:hover,
.lang-current:focus-visible {
  color: var(--white);
  border-color: var(--text-tertiary);
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 0;
  min-width: 140px;
  list-style: none;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lang-switcher.open .lang-menu {
  display: block;
}

.lang-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}

.lang-menu a:hover,
.lang-menu a:focus-visible {
  background: var(--border);
  color: var(--white);
}

.lang-menu a[aria-current="true"] {
  color: var(--white);
  font-weight: 600;
}

/* ---- PRESS PAGE ---- */

.press-page .subtitle {
  margin-bottom: 0;
}

.press-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.press-app-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  display: block;
}

.press-screenshots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .press-screenshots {
    grid-template-columns: repeat(3, 1fr);
  }
}

.press-screenshot-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.press-screenshot-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

.press-screenshot-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.press-screenshot-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.press-download-link {
  font-size: 12px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}

.press-download-link:hover {
  color: var(--white);
}

.press-photos-credit {
  font-size: 13px;
  color: var(--text-tertiary);
  font-style: italic;
}

.press-photos-credit a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.press-photos-credit a:hover {
  color: var(--white);
}

.press-story-text {
  line-height: 1.75;
}

.press-story-text p {
  margin-bottom: 20px;
  color: var(--text);
}

.press-copy-block {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 72px 16px 16px;
  margin-bottom: 16px;
}

.press-copy-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.press-copy-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 12px;
}

.press-copy-text:last-of-type {
  margin-bottom: 0;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    color 0.15s,
    border-color 0.15s;
}

.copy-btn:hover {
  color: var(--white);
  border-color: var(--text-tertiary);
}

.copy-btn.copied {
  color: #4caf50;
  border-color: #4caf50;
}

.press-facts {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  max-width: var(--max-width);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.press-facts dt,
.press-facts dd {
  padding: 10px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.press-facts > :last-child,
.press-facts > :nth-last-child(2) {
  border-bottom: none;
}

.press-facts dt {
  color: var(--text-secondary);
  font-weight: 500;
  background: var(--surface);
}

.press-facts dd {
  color: var(--text);
}

.press-facts a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.press-facts a:hover {
  opacity: 0.8;
}

@media (max-width: 480px) {
  .press-facts {
    grid-template-columns: 1fr;
  }

  .press-facts dt {
    padding-bottom: 2px;
    border-bottom: none;
    color: var(--text-tertiary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-top: 14px;
  }

  .press-facts dt:first-child {
    padding-top: 10px;
  }

  .press-facts dd {
    padding-top: 2px;
  }

  .press-facts > :last-child,
  .press-facts > :nth-last-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .press-facts > :last-child {
    border-bottom: none;
  }
}
