/* ============================================================
   Komşu Annem — Landing site styles
   Marka paleti src/styles/colors.js ile birebir.
   ============================================================ */

:root {
  --primary:        #5B9BD5;
  --primary-light:  #8AB8E6;
  --primary-dark:   #3A7BB8;
  --secondary:      #7CB5D9;
  --accent-pink:    #E8B4D4;
  --cream:          #F5E6D3;

  --text:           #2C3E50;
  --text-soft:      #546E7A;
  --bg:             #ffffff;
  --bg-alt:         #F8F9FA;
  --border:         #E3F2FD;

  --success:        #66BB6A;

  --maxw: 1120px;
  --radius: 18px;
  --shadow-sm: 0 4px 14px rgba(44, 62, 80, .06);
  --shadow-md: 0 14px 40px rgba(44, 62, 80, .10);
  --shadow-lg: 0 30px 70px rgba(58, 123, 184, .22);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo { width: 38px; height: 38px; object-fit: contain; }
.nav__brandText { font-weight: 700; font-size: 18px; color: var(--primary-dark); }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-weight: 500; color: var(--text-soft); transition: color .2s; }
.nav__links a:hover { color: var(--primary); }
.nav__cta {
  background: var(--primary);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(91, 155, 213, .35);
}
.nav__cta:hover { background: var(--primary-dark); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 64px 0 80px;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(124, 181, 217, .28), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(232, 180, 212, .22), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
}
.pill {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero__title {
  font-size: 46px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 18px 0 16px;
}
.grad {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__sub {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 520px;
  margin-bottom: 28px;
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 26px; color: var(--text-soft); font-size: 14px; font-weight: 500;
}

/* Store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #101418; color: #fff;
  padding: 11px 20px; border-radius: 14px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.badge__text { display: flex; flex-direction: column; line-height: 1.1; }
.badge__text small { font-size: 11px; opacity: .8; }
.badge__text strong { font-size: 18px; font-weight: 600; }
.store-badges--light .badge { background: #fff; color: #101418; }

/* Phone mockup */
.phone {
  position: relative;
  background: #0e1116;
  border-radius: 40px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
}
.phone--hero { width: min(320px, 78vw); margin: 0 auto; }
.phone__notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 42%; height: 22px; background: #0e1116; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone__img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 30px; position: relative; z-index: 2;
}
.phone__img.is-missing { display: none; }
.phone__placeholder {
  position: absolute; inset: 10px;
  border-radius: 30px; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 4px;
  color: var(--primary-dark); font-weight: 600; font-size: 14px;
  background:
    repeating-linear-gradient(45deg, rgba(124,181,217,.10) 0 12px, rgba(232,180,212,.10) 12px 24px),
    linear-gradient(160deg, #eaf3fb, #f7ecf4);
  border: 2px dashed var(--primary-light);
}
.phone__placeholder small { color: var(--text-soft); font-weight: 500; }

/* ============ AUDIENCE ============ */
.audience { padding: 10px 0 10px; margin-top: -30px; position: relative; z-index: 5; }
.audience__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.aud-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-md);
}
.aud-card__icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 16px;
}
.aud-card--family .aud-card__icon { background: linear-gradient(135deg, var(--primary-light), var(--secondary)); }
.aud-card--caregiver .aud-card__icon { background: linear-gradient(135deg, var(--accent-pink), var(--cream)); }
.aud-card h3 { font-size: 20px; margin-bottom: 8px; }
.aud-card p { color: var(--text-soft); }

/* ============ SECTIONS ============ */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 1.5px;
  font-size: 13px; font-weight: 700; color: var(--primary);
  margin-bottom: 12px;
}
.section__head h2 { font-size: 34px; font-weight: 800; letter-spacing: -.4px; }
.section__lead { color: var(--text-soft); margin-top: 12px; font-size: 17px; }

/* Features */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(91,155,213,.14), rgba(124,181,217,.14));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 16px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--text-soft); font-size: 15px; }

/* Steps */
.steps {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.step { flex: 1; min-width: 200px; max-width: 300px; text-align: center; padding: 0 12px; }
.step__num {
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 24px rgba(91,155,213,.35);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--text-soft); }
.step__line {
  flex: 0 0 60px; height: 2px; margin-top: 28px;
  background: linear-gradient(90deg, var(--primary-light), var(--secondary));
  border-radius: 2px;
}

/* Gallery */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.phone--sm { width: 100%; cursor: pointer; transition: transform .25s; }
.phone--sm:hover { transform: translateY(-6px); }

/* ============ CTA ============ */
.cta {
  padding: 84px 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; text-align: center;
}
.cta__inner { max-width: 700px; }
.cta h2 { font-size: 32px; font-weight: 800; letter-spacing: -.3px; }
.cta p { opacity: .92; margin: 14px 0 28px; font-size: 17px; }
.cta .store-badges { justify-content: center; }

/* ============ FOOTER ============ */
.footer { background: #0e1116; color: #cfd8e3; padding: 44px 0; }
.footer__inner {
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.footer__logo { width: 30px; height: 30px; object-fit: contain; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.footer__links a { color: #cfd8e3; transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__copy { font-size: 14px; color: #8b97a6; }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 14, 20, .88);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 90vw; max-height: 88vh; border-radius: 22px; box-shadow: var(--shadow-lg); }
.lightbox__close {
  position: absolute; top: 20px; right: 26px;
  background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; line-height: 1;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { order: 2; }
  .hero__visual { order: 1; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .store-badges, .hero__meta { justify-content: center; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.is-open .nav__links { max-height: 320px; }
  .nav__links a { padding: 15px 20px; border-top: 1px solid var(--border); }
  .nav__cta { margin: 12px 20px; text-align: center; }
  .nav__toggle { display: flex; }

  .hero__title { font-size: 34px; }
  .hero__sub { font-size: 16px; }
  .section { padding: 60px 0; }
  .section__head h2 { font-size: 27px; }
  .audience__grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step__line { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cta h2 { font-size: 26px; }
}
