/* =========================================================================
   aura — technický grantový web · dizajnový systém
   Brand book „aura — colors & typo" v3
   Typografia: TAN St. Canard (display, ALL CAPS) + Nexa (Regular/Bold/Black)
   Farby: black · pink · orange · yellow · cream
   ========================================================================= */

/* ---------- fonty (licencované brand woff2) ---------- */
@font-face {
  font-family: "TAN St Canard";
  src: url("../fonts/TANStCanard-Display.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nexa";
  src: url("../fonts/Nexa-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nexa";
  src: url("../fonts/Nexa-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nexa";
  src: url("../fonts/Nexa-Black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --black: #0a0a0a;
  --black-soft: #141414;
  --black-card: #161616;
  --pink: #d94391;
  --orange: #e48c70;
  --yellow: #eeb543;
  --cream: #fbf0e3;
  --muted: #a39a8c;
  --border: #2a2a2a;

  --font-display: "TAN St Canard", "Impact", sans-serif;
  --font-body: "Nexa", system-ui, -apple-system, sans-serif;

  --gradient-brand: linear-gradient(90deg, #d94391 0%, #e48c70 50%, #eeb543 100%);
  --gradient-halo: radial-gradient(ellipse at center, rgba(217, 67, 145, 0.32) 0%, rgba(238, 181, 67, 0.16) 45%, transparent 70%);

  --container: 1180px;
  --radius: 14px;
  --header-h: 76px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: hidden;
}
body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

/* ---------- typografia ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--pink);
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}
h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}
h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
}
p {
  color: var(--cream);
}
strong,
b {
  font-weight: 700;
}
.hl-yellow {
  color: var(--yellow);
  font-weight: 700;
}
.hl-pink {
  color: var(--pink);
  font-weight: 700;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  display: inline-block;
  margin-bottom: 1rem;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--cream);
  max-width: 60ch;
}
.muted {
  color: var(--muted);
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.4rem;
}
.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  position: relative;
}
.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.section-head {
  max-width: 62ch;
  margin-bottom: 2.6rem;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

/* farebné bloky */
.block-orange {
  background: var(--orange);
}
.block-orange h1,
.block-orange h2,
.block-orange h3 {
  color: var(--cream);
}
.block-orange p,
.block-orange li {
  color: #241109;
}
.block-cream {
  background: var(--cream);
  color: var(--black);
}
.block-cream h1,
.block-cream h2,
.block-cream h3 {
  color: var(--pink);
}
.block-cream p,
.block-cream li,
.block-cream .muted {
  color: #3a352d;
}
.block-pink {
  background: var(--pink);
}
.block-pink h1,
.block-pink h2 {
  color: var(--cream);
}
.block-pink p {
  color: #2a0f1e;
}

/* ---------- gradient / efekty ---------- */
.brand-strip {
  height: 3px;
  background: var(--gradient-brand);
  border: 0;
}
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.halo {
  position: absolute;
  inset: 0;
  background: var(--gradient-halo);
  pointer-events: none;
  z-index: 0;
}
.glow-guiding {
  box-shadow: 0 0 60px rgba(238, 181, 67, 0.22), 0 0 140px rgba(238, 181, 67, 0.1);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
  line-height: 1;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--yellow);
  color: var(--black);
}
.btn-primary:hover {
  background: #f2c25f;
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}
.block-cream .btn-ghost {
  color: var(--black);
  border-color: rgba(0, 0, 0, 0.2);
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: height 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  height: 62px;
  background: rgba(10, 10, 10, 0.9);
  border-bottom-color: var(--border);
}
.header-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.35rem;
  color: var(--cream);
  letter-spacing: 0.04em;
}
.brand img {
  height: 30px;
  width: 30px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav a.navlink {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cream);
  opacity: 0.82;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.nav a.navlink:hover,
.nav a.navlink.active {
  opacity: 1;
  color: var(--yellow);
}
.nav-cta {
  margin-left: 0.4rem;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--cream);
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* mobilné menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--pink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  padding: 2rem;
}
.mobile-menu.open {
  transform: translateY(0);
}
.mobile-menu a {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 2rem;
  color: var(--cream);
}
.mobile-menu a.cta-mobile {
  margin-top: 1rem;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding-block: 6rem 4rem;
  overflow: hidden;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  margin-bottom: 1.4rem;
}
.hero .lead {
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.4rem;
}

/* trust / spec strip */
.spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.chip {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--cream);
}
.chip.accent {
  color: var(--yellow);
  border-color: rgba(238, 181, 67, 0.4);
}

/* logo in motion */
.logo-motion {
  position: relative;
  width: min(360px, 80vw);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.logo-motion .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(238, 181, 67, 0.45);
  animation: ring-spin 24s linear infinite;
}
.logo-motion .ring.inner {
  inset: 14%;
  border-color: rgba(217, 67, 145, 0.5);
  animation: ring-spin 16s linear infinite reverse, ring-pulse 3.2s ease-in-out infinite;
}
.logo-motion img {
  width: 46%;
  filter: drop-shadow(0 0 30px rgba(217, 67, 145, 0.5));
}
@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ring-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.7;
  }
}

/* ---------- karty ---------- */
.grid {
  display: grid;
  gap: 1.4rem;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.card h3 {
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.card .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--pink);
  line-height: 1;
  display: block;
  margin-bottom: 0.8rem;
}
.card .kicker {
  font-family: var(--font-body);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--yellow);
  display: block;
  margin-bottom: 0.7rem;
}
.block-cream .card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
}
.block-cream .card h3 {
  color: var(--black);
}

/* ---------- spec sheet (label — value) ---------- */
.specs {
  border-top: 1px solid var(--border);
  max-width: 760px;
}
.specs .row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
}
.specs .label {
  font-weight: 700;
  color: var(--cream);
}
.specs .value {
  font-weight: 900;
  color: var(--yellow);
  text-align: right;
}

/* ---------- compare table ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
table.compare th,
table.compare td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
table.compare thead th {
  font-family: var(--font-body);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  color: var(--muted);
}
table.compare td.feat {
  color: var(--cream);
  font-weight: 700;
}
table.compare .col-aura {
  position: relative;
}
table.compare thead .col-aura {
  color: var(--pink);
}
table.compare tbody td.col-aura {
  color: var(--yellow);
  font-weight: 900;
  background: rgba(217, 67, 145, 0.06);
}
table.compare .yes {
  color: var(--yellow);
  font-weight: 900;
}
table.compare .no {
  color: var(--muted);
}

/* ---------- roadmap timeline ---------- */
.timeline {
  position: relative;
  border-left: 2px solid var(--border);
  margin-left: 8px;
  padding-left: 2rem;
  display: grid;
  gap: 2rem;
}
.timeline .step {
  position: relative;
}
.timeline .step::before {
  content: "";
  position: absolute;
  left: calc(-2rem - 9px);
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--border);
}
.timeline .step.done::before {
  background: var(--yellow);
  border-color: var(--yellow);
}
.timeline .step.now::before {
  background: var(--pink);
  border-color: var(--pink);
  box-shadow: 0 0 0 6px rgba(217, 67, 145, 0.18);
  animation: ring-pulse 2.6s ease-in-out infinite;
}
.timeline .step .phase {
  font-family: var(--font-body);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--yellow);
}
.timeline .step h3 {
  color: var(--cream);
  margin: 0.3rem 0 0.5rem;
}

/* ---------- accordion (faq) ---------- */
.accordion {
  max-width: 820px;
}
.acc-item {
  border-bottom: 1px solid var(--border);
}
.acc-q {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
  padding: 1.15rem 2.4rem 1.15rem 0;
  cursor: pointer;
  position: relative;
}
.acc-q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--yellow);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}
.acc-item.open .acc-q::after {
  content: "\2212";
}
.acc-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.acc-a-inner {
  padding: 0 0 1.2rem;
  color: var(--muted);
  max-width: 70ch;
}
.faq-cat {
  font-family: var(--font-body);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  margin: 2.4rem 0 0.6rem;
  color: var(--orange);
}

/* ---------- diagram vrstiev ---------- */
.layers {
  display: grid;
  gap: 1.2rem;
}
.layer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--black-card);
}
.layer .dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--black);
  flex: none;
}
.dot.uwb {
  background: var(--pink);
}
.dot.lora {
  background: var(--orange);
}
.dot.mesh {
  background: var(--yellow);
}
.layer h3 {
  color: var(--cream);
  margin-bottom: 0.3rem;
}

/* metrika / big number */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.metric {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
}
.metric .big {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--yellow);
  line-height: 1;
}
.metric .cap {
  font-weight: 700;
  color: var(--cream);
  margin-top: 0.5rem;
}
.metric .sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

/* badge (TRL / stav) */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(238, 181, 67, 0.12);
  color: var(--yellow);
  border: 1px solid rgba(238, 181, 67, 0.35);
}

/* TODO / doplnit */
.todo {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  color: #ff8a8a;
  background: rgba(255, 80, 80, 0.1);
  border: 1px dashed rgba(255, 120, 120, 0.5);
  border-radius: 6px;
  padding: 0.1rem 0.5rem;
}

/* ---------- právne stránky ---------- */
.legal {
  max-width: 760px;
  color: var(--muted);
}
.legal h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: var(--cream);
  margin: 2.4rem 0 0.8rem;
}
.legal h2:first-child {
  margin-top: 0;
}
.legal h3 {
  font-size: 1.05rem;
  color: var(--cream);
  margin: 1.6rem 0 0.5rem;
}
.legal p {
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.legal ul,
.legal ol {
  margin: 0 0 1rem 1.2rem;
  padding-left: 0.6rem;
}
.legal ul {
  list-style: disc;
}
.legal ol {
  list-style: decimal;
}
.legal li {
  color: var(--muted);
  margin-bottom: 0.5rem;
  padding-left: 0.3rem;
}
.legal a {
  color: var(--yellow);
  font-weight: 700;
}
.legal .note {
  border-left: 3px solid var(--yellow);
  background: rgba(238, 181, 67, 0.06);
  padding: 1rem 1.2rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.legal .updated {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--yellow);
  margin-bottom: 2rem;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-block: 3.2rem 2rem;
}
.footer-brand .brand {
  margin-bottom: 1rem;
}
.footer-brand p {
  color: var(--muted);
  max-width: 34ch;
  font-size: 0.95rem;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: var(--cream);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: var(--muted);
  padding: 0.28rem 0;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--yellow);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-bottom a:hover {
  color: var(--yellow);
}

/* ---------- reveal animácie (progressive enhancement) ----------
   Obsah je viditeľný by default; skrýva sa len ak beží JS (html.js),
   takže pri zlyhaní JS zostane všetko čitateľné. */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions,
  .spec-strip {
    justify-content: center;
  }
  .logo-motion {
    order: -1;
    width: min(280px, 70vw);
  }
  .grid-3,
  .grid-4,
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}
@media (max-width: 560px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .metrics,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .specs .row {
    flex-direction: column;
    gap: 0.2rem;
  }
  .specs .value {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}
