/* =====================================================================
   CoachDesk — new public site design system  (site.css)
   Dark + Neon Tide WebGL identity. Independent from styles.css
   (which still powers the untouched admin panel + login).
   Font: Neue Haas Grotesk (licensed -> ./fonts/). It is essentially Helvetica,
   so the fallback stack is Helvetica Neue / Arial (truest free stand-in).
   ===================================================================== */
@font-face { font-family:"Neue Haas Grotesk"; src:url("fonts/NeueHaasGrotesk-Regular.woff2") format("woff2"),url("fonts/NeueHaasGrotesk-Regular.woff") format("woff"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Neue Haas Grotesk"; src:url("fonts/NeueHaasGrotesk-Medium.woff2") format("woff2"),url("fonts/NeueHaasGrotesk-Medium.woff") format("woff"); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"Neue Haas Grotesk"; src:url("fonts/NeueHaasGrotesk-Bold.woff2") format("woff2"),url("fonts/NeueHaasGrotesk-Bold.woff") format("woff"); font-weight:700; font-style:normal; font-display:swap; }

:root {
  --bg: #05060a;
  --bg-2: #080b12;
  --teal: #00f5aa;
  --indigo: #3b00ff;
  --blue: #1f5bff;
  --violet: #6a3bff;

  --text: #f3f5f9;
  --muted: #c2c9d6;
  --dim: #97a0b0;

  --glass: rgba(255,255,255,0.035);
  --glass-2: rgba(255,255,255,0.06);
  --line: rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.16);

  --grad: linear-gradient(115deg, #00f5aa, #1f5bff 55%, #3b00ff);
  --grad-soft: linear-gradient(115deg, rgba(0,245,170,.16), rgba(59,0,255,.16));

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;

  --ease: cubic-bezier(.2,.7,.2,1);
  --maxw: 1200px;

  --font: "Neue Haas Grotesk","Helvetica Neue",Helvetica,Arial,system-ui,-apple-system,"Segoe UI",sans-serif;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
  perspective: 1500px;
}

/* ---- background: WebGL canvas sits at z-index 0; this is the fallback ---- */
body::before {
  content: "";
  position: fixed; inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 12% 8%, rgba(0,245,170,.18), transparent 60%),
    radial-gradient(60% 60% at 88% 6%, rgba(59,0,255,.22), transparent 60%),
    radial-gradient(70% 60% at 50% 110%, rgba(31,91,255,.18), transparent 60%),
    var(--bg);
}
html.has-webgl body::before { opacity: 0; }
html.has-webgl .tide-orb { display: none; }
#neon-tide-gl { transition: opacity .8s ease; }

/* readability scrim: darkens the (WebGL or fallback) background so text reads.
   Sits above the canvas (z-index 0) but below content (z-index 1). */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(135% 100% at 50% 0%, rgba(5,6,10,.30), rgba(5,6,10,.66) 100%),
    linear-gradient(180deg, rgba(5,6,10,.45), rgba(5,6,10,.20) 30%, rgba(5,6,10,.55));
}

/* text that sits directly over the background gets a soft legibility shadow */
.hero, .section-head, .split-text, .logos, .cta-band, .footer, .stat .lab {
  text-shadow: 0 1px 18px rgba(5,6,10,.6);
}

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding: 92px 0; position: relative; z-index: 1; }
.section--tight { padding: 64px 0; }

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before { content:""; width:18px; height:1px; background:var(--teal); opacity:.6; }
h1,h2,h3 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }
.h-display { font-size: clamp(40px, 7vw, 84px); }
.h1 { font-size: clamp(34px, 5vw, 58px); }
.h2 { font-size: clamp(28px, 3.6vw, 44px); }
.h3 { font-size: clamp(20px, 2vw, 26px); }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
/* 73 — animated moving gradient text */
.grad-text {
  background: linear-gradient(115deg, #00f5aa, #1f5bff, #3b00ff, #00f5aa);
  background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientMove 8s ease-in-out infinite;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head .lead { margin-top: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
/* 80 — glowing button: moving gradient + pulsing dual glow */
.btn-primary {
  color: #03110c;
  background: linear-gradient(115deg, #00f5aa, #1f5bff, #3b00ff, #00f5aa);
  background-size: 240% 100%;
  animation: gradientMove 6s ease-in-out infinite, btnGlow 2.4s ease-in-out infinite;
}
.btn-primary:hover { transform: translateY(-2px) scale(1.03); }
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 8px 24px rgba(31,91,255,.30), 0 0 0 1px rgba(0,245,170,.25) inset; }
  50%      { box-shadow: 0 10px 44px rgba(0,245,170,.45), 0 0 26px rgba(59,0,255,.50), 0 0 0 1px rgba(0,245,170,.45) inset; }
}
.btn-ghost { color: var(--text); background: var(--glass); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--glass-2); transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ---------- pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px; font-size: 13px; color: var(--muted);
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.5;transform:scale(.8);} }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(5,6,10,.55);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; color: #03110c; font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 18px rgba(31,91,255,.4);
}
.brand-logo { height: 32px; width: auto; display: block; filter: drop-shadow(0 4px 14px rgba(0,245,170,.28)); }
.brand-word { font-weight: 700; }

/* hero brand mark */
.hero-mark {
  width: clamp(78px, 10vw, 104px); height: auto; display: block; margin: 0 auto 26px;
  filter: drop-shadow(0 12px 34px rgba(0,245,170,.35)) drop-shadow(0 0 24px rgba(59,0,255,.3));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.nav-links { display: flex; gap: 30px; margin-left: 14px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .18s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; border-radius:2px; background:var(--grad); transition: width .2s var(--ease); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 70px; text-align: center; position: relative; z-index: 1; }
.hero .pill { margin-bottom: 26px; }
.hero h1 { margin: 0 auto; max-width: 16ch; }
.hero .lead { margin: 22px auto 34px; max-width: 56ch; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--dim); }

/* logos strip */
.logos { display: flex; gap: 40px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 64px; opacity: .8; }
.logos span { font-weight: 600; color: var(--dim); letter-spacing: .04em; }

/* ---------- product preview mockup ---------- */
.preview {
  margin: 70px auto 0; max-width: 980px; border-radius: var(--r-lg);
  background: rgba(10,13,20,.7); border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(0,245,170,.06) inset;
  backdrop-filter: blur(14px);
}
.preview-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.preview-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); display: inline-block; }
.preview-bar span { margin-left: 12px; font-size: 13px; color: var(--dim); }
.preview-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; padding: 22px; }
.mini-panel { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.mini-panel h4 { margin: 0 0 14px; font-size: 14px; color: var(--muted); font-weight: 600; }
.chart { height: 130px; border-radius: 12px; background: linear-gradient(180deg, rgba(0,245,170,.08), transparent); position: relative; overflow: hidden; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cal { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }
.cal i { aspect-ratio: 1; border-radius: 6px; background: var(--glass-2); display: block; }
.cal i.t { background: linear-gradient(135deg, var(--teal), var(--blue)); }
.cal i.r { background: linear-gradient(135deg, var(--blue), var(--indigo)); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; padding: 28px; border-radius: var(--r-md);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(10px); overflow: hidden;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card .ic {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 18px; background: var(--grad-soft); border: 1px solid var(--line);
}
.card--feature .tag { font-size: 12px; color: var(--teal); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

/* audience cards (for whom) */
.aud { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.aud .card { padding-top: 32px; }
.aud .card ul { margin: 16px 0 0; padding: 0; list-style: none; }
.aud .card li { color: var(--muted); font-size: 14px; padding: 7px 0 7px 24px; position: relative; }
.aud .card li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ---------- split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.split:last-child { margin-bottom: 0; }
.split--rev .split-media { order: 2; }
.split-text h2 { margin-bottom: 14px; }
.split-text .lead { margin-bottom: 18px; }
.split-text ul { list-style: none; margin: 0; padding: 0; }
.split-text li { color: var(--muted); padding: 8px 0 8px 28px; position: relative; }
.split-text li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.split-media {
  border-radius: var(--r-lg); padding: 28px; min-height: 280px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.split-media::before { content:""; position:absolute; inset:0; background: var(--grad-soft); opacity:.5; }
.split-media .glyph { font-size: 88px; position: relative; z-index: 1; filter: drop-shadow(0 10px 30px rgba(0,245,170,.3)); }
@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .split--rev .split-media { order: 0; }
}

/* ---------- steps / how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--line); }
.step .n { font-size: 14px; font-weight: 700; color: #03110c; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 14px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--line); }
.stat .num { font-size: clamp(32px,4vw,46px); font-weight: 800; line-height: 1; }
.stat .lab { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---------- pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: start; }
.price { padding: 32px 28px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--line); position: relative; }
.price--featured { border-color: rgba(0,245,170,.4); box-shadow: 0 30px 80px rgba(31,91,255,.22); }
.price--featured::before { content: "Najobľúbenejšie"; position: absolute; top: -12px; left: 28px; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--grad); color: #03110c; }
.price .name { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.price .amt { font-size: 46px; font-weight: 800; margin: 12px 0 2px; }
.price .amt small { font-size: 15px; font-weight: 500; color: var(--dim); }
.price ul { list-style: none; margin: 22px 0; padding: 0; }
.price li { color: var(--muted); font-size: 15px; padding: 8px 0 8px 26px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.price .btn { width: 100%; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--glass); margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 22px; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 22px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--r-lg); padding: 64px 40px; text-align: center; position: relative; overflow: hidden;
  background: var(--grad-soft); border: 1px solid rgba(0,245,170,.25);
}
.cta-band h2 { max-width: 18ch; margin: 0 auto 14px; }
.cta-band .lead { max-width: 50ch; margin: 0 auto 28px; }

/* ---------- form (beta) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 15px; color: var(--text);
  background: rgba(5,6,10,.6); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 13px 15px; transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,245,170,.15);
}
.field textarea { resize: vertical; min-height: 90px; }
.form-status { display: none; margin-top: 14px; padding: 12px 16px; border-radius: var(--r-sm); background: rgba(255,255,255,.92); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 56px 0 40px; position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h5 { margin: 0 0 14px; font-size: 14px; color: var(--text); }
.footer a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color .16s; }
.footer a:hover { color: var(--teal); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--dim); font-size: 13px; }

/* =====================================================================
   3D TILT (parallax.js) + SCROLL REVEAL + depth orbs
   ===================================================================== */
[data-tilt] { transform-style: preserve-3d; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; will-change: transform; }
[data-tilt].is-tilting { box-shadow: 0 0 0 1px rgba(0,245,170,.45), 0 0 40px rgba(0,245,170,.35), 0 0 70px rgba(59,0,255,.45), 0 30px 70px rgba(0,0,0,.55); border-color: rgba(0,245,170,.5); transition: box-shadow .3s ease, border-color .3s; }
[data-tilt] > *:not(.tilt-glare) { transform: translateZ(30px); }
.tilt-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  opacity: 0; transition: opacity .3s ease; mix-blend-mode: screen;
  background: radial-gradient(240px circle at var(--glare-x,50%) var(--glare-y,0%), rgba(0,245,170,.18), rgba(59,0,255,.12) 42%, transparent 70%);
}
[data-tilt].is-tilting .tilt-glare { opacity: 1; }

.tide-orb { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(70px); opacity: .5; mix-blend-mode: screen; will-change: transform; }
.tide-orb--1 { width:460px;height:460px;top:-8%;left:-6%;background:radial-gradient(circle,var(--teal),transparent 70%); }
.tide-orb--2 { width:540px;height:540px;top:14%;right:-10%;background:radial-gradient(circle,var(--indigo),transparent 70%); }
.tide-orb--3 { width:420px;height:420px;bottom:6%;left:10%;background:radial-gradient(circle,var(--blue),transparent 70%); }
.tide-orb--4 { width:360px;height:360px;bottom:-6%;right:14%;background:radial-gradient(circle,var(--violet),transparent 70%); }

/* 74 — slide-up scroll reveal (easeInOutCubic) */
.reveal { opacity: 0; transform: translateY(60px); transition: opacity .8s ease, transform .8s cubic-bezier(.65,0,.35,1); transition-delay: var(--reveal-delay,0s); will-change: opacity, transform; }
.reveal.reveal--in { opacity: 1; transform: none; }

/* 49 — elevator/elastic pop for headings as their section reveals */
.section-head.reveal--in h2,
.section-head.reveal--in .h1,
.section-head.reveal--in .h2 { animation: elevatorPop .9s cubic-bezier(.2,1.2,.3,1) both; }
@keyframes elevatorPop {
  0%   { opacity: 0; transform: scale(.82) translateY(12px); }
  60%  { opacity: 1; transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* 38 — breathing cards: a soft inner glow that pulses (no transform clash
   with the 3D tilt / reveal, which both drive transform). */
.card, .step { position: relative; }
.card::before, .step::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(0,245,170,.12), transparent 62%);
  opacity: .3; animation: breathe 5s ease-in-out infinite;
  animation-delay: var(--reveal-delay, 0s);
}
@keyframes breathe { 0%, 100% { opacity: .22; } 50% { opacity: .65; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  [data-tilt] { transform: none !important; }
  .tilt-glare, #neon-tide-gl, .tide-orb { display: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4, .aud, .steps, .stats, .prices { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .preview-body { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-3, .grid-4, .aud, .steps, .stats, .prices, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  [data-tilt] > *:not(.tilt-glare) { transform: none; }
  .tide-orb--2, .tide-orb--4 { display: none; }
}
