/* ============================================================
   PRODSHOT — Shared Styles
   ============================================================ */

:root {
  --bg:         #0E1116;
  --bg-alt:     #10141C;
  --surface:    #141922;
  --surface-2:  #1B2130;
  --border:     #1E2838;
  --border-2:   #252F42;
  --accent:     #2B5CFF;
  --accent-h:   #4470FF;
  --accent-dim: rgba(43, 92, 255, 0.12);
  --accent-b:   rgba(43, 92, 255, 0.28);
  --blue-soft:  #7BA4FF;
  --text:       #EDF1FA;
  --text-2:     #8994A8;
  --text-3:     #505C72;
  --r:          12px;
  --r-lg:       18px;
  --r-xl:       24px;
  --max:        1140px;
  --ease:       0.18s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }

/* ── Container ───────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(10, 13, 18, 0.84);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav-logo .dot { color: var(--accent); }

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 9px 20px;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background var(--ease), transform var(--ease);
}

.btn-nav:hover { background: var(--accent-h); transform: translateY(-1px); }

/* ── Section base ─────────────────────────────────────────── */
section { padding: 100px 0; }

.s-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 14px;
}

.s-title {
  font-size: clamp(1.875rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 18px;
}

.s-sub {
  font-size: 1.0625rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 500px;
}

.s-header {
  text-align: center;
  margin-bottom: 64px;
}

.s-header .s-sub {
  margin: 0 auto;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 152px 24px 100px;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%,  rgba(43, 92, 255, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 30% at 50% 105%, rgba(43, 92, 255, 0.06) 0%, transparent 60%);
}

.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-b);
  color: var(--blue-soft);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 30px;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 7px var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  position: relative;
  font-size: clamp(2.75rem, 7.5vw, 5.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--text);
  max-width: 820px;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #6B9FFF 0%, #AAC8FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  position: relative;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-2);
  max-width: 460px;
  margin-bottom: 46px;
  line-height: 1.6;
  font-weight: 400;
}

.hero-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--text);
  color: #0A0D12;
  padding: 15px 30px;
  border-radius: var(--r);
  font-weight: 700;
  transition: all var(--ease);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-appstore:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.55);
}

.btn-appstore .btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.btn-appstore .btn-text .small-label {
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-appstore .btn-text .big-label {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--text-3);
  letter-spacing: 0.01em;
}

.hero-note b { color: var(--text-2); font-weight: 500; }

/* ── Comparison ───────────────────────────────────────────── */
.comparison {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-bottom: 80px;
}


/* ── Features ─────────────────────────────────────────────── */
.features { background: var(--bg); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: border-color var(--ease), transform var(--ease), background var(--ease);
}

.feat-card:hover {
  border-color: var(--accent-b);
  transform: translateY(-3px);
  background: var(--surface-2);
}

.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-b);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue-soft);
  flex-shrink: 0;
}

.feat-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.feat-card p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

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

.footer-brand h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer-brand h3 .dot { color: var(--accent); }

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-top: 4px;
}

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

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color var(--ease);
}

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

.footer-links .sep { color: var(--border-2); user-select: none; }

/* ── Hero icon ────────────────────────────────────────────── */
.hero-icon {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 8px 32px rgba(0,0,0,0.5), 0 0 40px rgba(43,92,255,0.25);
}

.hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Screenshots track (used inside the comparison section) ── */
.shots-track {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 8px;
}

/* ── Doc cards (callout panels in Privacy / Terms) ────────── */
.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin-bottom: 14px;
}

.doc-card p:last-child,
.doc-card ul:last-child { margin-bottom: 0; }

/* ── Doc pages (Privacy / Terms) ─────────────────────────── */
.doc-wrap { padding-top: 64px; }

.doc-header {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(43, 92, 255, 0.14) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 72px 24px 56px;
  text-align: center;
}

.doc-header .s-label { margin-bottom: 10px; }

.doc-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.doc-header p { font-size: 0.9375rem; color: var(--text-2); }

.doc-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.doc-content h2 {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-top: 52px;
  margin-bottom: 16px;
  padding-top: 52px;
  border-top: 1px solid var(--border);
}

.doc-content > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.doc-content p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 14px;
}

.doc-content ul,
.doc-content ol {
  color: var(--text-2);
  line-height: 1.85;
  padding-left: 22px;
  margin-bottom: 14px;
}

.doc-content li {
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

.doc-content a {
  color: var(--blue-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-content a:hover { color: var(--text); }

.doc-content strong { color: var(--text); font-weight: 600; }

/* ── Animations & motion ──────────────────────────────────── */

/* Hero icon — bounce pop */
.hero-icon {
  animation: iconPop 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both;
}
@keyframes iconPop {
  from { opacity: 0; transform: scale(0.5) rotate(-8deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Badge dot — breathe */
.badge-dot {
  animation: breathe 2.6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 5px var(--accent); opacity: 1; }
  50%       { box-shadow: 0 0 16px var(--accent), 0 0 32px rgba(43,92,255,0.4); opacity: 0.8; }
}

/* Hero element entrance — fast, snappy */
.hero-in {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--hero-delay, 0s) both;
}
@keyframes heroIn {
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* Hero mouse spotlight overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    500px circle at var(--mx, 50%) var(--my, 35%),
    rgba(43, 92, 255, 0.13) 0%,
    transparent 70%
  );
  transition: background 0.08s linear;
}

/* Animated hero background blobs */
.hero::before {
  animation: blobShift 8s ease-in-out infinite alternate;
}
@keyframes blobShift {
  0%   { background-position: 50% -5%; }
  100% { background-position: 52% -2%; }
}

/* App Store button — shimmer sweep */
.btn-appstore {
  overflow: hidden;
}
.btn-appstore::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,0.35) 50%,
    transparent 80%
  );
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn-appstore { position: relative; }
.btn-appstore.btn-shimmer::after {
  animation: shimmerBtn 0.65s ease forwards;
}
@keyframes shimmerBtn {
  to { left: 160%; }
}

/* CTA button — accent glow pulse */
.btn-appstore {
  animation: btnGlow 3s ease-in-out infinite;
}
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 2px 24px rgba(0,0,0,0.5); }
  50%       { box-shadow: 0 2px 24px rgba(0,0,0,0.5), 0 0 32px rgba(43,92,255,0.25); }
}

/* Screenshot wrapper — layout + JS-driven float */
.shot-wrap {
  flex: 1;
  min-width: 0;
  transform: translateY(var(--float-y, 0px));
  will-change: transform;
  position: relative;
}

/* Screenshot reveal — blur in, all at once */
.reveal-shot {
  opacity: 0;
  filter: blur(16px);
  transform: translateY(var(--float-y, 0px)) scale(0.92);
  transition:
    opacity   1.1s cubic-bezier(0.22, 1, 0.36, 1),
    filter    0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-shot.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(var(--float-y, 0px)) scale(1);
}

/* Shimmer overlay on shot-wrap hover */
.shot-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  background: radial-gradient(
    180px circle at var(--sx, 50%) var(--sy, 50%),
    rgba(255, 255, 255, 0.10),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}
.shot-wrap:hover::after { opacity: 1; }

/* Screenshot image — 3D tilt */
.shot {
  display: block;
  width: 100%;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 20px 56px rgba(0, 0, 0, 0.65);
  transition: transform 0.18s ease, box-shadow 0.3s ease;
  will-change: transform;
  cursor: pointer;
}
.shot:hover {
  box-shadow:
    0 0 0 1px rgba(43, 92, 255, 0.4),
    0 28px 72px rgba(0, 0, 0, 0.75),
    0 0 60px rgba(43, 92, 255, 0.25);
}

/* Scroll reveal — generic slide up */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity   0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: none;
}

/* Feature card — magnetic inner glow + enhanced hover */
.feat-card {
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    transform    0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background   0.3s ease,
    box-shadow   0.35s ease;
}
.feat-card::before {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  left: var(--gx, 50%);
  top:  var(--gy, 50%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(43, 92, 255, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.feat-card:hover::before { opacity: 1; }
.feat-card:hover {
  box-shadow:
    0 0 0 1px rgba(43, 92, 255, 0.25),
    0 12px 40px rgba(43, 92, 255, 0.1);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .shots-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 20px;
    align-items: flex-start;
  }
  .shots-track::-webkit-scrollbar { display: none; }
  .shot-wrap {
    flex: 0 0 auto !important;
    width: 200px;
    scroll-snap-align: start;
  }
}

@media (max-width: 600px) {
  section { padding: 72px 0; }
  .hero { padding: 116px 20px 72px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-in, .hero-icon, .reveal-up, .reveal-shot, .shot-wrap {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
