/* Milumi marketing web. Zdroj pravdy: dizajn tokeny appky. */

:root {
  --paper: #F2EADD;
  --paper-deep: #ECE3D3;
  --card: #FBF7EF;
  --card-raised: #FDFBF6;
  --ink: #3A2E26;
  --ink-soft: #8A7A6B;
  --hairline: #E7DECE;
  --brand: #C25A33;
  --brand-deep: #A8481F;
  --brand-soft: #F3E1D6;
  --sage: #6E7A55;
  --sage-soft: #E7EADB;
  --gold: #C79A3E;
  --gold-soft: #F5EAD2;
  --espresso-top: #3A2C20;
  --espresso-bottom: #52402E;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* jemné papierové zrno cez celý web */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ===== typografia ===== */
h1, h2, h3, .mini-title { font-family: var(--serif); font-weight: 600; line-height: 1.06; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h1 em { font-style: italic; color: var(--brand-deep); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 0.5em; }
h3 { font-size: 1.35rem; margin-bottom: 0.45em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 34em; }

.eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid rgba(194, 90, 51, 0.18);
  border-radius: 999px;
  padding: 0.45em 1.1em;
  margin-bottom: 1.2rem;
}
.eyebrow-gold { color: var(--gold); background: rgba(199, 154, 62, 0.12); border-color: rgba(199, 154, 62, 0.3); }

.swash { display: block; width: 130px; height: 13px; margin-top: 0.35em; }

/* ===== scroll reveal =====
   Skryté sú prvky LEN keď beží JS (html.js) - bez JS je stránka celá viditeľná. */
.js .reveal {
  opacity: 0;
  transform: translateY(46px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.js .reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .floaty { animation: none !important; }
}

/* ===== navigácia: plávajúca pill ===== */
.nav {
  position: fixed;
  top: 1.1rem; left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex; align-items: center; gap: 1.9rem;
  background: rgba(251, 247, 239, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(231, 222, 206, 0.9);
  border-radius: 999px;
  padding: 0.5rem 0.6rem 0.5rem 1.1rem;
  box-shadow: 0 12px 32px -14px rgba(90, 62, 40, 0.28), 0 2px 6px rgba(90, 62, 40, 0.06);
  transition: box-shadow 0.5s var(--ease);
  white-space: nowrap;
}
.nav-brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--brand-deep); flex-shrink: 0; }
.nav .btn { flex-shrink: 0; }
.nav-brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 1.15rem; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
.nav-links a { transition: color 0.3s var(--ease); }
.nav-links a:hover { color: var(--brand-deep); }

/* ===== tlačidlá: pill s vnoreným orbom ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.45s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-orb {
  display: grid; place-items: center;
  width: 1.9em; height: 1.9em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-weight: 700;
  transition: transform 0.45s var(--ease);
}
.btn:hover .btn-orb { transform: translateX(3px) scale(1.07); }
.btn-primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  color: #fff;
  padding: 0.9rem 1.1rem 0.9rem 1.7rem;
  font-size: 1.02rem;
  box-shadow: 0 16px 30px -12px rgba(168, 72, 31, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { box-shadow: 0 20px 38px -12px rgba(168, 72, 31, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.25); }
.btn-big { font-size: 1.14rem; padding: 1.05rem 1.25rem 1.05rem 2rem; }
.btn-small {
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  color: #fff;
  padding: 0.5rem 0.55rem 0.5rem 1.1rem;
  font-size: 0.85rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
}
.btn-ghost {
  color: var(--brand-deep);
  padding: 0.9rem 1.4rem;
  border: 1.5px solid rgba(194, 90, 51, 0.4);
  background: rgba(251, 247, 239, 0.6);
}
.btn-ghost:hover { background: var(--brand-soft); }

/* ===== hero ===== */
.hero { position: relative; padding: 9.5rem 1.5rem 0; overflow: hidden; }
.hero-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 7rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-copy .lede { margin-top: 1.4rem; }
.hero-note { margin-top: 1.1rem; font-size: 0.85rem; color: var(--ink-soft); }
.hill {
  position: absolute; bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 160%; height: 90px;
  background: var(--card);
  border-radius: 100% 100% 0 0;
}

/* telefón: double-bezel obal */
.phone-shell {
  background: rgba(58, 46, 38, 0.08);
  border: 1px solid rgba(58, 46, 38, 0.08);
  border-radius: 2.6rem;
  padding: 0.55rem;
  box-shadow:
    0 40px 70px -30px rgba(90, 62, 40, 0.45),
    0 12px 24px -12px rgba(90, 62, 40, 0.18);
}
.phone-core {
  border-radius: 2.05rem;
  overflow: hidden;
  background: var(--card);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}
.phone-shell-dark { background: rgba(0, 0, 0, 0.35); border-color: rgba(255, 255, 255, 0.08); }

.hero-phone { position: relative; justify-self: center; width: min(310px, 76vw); }

/* mockup s vlastným zapečeným rámom: len tieň a oblé rohy */
.device {
  width: 100%;
  height: auto;
  border-radius: 2.7rem;
  box-shadow: 0 45px 80px -32px rgba(90, 62, 40, 0.5), 0 14px 28px -14px rgba(90, 62, 40, 0.22);
}
.device-dark { box-shadow: 0 45px 80px -28px rgba(0, 0, 0, 0.55); }
.hero-phone .washi {
  position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%) rotate(3deg);
  width: 110px; height: 30px;
  border-radius: 4px;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 1.6px, transparent 2px) 0 0/10px 10px, #E2A49A;
  opacity: 0.9;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(90, 55, 35, 0.22);
}
.floaty { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-14px) rotate(0.4deg); }
}
.floater { position: absolute; pointer-events: none; }
.floater-leaf { width: 64px; left: -46px; bottom: 18%; transform: rotate(-14deg); animation: floaty 9s ease-in-out infinite; }
.floater-star { width: 56px; right: -38px; top: 12%; animation: floaty 8s 1s ease-in-out infinite; }

/* ===== sekcie ===== */
.section { padding: 7.5rem 1.5rem; }
.wrap { max-width: 1120px; margin: 0 auto; }

/* karty: double-bezel */
.card {
  background: rgba(58, 46, 38, 0.045);
  border: 1px solid rgba(58, 46, 38, 0.06);
  border-radius: 2rem;
  padding: 0.45rem;
}
.card > * { border-radius: calc(2rem - 0.45rem); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 3rem; }
.step {
  position: relative;
  display: flex; flex-direction: column;
  background: rgba(58, 46, 38, 0.045);
}
.step img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: calc(2rem - 0.45rem) calc(2rem - 0.45rem) 12px 12px;
}
.step h3, .step p { padding: 0 1.3rem; border-radius: 0; background: none; }
.step h3 { margin-top: 1.1rem; }
.step p { color: var(--ink-soft); font-size: 0.97rem; padding-bottom: 1.5rem; }
.step-num {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
  color: var(--brand-deep);
  background: var(--card-raised);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(90, 62, 40, 0.2);
}

/* ===== interaktívne demo ===== */
.section-demo { background: linear-gradient(180deg, var(--card), var(--paper)); }
.demo-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.demo-tabs { display: flex; gap: 0.6rem; margin-top: 2rem; }
.tab {
  font-family: var(--sans); font-weight: 800; font-size: 0.92rem;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  cursor: pointer;
  transition: all 0.45s var(--ease);
}
.tab.is-on { background: linear-gradient(180deg, var(--brand), var(--brand-deep)); color: #fff; border-color: transparent; box-shadow: 0 10px 20px -8px rgba(168, 72, 31, 0.5); }
.tab:not(.is-on):hover { color: var(--brand-deep); border-color: rgba(194, 90, 51, 0.4); }

.demo-phone { justify-self: center; width: min(340px, 84vw); }
.demo-core { position: relative; background: var(--paper); aspect-ratio: 9 / 17.4; }
.mini-screen {
  position: absolute; inset: 0 0 62px 0;
  padding: 1.15rem 1rem 0.6rem;
  overflow: hidden;
  opacity: 0;
  transform: translateX(26px);
  pointer-events: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.mini-screen.is-on { opacity: 1; transform: translateX(0); pointer-events: auto; }

.mini-head { display: flex; align-items: baseline; justify-content: space-between; }
.mini-title { font-size: 1.5rem; color: var(--ink); }
.mini-star { width: 13px; height: 13px; display: inline-block; }
.mini-pill { font-size: 0.72rem; font-weight: 800; background: var(--card); border: 1px solid var(--hairline); border-radius: 999px; padding: 0.25em 0.8em; color: var(--gold); }
.mini-swash { width: 58px; height: 7px; display: block; margin: 0.25rem 0 0.8rem; }

.mini-polaroid {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 6px 6px 8px;
  transform: rotate(-1.2deg);
  box-shadow: 0 14px 26px -12px rgba(90, 62, 40, 0.38);
}
.mini-polaroid img { border-radius: 6px; aspect-ratio: 5 / 3.4; object-fit: cover; width: 100%; }
.mini-polaroid::after {
  content: "";
  position: absolute; left: 6px; right: 6px; bottom: 8px;
  height: 42%;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, transparent, rgba(48, 38, 28, 0.5));
  pointer-events: none;
}
.mini-polaroid-label { z-index: 2; }
.mini-polaroid-label {
  position: absolute; left: 14px; bottom: 14px;
  color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.05rem;
  text-shadow: 0 1px 8px rgba(40, 30, 20, 0.55);
}
.mini-polaroid-label span { display: block; font-family: var(--sans); font-weight: 700; font-size: 0.6rem; opacity: 0.9; }
.washi-sm { position: absolute; top: -9px; left: 50%; transform: translateX(-50%) rotate(2deg); width: 64px; height: 18px; border-radius: 3px; background: radial-gradient(circle, rgba(255,255,255,0.8) 1.2px, transparent 1.5px) 0 0/8px 8px, #E2A49A; z-index: 2; }

.mini-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; margin-top: 0.8rem; }
.mini-tile {
  display: flex; align-items: center; gap: 0.5rem;
  border-radius: 16px; padding: 0.6rem 0.7rem;
  border: 1px solid var(--hairline);
}
.tile-sage { background: var(--sage-soft); }
.tile-gold { background: var(--gold-soft); justify-content: space-between; }
.mini-tile img { width: 30px; height: 38px; object-fit: contain; }
.mini-tile b { display: block; font-family: var(--serif); font-size: 1.15rem; line-height: 1; }
.mini-tile i { font-style: normal; font-size: 0.6rem; font-weight: 700; color: var(--ink-soft); }

.mini-tree {
  display: flex; align-items: center; gap: 0.4rem;
  width: 100%;
  margin-top: 0.8rem;
  text-align: left;
  background: #FDF8F3;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 0.85rem 0.4rem 0.85rem 1rem;
  cursor: pointer;
  font-family: var(--sans);
  transition: transform 0.4s var(--ease);
}
.mini-tree:active { transform: scale(0.98); }
.mini-tree b { display: block; font-family: var(--serif); font-size: 0.98rem; color: var(--ink); }
.mini-tree i { font-style: normal; font-size: 0.66rem; font-weight: 700; color: var(--ink-soft); line-height: 1.35; display: block; margin-top: 2px; }
.mini-tree-art { position: relative; flex-shrink: 0; width: 46%; }
.mini-tree-art img { width: 100%; }
.pop-layer { position: absolute; inset: 0; pointer-events: none; }
.pop-heart {
  position: absolute;
  width: 14px; height: 14px;
  animation: popheart 1.6s var(--ease) forwards;
}
@keyframes popheart {
  0% { transform: scale(0) translateY(0); opacity: 0; }
  25% { transform: scale(1.25) translateY(-4px); opacity: 1; }
  100% { transform: scale(1) translateY(-22px); opacity: 0; }
}

.mini-nav {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 62px;
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(251, 247, 239, 0.94);
  border-top: 1px solid var(--hairline);
  font-size: 0.62rem; font-weight: 800; color: var(--ink-soft);
}
.mini-nav-item { cursor: pointer; padding: 0.4rem 0.6rem; transition: color 0.3s var(--ease); }
.mini-nav-item.on { color: var(--brand-deep); }
.mini-fab {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  margin-top: -18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  color: #fff; font-size: 1.5rem; font-weight: 700;
  box-shadow: 0 10px 18px -6px rgba(168, 72, 31, 0.55), 0 0 0 4px var(--paper);
}

/* ===== aktivity / kategórie ===== */
.cats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1rem; margin-top: 3rem; }
.cat { text-align: center; }
.cat img {
  aspect-ratio: 1; object-fit: cover; width: 100%;
  border-radius: 1.4rem;
  border: 1px solid var(--hairline);
  box-shadow: 0 14px 26px -14px rgba(90, 62, 40, 0.3);
  transition: transform 0.5s var(--ease);
}
.cat:hover img { transform: translateY(-6px) rotate(-1.5deg); }
.cat figcaption { margin-top: 0.6rem; font-weight: 800; font-size: 0.85rem; color: var(--ink-soft); }

/* ===== časová schránka (tmavý pás) ===== */
.section-dark {
  background: linear-gradient(180deg, var(--espresso-top), var(--espresso-bottom));
  color: #F6ECDD;
  border-radius: 3rem;
  margin: 0 1rem;
}
.section-dark h2 { color: #F6ECDD; }
.section-dark p { color: #C9BBA7; }
.schranka-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.schranka-art { justify-self: center; width: min(300px, 78vw); }
.schranka-seal { margin-top: 1.6rem; font-family: var(--serif); font-style: italic; color: var(--gold) !important; }

/* ===== dôvera ===== */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 3rem; }
.trust-card { background: rgba(58, 46, 38, 0.045); display: flex; }
.trust-inner {
  background: var(--card);
  border-radius: calc(2rem - 0.45rem);
  padding: 1.5rem 1.4rem;
  width: 100%;
}
.trust-inner h3 { margin-bottom: 0.5rem; }
.trust-inner p { color: var(--ink-soft); font-size: 0.97rem; }

/* ===== galéria: Z-kaskáda ===== */
.section-gallery { padding-bottom: 4rem; }
.section-gallery .wrap { text-align: center; }
.gallery {
  display: flex; justify-content: center; align-items: center;
  gap: 0;
  margin-top: 3.5rem;
  padding: 0 1rem;
}
.gal-item {
  width: min(250px, 60vw);
  margin: 0 -1.4rem;
  transform: rotate(var(--rot));
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(90, 62, 40, 0.5);
  transition: transform 0.6s var(--ease), z-index 0s;
  position: relative;
}
.gal-item:hover { transform: rotate(0deg) translateY(-14px) scale(1.04); z-index: 5; }
.js .gal-item.reveal { opacity: 0; transform: rotate(var(--rot)) translateY(46px); filter: blur(6px); }
.js .gal-item.reveal.in { opacity: 1; transform: rotate(var(--rot)) translateY(0); filter: blur(0); }
.js .gal-item.reveal.in:hover { transform: rotate(0deg) translateY(-14px) scale(1.04); }

/* ===== záverečné CTA ===== */
.section-cta { text-align: center; padding-bottom: 6rem; }
.cta-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.cta-tree {
  width: 170px;
  background: #FDF8F3;
  border: 1px solid var(--hairline);
  border-radius: 1.6rem;
  padding: 0.9rem;
  box-shadow: 0 18px 34px -18px rgba(90, 62, 40, 0.35);
  transform: rotate(-2deg);
}
.cta-wrap .lede { margin: 0 auto; }
.cta-wrap .btn { margin-top: 0.8rem; }

/* ===== footer ===== */
.footer { background: var(--card); border-top: 1px solid var(--hairline); padding: 3rem 1.5rem; }
.footer-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; font-size: 0.88rem; font-weight: 700; color: var(--ink-soft); }
.footer-links a:hover { color: var(--brand-deep); }
.footer p { font-size: 0.8rem; color: var(--ink-soft); }

/* ===== cookie lišta ===== */
.cookie-bar {
  position: fixed;
  bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  width: min(680px, calc(100vw - 2rem));
  background: rgba(251, 247, 239, 0.97);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hairline);
  border-radius: 1.4rem;
  padding: 1.1rem 1.3rem;
  box-shadow: 0 20px 44px -18px rgba(90, 62, 40, 0.4);
}
.cookie-bar p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.5; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.btn-cookie { font-size: 0.88rem; padding: 0.6rem 1.2rem; }
.btn-cookie.btn-primary { padding-right: 1.2rem; }

/* ===== výkon: sekcie pod foldom sa nerenderujú, kým netreba ===== */
#aktivity, #schranka, #sukromie, .section-gallery, .section-cta, .footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

/* ===== responzivita ===== */
@media (max-width: 900px) {
  .cats { grid-template-columns: repeat(4, 1fr); }
  .steps, .trust { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 768px) {
  .section { padding: 4.5rem 1rem; }
  .nav { gap: 0.8rem; padding-left: 0.9rem; }
  .nav-links { display: none; }
  .hero { padding-top: 8.5rem; }
  .hero-inner, .demo-wrap, .schranka-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .hero-copy { text-align: center; }
  .hero-copy .swash { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .floater-leaf { left: -12px; }
  .floater-star { right: -8px; }
  .gallery { flex-wrap: wrap; gap: 1.4rem; }
  .gal-item { margin: 0; transform: rotate(var(--rot)) !important; width: min(230px, 70vw); }
  .gal-item.reveal.in { transform: rotate(var(--rot)); }
  .section-dark { margin: 0 0.5rem; border-radius: 2rem; }
  .schranka-copy { text-align: center; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
}
