:root{
  --accent: #00C6DC;

  --bg: #f6fcfe;
  --text: #0b0f12;
  --muted: rgba(11,15,18,.65);

  --border: rgba(0,198,220,.30);
  --shadow: 0 18px 55px rgba(0,0,0,.12);

  --ok: #16a34a;
  --bad: #dc2626;

  --radius: 18px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

@font-face{
  font-family: "CIPFont";
  src: url("fonts/FF\ DIN\ Round\ Pro\ Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "CIPFont";
  src: url("fonts/FF\ DIN\ Round\ Pro\ Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "CIPFont";
  src: url("fonts/FF\ DIN\ Round\ Pro\ Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "CIPFont";
  src: url("fonts/FF\ DIN\ Round\ Pro\ Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "CIPFont";
  src: url("fonts/FF\ DIN\ Round\ Pro\ Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

body{
  margin: 0;
  min-height: 100vh;
  font-family: "CIPFont", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow: hidden; /* sprečava scroll dok je tura aktivna */
}

button, input, textarea, select{ font: inherit; }

/* ═══════════════════════════════
   LANDING SEKCIJA
═══════════════════════════════ */

.hero{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px 18px;
  position: relative;
  overflow: hidden;

  /* Fade-out tranzicija */
  opacity: 1;
  transition: opacity 0.35s ease;
}

/* Klasa koja se dodaje JS-om pri zatvaranju landing-a */
.hero.fading{
  opacity: 0;
  pointer-events: none;
}

.heroBg{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(0,198,220,.20), transparent 60%),
    radial-gradient(820px 520px at 85% 30%, rgba(0,198,220,.12), transparent 62%),
    radial-gradient(700px 520px at 50% 105%, rgba(0,198,220,.10), transparent 55%),
    #f6fcfe;
  background-repeat: no-repeat;
  z-index: 0;
}

.heroInner{
  width: min(720px, 100%);
  position: relative;
  z-index: 1;
  padding: 18px;
}

.heroHeader{
  text-align: left;
  margin-bottom: 16px;
}

.accentLine{
  height: 6px;
  width: 110px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(0,198,220,.35));
  margin-bottom: 12px;
}

.heroHeader h1{
  margin: 0 0 6px 0;
  font-size: clamp(22px, 3.2vw, 34px);
  letter-spacing: .2px;
}

.heroHeader p{
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 62ch;
}

.heroForm{
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  display: grid;
  gap: 14px;
}

.field label{
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: rgba(11,15,18,.88);
}

.req{ color: var(--accent); font-weight: 900; }

.field input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,198,220,.30);
  background: rgba(0,198,220,.06);
  color: var(--text);
  outline: none;
}

.field input::placeholder{ color: rgba(11,15,18,.45); }

.field input:focus{
  border-color: rgba(0,198,220,.75);
  box-shadow: 0 0 0 4px rgba(0,198,220,.18);
  background: rgba(0,198,220,.08);
}

.actions{
  display: flex;
  justify-content: flex-start;
  margin-top: 2px;
}

.btn{
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 900;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, var(--accent), rgba(0,198,220,.75));
  box-shadow: 0 14px 36px rgba(0,198,220,.18);
  transition: transform .07s ease, filter .15s ease, opacity .15s ease;
  min-width: 160px;
}

.btn:hover{ filter: brightness(1.03); }
.btn:active{ transform: translateY(1px); }
.btn[disabled]{ opacity: .55; cursor: not-allowed; box-shadow: none; }

.status{
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(0,198,220,.32);
  background: rgba(0,198,220,.06);
  color: rgba(11,15,18,.78);
}

.status.ok{
  border-color: rgba(22,163,74,.45);
  color: rgba(11,15,18,.92);
}

.status.err{
  border-color: rgba(220,38,38,.55);
  color: rgba(11,15,18,.92);
}

.heroFooter{
  margin-top: 14px;
}

.miniNote{
  font-size: 12px;
  color: rgba(11,15,18,.55);
}

/* ═══════════════════════════════
   TURA SEKCIJA
═══════════════════════════════ */

.tourSection{
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #000;

  /* Počinje nevidljivo i van ekrana */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

/* Klasa koja se dodaje JS-om za prikaz ture */
.tourSection.active{
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s linear 0s;
}

.tourFrame{
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */

@media (max-width: 460px){
  .heroInner{ padding: 12px; }
  .btn{ width: 100%; min-width: auto; }
}
