/* myDishMyway — landing page */
:root {
  --orange: #f58220;
  --orange-light: #fff3e6;
  --orange-dark: #d96e12;
  --green: #5a8f3c;
  --green-dark: #3d6b28;
  --text: #2d3436;
  --text-muted: #636e72;
  --cream: #fdf9f3;
  --cream-dark: #f5efe6;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(45, 52, 54, 0.1);
  --radius: 14px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Decorative ingredient edges */
.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ingredient {
  position: absolute;
  background-size: cover;
  background-position: center;
  opacity: 0.92;
  filter: saturate(1.05);
}

.ingredient--tl {
  top: -4%;
  left: -6%;
  width: min(42vw, 320px);
  height: min(42vw, 320px);
  background-image: url("https://images.unsplash.com/photo-1540420773420-3366772f4999?w=600&q=80");
  border-radius: 50%;
  mask-image: radial-gradient(circle at 70% 70%, black 30%, transparent 72%);
}

.ingredient--tr {
  top: -2%;
  right: -8%;
  width: min(50vw, 420px);
  height: min(38vw, 300px);
  background-image: url("https://images.unsplash.com/photo-1490645935967-10de6ba17061?w=800&q=80");
  mask-image: radial-gradient(ellipse at 30% 50%, black 25%, transparent 70%);
}

.ingredient--br {
  bottom: 8%;
  right: -6%;
  width: min(45vw, 380px);
  height: min(35vw, 280px);
  background-image: url("https://images.unsplash.com/photo-1512621776951-a57141f2eefd?w=800&q=80");
  mask-image: radial-gradient(ellipse at 40% 40%, black 20%, transparent 68%);
}

/* Header */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand__name {
  display: block;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand__tagline {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.header-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange-dark);
  background: var(--orange-light);
  border: 1px solid rgba(245, 130, 32, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* Hero */
main {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem 3rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.text-orange {
  color: var(--orange);
}

.text-green {
  color: var(--green);
}

.hero__accent {
  width: 48px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.hero__desc {
  margin: 0 0 1.5rem;
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.hero__desc strong {
  color: var(--text);
  font-weight: 600;
}

.coming-soon-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--orange-light);
  border: 1px solid rgba(245, 130, 32, 0.2);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.75rem;
  max-width: 28rem;
}

.coming-soon-banner__icon {
  flex-shrink: 0;
  color: var(--orange);
  margin-top: 2px;
}

.coming-soon-banner p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.coming-soon-banner strong {
  color: var(--orange-dark);
}

/* Store buttons */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.store-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem 0.5rem 0.65rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: left;
  cursor: not-allowed;
  opacity: 0.92;
  transition: transform 0.15s ease;
}

.store-btn:disabled {
  pointer-events: none;
}

.store-btn--apple,
.store-btn--google {
  background: #1a1a1a;
  color: var(--white);
  border: none;
}

.store-btn--web {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid #c8c8c8;
}

.store-btn__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-btn__icon--play {
  width: 20px;
  height: 20px;
}

.store-btn__label {
  display: flex;
  flex-direction: column;
}

.store-btn__label small {
  font-size: 0.58rem;
  opacity: 0.85;
  font-weight: 400;
}

.store-btn__label strong {
  font-size: 0.85rem;
  font-weight: 600;
}

.store-btn--apple .store-btn__label,
.store-btn--google .store-btn__label {
  font-weight: 600;
  font-size: 0.85rem;
}

.store-btn__soon {
  position: absolute;
  top: -6px;
  right: -4px;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--orange);
  color: white;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* Phone mockup */
.hero__mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone {
  filter: drop-shadow(var(--shadow));
}

.phone__frame {
  width: min(280px, 78vw);
  background: #1c1c1e;
  border-radius: 36px;
  padding: 10px;
  box-shadow:
    0 0 0 2px #3a3a3c,
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone__notch {
  width: 90px;
  height: 22px;
  background: #1c1c1e;
  border-radius: 0 0 14px 14px;
  margin: -4px auto 4px;
  position: relative;
  z-index: 2;
}

.phone__screen {
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.app-bar__back {
  font-size: 1.4rem;
  color: var(--text-muted);
  line-height: 1;
}

.app-bar__heart {
  font-size: 1.1rem;
  color: var(--orange);
}

.app-bar__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  flex: 1;
  text-align: center;
}

.app-hero-img {
  height: 140px;
  margin: 0 0.75rem;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.15), transparent),
    url("https://images.unsplash.com/photo-1585937421612-70a008592f82?w=600&q=80") center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.app-play {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--orange);
  padding-left: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.app-progress {
  padding: 0.75rem 0.85rem 0.5rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.app-progress__bar {
  height: 4px;
  background: #eee;
  border-radius: 2px;
  margin-top: 0.35rem;
  overflow: hidden;
}

.app-progress__fill {
  width: 37.5%;
  height: 100%;
  background: var(--orange);
  border-radius: 2px;
}

.app-customize {
  padding: 0.5rem 0.85rem;
  flex: 1;
}

.app-customize h3 {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.slider-row {
  display: grid;
  grid-template-columns: 52px 1fr 58px;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  font-size: 0.58rem;
}

.slider-row > span:first-child {
  color: var(--text-muted);
}

.slider {
  height: 4px;
  background: #e8e8e8;
  border-radius: 2px;
  position: relative;
}

.slider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--fill, 50%);
  background: var(--orange);
  border-radius: 2px;
}

.slider-row:nth-child(2) .slider::before { width: 50%; }
.slider-row:nth-child(3) .slider::before { width: 50%; }
.slider-row:nth-child(4) .slider::before { width: 55%; }
.slider-row:nth-child(5) .slider::before { width: 45%; }

.slider__thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--orange);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.slider-val {
  text-align: right;
  font-weight: 500;
  color: var(--text);
}

.app-cta {
  margin: 0.5rem 0.85rem 1rem;
  padding: 0.7rem;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: default;
}

/* Features */
.features {
  max-width: var(--max);
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.features__list {
  list-style: none;
  margin: 0;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 4px 24px rgba(45, 52, 54, 0.06);
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

.feature__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.feature__icon svg {
  width: 28px;
  height: 28px;
}

.feature__text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem 1.5rem 2.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer__note {
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 1rem;
  }

  .hero__accent {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__desc,
  .coming-soon-banner {
    margin-left: auto;
    margin-right: auto;
  }

  .coming-soon-banner {
    text-align: left;
  }

  .store-buttons {
    justify-content: center;
  }

  .hero__mockup {
    margin-top: 0.5rem;
  }

  .phone__screen {
    min-height: 420px;
  }

  .features__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .site-header {
    flex-wrap: wrap;
    padding-top: 1rem;
  }

  .header-badge {
    width: 100%;
    text-align: center;
  }

  .store-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .store-btn {
    justify-content: flex-start;
  }

  .features__list {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .feature {
    flex-direction: row;
    text-align: left;
  }

  .ingredient--tl,
  .ingredient--tr {
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
