:root{
  --bg: #f6f8fb;
  --dark: #0f172a;
  --text: #1e293b;
  --muted: #475569;

  --primary: #e10600;
  --primary-dark: #b30000;

  --card: #ffffff;
  --border: #e2e8f0;

  --shadow-soft: 0 10px 22px rgba(15,23,42,0.06);
  --shadow-strong: 0 30px 70px rgba(15,23,42,0.12);
}

*,
*::before,
*::after{ box-sizing:border-box; }

html, body{ height:100%; }

body{
  margin:0;
  font-family:'Inter', sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}

/* ================= TOPBAR ================= */

.topbar{
  position:sticky;
  top:0;
  z-index:80;
  background:#ffffff;
  border-bottom:1px solid rgba(226,232,240,0.9);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:var(--dark);
  font-weight:900;
  min-width:0;
}

.brand-logo{
  height:98px; /* desktop header */
  width:auto;
  display:block;
  flex:0 0 auto;
}

.brand-sub{
  font-size:12px;
  letter-spacing:1px;
  color:rgba(71,85,105,0.95);
  font-weight:800;
  white-space:nowrap;
}

.topbar-cta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  flex:0 0 auto;
}

.topbar-phone{
  text-decoration:none;
  font-weight:900;
  color:var(--dark);
  white-space:nowrap;
}

/* ================= HERO ================= */

.hero{
  position:relative;
  padding:84px 0 70px;
  overflow:hidden;
}

/* grid + glow */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(15,23,42,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.05) 1px, transparent 1px);
  background-size:40px 40px;
  opacity:0.65;
  pointer-events:none;
  mask-image: radial-gradient(closest-side at 50% 28%, rgba(0,0,0,1), rgba(0,0,0,0));
}

.hero::after{
  content:"";
  position:absolute;
  width:560px;
  height:560px;
  left:-140px;
  top:-190px;
  background:
    radial-gradient(circle at 30% 30%, rgba(225,6,0,0.30), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(255,31,47,0.15), transparent 55%);
  filter:blur(34px);
  opacity:0.85;
  pointer-events:none;
}

.hero-inner{
  display:flex;
  gap:60px;
  align-items:flex-start;
  position:relative;
  z-index:1;
}

.hero-copy{ flex:1; }

.pill{
  display:inline-flex;
  align-items:center;
  padding:6px 14px;
  border-radius:999px;
  background:#eef2ff;
  color:#334155;
  font-size:13px;
  margin-bottom:18px;
}

h1{
  font-size:46px;
  line-height:1.15;
  margin:0 0 10px 0;
  font-weight:900;
  color:var(--dark);
}

.free-badge{
  display:inline-flex;
  align-items:center;
  padding:8px 16px;
  border-radius:999px;
  background:rgba(225,6,0,0.12);
  color:#b30000;
  font-weight:900;
  letter-spacing:0.10em;
  font-size:12px;
  margin:10px 0 18px;
  border:1px solid rgba(225,6,0,0.25);
}

.lead{
  font-size:18px;
  margin:0 0 14px 0;
  color:rgba(71,85,105,0.98);
}

.muted{
  color:rgba(71,85,105,0.98);
  font-size:14px;
}

.aeo-note{
  margin: 8px 0 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15,23,42,0.04);
  border: 1px solid rgba(15,23,42,0.06);
  color: rgba(71,85,105,0.98);
  font-size: 13px;
}

.ticks{
  list-style:none;
  padding:0;
  margin:22px 0 18px;
}

.ticks li{
  position:relative;
  padding-left:24px;
  margin-bottom:10px;
}

.ticks li::before{
  content:"";
  width:8px;
  height:8px;
  background:var(--primary);
  position:absolute;
  left:0;
  top:10px;
  border-radius:50%;
}

.mini-proof{ margin-top:18px; }

.badge{
  display:inline-block;
  padding:6px 12px;
  font-size:12px;
  border-radius:999px;
  background:#f1f5f9;
  margin-right:8px;
  border:1px solid rgba(226,232,240,0.9);
}

/* ================= CARD (FORM) ================= */

.card{
  width:420px;
  background:var(--card);
  padding:34px;
  border-radius:20px;
  border:1px solid rgba(15,23,42,0.08);
  box-shadow: var(--shadow-strong);
}

.card h2{
  margin:0 0 6px 0;
  color:var(--dark);
}

.field{
  display:block;
  margin-bottom:14px;
}

.field span{
  display:block;
  font-size:13px;
  margin-bottom:6px;
  color:rgba(71,85,105,0.98);
  font-weight:800;
}

.field input{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(226,232,240,0.95);
  font-size:14px;
  background:#fff;
}

.field input:focus{
  outline:none;
  border-color:rgba(225,6,0,0.55);
  box-shadow:0 0 0 4px rgba(225,6,0,0.12);
}

.consent{
  display:flex;
  gap:10px;
  font-size:13px;
  margin:14px 0 14px;
  color:rgba(71,85,105,0.98);
}

.consent a{
  color:#0b62ff;
  text-decoration:underline;
}

.btn{
  width:100%;
  padding:15px;
  border-radius:14px;
  border:none;
  background:var(--primary);
  color:#fff;
  font-weight:900;
  letter-spacing:0.02em;
  cursor:pointer;
  transition:all 0.25s ease;
}

.btn:hover{
  background:var(--primary-dark);
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(225,6,0,0.25);
}

.btn:disabled{
  opacity:0.65;
  transform:none;
  box-shadow:none;
  cursor:not-allowed;
}

.btn.secondary{
  background:#0f172a;
}

.btn.secondary:hover{
  background:#1e293b;
  box-shadow:0 12px 30px rgba(15,23,42,0.20);
}

.microcopy{
  margin-top:10px;
  font-size:12px;
  color:rgba(71,85,105,0.98);
}

.smallprint{
  margin-top:12px;
  font-size:12px;
  color:rgba(71,85,105,0.98);
}

.smallprint a{
  color:#0b62ff;
  text-decoration:underline;
}

.hp{ display:none; }

.form-msg{
  margin-top:12px;
  font-size:13px;
  line-height:1.4;
}

/* ================= SECTIONS ================= */

.section{ padding:78px 0; }

.section.soft{
  background:#ffffff;
  border-top:1px solid rgba(226,232,240,0.65);
  border-bottom:1px solid rgba(226,232,240,0.65);
}

.section-title{
  text-align:center;
  font-size:28px;
  margin:0 0 40px 0;
  color:var(--dark);
}

.cards{
  display:flex;
  gap:30px;
}

.info-card{
  flex:1;
  background:#ffffff;
  padding:30px;
  border-radius:20px;
  border:1px solid rgba(226,232,240,0.95);
  box-shadow: var(--shadow-soft);
}

.info-card h4{
  margin:0 0 8px 0;
  color:var(--dark);
}

.split{
  display:flex;
  gap:60px;
  align-items:flex-start;
}

.cta-box{ width:420px; max-width:100%; }

/* ======== BLUE BOXES (bar layout) ======== */

.cta-box-inner{
  width:420px;
  max-width:100%;
  background: linear-gradient(180deg, #121a2f 0%, #0f172a 100%);
  color:#fff;
  padding:26px;
  border-radius:20px;
  box-shadow: 0 20px 40px rgba(15,23,42,0.20);
  border:1px solid rgba(255,255,255,0.08);
}

.kpi-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px 16px;
  border-radius:16px;
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.08);
  margin-bottom:14px;
  min-height:68px;
}

.kpi-left{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.kpi-num{
  font-size:22px;
  font-weight:900;
  letter-spacing:0.01em;
}

.kpi-text{
  font-size:13px;
  opacity:0.85;
}

/* White CTA in blue box */
.cta-white{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  padding:15px 16px;
  border-radius:16px;
  background:#ffffff;
  color:#0f172a;
  font-weight:900;
  text-decoration:none;
  margin-top:10px;
  transition:all 0.25s ease;
  border:1px solid rgba(255,255,255,0.65);
}

.cta-white:hover{
  background:#e2e8f0;
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(0,0,0,0.18);
}

/* ================= FOOTER ================= */

.footer{
  background:#0f172a;
  color:#cbd5e1;
  padding:50px 0;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:40px;
}

.footer-left{ display:flex; flex-direction:column; gap:8px; }

.footer-brand .brand-logo{
  height:56px; /* footer */
  width:auto;
}

.footer-meta{
  font-size:14px;
  color:#94a3b8;
}

.footer-meta a{
  color:#cbd5e1;
  text-decoration:none;
}
.footer-meta a:hover{ text-decoration:underline; }

.dot{
  margin:0 8px;
  opacity:0.7;
}

.footer-right{
  font-size:14px;
  color:#94a3b8;
  text-align:right;
}

/* ================= MODAL THANK YOU ================= */

.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:200;
}

.modal.open{ display:block; }

.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,0.62);
  backdrop-filter: blur(6px);
}

.modal-card{
  position:relative;
  width:min(560px, calc(100% - 28px));
  margin: 12vh auto 0;
  background:#ffffff;
  border-radius:22px;
  border:1px solid rgba(15,23,42,0.10);
  box-shadow: 0 40px 100px rgba(15,23,42,0.25);
  padding:26px 26px 22px;
}

.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:10px;
}

.modal-logo{
  height:44px;
  width:auto;
  display:block;
}

.modal-close{
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(226,232,240,0.95);
  background:#fff;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  color:var(--dark);
  text-decoration:none;
}

.modal-close:hover{ background:#f1f5f9; }

.modal-actions{
  display:flex;
  gap:12px;
  margin-top:16px;
}

.modal-actions .btn{
  width:auto;
  flex:1;
}

.modal-note{
  margin-top:12px;
  font-size:12px;
  opacity:0.9;
}

body.modal-open{ overflow:hidden; }

/* ================= RESPONSIVE ================= */

@media (max-width:1024px){
  .hero-inner,
  .cards,
  .split{ flex-direction:column; }

  .card,
  .cta-box,
  .cta-box-inner{ width:100%; }
}

/* MOBILE HEADER FIX: uredni razmaci i raspored */
@media (max-width:640px){
  .container{ padding:0 16px; }

  .topbar-inner{
    align-items:flex-start;
    padding:10px 0;
    gap:12px;
  }

  .brand{
    gap:10px;
  }

  .brand-logo{
    height:64px; /* mob: manji, ali uredan */
  }

  .brand-sub{
    font-size:11px;
    letter-spacing:0.9px;
    margin-top:6px; /* da ne stoji preblizu logu */
  }

  .topbar-cta{
    margin-top:10px; /* odvoji broj od audit teksta */
  }

  .topbar-phone{
    font-size:14px;
  }

  h1{ font-size:34px; }
  .card{ padding:26px; }
  .modal-actions{ flex-direction:column; }
}

/* extra small: header prebacujemo u 2 reda (da ne bude zbijeno) */
@media (max-width:420px){
  .topbar-inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .topbar-cta{
    margin-top:6px;
  }
  .brand-logo{ height:60px; }
  .topbar-phone{ font-size:15px; }
}
