:root {
  --navy-deep: #0A1628;
  --navy-mid: #0F1F3A;
  --navy-card: #152238;
  --gold: #C9A84C;
  --gold-light: #E2C97E;
  --text: #E8EAF0;
  --text-muted: #8A9BB8;
  --border: rgba(201, 168, 76, 0.2);
  --radius-card: 12px;
  --radius-btn: 8px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--gold);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.btn:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

/* SECTION 1 — Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, var(--navy-deep) 0%, var(--navy-deep) 30%, transparent 100%),
    linear-gradient(to bottom, var(--navy-deep) 0%, transparent 30%),
    linear-gradient(to top, var(--navy-mid) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gold);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 480px) {
  .hero-ctas {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .hero {
    justify-content: flex-start;
    padding: 4rem;
  }
  
  .hero-content {
    max-width: 550px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-img {
    opacity: 0.35;
    object-position: 70% center;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* SECTION 2 — Problem / Hook */
.problem {
  padding: 6rem 2rem;
  background: var(--navy-mid);
  position: relative;
}

.problem-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.problem-quote {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 2rem;
  position: relative;
}

@media (min-width: 768px) {
  .problem-quote {
    font-size: 2.25rem;
  }
}

.quote-mark {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 8rem;
  color: var(--gold);
  opacity: 0.1;
  pointer-events: none;
  line-height: 1;
}

.problem-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* SECTION 3 — Features */
.features {
  padding: 6rem 2rem;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.15);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(201, 168, 76, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.feature-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Screenshot Gallery */
.screenshot-gallery {
  margin-top: 4rem;
  overflow: hidden;
  padding: 1rem 0;
}

.gallery-track {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem;
  animation: scroll 20s linear infinite;
  width: max-content;
}

.gallery-track:hover {
  animation-play-state: paused;
}

.gallery-phone {
  flex-shrink: 0;
  width: 200px;
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 0 3px #1a1a1a;
  transition: transform 0.3s ease;
}

.gallery-phone:hover {
  transform: scale(1.05);
}

.gallery-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-200px * 2.5 - 1.5rem * 2)); }
}

/* SECTION 4 — Menu Scanner */
.menu-scanner {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
}

.menu-scanner-content {
  max-width: 600px;
  margin-bottom: 3rem;
}

.badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.menu-scanner .section-title {
  text-align: left;
}

.menu-scanner-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 0.5rem 0;
  color: var(--text);
  font-size: 1rem;
}

.feature-list li::before {
  content: '✓';
  color: var(--gold);
  margin-right: 0.75rem;
  font-weight: 600;
}

.menu-scanner-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 100%;
  max-width: min(260px, 85vw);
  aspect-ratio: 1 / 2.1;
  background: var(--navy-card);
  border-radius: 36px;
  padding: 8px;
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 3px #1a1a1a,
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

@media (min-width: 1024px) {
  .menu-scanner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 8rem 4rem;
  }
  
  .menu-scanner-content {
    margin-bottom: 0;
  }
  
  .menu-scanner .section-title {
    font-size: 2.5rem;
  }
}

/* SECTION 5 — How It Works */
.how-it-works {
  padding: 6rem 2rem;
  background: var(--navy-mid);
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  text-align: center;
  max-width: 280px;
  position: relative;
}

.step-screenshot {
  width: 180px;
  height: 360px;
  margin: 0 auto 1.5rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 0 3px #1a1a1a;
  position: relative;
  z-index: 1;
}

.step-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-screenshot:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 0 3px var(--gold),
    0 0 30px rgba(201, 168, 76, 0.2);
  transition: all 0.4s ease;
}

.step-number {
  position: absolute;
  top: 160px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.15;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.step-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-connector {
  width: 2px;
  height: 40px;
  background: repeating-linear-gradient(
    to bottom,
    var(--gold) 0,
    var(--gold) 8px,
    transparent 8px,
    transparent 16px
  );
  opacity: 0.3;
}

@media (min-width: 768px) {
  .steps {
    flex-direction: row;
    justify-content: center;
    gap: 0;
    align-items: flex-start;
  }
  
  .step-connector {
    width: 60px;
    height: 2px;
    background: repeating-linear-gradient(
      to right,
      var(--gold) 0,
      var(--gold) 8px,
      transparent 8px,
      transparent 16px
    );
    margin: 100px -1rem 0;
    flex-shrink: 0;
    opacity: 0.3;
  }
  
  .step {
    flex: 1;
    max-width: 260px;
  }
  
  .step-screenshot {
    width: 160px;
    height: 320px;
  }
  
  .step-number {
    top: 140px;
  }
}

/* SECTION 6 — Testimonials */
.testimonials {
  padding: 6rem 2rem;
  background: var(--navy-deep);
}

.testimonials-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

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

.testimonial {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 2rem;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.125em;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: normal;
}

/* SECTION 7 — Download CTA */
.cta {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 3.5rem;
  }
}

.cta-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.cta .btn {
  position: relative;
  z-index: 1;
}

.cta-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* FOOTER */
.footer {
  padding: 3rem 2rem;
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

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

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  padding: 0.5rem 0;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--gold);
}

.footer-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.footer-trademark {
  margin-top: 0.25rem;
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for hero */
.hero-content > *:nth-child(1) { animation-delay: 0s; }
.hero-content > *:nth-child(2) { animation-delay: 0.1s; }
.hero-content > *:nth-child(3) { animation-delay: 0.2s; }
.hero-content > *:nth-child(4) { animation-delay: 0.3s; }

/* Mobile Optimizations */
@media (max-width: 767px) {
  .problem,
  .features,
  .menu-scanner,
  .how-it-works,
  .testimonials,
  .cta {
    padding: 4rem 1.5rem;
  }
  
  .hero {
    padding: 1.5rem;
  }
  
  .gallery-phone {
    width: 160px;
    height: 320px;
  }
}

@media (max-width: 479px) {
  .hero-ctas .btn {
    width: 100%;
  }
}
