/* MARKO MOBILE SHOP — design system v2 (elevate-level, blue/black) */
:root {
  --bg: #030614;
  --bg2: #050a1e;
  --card: rgba(13, 20, 44, 0.72);
  --card-solid: #0c1330;
  --line: rgba(120, 150, 255, 0.13);
  --blue: #3b6cff;
  --blue2: #6d94ff;
  --text: #eef2fb;
  --muted: #8d99b8;
  --radius: 18px;
  --pill: 999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 500px at 75% -10%, rgba(59, 108, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(59, 108, 255, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(140, 165, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 165, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 75%);
}

main, header.site, footer.site, .demo-banner { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 22px; }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--blue), #8b5cf6); border-radius: 2px;
  box-shadow: 0 0 12px rgba(59, 108, 255, 0.8); }

/* demo banner */
.demo-banner { background: rgba(9, 14, 34, 0.9); border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 0.72rem; text-align: center; padding: 7px 14px; letter-spacing: 0.06em; }

/* ---------- header ---------- */
header.site { position: sticky; top: 0; z-index: 100;
  background: rgba(4, 8, 22, 0.75); backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 0 26px rgba(59, 108, 255, 0.5); }
.brand .name { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.05em; }
.brand .name em { color: var(--blue2); font-style: normal; }
nav.main { display: flex; gap: 4px; }
nav.main a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 600;
  padding: 8px 15px; border-radius: var(--pill); transition: all 0.25s; }
nav.main a:hover { color: var(--text); background: rgba(120, 150, 255, 0.08); }
nav.main a.active { color: #fff; background: rgba(59, 108, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(109, 148, 255, 0.35); }
.cart-btn { display: flex; align-items: center; gap: 9px;
  background: linear-gradient(180deg, #4d7dff, var(--blue)); border: none; color: #fff;
  font-weight: 700; font-size: 0.88rem; padding: 10px 20px; border-radius: var(--pill);
  cursor: pointer; box-shadow: 0 10px 28px -10px rgba(59, 108, 255, 0.8);
  transition: transform 0.25s, box-shadow 0.25s; }
.cart-btn:hover { transform: translateY(-2px); }
.cart-btn .count { background: #fff; color: var(--blue); border-radius: var(--pill);
  font-size: 0.72rem; min-width: 19px; height: 19px; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 5px; font-weight: 800; }

/* ---------- pills & buttons ---------- */
.pill-badge { display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(109, 148, 255, 0.4); color: var(--blue2);
  background: rgba(59, 108, 255, 0.09); border-radius: var(--pill);
  padding: 6px 16px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; }
.btn-primary, .btn-ghost { display: inline-block; text-decoration: none; text-align: center;
  font-weight: 700; font-size: 0.94rem; padding: 13px 30px; border-radius: var(--pill);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s; border: none; cursor: pointer; }
.btn-primary { background: linear-gradient(180deg, #4d7dff, var(--blue)); color: #fff;
  box-shadow: 0 12px 34px -12px rgba(59, 108, 255, 0.9); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(180, 200, 255, 0.35); color: var(--text); background: transparent; }
.btn-ghost:hover { background: rgba(120, 150, 255, 0.09); border-color: rgba(140, 170, 255, 0.6); }

/* ---------- hero (home) ---------- */
.hero { padding: 92px 0 60px; text-align: center; position: relative; }
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); font-weight: 900; line-height: 1.04;
  letter-spacing: -0.02em; margin: 22px 0 14px;
  background: linear-gradient(180deg, #ffffff 30%, #9aa7c9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .type-line { color: var(--muted); font-size: 1.12rem; min-height: 1.8em; }
.hero .type-line .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--blue2);
  vertical-align: text-bottom; margin-left: 2px; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* floating feature cards under hero */
.float-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 62px; }
.float-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: left; backdrop-filter: blur(8px);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), border-color 0.3s; }
.float-card:hover { transform: translateY(-5px); border-color: rgba(109, 148, 255, 0.45); }
.float-card .tag { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; border-radius: var(--pill);
  padding: 4px 12px; display: inline-block; margin-bottom: 12px; }
.tag.b { background: rgba(59, 108, 255, 0.15); color: var(--blue2); }
.tag.g { background: rgba(52, 211, 153, 0.13); color: #34d399; }
.tag.o { background: rgba(245, 158, 11, 0.13); color: #f5a623; }
.float-card h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 6px; }
.float-card p { color: var(--muted); font-size: 0.85rem; }
.float-card .live { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--muted); font-size: 0.76rem; }
.float-card .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }

/* ---------- section headers ---------- */
section.block { padding: 74px 0 20px; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.sec-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 900; line-height: 1.15;
  letter-spacing: -0.015em; margin: 16px 0 10px;
  background: linear-gradient(180deg, #fff 30%, #9aa7c9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-head p { color: var(--muted); font-size: 0.96rem; }

/* page hero (sub-pages) */
.page-hero { padding: 66px 0 14px; text-align: center; }

/* ---------- trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: rgba(8, 13, 32, 0.6); margin-top: 66px; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 20px 0; }
.trust-item { display: flex; align-items: center; gap: 11px; justify-content: center;
  color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.trust-item .ico { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; background: rgba(59, 108, 255, 0.12); border: 1px solid rgba(109, 148, 255, 0.3); font-size: 1.05rem; }

/* ---------- categories ---------- */
.cats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cat-pill { border: 1px solid var(--line); background: rgba(13, 20, 44, 0.6); color: var(--muted);
  border-radius: var(--pill); padding: 10px 24px; font-size: 0.88rem; font-weight: 700;
  cursor: pointer; transition: all 0.25s; text-decoration: none; display: inline-block; }
.cat-pill:hover, .cat-pill.active { color: #fff; border-color: rgba(109, 148, 255, 0.6);
  background: rgba(59, 108, 255, 0.16); box-shadow: 0 0 20px rgba(59, 108, 255, 0.22); }

/* ---------- products ---------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; margin-top: 34px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; backdrop-filter: blur(8px);
  transition: transform 0.32s cubic-bezier(0.22,1,0.36,1), border-color 0.32s, box-shadow 0.32s; }
.product:hover { transform: translateY(-6px); border-color: rgba(109, 148, 255, 0.5);
  box-shadow: 0 26px 60px -24px rgba(59, 108, 255, 0.4); }
.product .thumb { position: relative; background: radial-gradient(circle at 55% 30%, rgba(59, 108, 255, 0.14), rgba(5, 9, 24, 0.4) 75%);
  border-bottom: 1px solid var(--line); }
.product .thumb img { width: 100%; height: 190px; object-fit: contain; padding: 8px 8px 0;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.product:hover .thumb img { transform: translateY(-4px) scale(1.03); }
.product .badge { position: absolute; top: 12px; left: 12px;
  background: linear-gradient(90deg, var(--blue), #8b5cf6); color: #fff; font-size: 0.6rem;
  font-weight: 800; letter-spacing: 0.12em; padding: 5px 12px; border-radius: var(--pill); }
.product .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product h3 { font-size: 1.02rem; font-weight: 800; }
.product .desc { color: var(--muted); font-size: 0.8rem; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 9px; margin-top: 5px; }
.price { font-size: 1.28rem; font-weight: 900; color: var(--blue2); }
.old-price { color: var(--muted); text-decoration: line-through; font-size: 0.84rem; }
.add-btn { margin-top: 10px; background: rgba(59, 108, 255, 0.13); border: 1px solid rgba(109, 148, 255, 0.4);
  color: #dce6ff; font-weight: 700; font-size: 0.86rem; padding: 11px; border-radius: var(--pill);
  cursor: pointer; transition: all 0.25s; text-align: center; text-decoration: none; }
.add-btn:hover { background: linear-gradient(180deg, #4d7dff, var(--blue)); border-color: transparent; color: #fff; }

/* ---------- info cards (servis) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.info-card { background: linear-gradient(150deg, rgba(23, 37, 84, 0.55) 0%, var(--card) 60%);
  border: 1px solid rgba(109, 148, 255, 0.25); border-radius: var(--radius); padding: 30px; }
.info-card h3 { font-size: 1.25rem; font-weight: 800; margin: 10px 0 8px; }
.info-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.steps { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .num { font-size: 0.75rem; font-weight: 800; color: var(--blue2); letter-spacing: 0.15em; }
.step h4 { margin: 8px 0 6px; font-weight: 800; }
.step p { color: var(--muted); font-size: 0.85rem; }

/* ---------- kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.contact-card .ico { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  background: rgba(59, 108, 255, 0.12); border: 1px solid rgba(109, 148, 255, 0.3); }
.contact-card b { display: block; color: var(--text); margin-top: 4px; font-size: 0.95rem; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); margin-top: 84px;
  background: rgba(4, 8, 22, 0.8); padding: 44px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 30px; padding-bottom: 32px; }
.footer-grid h4 { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.footer-grid p, .footer-grid a, .footer-grid li { color: var(--muted); font-size: 0.87rem; text-decoration: none; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a:hover { color: var(--blue2); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 9px; }
.footer-brand span { font-weight: 800; }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0; color: var(--muted); font-size: 0.78rem;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer-bottom a { color: var(--blue2); text-decoration: none; }

/* WhatsApp float */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 54px; height: 54px;
  border-radius: 50%; background: linear-gradient(180deg, #2fd06c, #1faa53); display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem; text-decoration: none;
  box-shadow: 0 12px 30px -8px rgba(47, 208, 108, 0.6); transition: transform 0.25s; }
.wa-float:hover { transform: translateY(-3px) scale(1.05); }

/* ---------- drawer / cart ---------- */
.overlay { position: fixed; inset: 0; background: rgba(2, 4, 12, 0.7); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 150; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: -430px; width: min(408px, 94vw); height: 100%;
  background: #070d22; border-left: 1px solid var(--line); z-index: 160;
  transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1); display: flex; flex-direction: column; }
.drawer.open { right: 0; }
.drawer-head { display: flex; justify-content: space-between; align-items: center;
  padding: 19px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1.05rem; font-weight: 800; }
.drawer-close { background: none; border: none; color: var(--muted); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.cart-item .nm { font-weight: 700; }
.cart-item .qty { display: flex; align-items: center; gap: 9px; margin-top: 4px; }
.qty button { width: 25px; height: 25px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card-solid); color: var(--text); cursor: pointer; }
.cart-item .pr { color: var(--blue2); font-weight: 800; white-space: nowrap; }
.cart-empty { color: var(--muted); text-align: center; padding: 46px 0; }
.drawer-foot { border-top: 1px solid var(--line); padding: 17px 22px; }
.total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.08rem; margin-bottom: 11px; }
.drawer-foot .note { color: var(--muted); font-size: 0.78rem; margin-bottom: 12px; }

.field { margin-bottom: 10px; }
.field input, .field textarea { width: 100%; background: var(--card-solid); border: 1px solid var(--line);
  border-radius: 11px; color: var(--text); padding: 12px 14px; font-size: 0.9rem; font-family: inherit;
  outline: none; transition: border-color 0.25s, box-shadow 0.25s; }
.field input:focus, .field textarea:focus { border-color: rgba(109, 148, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(59, 108, 255, 0.16); }
.submit-order { width: 100%; background: linear-gradient(180deg, #4d7dff, var(--blue)); color: #fff;
  border: none; font-weight: 800; font-size: 0.95rem; padding: 14px; border-radius: var(--pill);
  cursor: pointer; transition: transform 0.2s; }
.submit-order:hover { transform: translateY(-1px); }
.submit-order:disabled { opacity: 0.6; }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 90px);
  background: #0b1530; border: 1px solid rgba(109, 148, 255, 0.55); color: var(--text);
  padding: 13px 24px; border-radius: var(--pill); font-size: 0.9rem; font-weight: 700; z-index: 300;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1); box-shadow: 0 16px 44px rgba(0,0,0,0.55); }
.toast.show { transform: translate(-50%, 0); }
.toast.ok { border-color: rgba(52, 211, 153, 0.65); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22,1,0.36,1); }
.reveal.vis { opacity: 1; transform: none; }

@media (max-width: 900px) {
  nav.main { display: none; }
  .float-cards, .steps, .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
