﻿@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap');

:root {
  --bg-1: #02040d;
  --bg-2: #050a1c;
  --bg-3: #091537;
  --card: rgba(6, 14, 36, 0.72);
  --card-strong: rgba(4, 10, 25, 0.88);
  --line: rgba(109, 151, 231, 0.28);
  --line-soft: rgba(132, 168, 232, 0.22);
  --text: #eef4ff;
  --muted: #b7c8ee;
  --accent: #2d63d9;
  --accent-2: #1b438f;
  --glow: rgba(61, 122, 246, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 14%, rgba(46, 89, 180, 0.22), transparent 38%),
    radial-gradient(circle at 87% 6%, rgba(29, 62, 128, 0.26), transparent 34%),
    radial-gradient(circle at 60% 110%, rgba(35, 84, 181, 0.18), transparent 42%),
    linear-gradient(145deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(138, 170, 231, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 170, 231, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 92%);
  pointer-events: none;
  z-index: 0;
  animation: gridDrift 42s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  width: 460px;
  height: 460px;
  top: -220px;
  right: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 122, 246, 0.14) 0%, transparent 72%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 18s cubic-bezier(0.42, 0, 0.28, 1) infinite;
}

.landing-shell {
  width: min(1120px, 100%);
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
  animation: fadeUp 780ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.page-title {
  margin: 0 0 2px 0;
  font-size: clamp(2.1rem, 6.3vw, 3.9rem);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 800;
  line-height: 1.08;
  text-shadow: 0 6px 26px rgba(22, 58, 132, 0.42);
}

.page-subtitle {
  margin: 0 auto 10px;
  text-align: center;
  font-size: clamp(0.8rem, 1.7vw, 0.93rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #98b5ed;
  font-weight: 600;
  animation: fadeUp 860ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: 120ms;
}

.landing-wrap {
  width: min(360px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(22px, 3.5vw, 42px);
  backdrop-filter: blur(12px) saturate(130%);
  box-shadow:
    0 26px 76px rgba(0, 5, 20, 0.64),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.42s ease;
  animation: cardIn 820ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: 170ms;
  will-change: transform;
}

.apps-grid {
  margin-top: clamp(28px, 4vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  align-items: stretch;
}

.landing-wrap:hover {
  transform: translateY(-3px);
  border-color: rgba(143, 182, 255, 0.4);
}

.apps-grid .landing-wrap:nth-child(2) {
  animation-delay: 280ms;
}

.apps-grid .landing-wrap:nth-child(3) {
  animation-delay: 390ms;
}

.intro {
  margin: 0 auto;
  max-width: 60ch;
  text-align: center;
  color: var(--muted);
  line-height: 1.72;
  font-size: clamp(0.96rem, 2.1vw, 1.04rem);
  font-weight: 400;
}

.agent-box {
  margin-top: 24px;
  padding: clamp(16px, 2.5vw, 24px);
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: var(--card-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.agent-btn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 15px 18px;
  font-size: clamp(1rem, 2.3vw, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  cursor: pointer;
  transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.38s ease, filter 0.38s ease;
  box-shadow: 0 10px 24px rgba(19, 53, 117, 0.5);
  will-change: transform;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.agent-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(19, 53, 117, 0.62);
  filter: brightness(1.03);
}

.agent-btn::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -35%;
  width: 28%;
  height: 320%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  transform: rotate(20deg) translateX(-220%);
  pointer-events: none;
}

.agent-btn:hover::after {
  animation: btnShine 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.agent-btn:active {
  transform: translateY(1px);
}

.landing-wrap-placeholder {
  opacity: 0.96;
}

.agent-btn-placeholder {
  background: linear-gradient(180deg, #1b356e, #13274f);
  box-shadow: 0 8px 20px rgba(12, 33, 79, 0.5);
  cursor: not-allowed;
}

.agent-btn-placeholder:hover {
  transform: none;
  filter: none;
}

details {
  margin-top: 16px;
  border: 1px solid rgba(99, 139, 214, 0.24);
  border-radius: 12px;
  background: rgba(3, 8, 21, 0.95);
  overflow: hidden;
  transition: border-color 0.34s ease, box-shadow 0.34s ease;
}

details[open] {
  border-color: rgba(125, 163, 234, 0.45);
  box-shadow: 0 0 0 1px rgba(95, 138, 224, 0.18);
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "▾";
  position: absolute;
  right: 16px;
  transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
}

details[open] summary::after {
  transform: rotate(180deg);
}

.desc-list {
  margin: 0;
  padding: 0 16px 16px;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.desc-list li {
  display: grid;
  gap: 2px;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(6px);
}

.desc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, #8fb5ff, #3f77eb);
  box-shadow: 0 0 10px rgba(95, 145, 236, 0.55);
}

.desc-list strong {
  color: var(--text);
  font-weight: 600;
}

.desc-list span {
  opacity: 0.96;
}

details[open] .desc-list li {
  animation: listReveal 480ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

details[open] .desc-list li:nth-child(2) {
  animation-delay: 110ms;
}

details[open] .desc-list li:nth-child(3) {
  animation-delay: 220ms;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes listReveal {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-10px, 10px) scale(1.02);
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 36px 16px, 36px 16px;
  }
}

@keyframes btnShine {
  from {
    transform: rotate(20deg) translateX(-220%);
  }
  to {
    transform: rotate(20deg) translateX(520%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
   LD-PAGE LAYOUT – novo za landing.html (body.ld-page)
   Sve ld-* klase ne diraju profile.html ni ostale stranice.
   ============================================================ */

/* Smooth scroll + odmak zbog sticky topbara */
html:has(body.ld-page) {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body.ld-page {
  display: block;
  padding: 0;
}

/* Blokira scroll kad je mobilni meni otvoren */
body.ld-page.nav-open {
  overflow: hidden;
}

/* Container */
.ld-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ── Topbar ── */
.ld-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  backdrop-filter: blur(16px);
  background: rgba(2, 4, 13, 0.78);
  border-bottom: 1px solid rgba(109, 151, 231, 0.18);
}

.ld-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ld-brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.ld-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.94rem;
}

.ld-menu a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.ld-menu a:hover {
  color: var(--text);
}

/* Override landing-auth.css margin kad je unutar topbara */
.ld-nav-auth {
  margin: 0 !important;
}

/* ── Buttons ── */
.ld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.ld-btn-primary {
  background: linear-gradient(135deg, var(--accent), #4a7ef7);
  color: #fff;
  box-shadow: 0 10px 26px rgba(45, 99, 217, 0.38);
}

.ld-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(45, 99, 217, 0.5);
}

.ld-btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(139, 172, 233, 0.3);
}

.ld-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 172, 233, 0.5);
}

/* ── Hero ── */
.ld-hero {
  padding: 80px 0 60px;
}

.ld-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.ld-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8ef0d0;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.ld-h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text);
}

.ld-h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 2.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.ld-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 24px;
  line-height: 1.7;
}

.ld-hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 0.95rem;
}

.ld-hero-points div::before {
  content: "▸";
  color: #8ef0d0;
  margin-right: 8px;
}

.ld-hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ld-hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(109, 151, 231, 0.28);
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 4, 20, 0.5);
  position: relative;
  overflow: hidden;
}

.ld-hero-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -20% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(45, 99, 217, 0.2), transparent 65%);
  pointer-events: none;
}

.ld-hero-card-title {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
}

.ld-hero-card-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.ld-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.ld-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(109, 151, 231, 0.2);
  border-radius: 18px;
  padding: 16px;
}

.ld-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--text);
}

.ld-stat span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* ── KPD Apps section (stara klasa, ostaje) ── */
.ld-apps-section {
  padding: 0 0 48px;
}

/* ── KPD Sticky sidebar ── */
/* Na mobilnom/tabletu: normalan tok stranice, ispod heroja */
.ld-kpd-sidebar {
  padding: 32px 0 40px;
}

.landing-wrap-compact {
  width: min(260px, 100%);
  padding: clamp(14px, 2vw, 22px);
}

.ld-kpd-intro {
  font-size: 0.88rem;
  margin: 0 0 4px;
  text-align: left;
}

/* Na desktopu (>= 1280px): fixed sidebar lijevo */
@media (min-width: 1280px) {
  .ld-kpd-sidebar {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    width: 230px;
    padding: 0;
    transition: width 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .ld-kpd-sidebar .landing-wrap-compact {
    width: 100%;
  }

  /* Gurni main sadržaj desno */
  body.ld-page main {
    padding-left: 256px;
  }

  /* Footer poravnaj s content arealom.
     ld-container se centrira unutar (viewport - 256px) dostupnog prostora,
     pa footer treba isti efektivni lijevi offset:
     - dok je container manji od 1120px (viewport < 1416px): lijeva margina = 256+20 = 276px
     - kad je container 1120px (viewport >= 1416px): lijeva margina = 50vw - 432px
     max() pokriva oba slučaja u jednom pravilu. */
  body.ld-page .landing-footer {
    margin-left: max(276px, calc(50vw - 432px));
    margin-right: auto;
    width: min(1120px, calc(100vw - max(276px, calc(50vw - 432px)) - 20px));
  }
}

/* Proširenje za details[open] */
@media (min-width: 1280px) {
  .ld-kpd-sidebar:has(details[open]) {
    width: 310px;
  }
}

/* ── Sections ── */
.ld-section {
  padding: 56px 0;
  border-top: 1px solid rgba(109, 151, 231, 0.12);
}

.ld-section-head {
  max-width: 700px;
  margin-bottom: 32px;
}

.ld-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

/* ── Cards grid ── */
.ld-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ld-card {
  background: rgba(6, 14, 36, 0.72);
  border: 1px solid rgba(109, 151, 231, 0.22);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 18px 48px rgba(0, 4, 20, 0.4);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.ld-card:hover {
  transform: translateY(-2px);
  border-color: rgba(143, 182, 255, 0.38);
}

.ld-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--text);
}

.ld-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ── Split layout ── */
.ld-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: start;
}

/* ── Steps ── */
.ld-stack {
  display: grid;
  gap: 14px;
}

.ld-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  background: rgba(6, 14, 36, 0.72);
  border: 1px solid rgba(109, 151, 231, 0.2);
  border-radius: 18px;
  padding: 16px;
}

.ld-step-number {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(45, 99, 217, 0.16);
  border: 1px solid rgba(45, 99, 217, 0.3);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.ld-step h3 {
  margin: 2px 0 6px;
  font-size: 1.02rem;
  color: var(--text);
}

.ld-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ── List box ── */
.ld-list-box {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(109, 151, 231, 0.24);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 20px 50px rgba(0, 4, 20, 0.4);
}

.ld-list-box ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.ld-list-box li {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.ld-list-box li strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
  font-size: 0.96rem;
}

/* ── Industries tags ── */
.ld-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ld-tag {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(109, 151, 231, 0.2);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ── CTA ── */
.ld-cta {
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(45, 99, 217, 0.18), rgba(142, 240, 208, 0.08));
  border: 1px solid rgba(109, 151, 231, 0.28);
  box-shadow: 0 24px 60px rgba(0, 4, 20, 0.4);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.ld-cta-text p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.ld-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Kontakt info linkovi */
.ld-contact-info {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ld-contact-info a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}

.ld-contact-info a:hover {
  color: var(--text);
}

/* Forma wrapper */
.ld-contact-form-wrap {
  background: rgba(4, 9, 24, 0.55);
  border: 1px solid rgba(109, 151, 231, 0.2);
  border-radius: 18px;
  padding: 24px;
}

.ld-contact-textarea {
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
  font-size: 0.94rem;
  line-height: 1.6;
}

.ld-contact-submit {
  width: 100%;
  margin-top: 6px;
  justify-content: center;
  font-size: 0.9rem;
}

.ld-contact-success {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 200, 130, 0.3);
  background: rgba(0, 200, 130, 0.08);
  color: #6effc2;
  font-size: 0.88rem;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 1080px) {
  .ld-hero-grid,
  .ld-split,
  .ld-cta {
    grid-template-columns: 1fr;
  }

  .ld-cta {
    gap: 24px;
  }

  .ld-cta-actions {
    justify-content: flex-start;
  }

  .ld-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Hamburger gumb ── */
.ld-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid rgba(139, 172, 233, 0.28);
  border-radius: 10px;
  cursor: pointer;
  padding: 9px 10px;
  flex-shrink: 0;
}

.ld-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.28s ease;
}

.ld-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ld-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ld-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobilni nav ── */
.ld-mobile-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 198;
  background: rgba(2, 4, 13, 0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(109, 151, 231, 0.18);
  padding: 8px 20px 20px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.28s ease;
}

.ld-mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ld-mobile-nav-link {
  display: block;
  padding: 15px 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(109, 151, 231, 0.1);
  transition: color 0.2s, padding-left 0.2s;
}

.ld-mobile-nav-link:last-child { border-bottom: none; }

.ld-mobile-nav-link:hover,
.ld-mobile-nav-link:focus {
  color: var(--text);
  padding-left: 6px;
}

/* ── Natrag gore gumb ── */
.ld-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 150;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(109, 151, 231, 0.32);
  background: rgba(6, 14, 36, 0.88);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease,
              background 0.2s ease, border-color 0.2s ease;
}

.ld-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ld-back-to-top:hover {
  background: rgba(45, 99, 217, 0.45);
  border-color: rgba(109, 151, 231, 0.6);
}

/* ── Cookie consent ── */
.ld-cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: rgba(4, 9, 24, 0.97);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(109, 151, 231, 0.2);
  padding: 14px 20px;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.35s ease;
}

.ld-cookie-consent.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.ld-cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.ld-cookie-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.55;
}

.ld-cookie-text a {
  color: #8bb4ff;
  text-decoration: none;
}

.ld-cookie-text a:hover { color: var(--text); }

.ld-cookie-btn {
  min-height: 38px;
  padding: 0 20px;
  font-size: 0.84rem;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .ld-cookie-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ld-cookie-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .ld-back-to-top {
    bottom: 90px; /* iznad cookie bannera ako je otvoren */
  }
}

/* ── Honeypot – apsolutno skriveno polje (boti ga vide, korisnici ne) ── */
.ld-hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-size: 0;
}

/* ── Scroll animacije ── */
.ld-animate {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ld-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .ld-menu {
    display: none;
  }

  .ld-hamburger {
    display: flex;
  }

  .ld-hero {
    padding: 50px 0 40px;
  }

  .ld-hero-points,
  .ld-stat-grid {
    grid-template-columns: 1fr;
  }

  .ld-hero-buttons {
    flex-direction: column;
  }

  .ld-hero-buttons .ld-btn {
    width: 100%;
    justify-content: center;
  }

  .ld-cards {
    grid-template-columns: 1fr;
  }

  .ld-container {
    width: min(1120px, calc(100% - 24px));
  }

  .ld-cta {
    padding: 24px;
  }

  .ld-section {
    padding: 40px 0;
  }

  .landing-wrap-compact {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .ld-nav-auth .landing-auth-btn {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  body {
    padding: 14px;
  }

  .landing-wrap {
    width: 100%;
    border-radius: 18px;
  }

  .agent-box {
    margin-top: 22px;
  }

  .desc-list li {
    font-size: 0.92rem;
  }

  .page-subtitle {
    letter-spacing: 0.12em;
  }

  .apps-grid {
    margin-top: 20px;
    gap: 14px;
  }
}

.landing-footer {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 26px auto 18px;
  border: 1px solid rgba(109, 151, 231, 0.24);
  border-radius: 20px;
  background: rgba(6, 14, 36, 0.72);
  backdrop-filter: blur(10px) saturate(120%);
  box-shadow: 0 20px 40px rgba(0, 8, 28, 0.35);
}

.landing-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 22px;
  padding: 20px 22px 16px;
}

.landing-footer-col h3,
.landing-footer-col h4 {
  margin: 0 0 8px;
  color: #eef4ff;
}

.landing-footer-col h3 {
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.landing-footer-col h4 {
  font-size: 0.9rem;
  color: #b8caef;
}

.landing-footer-col p,
.landing-footer-col li,
.landing-footer-col a {
  color: #b7c8ee;
  font-size: 0.84rem;
  line-height: 1.6;
  text-decoration: none;
}

.landing-footer-col a:hover {
  color: #d8e6ff;
}

.landing-footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-footer-bottom {
  border-top: 1px solid rgba(109, 151, 231, 0.2);
  padding: 10px 22px 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #9db9ee;
  font-size: 0.78rem;
}

.ld-footer-legal a {
  color: #9db9ee;
  text-decoration: none;
}

.ld-footer-legal a:hover {
  color: #fff;
}

@media (max-width: 860px) {
  .landing-footer-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .landing-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
