/* ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
   MRAZOSOFT — frost dark theme (v2 "wow")
   Vanilla CSS, zero build. Autor: Peto Mráz
   ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ */

:root {
  --bg: #080B12;
  --bg-soft: #0C111C;
  --surface: #111726;
  --surface-2: #161E30;
  --border: rgba(140, 165, 200, 0.14);
  --border-strong: rgba(140, 165, 200, 0.28);
  --text: #E9EFF7;
  --muted: #8C99AC;
  --accent: #38BDF8;
  --accent-2: #818CF8;
  --grad: linear-gradient(120deg, #38BDF8 0%, #818CF8 48%, #22D3EE 100%);
  --grad-soft: linear-gradient(135deg, rgba(56,189,248,0.16), rgba(129,140,248,0.16));
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1160px;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
  --glow: 0 0 60px -10px rgba(56, 189, 248, 0.45);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(56, 189, 248, 0.3); color: #fff; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; line-height: 1.1; letter-spacing: -0.01em; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.arr { display: inline-block; transition: transform 0.2s ease; }

/* ░░ SPLASH — studio intro (animované MRAZOSOFT logo) ░░ */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(120% 90% at 50% 32%, #1b2440 0%, #0b1020 68%, #070a16 100%);
  opacity: 1; transition: opacity 0.4s ease;
  /* poistka: aj keby JS zlyhal, splash sa po 4.5 s skryje */
  animation: spl-failsafe 0.01s linear 4.5s forwards;
}
.splash.out { opacity: 0; }
.splash.gone, .splash[hidden] { display: none; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.splash-flake {
  width: clamp(96px, 30vw, 150px); height: auto; transform-origin: 50% 50%;
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.45));
  animation: spl-flake 2s cubic-bezier(.2,.7,.2,1) both;
}
.splash-flake line { stroke-dasharray: 40; stroke-dashoffset: 40; animation: spl-draw 1s ease forwards 0.15s; }
.splash-word {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: 2px;
  font-size: clamp(1.7rem, 7vw, 2.5rem); color: #E6EDF5;
  opacity: 0; transform: translateY(10px); animation: spl-rise 0.7s ease forwards 0.8s;
}
.splash-word span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.splash-skip {
  position: absolute; bottom: max(24px, env(safe-area-inset-bottom));
  color: rgba(255, 255, 255, 0.4); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.5px;
  opacity: 0; animation: spl-rise 0.6s ease forwards 1.5s;
}
@keyframes spl-draw { to { stroke-dashoffset: 0; } }
@keyframes spl-flake { 0% { transform: scale(.4) rotate(-90deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(0deg); opacity: 1; } }
@keyframes spl-rise { to { opacity: 1; transform: translateY(0); } }
@keyframes spl-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) {
  .splash-flake, .splash-flake line, .splash-word, .splash-skip { animation: none; opacity: 1; stroke-dashoffset: 0; transform: none; }
}

/* ░░ SCROLL PROGRESS ░░ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad);
  z-index: 100;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

/* ░░ NAV ░░ */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 24px;
  padding: 16px clamp(20px, 4vw, 40px);
  background: rgba(8, 11, 18, 0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled {
  padding-top: 10px; padding-bottom: 10px;
  background: rgba(8, 11, 18, 0.82);
  border-bottom-color: var(--border);
}
/* jemný gradientový akcent pod hlavičkou (nech nie je „suchá") */
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--grad); opacity: 0.22; transition: opacity 0.3s ease; }
.nav.scrolled::after { opacity: 0.55; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-flake { width: 32px; height: 32px; flex: none; filter: drop-shadow(0 0 7px rgba(56, 189, 248, 0.5)); animation: flakeSpin 26s linear infinite; transform-origin: 50% 50%; }
.brand:hover .brand-flake { animation-duration: 4s; }
@keyframes flakeSpin { to { transform: rotate(360deg); } }
.brand-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: 1px; color: var(--text); }

/* status „voľné kapacity" v hlavičke */
.nav-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; background: rgba(52, 211, 153, 0.09); border: 1px solid rgba(52, 211, 153, 0.28); color: #8fe7c4; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.brand-name.small { font-size: 1rem; }

.nav-menu { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--grad); transition: width 0.25s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 14px; }

/* hamburger (len mobil) */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0 9px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 11px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-switch button { background: transparent; color: var(--muted); border: none; padding: 6px 12px; font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.lang-switch button.is-active { background: var(--grad-soft); color: var(--text); }

/* ░░ BUTTONS ░░ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; text-decoration: none; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s; white-space: nowrap; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-primary { background: var(--grad); color: #04121d; box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(56, 189, 248, 0.8); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.btn:hover .arr { transform: translateX(4px); }

/* ░░ HERO ░░ */
.hero { position: relative; overflow: hidden; padding: clamp(80px, 13vw, 150px) 0 clamp(60px, 8vw, 100px); }
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.aurora { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; opacity: 0.55; }
.aurora-1 { width: 620px; height: 460px; top: -140px; left: -80px; background: radial-gradient(closest-side, rgba(56,189,248,0.5), transparent 70%); animation: drift1 18s ease-in-out infinite; }
.aurora-2 { width: 560px; height: 460px; top: -60px; right: -100px; background: radial-gradient(closest-side, rgba(129,140,248,0.45), transparent 70%); animation: drift2 22s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px, 30px) scale(1.1); } }
.grid-lines { position: absolute; inset: 0; z-index: 0; opacity: 0.5; background-image: linear-gradient(rgba(140,165,200,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(140,165,200,0.05) 1px, transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }

.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 880px; margin-inline: auto; }
.badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; font-weight: 500; margin-bottom: 28px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52,211,153,0.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.55); } 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

.hero-title { font-size: clamp(2.4rem, 6.4vw, 4.4rem); font-weight: 700; }
.hero-line1, .hero-line2 { display: block; }
.hero-line1 { display: flex; gap: 0.28em; justify-content: center; align-items: baseline; flex-wrap: wrap; }
.comma { margin-left: -0.18em; }
.rotator { display: inline-grid; }
.rotator-word { grid-area: 1 / 1; animation: wordIn 0.5s ease; }
@keyframes wordIn { from { opacity: 0; transform: translateY(0.4em) rotateX(-40deg); } to { opacity: 1; transform: none; } }

.hero-sub { margin: 26px auto 0; max-width: 640px; color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.2rem); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

.hero-stats { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 48px; margin-top: 58px; }
.hero-stats li { display: flex; flex-direction: column; align-items: center; min-width: 120px; }
.hero-stats strong { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { color: var(--muted); font-size: 0.86rem; }

.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 24px; height: 38px; border: 2px solid var(--border-strong); border-radius: 14px; z-index: 2; }
.scroll-hint span { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 2px; background: var(--accent); animation: scrolly 1.6s infinite; }
@keyframes scrolly { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 80% { opacity: 0; top: 20px; } 100% { opacity: 0; } }

/* ░░ MARQUEE ░░ */
.marquee { position: relative; overflow: hidden; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.015); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scrollx 34s linear infinite; }
.marquee-track span { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--muted); white-space: nowrap; letter-spacing: 0.5px; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ░░ SECTIONS ░░ */
.section { position: relative; z-index: 1; padding: clamp(64px, 9vw, 110px) 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 2px; font-size: 0.78rem; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(2rem, 4.8vw, 2.9rem); font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.06rem; }

/* ░░ CARDS ░░ */
.grid { display: grid; gap: 22px; }
.grid-services { grid-template-columns: repeat(2, 1fr); }
.grid-mini { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 30px; }

.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.25s ease; pointer-events: none; }
.card:hover { box-shadow: var(--shadow); }
.card:hover::before { opacity: 0.9; }

.service { padding: 30px 26px; display: flex; flex-direction: column; }
.service .ic { width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.55rem; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--border); margin-bottom: 18px; transition: transform 0.25s ease; }
.service:hover .ic { transform: translateY(-3px) scale(1.05); }
.service h3 { font-size: 1.2rem; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.service-price { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; align-items: baseline; gap: 6px; color: var(--muted); font-size: 0.88rem; }
.service-price strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.services-note { text-align: center; margin-top: 30px; color: var(--muted); font-size: 0.95rem; }

/* ░░ FEATURE PROJECT ROWS ░░ */
.feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; margin-bottom: clamp(56px, 8vw, 96px); }
.feature:last-of-type { margin-bottom: 0; }
.feature-rev .feature-visual { order: 2; }
.feature-visual { position: relative; display: flex; justify-content: center; }
.glow-blob { position: absolute; inset: -10% 5%; background: radial-gradient(closest-side, rgba(56,189,248,0.32), rgba(129,140,248,0.18), transparent 72%); filter: blur(30px); z-index: 0; }

.feature-info h3 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.feature-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.feature-info p { color: var(--muted); font-size: 1.04rem; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.status .dot { width: 7px; height: 7px; }
.status-live { background: rgba(16,185,129,0.14); color: #34D399; border: 1px solid rgba(16,185,129,0.3); }
.status-dev { background: rgba(245,158,11,0.14); color: #FBBF24; border: 1px solid rgba(245,158,11,0.3); }
.status-dev .dot { background: #FBBF24; animation: none; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.tags span { font-size: 0.76rem; padding: 5px 11px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.project-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.98rem; color: var(--accent); text-decoration: none; }
.project-link:hover { color: var(--accent-2); }
.project-link:hover .arr { transform: translate(3px, -3px); }
.project-link.is-muted { color: var(--muted); cursor: default; }

/* ░░ DEVICE FRAMES ░░ */
.browser-frame, .phone-frame { position: relative; z-index: 1; box-shadow: var(--shadow); transition: transform 0.2s ease; will-change: transform; }
.browser-frame { width: 100%; max-width: 540px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-strong); background: #0d1422; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #141c2c; border-bottom: 1px solid var(--border); }
.browser-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #2c3a52; }
.browser-bar > span:nth-child(1) { background: #ff5f57; }
.browser-bar > span:nth-child(2) { background: #febc2e; }
.browser-bar > span:nth-child(3) { background: #28c840; }
.browser-bar .url { flex: 1; margin-left: 8px; height: 22px; border-radius: 7px; background: #0c121e; border: 1px solid var(--border); color: var(--muted); font-size: 0.72rem; display: flex; align-items: center; padding: 0 12px; }
.browser-frame img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }

.phone-frame { width: 252px; border-radius: 36px; padding: 10px; background: linear-gradient(160deg, #1b2436, #0d1422); border: 1px solid var(--border-strong); }
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 86px; height: 18px; border-radius: 12px; background: #05080f; z-index: 3; }
.phone-frame img { display: block; width: 100%; height: auto; border-radius: 27px; }

/* čistý rámik (bez telefónu) — celý screenshot, žiadne orezanie */
.shot-frame { position: relative; z-index: 1; width: 100%; max-width: 300px; border-radius: 20px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow); transition: transform 0.2s ease; will-change: transform; }
.shot-frame img { display: block; width: 100%; height: auto; }

/* ░░ DEVICE COMBO — monitor + telefón (responzívna ukážka) ░░ */
.device-combo { position: relative; z-index: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 0 22px 38px 0; }
.dc-monitor { width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-strong); background: #0d1422; box-shadow: var(--shadow); }
.dc-monitor img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.dc-monitor .mock-host { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 22px; }
.dc-phone { position: absolute; right: 0; bottom: 0; width: 23%; border-radius: 16px; padding: 5px; background: linear-gradient(160deg, #1b2436, #0d1422); border: 1px solid var(--border-strong); box-shadow: var(--shadow); z-index: 2; }
.dc-phone img { display: block; width: 100%; height: auto; border-radius: 11px; }
.dc-phone .mock-host { border-radius: 11px; background: #0d1422; padding: 10px 8px; }

/* ░░ MINI CARDS ░░ */
.mini { display: flex; flex-direction: column; }
.mini-visual { padding: 24px; display: grid; place-items: center; min-height: 200px; position: relative; overflow: hidden; }
.mini-fleet { background: radial-gradient(120% 120% at 0% 0%, rgba(99,102,241,0.18), transparent 60%), #0d1422; }
.mini-heureka { background: radial-gradient(120% 120% at 100% 0%, rgba(16,185,129,0.16), transparent 60%), #0d1422; }
.mini-body { padding: 0 24px 26px; display: flex; flex-direction: column; flex: 1; }
.mini-body .feature-top { margin-top: 4px; margin-bottom: 12px; }
.mini-body h3 { font-size: 1.3rem; }
.mini-body p { color: var(--muted); font-size: 0.95rem; flex: 1; }

/* mock app (FleetView) */
.mock-app { width: 200px; background: #0f1726; border: 1px solid var(--border); border-radius: 16px; padding: 14px; font-size: 0.82rem; box-shadow: var(--shadow); }
.mock-head { font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin-bottom: 12px; }
.mock-row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; margin-bottom: 7px; background: #0b1220; border-radius: 9px; color: var(--muted); }
.mock-row:last-child { margin-bottom: 0; }
.mock-row span { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ledg { background: #34D399; box-shadow: 0 0 8px #34D399; }
.ledy { background: #FBBF24; box-shadow: 0 0 8px #FBBF24; }
.ledr { background: #F87171; box-shadow: 0 0 8px #F87171; }

/* mock terminal (Heureka) */
.mock-term { width: 100%; max-width: 300px; background: #0a0f1a; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.term-bar { display: flex; gap: 6px; padding: 9px 12px; background: #121a28; border-bottom: 1px solid var(--border); }
.term-bar span { width: 9px; height: 9px; border-radius: 50%; background: #2c3a52; }
.mock-term pre { margin: 0; padding: 14px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.72rem; line-height: 1.7; color: #cdd7e5; white-space: pre-wrap; }
.c-ok { color: #34D399; } .c-warn { color: #FBBF24; } .c-dim { color: #5a6b85; }

/* ░░ PROCESS ░░ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: transform 0.25s ease, border-color 0.25s ease; }
.step:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.step-no { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* ░░ ABOUT ░░ */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 50px; align-items: center; }
.about-text h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 12px 0 18px; }
.about-text p { color: var(--muted); margin-bottom: 14px; }
.about-list { list-style: none; display: grid; gap: 14px; }
.about-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; transition: border-color 0.25s ease; }
.about-list li:hover { border-color: var(--border-strong); }
.ic-sm { width: 40px; height: 40px; flex: none; display: grid; place-items: center; font-size: 1.15rem; border-radius: 11px; background: var(--grad-soft); border: 1px solid var(--border); }
.about-list strong { display: block; font-family: 'Space Grotesk', sans-serif; margin-bottom: 4px; }
.about-list span { color: var(--muted); font-size: 0.92rem; }

/* ░░ CONTACT ░░ */
.contact { position: relative; text-align: center; background: linear-gradient(180deg, var(--surface), var(--bg-soft)); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(48px, 7vw, 80px) 28px; overflow: hidden; }
.contact-glow { position: absolute; top: -60%; left: 50%; transform: translateX(-50%); width: 640px; height: 440px; background: radial-gradient(closest-side, rgba(56,189,248,0.24), transparent 70%); pointer-events: none; }
.contact .eyebrow, .contact h2, .contact p, .contact-actions, .contact-mail, .contact-form, .contact-divider, .trust-row { position: relative; }
.contact h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); max-width: 720px; margin-inline: auto; }
.contact p { color: var(--muted); max-width: 540px; margin: 16px auto 0; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.contact-mail { margin-top: 22px; font-family: 'Space Grotesk', sans-serif; color: var(--text); letter-spacing: 0.5px; }

/* WhatsApp tlačidlo */
.btn-whatsapp { background: #25D366; color: #04140a; box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.6); }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(37, 211, 102, 0.85); }
.wa-ic { width: 20px; height: 20px; flex: none; }

/* kontaktný formulár */
.contact-form { max-width: 560px; margin: 34px auto 0; text-align: left; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form input, .contact-form textarea { width: 100%; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font: inherit; font-size: 0.98rem; padding: 13px 15px; margin-bottom: 12px; transition: border-color 0.2s ease, background 0.2s ease; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: rgba(56, 189, 248, 0.06); }
.contact-form textarea { resize: vertical; min-height: 112px; }
.contact-form button { width: 100%; justify-content: center; margin-top: 4px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.2em; margin-top: 12px; text-align: center; font-size: 0.95rem; color: var(--muted); }
.form-status.ok { color: #34D399; }
.form-status.err { color: #F87171; }

/* delič „alebo rovno" */
.contact-divider { display: flex; align-items: center; gap: 14px; max-width: 420px; margin: 26px auto 22px; color: var(--muted); font-size: 0.86rem; }
.contact-divider::before, .contact-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* trust riadok */
.trust-row { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 28px; }
.trust-row li { color: var(--muted); font-size: 0.9rem; font-weight: 500; }

/* ░░ FOOTER ░░ */
.footer { border-top: 1px solid var(--border); padding: 32px 0; position: relative; z-index: 1; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-tag { color: var(--muted); font-size: 0.9rem; }
.footer-copy { color: var(--muted); font-size: 0.85rem; }

/* ░░ TILT ░░ */
.tilt { transform: perspective(900px) rotateX(0) rotateY(0); transition: transform 0.18s ease; transform-style: preserve-3d; }

/* ░░ REVEAL ░░ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ░░ CASE-STUDY (Problém/Riešenie/Výsledok) ░░ */
.case { display: grid; gap: 9px; margin: 2px 0 20px; }
.case p { color: var(--muted); font-size: 1.02rem; margin: 0; line-height: 1.55; }
.case-label { display: inline-block; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-right: 8px; }

/* ░░ PREČO MRAZOSOFT ░░ */
.grid-why { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.why-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color 0.25s ease, transform 0.25s ease; }
.why-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.why-card p { color: var(--text); font-weight: 500; font-size: 1rem; margin: 0; }

/* ░░ FAQ ░░ */
.faq-wrap { max-width: 760px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color 0.25s ease; }
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.02rem; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform 0.25s ease; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 0.98rem; line-height: 1.6; }

/* ░░ HERO ROTUJÚCE LOGO ░░ */
.hero-flake { display: block; width: clamp(140px, 22vw, 230px); height: auto; margin: 0 auto 28px; padding: 0; background: none; border: none; cursor: pointer; transform-origin: 50% 50%; filter: drop-shadow(0 0 40px rgba(56, 189, 248, 0.6)); -webkit-tap-highlight-color: transparent; transition: filter 0.2s ease; }
.hero-flake svg { display: block; width: 100%; height: auto; }
.hero-flake:hover, .hero-flake:active { filter: drop-shadow(0 0 60px rgba(56, 189, 248, 1)); }
@keyframes lineSwap { from { opacity: 0.4; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* klikateľný device-combo náhľad */
a.device-combo { text-decoration: none; color: inherit; cursor: pointer; }

/* mock obsah v combo (FleetView / Heureka) */
.mock-host--fleet { background: radial-gradient(120% 120% at 0% 0%, rgba(99, 102, 241, 0.18), transparent 60%), #0d1422; }
.mock-host--heureka { background: radial-gradient(120% 120% at 100% 0%, rgba(16, 185, 129, 0.16), transparent 60%), #0d1422; }
.dc-phone .mock-host { padding: 8px; }
.dc-phone .mock-app, .dc-phone .mock-term { width: 100%; max-width: 100%; box-shadow: none; }
.dc-phone .mock-app { padding: 8px; font-size: 0.5rem; }
.dc-phone .mock-app .mock-head { font-size: 0.6rem; margin-bottom: 7px; }
.dc-phone .mock-row { padding: 4px 6px; margin-bottom: 4px; gap: 5px; border-radius: 6px; }
.dc-phone .mock-row span { width: 6px; height: 6px; }
.dc-phone .mock-term pre { font-size: 0.46rem; padding: 8px; line-height: 1.6; }
.dc-phone .mock-term .term-bar { padding: 6px 8px; }

/* ░░ RESPONSIVE ░░ */
/* na stredných šírkach skry status chip nech sa header netlačí */
@media (max-width: 1024px) {
  .nav-status { display: none; }
}
@media (max-width: 880px) {
  .feature, .feature-rev { grid-template-columns: 1fr; gap: 28px; }
  .feature-rev .feature-visual { order: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }

  /* mobilná navigácia + hamburger */
  .nav-toggle { display: inline-flex; }
  .nav-status { display: inline-flex; align-self: flex-start; margin-bottom: 4px; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    margin-left: 0; padding: 12px clamp(20px, 4vw, 40px) 20px;
    background: rgba(8, 11, 18, 0.97);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav.open .nav-menu { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { padding: 13px 2px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav-links a::after { display: none; }
  .nav-cta { justify-content: center; margin-top: 12px; }
}
@media (max-width: 520px) {
  .hero-stats { gap: 14px 28px; }
  .hero-title { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .feature-visual { width: 100%; }
  .browser-frame { max-width: 100%; }
  .phone-frame { width: min(220px, 70vw); }
  .grid-mini { grid-template-columns: 1fr; }
  .grid-services { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .aurora, .marquee-track, .dot, .scroll-hint span, .rotator-word, .brand-flake { animation: none !important; }
  html { scroll-behavior: auto; }
}
