/* ============ Design tokens ============ */
:root {
  /* KBCnet brend: crno-crveno-belo (logo), ne izmisljena plavo-tirkizna paleta */
  --navy-950: #100c0d;
  --navy-900: #1a1416;
  --navy-800: #2a2124;
  --navy-700: #3c3033;
  --blue-500: #b3121a;
  --blue-400: #d21c24;
  --accent: #e2231a;
  --accent-dark: #af1712;
  --accent-light: #ff6b5e;
  --ink: #1c1416;
  --muted: #6b5f61;
  --line: #ece6e6;
  --bg: #0a0708;
  --muted-on-dark: #a99b98;
  --card: #ffffff;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(20, 10, 10, .07);
  --shadow-md: 0 8px 24px rgba(20, 10, 10, .10);
  --shadow-lg: 0 20px 48px rgba(20, 10, 10, .18);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; color: var(--navy-900); font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
img { max-width: 100%; display: block; }
::selection { background: var(--accent-light); color: var(--navy-950); }

/* ============ Buttons ============ */
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; padding: 12px 24px; border-radius: 999px; font-weight: 700;
  white-space: nowrap; border: none; cursor: pointer; font-size: 15px;
  box-shadow: 0 6px 18px rgba(226, 35, 26, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(226, 35, 26, .45); color: #fff; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--navy-800); color: var(--navy-800);
  padding: 10px 22px; border-radius: 999px; font-weight: 700; transition: all .15s ease;
}
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ============ Header ============ */
.site-header {
  background: var(--navy-950);
  position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 16px rgba(0,0,0,.35);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 8px; }
.logo-img { height: 42px; width: auto; }
.site-footer .logo-img { height: 38px; }
.logo span { color: var(--accent); }
.logo .logo-mark { width: 26px; height: 26px; flex: none; }
.main-nav { display: flex; gap: 8px; flex: 1; justify-content: center; }
.main-nav a {
  color: #d8cbc9; font-weight: 600; font-size: 14.5px; padding: 8px 14px; border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 96px 0 110px;
  background: radial-gradient(1100px 500px at 15% -10%, #4a1210 0%, transparent 60%),
              linear-gradient(160deg, var(--navy-950), var(--navy-800) 60%, var(--navy-700));
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 70%);
}
.hero-inner { position: relative; display: flex; align-items: center; gap: 48px; }
.hero-text { flex: 1.15; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(226,35,26,.16);
  border: 1px solid rgba(226,35,26,.4); color: var(--accent-light);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 20px;
}
.hero h1 { color: #fff; font-size: 48px; margin-bottom: .3em; letter-spacing: -.02em; }
.hero .lead { font-size: 18px; color: #d8cbc9; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero .btn-outline { border-color: rgba(255,255,255,.35); color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.hero-stats { display: flex; gap: 32px; margin-top: 44px; }
.hero-stats div strong { display: block; font-size: 26px; color: #fff; }
.hero-stats div span { font-size: 13px; color: #baa9a7; }
.hero-visual { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; }
.hero-photo {
  width: 340px; height: 400px; border-radius: 28px; overflow: hidden; position: relative;
  box-shadow: var(--shadow-lg); border: 4px solid rgba(255,255,255,.08);
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0; border-radius: 24px;
  background: linear-gradient(200deg, transparent 55%, rgba(16,12,13,.55));
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-photo-badge {
  position: absolute; bottom: 18px; left: 18px; z-index: 2;
  background: rgba(16,12,13,.75); backdrop-filter: blur(6px);
  color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.hero-photo-badge span.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* ============ Sections / features ============ */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow { color: var(--accent-light); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.section-head h2 { font-size: 32px; margin-top: 8px; color: #fff; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 72px 24px; }
.feature-card {
  background: var(--card); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(226,35,26,.13), rgba(179,18,26,.13));
}
.feature-icon svg { width: 26px; height: 26px; color: var(--accent-dark); }
.feature-card h3 { font-size: 17.5px; }
.feature-card p { color: var(--muted); font-size: 14.5px; margin-bottom: .6em; }
.feature-card a { font-weight: 700; font-size: 14px; }

/* ============ CTA band ============ */
.cta-band {
  background: linear-gradient(120deg, var(--accent-dark), var(--accent) 60%, var(--accent-light));
  padding: 52px 0; position: relative; overflow: hidden;
}
.cta-band-inner { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.cta-band h2 { color: #fff; margin-bottom: 4px; font-size: 26px; }
.cta-band .muted { color: rgba(255,255,255,.85); }
.cta-band .btn-cta { background: var(--navy-900); color: #fff; box-shadow: 0 6px 18px rgba(26,20,22,.35); }
.cta-band .btn-cta:hover { background: var(--navy-800); color: #fff; }

/* ============ Footer ============ */
.site-footer { background: var(--navy-950); color: #c9b9b7; padding: 56px 0 22px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 34px; }
.site-footer .logo { margin-bottom: 10px; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.site-footer p { margin: 0 0 9px; font-size: 14.5px; }
.site-footer a { color: #c9b9b7; }
.site-footer a:hover { color: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,.08); margin-top: 34px; padding-top: 20px; font-size: 13px; color: #8a7a78; }

/* ============ Generic page content ============ */
.page-header {
  position: relative; overflow: hidden; color: #fff; padding: 58px 0 66px;
  background: linear-gradient(150deg, var(--navy-950), var(--navy-800) 70%);
}
.page-header::before {
  content: ""; position: absolute; inset: 0; opacity: .45; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 24px 24px; mask-image: radial-gradient(700px 220px at 20% 0%, black, transparent 75%);
}
.page-header h1 { position: relative; color: #fff; margin: 0; font-size: 34px; }
.page-header .crumb { position: relative; color: var(--accent-light); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; display: block; }
.page-body { padding: 52px 0 64px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-bottom: 22px;
}
.card h2 { font-size: 22px; }
.card h3 { font-size: 18px; }

/* form elements */
.card form input[type="text"],
.card form input[type="email"],
.card form input[type="tel"],
.card form input[type="file"],
.card form textarea {
  width: 100%; padding: 12px 14px; margin-bottom: 12px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font-family: var(--font); font-size: 14.5px; color: var(--ink);
  background: #faf7f6; transition: border-color .15s ease, background .15s ease;
}
.card form input:focus, .card form textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.card form label { font-weight: 700; font-size: 13.5px; color: var(--navy-800); }

/* tables (pricing) */
.card table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.card table thead tr { background: var(--navy-900); color: #fff; }
.card table th { padding: 12px 14px; text-align: left; font-weight: 700; }
.card table td { padding: 12px 14px; }
.card table tbody tr { border-bottom: 1px solid var(--line); transition: background .12s ease; }
.card table tbody tr:hover { background: #fbf3f2; }
.card table tbody tr td:first-child { font-weight: 700; color: var(--navy-800); }

/* novosti */
.news-item .news-date {
  display: inline-block; background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.news-item h3 { margin-bottom: 6px; }

/* responsive */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .hero h1 { font-size: 38px; }
}
@media (max-width: 640px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero { padding: 64px 0 80px; }
  .hero h1 { font-size: 30px; }
  .hero .lead { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-orbit { width: 220px; height: 220px; margin-top: 30px; }
  .features { grid-template-columns: 1fr; padding: 48px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 26px; }
}

@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ============ DVR zid (Beograd uzivo) ============ */
.dvr-wall-outer {
  background: #0a0a0a; padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.06);
}
.dvr-wall {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
@media (max-width: 900px) {
  .dvr-wall { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .dvr-wall { grid-template-columns: 1fr; }
}
.dvr-tile { cursor: grab; }
.dvr-tile:active { cursor: grabbing; }
.dvr-tile.dvr-dragging { opacity: .35; }
.dvr-tile.dvr-dragover { outline: 2px dashed var(--accent); outline-offset: -2px; }
.dvr-tile.dvr-expanded {
  position: fixed; top: 72px; left: 0; right: 0; bottom: 0; z-index: 40;
  aspect-ratio: auto; border-radius: 0; border: none; cursor: default;
}
.dvr-tile.dvr-expanded video { object-fit: contain; background: #000; }
.dvr-tile.dvr-expanded .dvr-topbar, .dvr-tile.dvr-expanded .dvr-name { font-size: 14px; padding: 12px 16px; }
.dvr-tile.dvr-expanded .dvr-idnum { top: 12px; right: 16px; font-size: 13px; }
body.dvr-fs-lock { overflow: hidden; }
.dvr-tile {
  position: relative; aspect-ratio: 4 / 3; background: #050505; border-radius: 7px;
  overflow: hidden; border: 1px solid rgba(255,255,255,.08);
}
.dvr-tile video { width: 100%; height: 100%; object-fit: cover; display: block; background: #050505; }
.dvr-tile .dvr-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between;
  align-items: center; padding: 7px 9px; font-family: "Courier New", monospace; font-size: 11px;
  color: #f0f0f0; text-shadow: 0 1px 2px rgba(0,0,0,.8);
  background: linear-gradient(180deg, rgba(0,0,0,.65), transparent);
}
.dvr-tile .dvr-rec { display: flex; align-items: center; gap: 5px; color: #ff3b3b; font-weight: 700; letter-spacing: .04em; }
.dvr-tile .dvr-rec .d { width: 7px; height: 7px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 6px #ff3b3b; animation: livepulse 1.2s ease-in-out infinite; }
.dvr-tile .dvr-clock { opacity: .85; }
.dvr-tile .dvr-name {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 7px 9px;
  font-family: "Courier New", monospace; font-size: 11px; color: #f0f0f0; text-shadow: 0 1px 2px rgba(0,0,0,.8);
  background: linear-gradient(0deg, rgba(0,0,0,.7), transparent);
}
.dvr-tile .dvr-idnum { position: absolute; top: 7px; right: 9px; }
.dvr-tile.dvr-loading::after {
  content: "● ● ●"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.25); font-size: 18px; letter-spacing: 4px; z-index: 1;
}
.dvr-tile.dvr-error .dvr-name::after { content: " · signal lost"; color: #ff8a8a; }
.dvr-legend { display: flex; align-items: center; justify-content: space-between; padding: 10px 4px 4px; color: #8a8a8a; font-family: "Courier New", monospace; font-size: 12px; }

/* ============ Chat widget ============ */
.kbc-chat-toggle {
  position: fixed; right: 24px; bottom: 24px; z-index: 100;
  width: 58px; height: 58px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; font-size: 24px; cursor: pointer;
  box-shadow: 0 10px 26px rgba(226,35,26,.45); transition: transform .15s ease;
  display: flex; align-items: center; justify-content: center;
}
.kbc-chat-toggle:hover { transform: scale(1.07); }
.kbc-chat-toggle svg { width: 26px; height: 26px; }
.kbc-chat-panel {
  position: fixed; right: 24px; bottom: 92px; z-index: 100;
  width: 340px; max-width: calc(100vw - 32px); height: 460px; max-height: 70vh;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.kbc-chat-panel[hidden] { display: none; }
.kbc-chat-header {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); color: #fff; padding: 15px 16px;
  display: flex; align-items: center; justify-content: space-between; font-weight: 700;
}
.kbc-chat-header button {
  background: none; border: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; opacity: .8;
}
.kbc-chat-header button:hover { opacity: 1; }
.kbc-chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #faf7f6; }
.kbc-chat-bubble { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.4; white-space: pre-wrap; }
.kbc-chat-assistant { background: #f3ecec; color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.kbc-chat-user { background: linear-gradient(135deg, var(--blue-500), var(--blue-400)); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.kbc-chat-typing { opacity: .6; }
.kbc-chat-form { display: flex; border-top: 1px solid var(--line); padding: 8px; gap: 8px; background: #fff; }
.kbc-chat-form input { flex: 1; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; font-size: .92rem; font-family: var(--font); }
.kbc-chat-form input:focus { outline: none; border-color: var(--accent); }
.kbc-chat-form button { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; border: none; border-radius: var(--radius-sm); width: 40px; font-size: 16px; cursor: pointer; }
.kbc-chat-verify-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 12px; background: #faf7f6; border-bottom: 1px solid var(--line); font-size: .82rem;
}
.kbc-chat-verify-bar:empty { display: none; }
.kbc-chat-verify-link {
  background: none; border: none; color: var(--accent-dark); font-weight: 700; font-size: .82rem;
  cursor: pointer; padding: 4px 0;
}
.kbc-chat-verify-link:hover { color: var(--accent); }
.kbc-chat-verify-badge { color: #1a7a2e; font-weight: 700; }
.kbc-chat-verify-logout {
  background: none; border: none; color: var(--ink); opacity: .6; font-size: .8rem;
  text-decoration: underline; cursor: pointer;
}
.kbc-chat-verify-logout:hover { opacity: 1; }
.kbc-chat-verify-panel {
  padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #fff;
  border-top: 1px solid var(--line);
}
.kbc-chat-verify-panel[hidden] { display: none; }
.kbc-chat-verify-panel input {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px;
  font-size: .92rem; font-family: var(--font);
}
.kbc-chat-verify-panel input:focus { outline: none; border-color: var(--accent); }
.kbc-chat-verify-hint { font-size: .82rem; color: var(--ink); opacity: .75; margin: 0; }
.kbc-chat-verify-error { color: var(--accent-dark); font-size: .82rem; min-height: 1em; }
.kbc-chat-verify-actions { display: flex; gap: 8px; }
.kbc-chat-verify-primary {
  flex: 1; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff;
  border: none; border-radius: var(--radius-sm); padding: 9px; font-weight: 700; cursor: pointer;
}
.kbc-chat-verify-cancel {
  background: none; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 12px; cursor: pointer; color: var(--ink);
}
@media (max-width: 640px) {
  .kbc-chat-panel { right: 16px; left: 16px; width: auto; bottom: 84px; }
  .kbc-chat-toggle { right: 16px; bottom: 16px; }
}

/* ============ Cenovnik (pricing cards) ============ */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 22px 0;
}
.pricing-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; position: relative; transition: transform .15s ease, box-shadow .15s ease;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card.featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff;
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 5px 14px; border-radius: 20px; white-space: nowrap;
}
.pricing-name { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }
.pricing-speed { color: var(--ink); opacity: .7; font-size: .92rem; margin-bottom: 14px; }
.pricing-price { font-size: 2.1rem; font-weight: 800; color: var(--accent-dark); line-height: 1; }
.pricing-price span { font-size: .95rem; font-weight: 600; opacity: .6; }
.pricing-cta { margin-top: 18px; }
@media (max-width: 780px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
