:root {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.85);
  --line: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-light: #eff6ff;
  --success-bg: #f0fdf4;
  --success-text: #166534;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(96, 165, 250, 0.05) 0px, transparent 50%);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Page Shell / Layout */
.page-shell {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px;
}

/* Header */
.site-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.brand-copy span {
  font-size: 0.75rem;
  color: var(--muted);
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
}

.site-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  text-align: center;
}

.site-nav a:hover, .site-nav a:focus {
  background: var(--brand-light);
  color: var(--brand);
}

/* Hero sekcija */
.hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 16px 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 16px;
}

.eyebrow-divider {
  width: 4px;
  height: 4px;
  background: var(--brand);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero p {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  width: 100%;
}

.button-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.button-primary:hover {
  background: var(--brand-dark);
}

.button-secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--bg-alt);
}

.hero-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

.hero-badges span {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-badges span::before {
  content: "✓";
  color: var(--brand);
  font-weight: 800;
}

/* Hero Visual */
.hero-visual {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.visual-card-primary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.hero-logo {
  max-height: 140px;
  width: auto;
  margin: 0 auto 20px;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.visual-grid div, .stats-panel div {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: var(--radius-md);
}

.metric-label, .stats-panel span {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: block;
}

.visual-grid strong, .stats-panel strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.floating-chip {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* Sekcije zajedničko */
.section {
  padding: 32px 0;
}

.section-heading {
  margin-bottom: 24px;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* O Projektu */
.content-grid-large {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: var(--radius-xl);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.info-panel p + p {
  margin-top: 12px;
}

.stats-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.stats-panel strong {
  font-size: 1.8rem;
  color: var(--brand);
}

/* Funkcije Grid */
.feature-grid, .team-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-card, .team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.feature-card h3, .team-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p, .team-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Uspeh Banner */
.achievement-banner {
  background: var(--success-bg);
  border: 1px solid rgba(22, 101, 52, 0.15);
  padding: 24px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.achievement-banner h2 {
  color: var(--success-text);
  font-size: 1.4rem;
}

.achievement-banner p {
  color: var(--success-text);
  opacity: 0.9;
  font-size: 0.95rem;
}

/* Tim Sekcija */
.team-avatar {
  width: 48px;
  height: 48px;
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

/* Kontakt Sekcija (Čista CTA kutija bez forme) */
.contact-section {
  padding-bottom: 16px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  align-items: center;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
}

.contact-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  width: 100%;
}

.contact-pill-primary {
  background: var(--brand-light);
  color: var(--brand-dark);
  border-color: transparent;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  align-items: center;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin: 0 auto 8px;
}

.footer-brand p, .footer-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Efekat pojavljivanja (Reveal) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------- */
/* DESKTOP OPTIMIZACIJA (Ekran veći od 768px)          */
/* --------------------------------------------------- */
@media (min-width: 768px) {
  .page-shell {
    padding: 32px 24px;
  }

  .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
    border-radius: 999px;
  }

  .site-nav {
    display: flex;
    width: auto;
    gap: 24px;
  }

  .site-nav a {
    background: transparent;
    padding: 4px 0;
    font-size: 0.9rem;
  }
  
  .site-nav a:hover {
    background: transparent;
    box-shadow: inset 0 -2px 0 var(--brand);
  }

  .hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    padding: 48px 0;
  }

  .hero-actions {
    flex-direction: row;
    width: auto;
  }

  .button {
    width: auto;
    padding: 0 32px;
  }

  .hero-badges {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .visual-card-primary {
    padding: 28px;
  }

  .content-grid-large {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
  }

  .stats-panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-grid, .team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .achievement-banner {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    padding: 36px;
  }

  .contact-card {
    padding: 48px;
  }

  .contact-pills {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }

  .contact-pill {
    width: auto;
    padding: 0 28px;
  }

  .site-footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }
  
  .footer-logo {
    margin: 0 0 4px 0;
  }
}