/* Core Variables mimicking the App Theme */
:root {
  --color-ink: #e5eef8;
  --color-panel: rgba(15, 23, 42, 0.72);
  --color-panel-border: rgba(148, 163, 184, 0.22);
  --color-bg-base: #0f172a;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-orange: #E67E22;
  --color-orange-glow: rgba(230, 126, 34, 0.2);
  --color-gold: #D4AF37;
  --color-gold-glow: rgba(212, 175, 55, 0.2);
  
  --shadow-hud: 0 20px 60px rgba(2, 6, 23, 0.35);
  --shadow-tray: 0 12px 32px rgba(2, 6, 23, 0.25);
}

/* Base Reset & Styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg-base);
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
}

body {
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Dynamic Radial Gradients mirroring the Body Background */
.bg-gradient {
  position: fixed;
  z-index: -1;
  pointer-events: none;
}
.bg-gradient-top {
  top: -20vh;
  left: -20vw;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at top left, rgba(230, 126, 34, 0.12), transparent 34%);
}
.bg-gradient-bottom {
  bottom: -20vh;
  right: -20vw;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.10), transparent 28%);
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-panel-border);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 44px;
  height: 44px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
nav a:hover {
  color: var(--color-gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-sm { padding: 0.4rem 1rem; font-size: 0.9rem; }

.btn-primary {
  background: var(--color-gold);
  color: var(--color-bg-base);
  box-shadow: 0 0 20px var(--color-gold-glow);
}
.btn-primary:hover {
  background: #E5C352;
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: var(--color-panel);
  color: var(--color-text);
  border-color: var(--color-panel-border);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--color-gold);
}

/* Typography Helpers */
.text-accent {
  background: linear-gradient(135deg, var(--color-gold), var(--color-orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Text Section */
.hero-text {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 4.5rem; /* Header offset */
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 3.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Demo Video Section */
.demo-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0) 0%, rgba(2, 6, 23, 0.4) 100%);
}

/* Mockup Container */
.mockup-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.mockup-container.full-width {
  max-width: none;
  width: 100%;
  margin: 0;
}

.mockup-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 70%;
  background: radial-gradient(circle, var(--color-gold-glow) 0%, transparent 70%);
  filter: blur(100px);
  z-index: -1;
  opacity: 0.3;
}

.mockup-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px var(--color-panel-border),
    0 40px 120px rgba(0, 0, 0, 0.9),
    var(--shadow-hud);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  background: #000;
  border: 6px solid #1e293b;
}

.full-width .mockup-frame {
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--color-panel-border);
  border-bottom: 1px solid var(--color-panel-border);
  box-shadow: none;
}

.mockup-container:hover .mockup-frame {
  transform: scale(1.01);
}

.mockup-container.full-width:hover .mockup-frame {
  transform: none;
}

.screenshot {
  width: 100%;
  height: auto;
  display: block;
}

.mockup-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 85%, var(--color-bg-base) 100%);
  pointer-events: none;
}

/* Sections General */
section {
  padding: 8rem 0;
  scroll-snap-align: start;
  scroll-margin-top: 4.5rem;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.section-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}
/* Features Grid */
.features {
  max-width: 1200px;
  margin: 0 auto;
}

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

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.feature-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  box-shadow: 
    var(--shadow-tray),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-gold);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    var(--shadow-tray);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1;
}
.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* How It Works Steps */
.how-it-works {
  padding-top: 10rem;
}

.steps-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.step {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}
.step:last-child { margin-bottom: 0; }

.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 48px;
  bottom: -3rem;
  width: 1px;
  background: var(--color-panel-border);
  z-index: 0;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-base);
  border: 1px solid var(--color-orange);
  color: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 0 15px var(--color-orange-glow);
}

.step-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  padding-top: 0.5rem;
}
.step-content p {
  color: var(--color-text-muted);
}

/* Footer */
footer {
  border-top: 1px solid var(--color-panel-border);
  padding: 4rem 0;
  margin-top: 4rem;
  background: rgba(15, 23, 42, 0.3);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-logo {
  width: 24px;
  height: 24px;
  filter: grayscale(100%) opacity(0.7);
}
.footer-title {
  font-weight: 600;
  color: var(--color-text-muted);
}
.footer-tagline {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-style: italic;
}
.footer-bottom {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay {
  transition-delay: 200ms;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  section { padding: 6rem 0; }
  .hero-text { min-height: 80vh; }
  .demo-section { min-height: 60vh; }
}

@media (max-width: 768px) {
  html { scroll-snap-type: none; } /* Disable snapping for better mobile scrolling */
  
  nav { display: none; } /* Hide complex nav */
  
  .hero-text { 
    min-height: auto; 
    padding: 10rem 0 4rem; 
  }
  
  .demo-section { 
    min-height: auto; 
    padding: 2rem 0 4rem; 
  }

  .hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 3rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 1rem;
  }
  
  .btn { width: 100%; }

  .mockup-container.full-width {
    width: 100vw;
  }

  .mockup-frame {
    border-radius: 0;
    border-width: 2px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .step {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    align-items: center;
  }

  .step:not(:last-child)::before {
    left: 50%;
    top: 48px;
    bottom: -1.5rem;
  }

  .footer-content {
    padding: 0 1rem;
  }
}
