/* ============================================
   Mise Landing Page
   Design spec v1.0 — VP of Design
   ============================================ */

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

:root {
  /* Colors */
  --orange-500: #F29C11;
  --orange-600: #D4870E;
  --orange-400: #F5B041;
  --orange-100: #FEF5E7;
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #E5E5E5;
  --gray-400: #A3A3A3;
  --gray-500: #737373;
  --gray-800: #262626;
  --gray-950: #0A0A0A;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-elevated: 0 4px 6px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.08);
  --shadow-hero: 0 24px 80px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 64px;

  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--gray-950);
}

.nav-logo-icon { font-size: 24px; }

.nav-logo-text {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-800);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--orange-500); }

.nav-cta {
  background: var(--gray-950) !important;
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: opacity 0.2s ease !important;
}

.nav-cta:hover { opacity: 0.85; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-radius: 12px;
  padding: 14px 28px;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(242, 156, 17, 0.25);
}

.btn-primary:hover {
  background: var(--orange-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 32px rgba(242, 156, 17, 0.35);
}

.btn-text {
  background: transparent;
  color: var(--orange-500);
  font-weight: 500;
  padding: 14px 8px;
}

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

.btn-text .arrow-down {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-text:hover .arrow-down { transform: translateY(2px); }

.btn-outline {
  background: transparent;
  color: var(--gray-800);
  border: 1.5px solid var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--gray-800);
  transform: translateY(-1px);
}

.btn-large {
  padding: 18px 36px;
  font-size: 18px;
}

.apple-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-large .apple-icon {
  width: 22px;
  height: 22px;
}

/* --- Pill Badge --- */
.pill {
  display: inline-block;
  background: var(--orange-100);
  color: var(--orange-500);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 100px;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

/* --- Chip --- */
.chip {
  display: inline-block;
  background: var(--orange-100);
  color: var(--orange-500);
  font-size: 14px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.chip--light {
  background: rgba(242, 156, 17, 0.15);
  color: var(--orange-400);
}

/* --- Hero --- */
.hero {
  padding: calc(var(--nav-height) + 96px) 0 80px;
  background: linear-gradient(180deg, var(--orange-100) 0%, var(--white) 60%);
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--gray-950);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: var(--gray-500);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 72px;
}

/* Phone mockups */
.phone-frame {
  width: 280px;
  height: 580px;
  background: var(--gray-950);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-hero);
  position: relative;
  flex-shrink: 0;
}

.phone-frame--hero {
  width: 300px;
  height: 620px;
  transform: rotate(-2deg);
}

.phone-frame--small {
  width: 220px;
  height: 460px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #F8F8F8 0%, #EEEEEE 100%);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-screen--dark {
  background: linear-gradient(160deg, #1C1C1E 0%, #0A0A0A 100%);
}

.phone-screen--dark .phone-placeholder {
  color: rgba(255,255,255,0.4);
}

.phone-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--gray-400);
}

.phone-placeholder-icon { font-size: 48px; }

.phone-placeholder-text {
  font-size: 14px;
  font-weight: 500;
}

.screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tablet mockup */
.tablet-frame {
  width: 500px;
  height: 370px;
  background: var(--gray-950);
  border-radius: 24px;
  padding: 12px;
  box-shadow: var(--shadow-elevated);
}

.tablet-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #F8F8F8 0%, #EEEEEE 100%);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tablet-screen .phone-placeholder-icon { font-size: 36px; }
.tablet-screen .phone-placeholder-text { font-size: 13px; }

.hero-device {
  position: relative;
}

/* Floating animation for hero phone */
@media (prefers-reduced-motion: no-preference) {
  .phone-frame--hero {
    animation: float 6s ease-in-out infinite;
  }

  @keyframes float {
    0%, 100% { transform: rotate(-2deg) translateY(0); }
    50% { transform: rotate(-2deg) translateY(-6px); }
  }
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--gray-950);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
}

/* --- Features --- */
.features {
  padding: 128px 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
  padding: 0;
}

.feature-row:last-child { margin-bottom: 0; }

/* Alternate layout: mockup left */
.feature-row:nth-child(odd) .feature-mockup { order: 0; }
.feature-row:nth-child(odd) .feature-text { order: 1; }
.feature-row:nth-child(even) .feature-text { order: 0; }
.feature-row:nth-child(even) .feature-mockup { order: 1; }

/* Dark feature row (Cooking Mode) */
.feature-row--dark {
  background: var(--gray-950);
  border-radius: 24px;
  padding: 64px;
  color: var(--white);
  margin-left: -24px;
  margin-right: -24px;
}

.feature-row--dark .feature-title { color: var(--white); }
.feature-row--dark .feature-desc { color: var(--gray-400); }

.feature-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-text .feature-title {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gray-950);
  margin-bottom: 16px;
}

.feature-desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.feature-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-details li {
  font-size: 15px;
  color: var(--gray-500);
  padding-left: 24px;
  position: relative;
}

.feature-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--orange-500);
  border-radius: 50%;
}

.feature-details--light li { color: var(--gray-400); }

/* --- Devices Section --- */
.devices {
  padding: 128px 0;
  background: var(--gray-50);
  text-align: center;
}

.devices-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.devices-composition {
  position: relative;
  margin-bottom: 64px;
  height: 400px;
  width: 100%;
  max-width: 700px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-ipad {
  position: relative;
  z-index: 1;
}

.device-iphone {
  position: absolute;
  right: 40px;
  bottom: -20px;
  z-index: 2;
}



/* --- Final CTA --- */
.final-cta {
  position: relative;
  padding: 160px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--orange-100) 40%, #FDEBD0 100%);
  text-align: center;
  overflow: hidden;
}

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

.final-cta-icon {
  font-size: 80px;
  margin-bottom: 32px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

.final-cta-title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gray-950);
  margin-bottom: 16px;
  line-height: 1.1;
}

.final-cta-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: var(--gray-500);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-glow {
  position: absolute;
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(242,156,17,0.12) 0%, transparent 70%);
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* --- Footer --- */
.footer {
  background: var(--gray-950);
  color: var(--gray-400);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-logo-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 14px;
  color: var(--gray-500);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col a {
  font-size: 14px;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--gray-500);
}

/* --- Animations --- */
.anim-fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .feature-row { gap: 48px; margin-bottom: 64px; }
}

@media (max-width: 768px) {
  .features { padding: 80px 0; }
  .devices { padding: 80px 0; }
  .final-cta { padding: 100px 0; }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .feature-row .feature-mockup { order: -1 !important; }
  .feature-row .feature-text { order: 1 !important; }

  .feature-row--dark {
    margin-left: -12px;
    margin-right: -12px;
    padding: 40px 24px;
  }

  .feature-details { align-items: center; }
  .feature-details li { text-align: left; }

  .phone-frame {
    width: 220px;
    height: 460px;
  }

  .phone-frame--hero {
    width: 260px;
    height: 540px;
  }



  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-col { align-items: center; }

  .devices-composition { height: 300px; }
  .tablet-frame { width: 360px; height: 270px; }
  .device-iphone { right: 10px; bottom: -10px; }
  .phone-frame--small { width: 180px; height: 380px; }

  .nav-links a:not(.nav-cta) { display: none; }

  .section-header { margin-bottom: 48px; }
}

@media (max-width: 480px) {
  .hero { padding: calc(var(--nav-height) + 48px) 0 48px; }
  .hero-ctas { flex-direction: column; width: 100%; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 320px; justify-content: center; }
  .hero-ctas .btn-text { width: auto; }
  .hero-subtitle { font-size: 17px; }

  .features, .devices { padding: 64px 0; }
  .final-cta { padding: 80px 0; }

  .phone-frame--hero {
    width: 220px;
    height: 460px;
  }

  .devices-composition { height: 240px; }
  .tablet-frame { width: 280px; height: 210px; }
  .phone-frame--small { width: 140px; height: 300px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .phone-frame--hero { animation: none; transform: rotate(-2deg); }
  .anim-fade-up { transition-duration: 0.3s; transform: none; }
}
