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

:root {
  --bg: #06060b;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text: #e8e8ed;
  --text-muted: #8a8a9a;
  --text-dim: #4a4a5a;
  --accent: #7c6ff7;
  --accent-soft: rgba(124, 111, 247, 0.12);
  --accent-glow: rgba(124, 111, 247, 0.25);
  --gradient: linear-gradient(135deg, #7c6ff7, #a78bfa, #c084fc);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

html {
  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;
  overflow-x: hidden;
}

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

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

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

/* ── Ambient Background ──────────────────────────── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 111, 247, 0.1), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 50%, rgba(167, 139, 250, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(192, 132, 252, 0.04), transparent 50%);
}

/* ── Header ──────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(6, 6, 11, 0.6);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s ease;
}

.site-header.scrolled {
  background: rgba(6, 6, 11, 0.85);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--text-muted);
  transition: color 0.25s ease;
  letter-spacing: -0.01em;
}

.site-nav a:hover {
  color: var(--text);
}

/* ── Buttons ─────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  border-radius: 50px;
  padding: 14px 30px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  border: none;
  position: relative;
}

.button.primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.button.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.button.primary:active {
  transform: translateY(-1px) scale(0.99);
}

.button.secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.button.secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
}

.button.ghost:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
}

/* ── Sections ────────────────────────────────────── */
.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 140px 48px;
}

.section-head {
  text-align: center;
  margin-bottom: 72px;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 2.8rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 180px;
  min-height: 100vh;
}

.hero-copy h1 {
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #fff 30%, #7a7a9a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.small-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── Phone Frame ─────────────────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: #111;
}

.hero-phone {
  width: 300px;
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 100px rgba(124, 111, 247, 0.12);
}

.phone-frame img {
  width: 100%;
  display: block;
}

.demo-video-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.demo-video-phone {
  width: 280px;
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 100px rgba(124, 111, 247, 0.15);
}

.demo-video {
  width: 100%;
  display: block;
  border-radius: 38px;
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.float-anim {
  animation: float 6s ease-in-out infinite;
}

/* Glow orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glow-1 {
  width: 300px;
  height: 300px;
  background: rgba(124, 111, 247, 0.15);
  top: -60px;
  right: -40px;
  animation: pulse-glow 4s ease-in-out infinite;
}

.glow-2 {
  width: 200px;
  height: 200px;
  background: rgba(192, 132, 252, 0.1);
  bottom: -40px;
  left: -20px;
  animation: pulse-glow 5s ease-in-out infinite 1s;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ── Feature Grid ────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}

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

.feature-card h3 {
  font-size: 1rem;
  font-weight: 640;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Steps ───────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(124, 111, 247, 0.15);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 28px;
}

.step-phone {
  width: 200px;
  margin: 0 auto 28px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(124, 111, 247, 0.06);
  will-change: transform, opacity;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 260px;
  margin: 0 auto;
}

/* ── Carousel ────────────────────────────────────── */
.carousel-wrapper {
  overflow: hidden;
  margin: 0 -48px;
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.carousel-track {
  display: flex;
  gap: 28px;
  animation: scroll-carousel 35s linear infinite;
  width: max-content;
}

.carousel-phone {
  width: 220px;
  flex-shrink: 0;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(124, 111, 247, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.carousel-phone:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(124, 111, 247, 0.1);
}

@keyframes scroll-carousel {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Premium ─────────────────────────────────────── */
.premium {
  position: relative;
}

.premium-layout {
  max-width: 580px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px;
  position: relative;
  overflow: hidden;
}

.premium-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(124, 111, 247, 0.12), transparent 70%);
  pointer-events: none;
}

.premium-layout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
  opacity: 0.4;
}

.premium-layout ul {
  list-style: none;
  margin-bottom: 32px;
}

.premium-layout li {
  padding: 14px 0;
  padding-left: 28px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.premium-layout li:last-child {
  border-bottom: none;
}

.premium-layout li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 12px var(--accent-glow);
}

.premium-note p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── CTA ─────────────────────────────────────────── */
.cta {
  text-align: center;
  position: relative;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(124, 111, 247, 0.08), transparent 70%);
  pointer-events: none;
}

.cta h2 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #fff 30%, #7a7a9a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.cta p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 460px;
  margin-inline: auto;
  position: relative;
}

.cta .hero-actions {
  justify-content: center;
  position: relative;
}

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 48px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.site-footer div {
  display: flex;
  gap: 12px;
}

.site-footer a {
  color: var(--text-muted);
  transition: color 0.25s ease;
}

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

/* ── Reveal Animations ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-child {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 960px) {
  .demo-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
  }
  .demo-sidebar {
    display: none;
  }
}
  .hero {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
    padding-top: 140px;
  }

  .hero-copy h1 {
    font-size: 2.8rem;
  }

  .hero-copy .lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section-head h2,
  .cta h2 {
    font-size: 2.2rem;
  }
}

/* ── App Store Badge ─────────────────────────────── */
.appstore-badge-link {
  display: inline-flex;
  transition: all 0.25s ease;
}

.appstore-badge-link:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.appstore-badge {
  height: 52px;
  width: auto;
}

/* ── Demo Section ────────────────────────────────── */
.demo-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}

.demo-sidebar {
  display: flex;
  flex-direction: column;
}

.demo-step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  transition: background 0.4s ease;
  cursor: default;
}

.demo-step-item.active {
  background: var(--bg-card);
}

.demo-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
  margin-top: 4px;
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.demo-step-item.active .demo-step-dot {
  background: var(--accent);
  border-color: var(--accent-soft);
  box-shadow: 0 0 10px var(--accent-glow);
}

.demo-step-line {
  width: 1px;
  height: 16px;
  background: var(--border);
  margin-left: 20px;
}

.demo-step-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  transition: color 0.4s ease;
}

.demo-step-item.active .demo-step-label {
  color: var(--text);
}

.demo-step-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 3px;
  line-height: 1.4;
  transition: color 0.4s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, color 0.4s ease;
}

.demo-step-item.active .demo-step-desc {
  max-height: 40px;
  opacity: 1;
  color: var(--text-muted);
}

/* Phone */
.demo-phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.demo-phone {
  width: 290px;
  height: 600px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 100px rgba(124, 111, 247, 0.1);
}

.demo-screens-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.demo-scr {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transform: translateX(100%);
  will-change: transform, opacity;
}

.demo-scr.active {
  opacity: 1;
  transform: translateX(0);
}

/* Tap indicator */
.demo-tap {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.7);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.2s ease;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.demo-tap.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.demo-tap.press {
  transform: translate(-50%, -50%) scale(0.65);
  background: rgba(255, 255, 255, 0.45);
  transition: transform 0.15s ease, background 0.1s ease;
}

/* Ripple ring */
.demo-tap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

.demo-tap.show::after {
  opacity: 1;
  transform: scale(1.2);
}

/* Notification */
.demo-notif {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-radius: 16px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  z-index: 30;
  transform: translateY(calc(-100% - 20px));
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1),
              opacity 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.demo-notif.show {
  transform: translateY(0);
  opacity: 1;
}

.demo-notif-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  flex-shrink: 0;
}

.demo-notif-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.demo-notif-app {
  font-size: 0.68rem;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.demo-notif-text {
  font-size: 0.78rem;
  color: #222;
  font-weight: 450;
  line-height: 1.3;
}

/* Progress dots */
.demo-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.demo-dot.active {
  width: 22px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ── Scroll Progress Bar ─────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--gradient);
  z-index: 200;
  transition: width 0.05s linear;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ── Enhanced Step Phone Animations ──────────────── */
.step-phone {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 20px;
  }

  .site-nav a:not(.button) {
    display: none;
  }

  .section {
    padding: 100px 20px;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }

  .hero-phone {
    width: 250px;
  }

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

  .step-phone {
    width: 180px;
  }

  .carousel-phone {
    width: 180px;
  }

  .premium-layout {
    padding: 36px 24px;
  }

  .section-head h2,
  .cta h2 {
    font-size: 1.8rem;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
