/* ── Custom Properties ── */
:root {
  --color-dark: #0f0e0c;
  --color-accent: #E8723A;
  --color-accent-hover: #d4612e;
  --color-sage: #7A9E7E;
  --color-warm-bg: #f5f0e8;
  --color-card: #FFFDF9;
  --color-text: #11181C;
  --color-text-light: #6b7280;
  --color-white: #ffffff;
  --color-error: #FF3B30;
  --color-success: #7A9E7E;
  --font-family: 'Poppins', sans-serif;
  --max-width: 1120px;
}

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

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

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

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

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

ul {
  list-style: none;
}

/* ── Utility ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--color-text-light);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(15, 14, 12, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.navbar-links {
  display: none;
  gap: 32px;
}

.navbar-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--color-white);
}

.navbar-cta {
  display: none;
  padding: 8px 20px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.navbar-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* ── Hero ── */
.hero {
  background: var(--color-dark);
  padding: 140px 0 80px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--color-warm-bg));
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(232, 114, 58, 0.12);
  border: 1px solid rgba(232, 114, 58, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 .accent {
  color: var(--color-accent);
}

.hero-description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ── Waitlist Form ── */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 440px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--color-white);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.waitlist-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  padding: 14px 28px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  font-size: 0.85rem;
  min-height: 20px;
  transition: opacity 0.2s;
}

.form-message.success {
  color: var(--color-success);
}

.form-message.error {
  color: var(--color-error);
}

.hero-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* Hero Mockup */
.hero-mockup {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.phone-frame {
  background: #1a1918;
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-screen {
  background: var(--color-dark);
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
}

.phone-header {
  padding: 16px 20px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-header h3 {
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 600;
}

.phone-header span {
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 500;
}

.phone-items {
  flex: 1;
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

.item-emoji {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.item-info {
  flex: 1;
}

.item-name {
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 500;
}

.item-detail {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
}

.item-status {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.item-status.fresh {
  background: rgba(122, 158, 126, 0.15);
  color: var(--color-sage);
}

.item-status.soon {
  background: rgba(255, 149, 0, 0.15);
  color: #FF9500;
}

.item-status.urgent {
  background: rgba(255, 59, 48, 0.15);
  color: #FF3B30;
}

/* ── Features ── */
.features {
  padding: 80px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

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

.feature-card {
  background: var(--color-card);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.feature-icon.orange {
  background: rgba(232, 114, 58, 0.1);
}

.feature-icon.sage {
  background: rgba(122, 158, 126, 0.1);
}

.feature-icon.blue {
  background: rgba(59, 130, 246, 0.1);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── How It Works ── */
.how-it-works {
  padding: 80px 0;
  text-align: center;
  background: var(--color-white);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-content p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.step-connector {
  display: none;
}

/* ── Bottom CTA ── */
.bottom-cta {
  padding: 80px 0;
  text-align: center;
  background: var(--color-dark);
  color: var(--color-white);
}

.bottom-cta .section-title {
  color: var(--color-white);
}

.bottom-cta .section-subtitle {
  color: rgba(255, 255, 255, 0.5);
}

.bottom-cta .waitlist-form {
  margin: 0 auto;
}

/* ── Footer ── */
.footer {
  padding: 32px 0;
  background: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
}

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

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

/* ── Responsive: Tablet (768px) ── */
@media (min-width: 768px) {
  .navbar-links {
    display: flex;
  }

  .navbar-cta {
    display: inline-flex;
  }

  .hero {
    padding: 160px 0 100px;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .hero .container {
    flex-direction: row;
    text-align: left;
    gap: 48px;
  }

  .hero-content {
    flex: 1;
  }

  .hero-mockup {
    max-width: 280px;
  }

  .waitlist-form {
    align-items: flex-start;
  }

  .input-group {
    flex-direction: row;
  }

  .section-title {
    font-size: 2.25rem;
  }

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

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ── Responsive: Desktop (1024px) ── */
@media (min-width: 1024px) {
  .hero {
    padding: 180px 0 120px;
  }

  .hero h1 {
    font-size: 3.75rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .hero-mockup {
    max-width: 320px;
  }

  .features {
    padding: 100px 0;
  }

  .how-it-works {
    padding: 100px 0;
  }

  .bottom-cta {
    padding: 100px 0;
  }

  .feature-card {
    padding: 36px 28px;
  }
}
