/* ── nomz website ── */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --bg-input: #222;
  --accent: #EDFF00;
  --accent-dim: rgba(237, 255, 0, 0.12);
  --accent-glow: rgba(237, 255, 0, 0.25);
  --text: #f5f5f5;
  --text-secondary: #888;
  --text-tertiary: #555;
  --border: rgba(255,255,255,0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Header ── */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 24px;
  width: auto;
  display: block;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.cta-nav {
  color: var(--bg);
  background: var(--accent);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-nav:hover {
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* ── Hero ── */
.hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 2rem 5rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-primary svg { flex-shrink: 0; }

.hero-note {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ── Demo section ── */
.demo {
  padding: 4rem 2rem 6rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo-container {
  --demo-phone-width: 280px;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.demo-step { display: flex; flex-direction: column; align-items: center; }

.step-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

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

/* Video carousel — 9:16 aspect ratio to match video dimensions */
.video-carousel {
  width: var(--demo-phone-width);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--radius-xl);
  position: relative;
  background: var(--bg-card);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.3),
    0 20px 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.carousel-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
  z-index: 10;
}

.carousel-progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  animation: carousel-fill 5s linear forwards;
}

@keyframes carousel-fill {
  to { width: 100%; }
}

.video-carousel-track {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card {
  width: 100%;
  aspect-ratio: 9 / 16;
  flex-shrink: 0;
}

.video-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
}

.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.platform-badge {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.platform-badge.tiktok {
  background: rgba(0,0,0,0.7);
  color: #fff;
}

.platform-badge.instagram {
  background: linear-gradient(135deg, rgba(131,58,180,0.9), rgba(253,29,29,0.9), rgba(252,176,69,0.9));
  color: #fff;
}

.play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.play-icon svg { margin-left: 3px; }

.video-overlay-text {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  height: 70px;
}

.creator-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.creator {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  flex: 1;
}

.video-likes {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* Transform arrow (center) */
.step-transform {
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-icon {
  color: var(--accent);
  opacity: 0.6;
}

/* Recipe card demo — mirrors actual app layout, same height as video carousel */
.recipe-card-demo {
  width: 320px;
  height: calc(var(--demo-phone-width, 280px) * 16 / 9);
  background: #1c1c1e;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.3),
    0 20px 60px rgba(0,0,0,0.5);
  color: #f0f0f0;
}

.recipe-card-top {
  display: flex;
  gap: 0.875rem;
  padding: 1.25rem 1.25rem 1rem;
  align-items: flex-start;
}

.recipe-thumb {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.recipe-thumb-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

.thumb-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-badge.tiktok {
  background: #000;
  color: #fff;
}

.thumb-play {
  position: absolute;
  bottom: 6px;
  left: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-play svg { margin-left: 2px; }

.recipe-top-info {
  flex: 1;
  min-width: 0;
}

.recipe-top-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.625rem;
  color: #f0f0f0;
}

.servings-control {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: 100px;
  overflow: hidden;
  border: 1.5px solid #3a3a3c;
}

.servings-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.servings-label {
  padding: 0 0.625rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
}

.recipe-card-section {
  padding: 0 1.25rem 1.25rem;
}

.ingredients-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.ingredients-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0f0f0;
  text-transform: none;
  letter-spacing: -0.01em;
}

.ingredients-count {
  font-size: 0.75rem;
  color: #666;
  font-weight: 400;
}

.ingredients-divider {
  height: 1px;
  background: #3a3a3c;
  margin-bottom: 0.75rem;
}

.ingredient-group-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 0.5rem;
}

.ingredient-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.ingredient-list li {
  font-size: 0.82rem;
  color: #ddd;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: #2a2a2c;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
}

.check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid #555;
  flex-shrink: 0;
  background: transparent;
}

.ingredient-fade {
  opacity: 0.4;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1a1a;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.instructions-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0f0f0;
  letter-spacing: -0.01em;
}

/* ── Features ── */
.features {
  padding: 6rem 2rem;
}

.features-container {
  max-width: 900px;
  margin: 0 auto;
}

.features h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 3.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.feature-card:hover {
  border-color: rgba(255,255,255,0.1);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

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

/* ── Final CTA ── */
.final-cta {
  padding: 6rem 2rem 7rem;
  text-align: center;
  position: relative;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

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

.cta-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.final-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.btn-large {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

.cta-subtext {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 1rem;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo-img {
  height: 18px;
  width: auto;
  display: block;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 900px) {
  .header { padding: 1rem 1.5rem; }

  .hero { padding: 4rem 1.5rem 3rem; }
  .hero h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .hero-sub { font-size: 1rem; }

  .demo { padding: 3rem 1.5rem 4rem; }
  .demo-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 320px;
  }

  .step-transform { padding-top: 0; }

  .arrow-icon { transform: rotate(90deg); }

  .recipe-card-demo { width: 280px; }

  .features { padding: 4rem 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 1.5rem; }

  .final-cta { padding: 4rem 1.5rem 5rem; }
  .final-cta::before { width: 300px; height: 300px; }

  .footer { padding: 1.5rem; }
}

/* Mobile */
@media (max-width: 480px) {
  .header { padding: 0.875rem 1rem; }
  .header nav { gap: 0.75rem; }
  .nav-link:not(.cta-nav) { display: none; }
  .cta-nav { padding: 0.4rem 1rem; font-size: 0.8rem; }
  .logo-img { height: 20px; }

  .hero { padding: 3rem 1.25rem 2.5rem; }
  .hero h1 {
    font-size: clamp(1.5rem, 8vw, 2rem);
    line-height: 1.2;
  }
  .hero h1 br { display: none; }
  .hero-eyebrow { font-size: 0.7rem; margin-bottom: 1rem; }
  .hero-sub { font-size: 0.9rem; margin-bottom: 2rem; }
  .btn-primary { font-size: 0.9rem; padding: 0.75rem 1.75rem; }

  .demo { padding: 2.5rem 1rem 3rem; }
  .demo-container {
    max-width: 280px;
    gap: 1.5rem;
  }

  .demo-container {
    --demo-phone-width: 240px;
  }

  .recipe-card-demo { width: 240px; }
  .recipe-card-top { padding: 1rem; gap: 0.625rem; }
  .recipe-thumb { width: 80px; height: 80px; }
  .recipe-top-info h3 { font-size: 0.9rem; }
  .recipe-card-section { padding: 0 1rem 1rem; }
  .ingredient-list li { font-size: 0.75rem; padding: 0.5rem 0.625rem; }

  .step-label { font-size: 0.8rem; margin-bottom: 1rem; }
  .step-number { width: 24px; height: 24px; font-size: 0.7rem; }

  .features { padding: 3rem 1.25rem; }
  .features h2 { font-size: 1.35rem; margin-bottom: 2.5rem; }
  .feature-card { padding: 1.25rem; }
  .feature-icon { width: 38px; height: 38px; margin-bottom: 1rem; }
  .feature-card h3 { font-size: 0.9rem; }
  .feature-card p { font-size: 0.82rem; }

  .final-cta { padding: 3rem 1.25rem 4rem; }
  .final-cta h2 { font-size: 1.35rem; }
  .final-cta::before { width: 250px; height: 250px; }
  .btn-large { font-size: 1rem; padding: 0.875rem 2rem; }

  .footer { padding: 1.25rem 1rem; }
  .footer-logo-img { height: 15px; }
  .footer-copy { font-size: 0.7rem; }
}

/* ── Scroll animations ── */
@media (prefers-reduced-motion: no-preference) {
  .demo-step,
  .feature-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 0.6s ease forwards;
  }

  .step-source { animation-delay: 0.1s; }
  .step-transform { animation-delay: 0.25s; }
  .step-result { animation-delay: 0.4s; }

  .feature-card:nth-child(1) { animation-delay: 0.1s; }
  .feature-card:nth-child(2) { animation-delay: 0.2s; }
  .feature-card:nth-child(3) { animation-delay: 0.3s; }
  .feature-card:nth-child(4) { animation-delay: 0.4s; }
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
