:root {
  --bg-deep: #05070d;
  --bg-elevated: #0c101c;
  --bg-card: #111827;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --text-muted: #94a3b8;
  --accent: #ff6b00;
  --accent-deep: #e85d00;
  --accent-soft: rgba(255, 107, 0, 0.15);
  --accent-glow: rgba(255, 107, 0, 0.45);
  --accent-ink: #1a0d06;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1280px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow-orb {
  pointer-events: none;
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.12;
  top: -200px;
  right: -150px;
  z-index: 0;
}

.glow-orb-2 {
  left: -200px;
  bottom: 10%;
  top: auto;
  right: auto;
  opacity: 0.08;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: clamp(1.5rem, 6vw, 2.5rem);
  padding-right: clamp(1.5rem, 6vw, 2.5rem);
  box-sizing: border-box;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 7, 13, 0.72);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.875rem clamp(1.25rem, 5vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a:not(.btn-primary) {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:not(.btn-primary):hover {
  color: var(--text);
}

.nav-links a[aria-current="page"]:not(.btn-primary) {
  color: var(--accent);
}

.nav-links a.btn-primary {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
}

.nav-links a.btn-primary:hover {
  color: #fff;
}

/* Mobile menu toggle (hidden on wide screens) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-header--nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header--nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header--nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
  .site-header .inner {
    position: relative;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    margin: 0;
    padding: 0.5rem;
    background: rgba(8, 11, 20, 0.97);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease;
  }

  .site-header--nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a:not(.btn-primary) {
    padding: 0.8rem 0.9rem;
    border-radius: 10px;
    font-size: 0.9375rem;
  }

  .nav-links a:not(.btn-primary):hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
  }

  .nav-links a.btn-primary {
    margin-top: 0.35rem;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    min-height: 3rem;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.14) inset,
      0 8px 28px rgba(255, 107, 0, 0.35);
  }

  .nav-links a.btn-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #ff7a1a 0%, var(--accent-deep) 100%);
  }

  .nav-links a.btn-primary svg {
    color: #fff;
    flex-shrink: 0;
  }
}

@media (min-width: 901px) {
  .nav-toggle {
    display: none !important;
  }

  .nav-links {
    position: static;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-links a:not(.btn-primary) {
    padding: 0;
    border-radius: 0;
  }

  .nav-links a:not(.btn-primary):hover {
    background: transparent;
  }

  .nav-links a.btn-primary {
    margin-top: 0;
    width: auto;
    min-height: unset;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.12) inset,
      0 8px 32px rgba(255, 107, 0, 0.28);
  }

  .nav-links a.btn-primary:hover {
    color: #fff;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 8px 32px rgba(255, 107, 0, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 12px 40px rgba(255, 107, 0, 0.38);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(255, 107, 0, 0.4);
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

.btn svg { flex-shrink: 0; }

/* Hero */
.hero {
  padding: 4rem 0 clamp(2.5rem, 6vw, 3.5rem);
  text-align: center;
}

@media (min-width: 768px) {
  .hero { padding: 5rem 0 clamp(2.75rem, 5vw, 4rem); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 107, 0, 0.3);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 28px;
  background: #f8f6f1;
  padding: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border);
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero h1 span {
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

/* Subpages */
.page-main {
  padding: 3rem 0 4rem;
}

.page-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.page-hero .lead {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* Screenshots */
.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 3rem;
  font-size: 1rem;
}

.section-title--showcase {
  font-size: clamp(2.125rem, 5.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 55%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub--showcase {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 40rem;
  line-height: 1.7;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

#screenshots {
  scroll-margin-top: 5rem;
}

.screenshots {
  padding: 2rem 0 5rem;
}

.screenshots--showcase {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(4rem, 10vw, 8rem);
  margin-top: 0;
}

.screenshots--showcase::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  width: min(160vw, 1400px);
  height: min(85vh, 900px);
  background: radial-gradient(
    ellipse 55% 45% at 50% 45%,
    rgba(255, 107, 0, 0.14) 0%,
    rgba(255, 107, 0, 0.05) 42%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

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

.app-showcase-intro {
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  padding: 0 1.25rem;
}

/* Sticky scroll track: one viewport, slides crossfade with scroll */
.app-scroll-stage {
  position: relative;
  z-index: 1;
  --slide-count: 4;
  height: calc(var(--slide-count) * 100vh);
  min-height: calc(var(--slide-count) * 28rem);
}

.app-scroll-stage__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.5rem 0 max(0.75rem, env(safe-area-inset-bottom, 0));
  overflow: hidden;
}

@media (max-width: 899px) {
  .app-scroll-stage__pin {
    padding-top: 1rem;
  }
}

.app-scroll-stage__slides {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 0;
  max-height: calc(100dvh - 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-scroll-stage__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-scroll-stage__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.app-scroll-stage__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: center;
  width: 100%;
  max-width: 1100px;
  max-height: 100%;
  min-height: 0;
}

@media (min-width: 900px) {
  .app-scroll-stage__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
  }

  .app-scroll-stage__slide--reverse .app-showcase__visual {
    order: 2;
  }

  .app-scroll-stage__slide--reverse .app-showcase__text {
    order: 1;
  }
}

.app-scroll-stage__slide--theme-violet {
  --showcase-a: #c084fc;
  --showcase-b: #6366f1;
  --showcase-glow: rgba(192, 132, 252, 0.4);
}

.app-scroll-stage__slide--theme-coral {
  --showcase-a: #fb7185;
  --showcase-b: #f97316;
  --showcase-glow: rgba(251, 113, 133, 0.35);
}

.app-scroll-stage__slide--theme-cyan {
  --showcase-a: #22d3ee;
  --showcase-b: #3b82f6;
  --showcase-glow: rgba(34, 211, 238, 0.35);
}

.app-scroll-stage__slide--theme-amber {
  --showcase-a: #fbbf24;
  --showcase-b: #f97316;
  --showcase-glow: rgba(251, 191, 36, 0.38);
}

.app-scroll-stage__chrome {
  flex-shrink: 0;
  padding: 0.35rem 1.25rem 0;
  max-width: 20rem;
  margin: 0 auto;
  width: 100%;
}

.app-scroll-stage__bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.app-scroll-stage__bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #c084fc, #22d3ee, var(--accent));
  background-size: 300% 100%;
  animation: app-scroll-bar-hue 6s linear infinite;
}

@keyframes app-scroll-bar-hue {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.app-scroll-stage__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.app-scroll-stage__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.app-scroll-stage__dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 14px rgba(255, 107, 0, 0.55);
  transform: scale(1.3);
}

.app-scroll-stage--static {
  height: auto;
  min-height: 0;
}

.app-scroll-stage--static .app-scroll-stage__pin {
  position: relative;
  height: auto;
  min-height: 0;
  padding-bottom: 2.5rem;
}

.app-scroll-stage--static .app-scroll-stage__slides {
  position: static;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.app-scroll-stage--static .app-scroll-stage__slide {
  position: relative;
  inset: auto;
  opacity: 1 !important;
  pointer-events: auto;
  z-index: 1;
  padding: 0 1.25rem;
}

.app-scroll-stage--static .app-scroll-stage__chrome {
  display: none;
}

.app-scroll-stage--static .app-showcase__phone.phone-mock {
  max-width: min(320px, 88vw);
  padding: 1rem 0.5rem;
}

@media (min-width: 900px) {
  .app-scroll-stage--static .app-showcase__phone.phone-mock {
    max-width: min(340px, 42vw);
  }
}

.app-scroll-stage--static .app-showcase__card {
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.app-scroll-stage--static .app-showcase__headline {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
}

.app-scroll-stage--static .app-showcase__body {
  font-size: clamp(0.95rem, 1.5vw, 1.0625rem);
  line-height: 1.65;
}

.app-showcase__visual {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.app-showcase__text {
  min-width: 0;
}

.app-showcase__card {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.75) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 48px rgba(0, 0, 0, 0.35);
}

.app-showcase__card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    var(--showcase-a),
    var(--showcase-b),
    rgba(255, 107, 0, 0.6)
  );
  background-size: 200% 200%;
  animation: showcase-border-shift 8s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes showcase-border-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.app-showcase__card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse, var(--showcase-glow) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
  animation: showcase-blob 12s ease-in-out infinite;
}

@keyframes showcase-blob {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.45; }
  50% { transform: translate(-12%, 8%) scale(1.08); opacity: 0.6; }
}

.app-showcase__tag {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(135deg, var(--showcase-a), var(--showcase-b));
  box-shadow: 0 4px 20px var(--showcase-glow);
  margin-bottom: 1rem;
}

.app-showcase__headline {
  position: relative;
  z-index: 1;
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  background: linear-gradient(120deg, #fff 0%, #e2e8f0 50%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-showcase__body {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.0625rem);
  color: var(--text-muted);
  line-height: 1.65;
}

.app-showcase__phone.phone-mock {
  max-width: min(320px, 88vw);
  margin: 0 auto;
  padding: 1rem 0.5rem;
}

@media (min-width: 900px) {
  .app-showcase__phone.phone-mock {
    max-width: min(340px, 42vw);
  }
}

/* Sticky scroll stage: phone size (9:19.5 frame). Scaled ~5% under the doubled size. */
/* Sticky-stage phones: ~5% smaller below 900px so mockups sit below the sticky header comfortably */
.app-scroll-stage .app-showcase__phone.phone-mock {
  width: 100%;
  max-width: min(
    calc(54.15dvh * 9 / 19.5),
    405px,
    86vw
  );
  padding: 0.5rem 0.35rem;
  margin: 0 auto;
}

@media (min-width: 480px) and (max-width: 599px) {
  .app-scroll-stage .app-showcase__phone.phone-mock {
    max-width: min(
      calc(64.98dvh * 9 / 19.5),
      447px,
      83vw
    );
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .app-scroll-stage .app-showcase__phone.phone-mock {
    max-width: min(
      calc(72.2dvh * 9 / 19.5),
      484px,
      76vw
    );
  }
}

@media (min-width: 900px) {
  .app-scroll-stage .app-showcase__phone.phone-mock {
    max-width: min(
      calc(79.8dvh * 9 / 19.5),
      555px,
      49vw
    );
  }
}

.app-scroll-stage .app-showcase__visual {
  min-height: 0;
  align-self: center;
}

.app-scroll-stage .app-showcase__card {
  padding: clamp(1rem, 2.5vw, 1.65rem);
}

.app-scroll-stage .app-showcase__headline {
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
}

.app-scroll-stage .app-showcase__body {
  font-size: clamp(0.875rem, 1.35vw, 0.98rem);
  line-height: 1.55;
}

.phone-mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.2rem 0.25rem;
}

.phone-mock::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 108%;
  height: 88%;
  max-width: 280px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 107, 0, 0.38) 0%,
    rgba(255, 107, 0, 0.14) 40%,
    rgba(255, 80, 0, 0.03) 62%,
    transparent 78%
  );
  filter: blur(36px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
}

@media (max-width: 767px) {
  .phone-mock::before {
    filter: blur(32px);
    opacity: 0.8;
  }
}

.app-scroll-stage .phone-mock::before {
  max-width: min(532px, 110%);
}

.app-scroll-stage__slide--theme-violet .phone-mock::before {
  background: radial-gradient(
    ellipse at center,
    rgba(192, 132, 252, 0.42) 0%,
    rgba(99, 102, 241, 0.18) 45%,
    transparent 75%
  );
}

.app-scroll-stage__slide--theme-coral .phone-mock::before {
  background: radial-gradient(
    ellipse at center,
    rgba(251, 113, 133, 0.42) 0%,
    rgba(249, 115, 22, 0.2) 45%,
    transparent 75%
  );
}

.app-scroll-stage__slide--theme-cyan .phone-mock::before {
  background: radial-gradient(
    ellipse at center,
    rgba(34, 211, 238, 0.4) 0%,
    rgba(59, 130, 246, 0.18) 45%,
    transparent 75%
  );
}

.app-scroll-stage__slide--theme-amber .phone-mock::before {
  background: radial-gradient(
    ellipse at center,
    rgba(251, 191, 36, 0.45) 0%,
    rgba(255, 107, 0, 0.22) 45%,
    transparent 75%
  );
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  border-radius: 26px;
  padding: 7px;
  background: linear-gradient(165deg, #243047 0%, #121a2e 42%, #060912 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.11),
    0 0 0 1px rgba(255, 107, 0, 0.06) inset,
    0 3px 6px rgba(0, 0, 0, 0.45),
    0 16px 36px rgba(0, 0, 0, 0.52),
    0 28px 64px rgba(0, 0, 0, 0.4),
    0 0 72px rgba(255, 107, 0, 0.12),
    0 0 120px rgba(255, 107, 0, 0.05);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.phone-mock:hover .phone-frame {
  transform: translateY(-4px) scale(1.015);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.13),
    0 0 0 1px rgba(255, 107, 0, 0.1) inset,
    0 6px 12px rgba(0, 0, 0, 0.5),
    0 22px 48px rgba(0, 0, 0, 0.55),
    0 38px 84px rgba(0, 0, 0, 0.38),
    0 0 96px rgba(255, 107, 0, 0.2),
    0 0 160px rgba(255, 107, 0, 0.09);
}

@media (prefers-reduced-motion: reduce) {
  .app-scroll-stage__bar-fill {
    animation: none;
  }

  .app-showcase__card::before,
  .app-showcase__card::after {
    animation: none;
  }

  .phone-frame,
  .phone-mock:hover .phone-frame {
    transition: none;
    transform: none;
  }
}

/* Inner bezel matches typical phone screenshot aspect (~9:19.5) without cropping image */
.phone-frame-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.phone-frame::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 18px;
  background: linear-gradient(180deg, #15151a 0%, #0a0a0c 100%);
  border-radius: 0 0 12px 12px;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.phone-screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px 12px;
  box-sizing: border-box;
}

.phone-screen img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto;
}

/* Features */
.features {
  padding: 2rem 0 5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(255, 107, 0, 0.3);
  box-shadow: 0 0 40px rgba(255, 107, 0, 0.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Support card (reusable) */
.support-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.support-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.support-card p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.support-card--narrow {
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.support-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

a.mail {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.0625rem;
}

a.mail:hover {
  text-decoration: underline;
}

.content-card {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  text-align: left;
}

.content-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.content-card p:last-child { margin-bottom: 0; }

.content-card--spaced {
  margin-bottom: 3rem;
}

.content-card__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.content-card__last {
  margin-bottom: 0 !important;
}

/* Support page */
.support-page .glow-orb {
  opacity: 0.18;
}

.support-main {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 0 4.5rem;
}

.support-hero {
  text-align: center;
  margin-bottom: 3.5rem;
}

.support-hero__badge {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.support-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #ffb347 0%, var(--accent) 55%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 32px rgba(255, 107, 0, 0.45));
}

.support-hero__lead {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.support-block {
  margin-bottom: 3.25rem;
}

.support-block__eyebrow {
  margin: 0 0 0.5rem;
  color: #64748b;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.support-block__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.support-block__sub {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.support-email-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.95) 0%, rgba(12, 16, 28, 0.98) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.support-email-card__label {
  display: block;
  margin-bottom: 0.65rem;
  color: #64748b;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.support-email-card__address {
  display: block;
  margin-bottom: 1rem;
  color: var(--text);
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.2s;
}

.support-email-card__address:hover {
  color: var(--accent);
}

.support-email-card__note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.support-faq {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.support-faq__item {
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.9) 0%, rgba(12, 16, 28, 0.95) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.support-faq__item[open] {
  border-color: rgba(255, 107, 0, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.support-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.support-faq__question::-webkit-details-marker {
  display: none;
}

.support-faq__question::after {
  content: "";
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s, border-color 0.2s;
  margin-top: -0.2rem;
}

.support-faq__item[open] .support-faq__question::after {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
  border-color: var(--accent);
}

.support-faq__answer {
  padding: 0 1.25rem 1.15rem;
}

.support-faq__answer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.support-faq__answer p + p {
  margin-top: 0.75rem;
}

.support-faq__answer strong {
  color: var(--text);
  font-weight: 600;
}

/* Privacy & Terms pages */
.privacy-page .support-main,
.terms-page .support-main {
  max-width: 44rem;
}

.privacy-hero__date {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.privacy-doc .support-block__title {
  margin-bottom: 1rem;
}

.privacy-card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.95) 0%, rgba(12, 16, 28, 0.98) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.privacy-card > p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.privacy-card > p:last-child {
  margin-bottom: 0;
}

.privacy-highlight {
  margin: 1rem 0 0 !important;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 107, 0, 0.22);
  color: var(--text) !important;
  font-weight: 500;
}

.privacy-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.privacy-list li {
  position: relative;
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.privacy-list li:last-child {
  margin-bottom: 0;
}

.privacy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.privacy-list strong {
  color: var(--text);
  font-weight: 600;
}

.privacy-service {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.privacy-service:first-of-type {
  margin-top: 1rem;
  padding-top: 0;
  border-top: none;
}

.privacy-service__name {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.privacy-service p:not(.privacy-service__name) {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Footer */
.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  max-width: 100%;
  padding: 0 0.25rem;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .footer-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .footer-links {
    justify-content: flex-end;
  }
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

@media (min-width: 400px) {
  .footer-links a {
    white-space: nowrap;
  }
}

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

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 100%;
  min-width: 0;
  line-height: 1.5;
}

/* Privacy prose */
.privacy-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.privacy-inner h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.privacy-inner .updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.privacy-inner h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.privacy-inner p,
.privacy-inner ul {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.privacy-inner ul {
  padding-left: 1.25rem;
}

.privacy-inner li { margin-bottom: 0.5rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}
