/* ============================================
   My Kitchen Intelligence — Light Theme
   Clean & modern, kitchen-inspired accents
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,700;1,500&display=swap');

/* --- Custom Properties --- */
:root {
  --bg:         #fafafa;
  --bg-card:    #ffffff;
  --bg-card-hover: #f5f5f5;
  --bg-nav:     rgba(250, 250, 250, 0.9);
  --text:       #1a1a2e;
  --text-muted: #5a5a6e;
  --text-dim:   #8a8a9a;
  --border:     rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --red:        #e11d48;
  --purple:     #6b2fa0;
  --gradient:   linear-gradient(135deg, #e11d48, #6b2fa0);
  --glow-red:   rgba(225, 29, 72, 0.08);
  --glow-purple: rgba(107, 47, 160, 0.08);
  --radius:     16px;
  --radius-sm:  10px;
  --max-width:  1100px;
  --nav-height: 72px;
  --font-body:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 100px 0;
}

.section--sm {
  padding: 60px 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav__logo img {
  height: 64px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.nav__link:hover,
.nav__link--active {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

.nav__cta {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient);
  margin-left: 8px;
  transition: opacity 0.2s, transform 0.2s;
}

.nav__cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero --- */
.hero {
  padding-top: var(--nav-height);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.06) 0%, rgba(107, 47, 160, 0.04) 40%, transparent 70%);
  pointer-events: none;
  opacity: 1;
}

.hero__content {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero__logo {
  height: 260px;
  width: auto;
  margin: 0 auto 4px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.4);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
}

.hero__title .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font-body);
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(225, 29, 72, 0.15), 0 2px 8px rgba(0,0,0,0.08);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(225, 29, 72, 0.2), 0 4px 12px rgba(0,0,0,0.1);
}

.btn--secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.btn--secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* --- Feature Cards --- */
.features {
  padding: 100px 0;
}

.features__header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.08), rgba(107, 47, 160, 0.08));
  border: 1px solid var(--border);
  color: var(--red);
}

.feature-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Steps / How It Works --- */
.steps {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.steps__list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 28px;
  position: relative;
  padding-bottom: 48px;
}

.step:last-child {
  padding-bottom: 0;
}

.step__indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  background: var(--gradient);
  color: #fff;
  flex-shrink: 0;
}

.step__line {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple), var(--border));
  margin-top: 8px;
}

.step:last-child .step__line {
  display: none;
}

.step__content {
  padding-top: 8px;
}

.step__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- CTA Section --- */
.cta {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.cta__card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.cta__card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 100%, rgba(107, 47, 160, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
}

.cta__desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
  position: relative;
}

.cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.cta__note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-dim);
  position: relative;
}

.cta__note a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Page Header (subpages) --- */
.page-header {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(107, 47, 160, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  position: relative;
}

.page-header__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  position: relative;
}

/* --- Content Blocks --- */
.content-block {
  padding: 64px 0;
}

.content-block + .content-block {
  border-top: 1px solid var(--border);
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.content-card h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.content-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
}

.content-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card ul {
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 0;
}

.content-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.content-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

.content-card a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(225, 29, 72, 0.3);
  transition: text-decoration-color 0.2s;
}

.content-card a:hover {
  text-decoration-color: var(--red);
}

/* --- About Page --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.credential {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.credential:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.credential__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.08), rgba(107, 47, 160, 0.08));
  border: 1px solid var(--border);
  flex-shrink: 0;
  color: var(--red);
}

.credential__text {
  font-size: 15px;
  font-weight: 500;
}

.credential__sub {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* --- Contact Form --- */
#contactCard {
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

.contact-form {
  margin-top: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(107, 47, 160, 0.1);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

select.form-input {
  cursor: pointer;
}

/* --- Contact Page --- */
.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.contact-card__icon {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--red);
}

.contact-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.contact-card .btn {
  width: 100%;
  justify-content: center;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-dim);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--text-muted);
}

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

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

/* --- Responsive --- */
@media (max-width: 900px) {
  .features__grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--nav-height));
    z-index: 999;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .nav__links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    font-size: 22px;
    font-weight: 600;
    padding: 16px 28px;
    color: var(--text);
  }

  .nav__cta {
    font-size: 18px;
    padding: 14px 32px;
    margin-left: 0;
    margin-top: 8px;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: var(--nav-height);
    padding-bottom: 48px;
  }

  .hero__logo {
    height: 140px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 64px 0;
  }

  .cta__card {
    padding: 40px 24px;
  }

  .step {
    gap: 20px;
  }

  .page-header {
    padding-top: calc(var(--nav-height) + 32px);
    padding-bottom: 32px;
  }

  .content-card {
    padding: 24px 20px;
  }

  .credential {
    padding: 16px 18px;
  }
}
