/* ================================
   MacroMenu Waitlist - Cosmos Inspired
   ================================ */

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand Colors */
  --green: #4ADE80;
  --green-dim: rgba(74, 222, 128, 0.6);
  --green-glow: rgba(74, 222, 128, 0.25);
  --green-subtle: rgba(74, 222, 128, 0.08);

  /* Neutrals */
  --black: #000000;
  --bg-dark: #050505;
  --bg-section: #0a0a0a;
  --white: #ffffff;
  --gray-100: rgba(255, 255, 255, 0.95);
  --gray-200: rgba(255, 255, 255, 0.8);
  --gray-400: rgba(255, 255, 255, 0.5);
  --gray-600: rgba(255, 255, 255, 0.3);
  --gray-800: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ================================
   Navigation
   ================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  background: transparent;
  transition: background 0.3s ease;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link-cta {
  color: var(--white);
  padding: 8px 16px;
  border: 1px solid var(--gray-600);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-link-cta:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

/* ================================
   Hero Section
   ================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 100px 24px 40px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(74, 222, 128, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #050505 0%, #000000 100%);
}

/* Main hero container - two columns */
.hero-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  gap: 60px;
}

/* Hero Content - Left side */
.hero-content {
  flex: 1;
  max-width: 560px;
  animation: fadeUp 0.8s ease-out;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.hero-headline {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-highlight {
  color: var(--green);
}

.hero-subtext {
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray-400);
  margin-bottom: 32px;
}

.highlight-text {
  color: var(--white);
  font-weight: 600;
}

/* Phone Mockup - Right side */
.hero-phone {
  flex-shrink: 0;
  animation: fadeUp 0.8s ease-out 0.2s both;
}

.phone-frame {
  position: relative;
  width: 280px;
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 14px;
  z-index: 10;
}

.phone-screen {
  display: block;
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: top;
  border-radius: 32px;
  background: #1a1a1a;
}

/* ================================
   Restaurant Logo Strip
   ================================ */
.logo-strip {
  margin-top: auto;
  padding-top: 40px;
}

.logo-strip-label {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.logo-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.logo-track img {
  height: 90px;
  width: auto;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.logo-track img:hover {
  opacity: 1;
  transform: scale(1.1);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Waitlist Form */
.waitlist-form {
  animation: fadeUp 0.8s ease-out 0.3s both;
}

.form-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-600);
}

.form-container {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
  padding: 6px 6px 6px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--gray-800);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-container:focus-within {
  border-color: var(--gray-600);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px var(--green-subtle);
}

.form-container input {
  flex: 1;
  min-width: 0;
  padding: 14px 0;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
}

.form-container input::placeholder {
  color: var(--gray-400);
}

.form-container button {
  flex-shrink: 0;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: var(--black);
  background: var(--white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-container button:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}

.form-container button:active {
  transform: translateY(0);
}

.form-container button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: none;
}

.btn-loading .spinner {
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
}

button.loading .btn-text {
  display: none;
}

button.loading .btn-loading {
  display: flex;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeUp 0.5s ease-out;
}

.success-message.show {
  display: flex;
}

.success-check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-check svg {
  width: 24px;
  height: 24px;
  stroke: var(--black);
}

.success-message p {
  font-size: 16px;
  color: var(--gray-200);
}

/* Bottom Bar */
.hero-bottom {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  animation: fadeUp 1s ease-out 0.5s both;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.scroll-indicator:hover {
  color: var(--gray-200);
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ================================
   Manifesto Section
   ================================ */
.manifesto {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px;
  background: var(--black);
}

.manifesto-content {
  max-width: 800px;
  text-align: center;
}

.manifesto-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 32px;
}

.manifesto-text {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 300;
  line-height: 1.4;
  color: var(--gray-400);
}

.manifesto-highlight {
  color: var(--white);
  font-weight: 400;
}

/* ================================
   Content Sections
   ================================ */
.section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px;
}

.section-problem {
  background: var(--bg-dark);
}

.section-solution {
  background: var(--black);
  position: relative;
}

.section-solution::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--gray-800));
}

.section-content {
  max-width: 600px;
  text-align: center;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.section-headline {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
}

.section-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-400);
}

/* ================================
   Features Grid
   ================================ */
.features-section {
  padding: 120px 24px;
  background: var(--bg-section);
}

.features-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--gray-800);
  border: 1px solid var(--gray-800);
}

.feature-card {
  padding: 48px 40px;
  background: var(--bg-section);
  transition: background 0.3s ease;
}

.feature-card:hover {
  background: rgba(74, 222, 128, 0.03);
}

.feature-number {
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 20px;
}

.feature-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-400);
}

/* ================================
   Final CTA Section
   ================================ */
.final-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px;
  background: var(--black);
  position: relative;
}

.final-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 60%, var(--green-subtle) 0%, transparent 60%);
  pointer-events: none;
}

.final-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.final-headline {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 48px;
}

.waitlist-form-bottom {
  animation: none;
}

/* ================================
   Footer
   ================================ */
.footer {
  padding: 60px 24px;
  background: var(--bg-section);
  border-top: 1px solid var(--gray-800);
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 14px;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 13px;
  color: var(--gray-600);
}

/* ================================
   Animations
   ================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 960px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-phone {
    order: -1;
  }

  .phone-frame {
    width: 240px;
  }

  .phone-screen {
    height: 480px;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 20px 24px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-link:not(.nav-link-cta) {
    display: none;
  }

  .hero {
    padding: 80px 20px 40px;
  }

  .hero-subtext {
    font-size: 16px;
  }

  .form-container {
    flex-direction: column;
    padding: 12px;
    gap: 12px;
  }

  .form-container input {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  .form-container button {
    width: 100%;
    padding: 14px 24px;
  }

  .logo-strip-label {
    font-size: 11px;
  }

  .logo-track img {
    height: 50px;
  }

  .logo-track {
    gap: 40px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 32px 24px;
  }

  .manifesto,
  .section,
  .final-section {
    min-height: auto;
    padding: 80px 20px;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 32px;
  }

  .hero-eyebrow {
    font-size: 12px;
  }

  .phone-frame {
    width: 200px;
  }

  .phone-screen {
    height: 400px;
  }

  .manifesto-text,
  .section-headline {
    font-size: 24px;
  }

  .final-headline {
    font-size: 28px;
  }
}
