/* SoleScan landing — scroll-cinematic, dark + electric-blue scan identity */
:root {
  --bg: #000000;
  --surface: #1c1c1e;
  --surface-soft: rgba(28, 28, 30, 0.6);
  --primary: #1e6bff;
  --primary-soft: #4d8bff;
  --primary-glow: rgba(30, 107, 255, 0.16);
  --text: #ffffff;
  --text-secondary: rgba(235, 235, 245, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --max-w: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

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

/* ---------- atmosphere ---------- */
.bg-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}
.bg-texture {
  position: absolute;
  inset: -10% -10%;
  background-image: url("/img/texture.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  mix-blend-mode: screen;
  will-change: transform;
}
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.bg-glow--1 { top: -12%; left: 58%; width: 640px; height: 640px; background: radial-gradient(circle, var(--primary), transparent 70%); }
.bg-glow--2 { bottom: -10%; left: -8%; width: 560px; height: 560px; background: radial-gradient(circle, #0a2a66, transparent 70%); }
.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  backdrop-filter: blur(16px);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(0, 0, 0, 0.82);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-family: var(--font-display);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.nav__brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav__cta {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 100px;
  background: var(--primary);
  color: #ffffff;
  transition: transform 0.15s ease, background 0.15s ease;
}
.nav__cta:hover { background: var(--primary-soft); transform: translateY(-1px); }

/* ---------- layout ---------- */
main { position: relative; z-index: 1; }
.scene {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
}
.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; }

/* ---------- hero ---------- */
.scene--hero {
  flex-direction: column;
  text-align: center;
  padding-top: 140px;
  gap: 8px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-soft);
  margin: 0 0 18px;
}
.hero__content h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 800;
}
.hero__content h1 .accent { color: var(--primary-soft); }
.hero__lede {
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
}
.hero__actions { display: flex; justify-content: center; margin-bottom: 56px; }
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: #060606;
  padding: 12px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 30px rgba(30, 107, 255, 0.2);
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(30, 107, 255, 0.34); }
.btn-store svg { width: 22px; height: 22px; }
.btn-store .btn-store__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.btn-store .btn-store__text small { font-size: 10.5px; font-weight: 500; opacity: 0.7; }
.btn-store .btn-store__text strong { font-size: 16.5px; }

.hero__device {
  position: relative;
  display: flex;
  justify-content: center;
}
.device-frame {
  position: relative;
  width: min(300px, 72vw);
  border-radius: 46px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(30, 107, 255, 0.1), 0 0 90px rgba(30, 107, 255, 0.16);
  transform: translateY(0);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .device-frame { animation: none; }
}
.device-frame img { width: 100%; height: auto; }

.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 26px;
  background: linear-gradient(var(--primary), transparent);
  animation: scrolldrop 1.8s ease-in-out infinite;
}
@keyframes scrolldrop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue::after { animation: none; }
}

/* ---------- feature scenes ---------- */
.scene--feature .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.scene--feature.reverse .wrap { direction: rtl; }
.scene--feature.reverse .wrap > * { direction: ltr; }
.feature__index {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-soft);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.feature__text h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 800;
}
.feature__text p {
  color: var(--text-secondary);
  font-size: clamp(15.5px, 1.6vw, 18px);
  max-width: 460px;
  margin: 0 0 22px;
}
.feature__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.feature__list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text); font-size: 15px;
}
.feature__list li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><path d='M5 13l4 4L19 7'/></svg>") center/60% no-repeat, radial-gradient(#000, #000);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><path d='M5 13l4 4L19 7'/></svg>") center/60% no-repeat;
  background: var(--primary-soft);
}
.feature__device { display: flex; justify-content: center; }
.feature__device .device-frame { animation: none; width: min(260px, 60vw); }

/* scroll reveal */
[data-reveal] .feature__text,
[data-reveal] .feature__device {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal] .feature__device { transition-delay: 0.12s; }
[data-reveal].is-visible .feature__text,
[data-reveal].is-visible .feature__device {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] .feature__text, [data-reveal] .feature__device { transition: none; opacity: 1; transform: none; }
}

/* ---------- proof / faq ---------- */
.scene--proof { flex-direction: column; padding-top: 100px; }
.proof__wrap { max-width: 780px; margin: 0 auto; text-align: center; }
.proof__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 100px;
  background: var(--surface-soft); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-secondary); margin-bottom: 28px;
}
.proof__badge strong { color: var(--primary-soft); }
.scene--proof h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.quote-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 72px;
  text-align: left;
}
.quote-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  font-size: 14.5px;
  color: var(--text-secondary);
}
.quote-card strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 8px; }

.faq { text-align: left; display: flex; flex-direction: column; gap: 12px; margin-bottom: 64px; }
.faq-item {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--primary-soft);
  transition: transform 0.2s ease;
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-secondary); font-size: 14.5px; margin: 12px 0 2px; }

.final-cta { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final-cta p { color: var(--text-secondary); margin: 0; }

/* ---------- footer ---------- */
footer.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 40px 24px 48px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}
footer.site-footer .footer-links {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  margin-bottom: 14px;
}
footer.site-footer a { text-decoration: none; color: var(--text-secondary); }
footer.site-footer a:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .scene--feature .wrap { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .scene--feature .feature__text p { margin-left: auto; margin-right: auto; }
  .feature__list { align-items: flex-start; margin: 0 auto; width: fit-content; }
  .quote-row { grid-template-columns: 1fr; }
  .scene { padding-top: 96px; }
}
