/* =========================================================
   Köpük — ana səhifə (landing)
   Palitra: tünd mürəkkəb, köpük firuzəsi, mərcan CTA, "kağız" bölmələri
   ========================================================= */

:root {
  --paper: #F2F4F6;
  --paper-ink: #0E1116;
  --paper-dim: #566170;
  --paper-line: #DCE1E7;
  --foam: #3FD9B8;
  --foam-deep: #0B8F74;
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body.landing { background: var(--bg); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

/* ---------------- menyu ---------------- */

.lp-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.lp-nav.is-scrolled { background: rgba(11, 13, 17, .88); backdrop-filter: blur(10px); border-bottom-color: var(--border); }
.lp-nav-inner { max-width: 1320px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 28px; }

.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: -0.03em; color: var(--text); }
.lp-brand b { color: var(--accent); }
.lp-brand:hover { color: var(--text); }

.lp-links { display: flex; gap: 26px; margin-left: 8px; }
.lp-links a { color: var(--text-2); font-size: 14px; font-weight: 500; }
.lp-links a:hover { color: var(--text); }
.lp-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.lp-actions { display: flex; gap: 8px; align-items: center; }
.lp-burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; position: relative; }
.lp-burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, top .2s ease; }
.lp-burger span:nth-child(1) { top: 15px; }
.lp-burger span:nth-child(2) { top: 23px; }
.lp-burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.lp-burger[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* ---------------- ilk ekran: xəritə ---------------- */

.hero {
  position: relative;
  min-height: 100svh;
  padding: 80px 16px 16px;
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
}
.hero > .hero-panel, .hero > .hero-map { position: relative; z-index: 1; height: calc(100svh - 96px); min-height: 600px; }

/* köpük halqaları (dekorativ) */
.rings { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.rings i { position: absolute; border-radius: 50%; border: 1px solid rgba(63, 217, 184, .16); animation: drift 14s ease-in-out infinite alternate; }
.rings i:nth-child(1) { width: 220px; height: 220px; left: -60px; top: 18%; }
.rings i:nth-child(2) { width: 90px;  height: 90px;  left: 22%; top: 6%; animation-duration: 11s; }
.rings i:nth-child(3) { width: 340px; height: 340px; right: -120px; bottom: -80px; animation-duration: 17s; }
.rings i:nth-child(4) { width: 60px;  height: 60px;  right: 14%; top: 9%; animation-duration: 9s; }
.rings i:nth-child(5) { width: 150px; height: 150px; left: 40%; bottom: 4%; animation-duration: 13s; }
.rings i:nth-child(6) { width: 34px;  height: 34px;  left: 8%; bottom: 14%; animation-duration: 8s; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(14px, -22px); } }

.hero-panel {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 28px;
  padding: 28px 24px 18px;
}
.eyebrow { margin: 0 0 14px; display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 107, 71, .6); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(255, 107, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 71, 0); } }

.hero-panel h1 { font-size: clamp(30px, 3.1vw, 44px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
.hero-panel h1 em { font-style: normal; color: var(--foam); }
.hero-panel .lead { margin: 14px 0 20px; font-size: 15px; line-height: 1.55; color: var(--text-2); max-width: 36ch; }

.searchbar { position: relative; display: flex; align-items: center; }
.searchbar svg { position: absolute; left: 15px; color: var(--text-dim); pointer-events: none; }
.searchbar input { width: 100%; height: 46px; padding: 0 16px 0 44px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 999px; font-size: 14px; color: var(--text); }
.searchbar input:focus { outline: none; border-color: var(--accent); }
.locate { width: 100%; margin-top: 10px; padding: 13px 16px; border-radius: 999px; }
.geo-msg { margin: 8px 4px 0; min-height: 18px; font-size: 12.5px; color: var(--text-dim); }

.panel-head { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.panel-head h2 { font-size: 15px; }
.count { font-size: 12px; color: var(--text-dim); }

.list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; margin-right: -4px; }
.list::-webkit-scrollbar { width: 6px; }
.list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }

.lcard {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 14px 15px;
  color: var(--text); transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.lcard:hover { border-color: #434B59; transform: translateY(-1px); }
.lcard.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.lcard-name { font-weight: 600; font-size: 15px; }
.lcard-addr { margin-top: 2px; font-size: 12.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard-meta { margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dist { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }

.list-empty { padding: 28px 8px; text-align: center; color: var(--text-dim); font-size: 14px; }

/* xəritə */
.hero-map { border-radius: 28px; overflow: hidden; border: 1px solid var(--border); background: #0F1318; }
#map { position: absolute; inset: 0; background: #0F1318; font-family: var(--font-body); }
#map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.93) contrast(.88) saturate(.5); }
#map .leaflet-bar { border: 1px solid var(--border-strong); box-shadow: none; border-radius: 12px; overflow: hidden; }
#map .leaflet-bar a { background: var(--surface); color: var(--text); border-bottom-color: var(--border); width: 36px; height: 36px; line-height: 36px; }
#map .leaflet-bar a:hover { background: var(--surface-3); }
#map .leaflet-control-attribution { background: rgba(11, 13, 17, .75); color: var(--text-dim); font-size: 10.5px; }
#map .leaflet-control-attribution a { color: var(--text-2); }

.kp-pin span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--foam); border: 4px solid var(--bg); box-shadow: 0 0 0 1.5px var(--foam), 0 6px 16px rgba(0, 0, 0, .45); position: relative; transition: transform .15s ease, background .15s ease; }
.kp-pin span::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg); }
.kp-pin.open span::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px solid var(--foam); opacity: 0; animation: pulse-ring 2.4s ease-out infinite; }
@keyframes pulse-ring { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(1.25); opacity: 0; } }
.kp-pin.closed span { background: #6C7686; box-shadow: 0 0 0 1.5px #6C7686, 0 6px 16px rgba(0, 0, 0, .45); }
.kp-pin.is-sel span { background: var(--accent); box-shadow: 0 0 0 1.5px var(--accent), 0 6px 16px rgba(0, 0, 0, .45); transform: scale(1.18); }
.kp-me span { display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid #3B82F6; box-shadow: 0 0 0 6px rgba(59, 130, 246, .25); }

.detail {
  position: absolute; z-index: 900; left: 16px; bottom: 16px; width: min(390px, calc(100% - 32px));
  background: rgba(18, 21, 27, .94); backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong); border-radius: 22px; padding: 20px 20px 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  animation: rise .25s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.detail-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 9px; border: none; background: transparent; color: var(--text-dim); cursor: pointer; display: grid; place-items: center; }
.detail-close:hover { background: var(--surface-3); color: var(--text); }
.detail-top { display: flex; align-items: center; gap: 10px; padding-right: 30px; flex-wrap: wrap; }
.detail-top h3 { font-size: 19px; }
.d-address { margin: 6px 0 0; font-size: 13px; color: var(--text-dim); }
.d-boxes { margin: 14px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bx-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 6px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.bx-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.bx-chip.busy i { background: var(--warn); }
.bx-chip.reserved i { background: var(--accent); }
.d-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.d-actions .btn { flex: 1; white-space: nowrap; }

/* ---------------- bölmələr ---------------- */

.band { position: relative; padding: clamp(72px, 10vw, 136px) 0; }
.band.paper { background: var(--paper); color: var(--paper-ink); }
.band.ink { background: var(--bg); }
.band.paper h2, .band.paper h3 { color: var(--paper-ink); }

.kicker { margin: 0 0 18px; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--foam-deep); }
.kicker.light { color: var(--foam); }
.big { font-size: clamp(32px, 4.8vw, 62px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 700; max-width: 20ch; }

.steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { border-top: 2px solid var(--paper-ink); padding-top: 24px; }
.steps .num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 104px; line-height: .86; color: transparent; -webkit-text-stroke: 1.6px var(--paper-ink); margin-bottom: 22px; }
.steps h3 { font-size: 23px; letter-spacing: -0.02em; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--paper-dim); line-height: 1.6; max-width: 34ch; }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 7vw, 96px); align-items: center; }
.split .lead { margin: 22px 0 26px; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 46ch; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--text); }
.ticks li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--foam); flex-shrink: 0; }
.ticks li { position: relative; }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 50%; width: 8px; height: 4px; border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: translateY(-65%) rotate(-45deg); }

/* telefon maketi */
.phone { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone-frame { position: relative; width: 292px; height: 590px; border-radius: 46px; border: 10px solid #1B2028; background: var(--bg); overflow: hidden; box-shadow: 0 0 0 1px var(--border-strong), 0 40px 90px rgba(0, 0, 0, .55); }
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 96px; height: 24px; background: #1B2028; border-radius: 0 0 16px 16px; z-index: 2; }
.phone-screen { padding: 46px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.ph-head { display: flex; flex-direction: column; gap: 2px; }
.ph-head span { font-size: 11.5px; color: var(--text-dim); }
.ph-head b { font-family: var(--font-display); font-size: 22px; }
.ph-video { position: relative; height: 190px; border-radius: 16px; background: var(--surface-2); display: grid; place-items: center; color: #3A4150; overflow: hidden; }
.ph-live { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; letter-spacing: .05em; background: rgba(11, 13, 17, .75); padding: 4px 9px; border-radius: 999px; color: var(--text); }
.ph-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.ph-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--foam); opacity: .45; animation: scan 3.4s linear infinite; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(190px); } }
.ph-row { display: flex; align-items: baseline; justify-content: space-between; }
.ph-row strong { font-size: 15px; }
.ph-row b { font-family: var(--font-display); font-size: 24px; color: var(--warn); font-variant-numeric: tabular-nums; }
.ph-bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.ph-bar i { display: block; height: 100%; width: 62%; border-radius: 999px; background: var(--warn); animation: fill 6s ease-in-out infinite alternate; }
@keyframes fill { from { width: 52%; } to { width: 72%; } }
.ph-meta { display: flex; justify-content: space-between; font-size: 13px; padding: 9px 0; border-top: 1px solid var(--border); }
.ph-meta span { color: var(--text-dim); }
.float { position: absolute; z-index: 3; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 500; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); animation: bob 5.5s ease-in-out infinite alternate; }
.float.f1 { top: 96px; right: -6px; }
.float.f2 { bottom: 120px; left: -14px; animation-delay: -2.4s; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-12px); } }

.feat-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feat { background: #fff; border: 1px solid var(--paper-line); border-radius: 22px; padding: 28px; }
.feat svg { color: var(--foam-deep); margin-bottom: 18px; }
.feat h3 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 8px; }
.feat p { margin: 0; color: var(--paper-dim); line-height: 1.6; font-size: 15px; }
.cta-row { margin-top: 44px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn.lg { padding: 15px 24px; font-size: 15px; border-radius: 999px; }

details { border-bottom: 1px solid var(--border-strong); }
details:first-of-type { margin-top: 36px; border-top: 1px solid var(--border-strong); }
summary { list-style: none; cursor: pointer; padding: 24px 0; font-size: 19px; font-weight: 600; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--foam); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 24px; color: var(--text-2); line-height: 1.65; max-width: 62ch; }

.lp-foot { background: var(--bg); border-top: 1px solid var(--border); padding: 36px 0; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-in p { margin: 0; color: var(--text-dim); font-size: 13.5px; }
.foot-in a:last-child { color: var(--text-2); font-size: 13.5px; }

/* ---------------- giriş pəncərəsi ---------------- */

.auth-tabs { width: 100%; margin-bottom: 18px; }
.auth-tabs button { flex: 1; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .btn { width: 100%; padding: 12px 16px; }
.link-btn { background: none; border: none; color: var(--accent); font-size: 13px; font-weight: 500; cursor: pointer; align-self: center; }
.link-btn:hover { color: var(--accent-hover); }

/* ---------------- animasiya: ekrana girəndə ---------------- */

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.steps li:nth-child(2).reveal { transition-delay: .08s; }
.steps li:nth-child(3).reveal { transition-delay: .16s; }

/* ---------------- responsiv ---------------- */

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero > .hero-panel { height: auto; min-height: 0; }
  .hero > .hero-map { height: 64svh; min-height: 440px; }
  .list { max-height: 340px; }
  .split { grid-template-columns: 1fr; }
  .phone { order: 2; }
}
@media (max-width: 860px) {
  .steps, .feat-grid { grid-template-columns: 1fr; }
  .steps .num { font-size: 80px; }
}
@media (max-width: 720px) {
  .lp-links { position: absolute; top: 64px; left: 12px; right: 12px; flex-direction: column; gap: 4px; padding: 10px; margin: 0; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; display: none; }
  .lp-links.is-open { display: flex; }
  .lp-links a { padding: 12px 10px; border-radius: 10px; font-size: 15px; }
  .lp-links a:hover { background: var(--surface-2); }
  .lp-burger { display: block; }
  .lp-nav-inner { padding: 0 14px; gap: 10px; }
  .lp-actions .hide-sm { display: none; }
  .hero { padding: 76px 10px 10px; }
  .hero-panel { padding: 22px 18px 14px; border-radius: 22px; }
  .hero-map { border-radius: 22px; }
  .detail { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .float.f1 { right: 4px; } .float.f2 { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rings i, .live-dot, .kp-pin.open span::before, .ph-scan, .ph-live i, .ph-bar i, .float, .detail { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

.lp-brand .brand-logo { width: 34px; height: 34px; }
