:root {
  --bg-base: #000000;
  --bg-subtle: #080808;
  --bg-surface: rgba(15, 15, 15, 0.6);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text-main: #ffffff;
  --text-muted: #888888;
  --text-dim: #555555;
  --accent: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-float: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  background: var(--bg-base);
  color: var(--text-main);
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100vh;
}

::selection {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

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

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

.fx-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: 
    radial-gradient(circle at 50% 0%, rgba(30, 30, 30, 0.8) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(20, 20, 25, 0.5) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(25, 25, 25, 0.4) 0%, transparent 50%);
  transition: background-position 0.5s ease;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.8));
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
  transform-origin: left;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glass Card Utility */
.glass-card {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.4s var(--ease-spring), border-color 0.4s ease;
}
.glass-card:hover {
  border-color: var(--border-strong);
}

/* Header */
.site-header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  transition: transform 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled .header-inner {
  background: rgba(10, 10, 10, 0.85);
  border-color: var(--border-strong);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  padding: 8px 16px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 12px 24px;
  background: rgba(15, 15, 15, 0.4);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  transition: all 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 15px;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

/* Buttons */
.btn-shiny, .btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-shiny {
  position: relative;
  background: #fff;
  color: #000;
  padding: 8px 20px;
  overflow: hidden;
}
.btn-shiny::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-shiny:hover::before {
  left: 200%;
}

.btn-primary {
  background: #fff;
  color: #000;
  padding: 12px 24px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255,255,255,0.3);
}

.btn-secondary {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-strong);
  color: #fff;
  padding: 12px 24px;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

.btn-primary.large, .btn-secondary.large {
  padding: 16px 32px;
  font-size: 16px;
}

/* Typography */
.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px #fff;
  animation: pulse 2s infinite;
}

/* Hero Panel */
.hero-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-copy p {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-pills {
  list-style: none;
  display: flex;
  gap: 24px;
  color: var(--text-dim);
  font-size: 14px;
}
.hero-pills li {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero Visuals Parallax */
.hero-visual {
  position: relative;
  height: 720px;
  perspective: 1000px;
}

.hero-scene {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.hero-scene .glass-card {
  position: absolute;
  overflow: hidden;
  border-radius: 12px; /* Mac-like tighter corners */
  cursor: pointer;
  transition: all 0.7s var(--ease-spring);
  transform-origin: center center;
}

.hero-scene img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Base positioning for the 3 cards in the diagonal carousel */
.hero-main-card {
  width: 90%;
  top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% + var(--py, 0px))) translateZ(0) rotate(var(--pr, 0deg));
  z-index: 3;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
  opacity: 1;
}

.card-left {
  width: 55%;
  top: 20%; left: 5%;
  transform: translateY(var(--py, 0px)) translateZ(-50px) rotate(calc(-8deg + var(--pr, 0deg)));
  z-index: 1;
  opacity: 0.7;
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.card-left:hover {
  opacity: 0.9;
  transform: translateY(var(--py, 0px)) translateZ(-30px) rotate(calc(-5deg + var(--pr, 0deg))) scale(1.05);
}

.card-right {
  width: 55%;
  top: 60%; right: 5%;
  transform: translateY(var(--py, 0px)) translateZ(-30px) rotate(calc(8deg + var(--pr, 0deg)));
  z-index: 2;
  opacity: 0.8;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.card-right:hover {
  opacity: 0.95;
  transform: translateY(var(--py, 0px)) translateZ(-10px) rotate(calc(5deg + var(--pr, 0deg))) scale(1.05);
}

/* Expanded state for clicking the main card */
.hero-scene.is-expanded .glass-card:not(.hero-main-card) {
  opacity: 0;
  pointer-events: none;
  transform: translateY(var(--py, 0px)) scale(0.8) translateZ(-100px);
}

.hero-scene.is-expanded .hero-main-card {
  width: 95%;
  top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% + var(--py, 0px))) scale(1.1) translateZ(50px);
  z-index: 100;
  box-shadow: 0 50px 100px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
}
.mouse {
  width: 24px; height: 36px;
  border: 2px solid #fff;
  border-radius: 12px;
  position: relative;
}
.wheel {
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

/* Flow Section - Sticky Scroll */
.lock-panel {
  /* No padding-bottom here to keep it continuous */
  padding: 120px 0 0 0;
  position: relative;
  /* Add extra height to allow scrolling through the sticky content. 
     400vh gives enough room to scroll through the 4 steps */
  height: 400vh;
}

.lock-sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden; /* Prevent visual overflow during sticky */
}

.lock-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  width: 100%;
}

.lock-sticky-content {
  /* Grid item */
}

.lock-sticky-content h2 {
  font-size: 3rem;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.lock-intro {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

.lock-steps {
  list-style: none;
  position: relative;
  padding: 0;
  margin: 0;
}

.lock-step {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}
.lock-step.is-active, .lock-step.is-past {
  opacity: 1;
}

.step-line {
  width: 2px;
  background: var(--border-strong);
  position: relative;
  flex-shrink: 0;
  transition: background 0.3s ease;
}
.step-line::before {
  content: '';
  position: absolute;
  top: 0; left: -3px;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px #fff;
  transform: scale(0);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.lock-step.is-active .step-line::before {
  transform: scale(1);
}
.lock-step.is-past .step-line::before {
  transform: scale(1);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}
.lock-step.is-past .step-line {
  background: rgba(255, 255, 255, 0.4);
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.lock-visuals {
  height: 600px; /* fixed height for the visual stage */
  display: flex;
  align-items: center;
}

.lock-stage {
  width: 100%;
  height: 100%;
  position: relative;
  perspective: 1000px;
}

.flow-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.8s var(--ease-spring);
  pointer-events: none;
}
.flow-visual.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mockup-window {
  width: 100%;
  max-width: 500px;
  background: rgba(15,15,15,0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.mockup-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
}

.mockup-body {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-body > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-spring), transform 0.6s var(--ease-spring);
  transition-delay: 0.1s;
}

.flow-visual.is-active .mockup-body > * {
  opacity: 1;
  transform: translateY(0);
}

.flow-visual.is-active .mockup-body > *:nth-child(2) {
  transition-delay: 0.2s;
}
.flow-visual.is-active .mockup-body > *:nth-child(3) {
  transition-delay: 0.3s;
}

/* Specific Mockup Styles */
.toggle-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px; border-radius: 12px; border: 1px solid var(--border-subtle);
}
.switch {
  width: 44px; height: 24px; border-radius: 12px; background: #fff;
  position: relative;
}
.switch::after {
  content: ''; position: absolute; top: 2px; right: 2px; width: 20px; height: 20px;
  background: #000; border-radius: 50%;
}

.time-slider {
  margin-top: 24px; height: 8px; background: var(--border-subtle); border-radius: 4px;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.time-fill {
  position: absolute; left: 0; top: 0; height: 100%; background: #fff; border-radius: 4px;
}
.time-slider span { position: absolute; top: 20px; font-size: 12px; font-weight: 600;}

.rule-card {
  padding: 16px; border-radius: 12px; border: 1px solid var(--border-strong); display: flex; align-items: center; gap: 12px;
}
.rule-card .icon {
  width: 32px; height: 32px; background: #222; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: bold;
}
.rule-card b { margin-left: auto; color: #ff4444; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }

.limit-bar {
  display: flex; justify-content: space-between; padding: 12px; background: var(--border-subtle); border-radius: 8px;
}
.limit-status.over {
  text-align: center; padding: 12px; color: #ff4444; border: 1px dashed #ff4444; border-radius: 8px; font-weight: 600; background: rgba(255,68,68,0.1);
}

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.stat-box { padding: 16px; border-radius: 12px; border: 1px solid var(--border-subtle); display: flex; flex-direction: column; }
.stat-box span { font-size: 12px; color: var(--text-muted); }
.stat-box b { font-size: 24px; font-weight: 700; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 100px; padding: 16px; background: var(--border-subtle); border-radius: 12px; }
.chart .bar { flex: 1; background: #fff; border-radius: 4px 4px 0 0; }

/* Features Section */
.features-panel {
  padding: 120px 0;
}
.text-center { text-align: center; }
.section-head { margin-bottom: 64px; }
.section-head h2 { font-size: 3rem; letter-spacing: -0.03em; margin-bottom: 16px; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(var(--py, 0px)) rotate(var(--pr, 0deg));
}
.feature-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  color: #fff;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.5rem; }
.feature-card p { color: var(--text-muted); line-height: 1.6; }

/* CTA Pricing */
.cta-panel {
  padding: 120px 0;
}
.pricing-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-color: var(--border-strong);
}
.pricing-content {
  padding: 64px;
  border-right: 1px solid var(--border-subtle);
}
.pricing-content h2 { font-size: 2.5rem; margin-bottom: 16px; letter-spacing: -0.03em; }
.pricing-content > p { color: var(--text-muted); margin-bottom: 40px; font-size: 1.1rem; }

.price {
  font-size: 4rem; font-weight: 800; letter-spacing: -0.05em; display: flex; align-items: flex-start; margin-bottom: 32px;
}
.currency { font-size: 2rem; margin-top: 8px; }
.cents { font-size: 1.5rem; margin-top: 12px; color: var(--text-muted); }

.pricing-features { list-style: none; margin-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.pricing-features li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.pricing-features svg { width: 20px; height: 20px; color: #fff; }

.pricing-actions { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.refund-note { font-size: 13px; color: var(--text-dim); }
.refund-note a { color: var(--text-muted); text-decoration: underline; }

.pricing-visual {
  background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.pricing-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: float 6s ease-in-out infinite;
}
.pricing-logo {
  width: 140px;
  height: 140px;
  filter: invert(1);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}
.pricing-logo-wrapper:hover .pricing-logo {
  opacity: 1;
}
.pricing-logo-label {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  margin-top: 80px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-muted);
}
.footer-links {
  display: flex; gap: 24px;
}
.footer-links a { color: var(--text-dim); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-main); }

/* Animations */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

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

/* Reveal Utility */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  filter: blur(10px);
  transition: opacity 1s var(--ease-spring), transform 1s var(--ease-spring), filter 1s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Media Queries */
@media (max-width: 960px) {
  .hero-grid, .feature-grid, .pricing-card {
    grid-template-columns: 1fr;
  }
  
  .lock-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 40px;
  }
  
  .lock-panel {
    height: auto;
  }
  .lock-sticky-wrapper {
    position: relative;
    height: auto;
    overflow: visible;
  }
  .lock-sticky-content {
    position: relative; top: 0; margin-bottom: 40px;
  }
  .lock-visuals {
    position: sticky; top: 100px; height: 350px; z-index: 10; width: 100%;
  }
  .pricing-visual {
    padding: 60px; border-top: 1px solid var(--border-subtle);
  }
}

@media (max-width: 600px) {
  .site-header { top: 10px; }
  .header-inner { padding: 12px 16px; gap: 16px; }
  .site-nav { display: none; } /* Hide nav on mobile for simplicity */
  .hero-copy h1 { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; }
  .pricing-content { padding: 32px; }
  .price { font-size: 3rem; }
}
