@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --bg: #0B0F14;
  --panel: #0F1A24;
  --panel2: #071017;
  --accent: #19E6D2;
  --accent2: #11b5a5;
  --text: #EDEDED;
  --muted: #B0B0B0;
  --muted2: #7f8a95;
  --ring: rgba(25, 230, 210, 0.55);
  --shadow: 0 18px 50px rgba(0,0,0,0.45);
  --radius: 18px;
  --navH: 80px; /* Osnovna visina navigacije */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle grid background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.28;
  pointer-events: none;
  z-index: -2;
}

/* Teal glow blob */
body::after {
  content: "";
  position: fixed;
  width: 900px;
  height: 900px;
  left: -240px;
  top: -260px;
  background: radial-gradient(circle at 30% 30%, rgba(25,230,210,0.22) 0%, rgba(25,230,210,0.04) 35%, transparent 60%);
  filter: blur(2px);
  pointer-events: none;
  z-index: -1;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding: 54px 20px 30px;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: rgba(25,230,210,0.85);
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1.05;
}

.tagline {
  margin: 10px 0 12px;
  font-size: 18px;
  color: rgba(237,237,237,0.92);
}

.intro {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 62ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.10);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.btn.primary {
  background: rgba(25,230,210,0.12);
  color: var(--text);
  border-color: rgba(25,230,210,0.40);
  box-shadow: 0 0 0 rgba(25,230,210,0);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(25,230,210,0.35);
  border-color: rgba(25,230,210,0.68);
}

.btn.ghost {
  background: rgba(255,255,255,0.04);
  color: var(--muted);
}

.btn.ghost:hover {
  transform: translateY(-2px);
  color: var(--text);
  border-color: rgba(255,255,255,0.18);
}

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.badge {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.badge strong {
  display: block;
  font-size: 18px;
  color: rgba(25,230,210,0.95);
}

.badge span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* PHONE DEMO */
.hero-device {
  display: grid;
  justify-items: center;
}

.device-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted2);
}

.phone {
  width: min(360px, 92vw);
  height: 680px;
  border-radius: 44px;
  background: linear-gradient(180deg, #0b0f14 0%, #0a121a 100%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
  position: relative;
  overflow: hidden;
}

.phone-top {
  height: 26px;
  position: relative;
}

.phone-notch {
  width: 130px;
  height: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
}

.phone-screen {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 14px;
  bottom: 18px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 30% 25%, rgba(25,230,210,0.18), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.78), rgba(0,0,0,0.90));
  border: 1px solid rgba(255,255,255,0.08);
  overflow-y: auto;
  scrollbar-width: none;
}

.phone-screen::-webkit-scrollbar { display: none; }

.appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 8px;
}

.appbar-left, .appbar-right { display: flex; gap: 10px; align-items: center; }

.app-ico {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-size: 14px;
}

.app-hero {
  display: grid;
  justify-items: center;
  padding: 4px 14px 10px;
}

.app-logo-wrap {
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(25,230,210,0.35), rgba(25,230,210,0.12) 45%, rgba(255,255,255,0.04) 70%);
  border: 1px solid rgba(25,230,210,0.28);
  box-shadow: 0 0 28px rgba(25,230,210,0.22);
  display: flex;           /* FIX: Centriranje */
  align-items: center;     /* FIX: Centriranje */
  justify-content: center;  /* FIX: Centriranje */
  overflow: hidden;
  position: relative;
}

.app-logo {
  width: 100%;            /* FIX: Skaliranje */
  height: 100%;           /* FIX: Skaliranje */
  object-fit: cover;
  transform: none;        /* FIX: Uklonjen translate koji je kvario centar */
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.55));
}

.app-title {
  font-family: Pacifico, cursive;
  font-size: 44px;
  margin-top: 10px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 10px 24px rgba(0,0,0,0.65);
}

.city-list {
  padding: 12px 16px 18px;
  display: grid;
  gap: 12px;
}

.city-btn {
  width: 100%;
  padding: 16px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16,74,74,0.95), rgba(8,55,56,0.95));
  border: 1px solid rgba(25,230,210,0.20);
  color: rgba(255,255,255,0.95);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;

  /* FIX ZA MOBILNI: Sprečava bagove pri dugom pritisku */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.city-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(25,230,210,0.45);
  box-shadow: 0 0 18px rgba(25,230,210,0.18);
}

.city-btn:active {
  transform: translateY(0px) scale(0.99);
}

.city-btn.is-active {
  border-color: rgba(25,230,210,0.85);
  box-shadow:
    0 0 0 1px rgba(25,230,210,0.35),
    0 0 26px rgba(25,230,210,0.40),
    inset 0 0 14px rgba(25,230,210,0.14);
  background: linear-gradient(180deg, rgba(20,104,100,0.95), rgba(8,66,68,0.95));
}

.app-footer {
  padding: 18px 16px 28px;
  text-align: center;
  color: rgba(255,255,255,0.72);
}

.app-footer-title {
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 12px;
  opacity: 0.7;
}

.app-footer-sub { font-size: 12px; opacity: 0.65; margin-top: 8px; }

.app-footer-mail {
  display: inline-block;
  margin-top: 6px;
  color: rgba(25,230,210,0.95);
  text-decoration: none;
  font-weight: 600;
}

.app-footer-mail:hover { text-decoration: underline; }

.app-footer-copy { margin-top: 10px; font-size: 11px; opacity: 0.5; }

.phone-home-indicator {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 140px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--navH);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 14px 14px;
  background: rgba(7,16,23,0.78);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav a {
  color: rgba(176,176,176,0.92);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transition: transform 160ms ease, box-shadow 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease;
  font-size: 13px;
  font-weight: 600;
}

.nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(25,230,210,0.35);
  box-shadow: 0 0 18px rgba(25,230,210,0.16);
  color: rgba(237,237,237,0.95);
}

.nav a.is-active {
  border-color: rgba(25,230,210,0.70);
  background: rgba(25,230,210,0.10);
  color: rgba(237,237,237,0.98);
  box-shadow: 0 0 18px rgba(25,230,210,0.22);
}

/* Specijalni stil za Facts dugme */
.nav-facts {
  position: relative;
  overflow: hidden;
}

.nav-facts::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(25, 230, 210, 0.2), transparent);
  transition: 0.5s;
}

.nav-facts:hover::after {
  left: 100%;
}

/* CONTENT */
.content {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 18px 50px;
}

.section {
  margin-bottom: 36px;
  padding: 20px 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: var(--shadow);
  
  /* Osnovni offset za desktop */
  scroll-margin-top: calc(var(--navH) + 20px);
}

/* DODATNI FIX ZA MOBILNI OFFSET - Znatno povećan da ne prekriva naslov */
@media (max-width: 600px) {
  .section {
    /* Povećano na 220px da bi naslov bio sigurno ispod navigacije (oko 3 reda slobodna) */
    scroll-margin-top: 220px; 
  }
}

.section h2 {
  margin: 0 0 8px;
  font-size: 26px;
  color: rgba(25,230,210,0.96);
}

.section h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  color: rgba(237,237,237,0.92);
}

.section p { color: rgba(176,176,176,0.95); }

.section ul {
  padding-left: 18px;
  margin: 10px 0 0;
}

.section li { margin: 8px 0; color: rgba(176,176,176,0.95); }

.timeline { display: grid; gap: 12px; }

.phase {
  background: rgba(15,26,36,0.65);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid rgba(25,230,210,0.85);
  border-radius: 14px;
  padding: 14px 14px;
}

.phase h3 { margin: 0 0 6px; color: rgba(25,230,210,0.92); }

.note {
  margin-top: 14px;
  font-style: italic;
  color: rgba(176,176,176,0.85);
}

.cta-button {
  display: inline-flex;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(25,230,210,0.12);
  border: 1px solid rgba(25,230,210,0.55);
  color: rgba(237,237,237,0.96);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(25, 230, 210, 0.12);
}

.cta-button:hover {
  border-color: rgba(25,230,210,0.80);
  box-shadow: 0 0 24px rgba(25,230,210,0.22);
  transform: translateY(-1px);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.reveal-in {
  opacity: 1;
  transform: translateY(0px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 26px 18px;
  background: rgba(7,16,23,0.72);
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(176,176,176,0.80);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }
  .hero-device { order: 2; }
  .hero-badges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  :root { --navH: 90px; }
  .hero-badges { grid-template-columns: 1fr; }
  .phone { height: 640px; }
}