/* ============================================
   Macrovue Landing Page — style.css
   ============================================ */

:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8F9FA;
  --color-text: #1C1C1E;
  --color-muted: #636366;
  --color-accent: #34C759;
  --color-accent-hover: #2DB44E;
  --color-orange: #FF9F0A;
  --color-red: #FF3B30;
  --color-border: rgba(0, 0, 0, 0.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --max-w: 1120px;
  --section-py: 96px;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

/* ---- Subtle gradient drift (replaces canvas aurora) ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(52, 199, 89, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(52, 199, 89, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: drift 25s ease-in-out infinite alternate;
}

@keyframes drift {
  to { transform: translate(-20px, 15px) scale(1.03); }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1 { font-size: 3rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
p { color: var(--color-muted); }

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-py) 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header p {
  margin-top: 12px;
  font-size: 1.125rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

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

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.2s;
}

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

.nav-cta {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---- Hero ---- */
.hero {
  padding: 80px 0 64px;
  overflow: hidden;
}

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

.hero-content h1 {
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

/* ---- Phone Mockup ---- */
.phone {
  width: 260px;
  height: 520px;
  background: #fff;
  border-radius: 36px;
  border: 3px solid #1C1C1E;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1C1C1E;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  position: absolute;
  inset: 3px;
  border-radius: 33px;
  overflow: hidden;
  background: #F8F9FA;
}

/* Results mock screen */
.mock-results {
  padding: 44px 16px 16px;
}

.mock-results-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.mock-results-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 14px;
}

.mock-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mock-rank {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.mock-rank.rank-1 { background: var(--color-accent); }
.mock-rank.rank-2 { background: var(--color-orange); }
.mock-rank.rank-3 { background: var(--color-orange); }

.mock-pick-info {
  flex: 1;
  min-width: 0;
}

.mock-pick-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}

.mock-pick-cals {
  font-size: 0.625rem;
  color: var(--color-muted);
}

.mock-macros {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}

.mock-macro {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mock-macro-bar {
  height: 4px;
  border-radius: 2px;
}

.mock-macro-label {
  font-size: 0.5rem;
  font-weight: 500;
  line-height: 1;
}

.bar-p { background: var(--color-accent); }
.bar-c { background: var(--color-orange); }
.bar-f { background: var(--color-red); }

.label-p { color: var(--color-accent); }
.label-c { color: var(--color-orange); }
.label-f { color: var(--color-red); }

/* Avoid section */
.mock-avoid-title {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 14px;
  margin-bottom: 6px;
}

.mock-avoid-item {
  font-size: 0.6875rem;
  color: var(--color-muted);
  padding: 6px 10px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 4px;
  border-left: 3px solid var(--color-red);
}

/* Map mock screen */
.mock-map {
  position: relative;
  width: 100%;
  height: 100%;
  background: #E5E3DF;
}

.mock-map-grid {
  position: absolute;
  inset: 0;
}

/* Faux roads */
.mock-map-road {
  position: absolute;
  background: #fff;
}

.mock-map-road.h {
  height: 3px;
  left: 0;
  right: 0;
}

.mock-map-road.v {
  width: 3px;
  top: 0;
  bottom: 0;
}

.mock-map-road.major {
  background: #f0eeea;
}

.mock-map-road.major.h { height: 6px; }
.mock-map-road.major.v { width: 6px; }

/* Green area (park) */
.mock-map-park {
  position: absolute;
  background: rgba(52, 199, 89, 0.12);
  border-radius: 4px;
}

/* User location blue dot */
.mock-map-user {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #007AFF;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2), 0 1px 4px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.mock-map-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.mock-map-search {
  position: absolute;
  top: 40px;
  left: 12px;
  right: 12px;
  height: 36px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 0.6875rem;
  color: var(--color-muted);
}

.mock-map-card {
  position: absolute;
  bottom: 20px;
  left: 12px;
  right: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.mock-map-card-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
}

.mock-map-card-cuisine {
  font-size: 0.625rem;
  color: var(--color-muted);
}

.mock-map-card-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  background: rgba(52, 199, 89, 0.1);
  color: var(--color-accent);
  font-size: 0.5625rem;
  font-weight: 600;
  border-radius: 4px;
}

/* Camera mock screen */
.mock-camera {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #48484a, #2c2c2e);
  overflow: hidden;
}

.mock-viewfinder {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 190px;
  height: 130px;
}

.mock-viewfinder-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(255, 255, 255, 0.9);
  border-style: solid;
  border-width: 0;
}

.mock-viewfinder-corner.tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-radius: 4px 0 0 0; }
.mock-viewfinder-corner.tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-radius: 0 4px 0 0; }
.mock-viewfinder-corner.bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 4px; }
.mock-viewfinder-corner.br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 4px 0; }

/* Faux menu text lines inside viewfinder */
.mock-menu-line {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1px;
}

/* Scanning line animation */
.mock-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  animation: scanLine 2.5s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes scanLine {
  0%, 100% { top: 8px; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  50% { top: calc(100% - 8px); }
}

.mock-viewfinder-label {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.625rem;
  font-weight: 500;
  white-space: nowrap;
}

.mock-camera-btn {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.mock-camera-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: rgba(0, 0, 0, 0.4);
}

/* ---- How It Works ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.step {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9375rem;
  max-width: 300px;
  margin: 0 auto;
}

/* Connector lines between steps (desktop only) */
.steps-connector {
  display: none;
}

@media (min-width: 769px) {
  .steps-connector {
    display: block;
    position: absolute;
    top: 24px;
    height: 2px;
    background: var(--color-border);
  }

  .steps-connector-1 {
    left: calc(100% / 6 + 24px);
    right: calc(100% / 2 + 100% / 6 - 24px + 40px);
  }

  .steps-connector-2 {
    left: calc(100% / 2 - 100% / 6 + 24px + 40px);
    right: calc(100% / 6 - 24px);
  }
}

/* ---- Features Grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.feature-icon.icon-ai { background: rgba(52, 199, 89, 0.1); color: var(--color-accent); }
.feature-icon.icon-map { background: rgba(255, 159, 10, 0.1); color: var(--color-orange); }
.feature-icon.icon-menu { background: rgba(52, 199, 89, 0.1); color: var(--color-accent); }
.feature-icon.icon-privacy { background: rgba(99, 99, 102, 0.1); color: var(--color-muted); }

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---- Visual Showcase ---- */
.showcase {
  padding: var(--section-py) 0;
  overflow: hidden;
}

.showcase-phones {
  display: flex;
  justify-content: center;
  gap: 40px;
  align-items: center;
  padding: 20px 0;
}

.showcase-phone {
  transform: perspective(800px) rotateY(-12deg);
  transition: transform 0.3s;
}

.showcase-phone:nth-child(2) {
  transform: perspective(800px) rotateY(0deg) scale(1.08);
  z-index: 1;
}

.showcase-phone:nth-child(2) .phone {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

.showcase-phone:nth-child(3) {
  transform: perspective(800px) rotateY(12deg);
}

.showcase-phone .phone-label {
  text-align: center;
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
}

/* ---- Social Proof ---- */
.social-proof {
  text-align: center;
  padding: 64px 0;
}

.social-proof blockquote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- CTA Section ---- */
.cta-section {
  text-align: center;
  padding: var(--section-py) 0;
}

.cta-section h2 {
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1.125rem;
  margin-bottom: 32px;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 24px;
}

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

.footer-social {
  display: flex;
  gap: 16px;
}

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

.footer-copy {
  width: 100%;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-fine-print {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--color-muted);
  opacity: 0.7;
}

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

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

/* ---- Privacy Page ---- */
.privacy-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.privacy-content h1 {
  font-size: 2.25rem;
  margin-bottom: 8px;
}

.privacy-content .last-updated {
  color: var(--color-muted);
  font-size: 0.9375rem;
  margin-bottom: 40px;
}

.privacy-content h2 {
  font-size: 1.375rem;
  margin-top: 36px;
  margin-bottom: 12px;
}

.privacy-content p,
.privacy-content li {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.privacy-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.privacy-content a {
  color: var(--color-accent);
}

.privacy-content a:hover {
  text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  :root {
    --section-py: 64px;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  /* Nav */
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-phone {
    display: flex;
    justify-content: center;
  }

  .phone {
    width: 220px;
    height: 440px;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Showcase */
  .showcase-phones {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .showcase-phone,
  .showcase-phone:nth-child(2),
  .showcase-phone:nth-child(3) {
    transform: none;
  }

  .showcase-phone:nth-child(2) .phone {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.875rem; }

  .hero { padding: 48px 0 40px; }

  .phone {
    width: 200px;
    height: 400px;
  }

  .feature-card {
    padding: 24px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9375rem;
  }
}
