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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a2433;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilities ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary { background: #2563eb; color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 17px; border-radius: 10px; }
.btn-full { width: 100%; }

.section-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: #64748b;
  font-size: 1.1rem;
  margin-bottom: 52px;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-login {
  font-size: 15px;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s;
}
.header-login:hover {
  color: #1a2433;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1a2433;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(160deg, #eff6ff 0%, #f8faff 60%, #fff 100%);
  padding: 64px 0 48px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text h1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #1a2433;
}
.hero-sub {
  font-size: 1.15rem;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-note {
  font-size: 14px;
  color: #64748b;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.hero-visual-stack {
  position: relative;
  display: inline-block;
}

/* ── Phone overlay ── */
.phone-overlay {
  position: absolute;
  bottom: -24px;
  right: -16px;
  z-index: 10;
}
.phone-mockup-img {
  width: 160px;
  display: block;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.22));
}
.hero-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(37,99,235,0.07), 0 1px 4px rgba(0,0,0,0.05);
}
.hero-card-offset {
  margin-left: 32px;
}
.recipe-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.recipe-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1a2433;
}
.recipe-meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}
.recipe-stars {
  font-size: 14px;
  color: #f59e0b;
}
.recipe-stars span {
  color: #64748b;
  font-size: 12px;
  margin-left: 4px;
}

/* ── Features (hero rows) ── */
.features {
  padding: 64px 0;
  background: #f0f4f8;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 88px;
}
.feature-row:last-child {
  margin-bottom: 0;
}
.feature-row-reverse {
  direction: rtl;
}
.feature-row-reverse > * {
  direction: ltr;
}

.feature-row-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.feature-row-text h3 {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #1a2433;
  margin-bottom: 12px;
  line-height: 1.2;
}
.feature-row-text p {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 20px;
}
.feature-row-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-row-list li {
  font-size: 15px;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Features (secondary grid) ── */
.features-secondary {
  padding: 88px 0;
  background: #fff;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature {
  padding: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8faff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature:hover {
  box-shadow: 0 6px 24px rgba(37,99,235,0.08);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.feature h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a2433;
}
.feature p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* ── How it works ── */
.how {
  padding: 88px 0;
  background: #f0f4f8;
}
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 8px;
}
.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 0 24px;
}
.step-num {
  width: 48px;
  height: 48px;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  margin: 0 auto 16px;
}
.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}
.step-arrow {
  font-size: 1.5rem;
  color: #cbd5e1;
  padding-top: 12px;
  flex-shrink: 0;
}

/* ── Pricing ── */
.pricing {
  padding: 88px 0;
  background: #fff;
}
.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  border: 2px solid #2563eb;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  position: relative;
}
.pricing-badge {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.price {
  font-size: 3.5rem;
  font-weight: 900;
  color: #1a2433;
  letter-spacing: -0.03em;
}
.price-period {
  font-size: 1.1rem;
  color: #64748b;
}
.pricing-desc {
  color: #64748b;
  font-size: 15px;
  margin-bottom: 28px;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-features li {
  font-size: 14px;
  color: #374151;
  padding-left: 1.4em;
  text-indent: -1.4em;
}
.pricing-features li::first-letter {
  color: #2563eb;
  font-weight: 700;
}
.shocking-popup {
  position: fixed;
  font-size: 2.5rem;
  background: #fff;
  border-radius: 12px;
  padding: 6px 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.shocking-popup.visible {
  opacity: 1;
  transform: scale(1);
}

.pricing-fine {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 14px;
  line-height: 1.6;
}

/* ── Import rotator ── */
.import-rotator {
  position: relative;
  aspect-ratio: 10 / 7;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(37,99,235,0.12), 0 2px 8px rgba(0,0,0,0.08);
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
}

.rotator-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.rotator-img.active {
  opacity: 1;
}

/* ── Theme rotator ── */
.theme-rotator {
  position: relative;
  aspect-ratio: 10 / 7;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(37,99,235,0.12), 0 2px 8px rgba(0,0,0,0.08);
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
}

.theme-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.theme-img.active {
  opacity: 1;
}

.theme-label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.35s ease-in-out;
}

/* ── Contact ── */
.contact {
  padding: 88px 0;
  background: #f0f4f8;
  border-top: 1px solid #e2e8f0;
}

.contact-form {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field label {
  font-size: 14px;
  font-weight: 700;
  color: #1a2433;
}

.contact-field input,
.contact-field textarea {
  font-family: inherit;
  font-size: 15px;
  color: #1a2433;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #94a3b8;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.contact-error {
  font-size: 14px;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
}

.contact-success {
  font-size: 15px;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
}

@media (max-width: 600px) {
  .contact-row {
    grid-template-columns: 1fr;
  }
}

/* ── Footer ── */
.footer {
  background: #1a2433;
  color: #94a3b8;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  font-size: 13px;
}

/* ── Scroll-to-top ── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37,99,235,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s, background 0.15s;
  z-index: 900;
}
.scroll-top:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}
.scroll-top[hidden] {
  display: none;
}

/* ── Screenshots ── */
.screenshot-frame {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(37,99,235,0.12), 0 2px 8px rgba(0,0,0,0.08);
  background: #e2e8f0;
  position: relative;
  aspect-ratio: 10 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screenshot-frame-lg {
  aspect-ratio: 4 / 4;
  border-radius: 16px;
}
.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Hide placeholder label when image loads successfully */
.screenshot-frame:not(.screenshot-placeholder) .screenshot-placeholder-label {
  display: none;
}
.screenshot-placeholder {
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
}
.screenshot-placeholder .screenshot-img {
  display: none;
}
.screenshot-placeholder-label {
  font-size: 15px;
  color: #64748b;
  font-weight: 700;
  text-align: center;
  padding: 24px;
}

/* ── Lightbox ── */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.15s ease;
}
.lightbox-backdrop[hidden] { display: none; }

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  animation: slideUp 0.18s ease;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.28); }

/* ── Showcase (recipe detail) ── */
.showcase {
  padding: 64px 0;
  background: #fff;
}
.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.showcase-text h2 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.showcase-text p {
  color: #4a5568;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.showcase-list li {
  font-size: 15px;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
}
.showcase-list li::first-letter {
  color: #2563eb;
  font-weight: 700;
}

/* ── Beta modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.15s ease;
}
.modal-backdrop[hidden] { display: none; }

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

.modal {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  animation: slideUp 0.18s ease;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: #f1f5f9; color: #1a2433; }

.modal-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.modal h2 {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #1a2433;
}

.modal p {
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-note {
  font-size: 13px !important;
  color: #94a3b8 !important;
  margin-top: 14px;
  margin-bottom: 0 !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-text h1 {
    font-size: 2.2rem;
  }
  .hero-visual {
    display: none;
  }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 56px;
  }
  .feature-row-reverse {
    direction: ltr;
  }
  .feature-row-text h3 {
    font-size: 1.3rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .showcase-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .showcase-text h2 {
    font-size: 1.6rem;
  }
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .step-arrow {
    transform: rotate(90deg);
    padding: 0;
  }

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

@media (max-width: 480px) {
  .hero { padding: 48px 0; }
  .hero-text h1 { font-size: 1.9rem; }
  .features, .how, .pricing { padding: 60px 0; }
  .pricing-card { padding: 28px 20px; }
}
