:root {
  --red: #d43f44;
  --red-dark: #b93338;
  --red-light: #f5d9da;
  --ink: #1c1d21;
  --muted: #6b6e76;
  --paper: #ffffff;
  --soft: #faf4f3;
  --border: #ececec;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */

.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.navbar-wrap.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 16px -12px rgba(28, 29, 33, 0.2);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  position: relative;
}

.navbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  display: block;
  height: 26px;
  width: auto;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.navbar nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}

.navbar nav a:hover {
  color: var(--ink);
}

.navbar nav a:hover::after {
  width: 100%;
}

.navbar nav a.active {
  color: var(--ink);
}

.navbar nav a.active::after {
  width: 100%;
}

.navbar .cta {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.navbar .cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.navbar .cta-mobile { display: none; }

.navbar .menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.navbar .menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 720px) {
  .navbar .cta-desktop { display: none; }
  .navbar .menu-btn { display: block; }

  .navbar nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    background: var(--paper);
    padding: 10px 18px 18px;
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 40px -18px rgba(28, 29, 33, 0.3);
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .navbar nav a {
    width: 100%;
    padding: 10px 2px;
  }

  .navbar-wrap.open nav {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .navbar-wrap.open nav a {
    animation: navLinkIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .navbar-wrap.open nav a:nth-child(1) { animation-delay: 0.04s; }
  .navbar-wrap.open nav a:nth-child(2) { animation-delay: 0.08s; }
  .navbar-wrap.open nav a:nth-child(3) { animation-delay: 0.12s; }
  .navbar-wrap.open nav a:nth-child(4) { animation-delay: 0.16s; }
  .navbar-wrap.open nav a:nth-child(5) { animation-delay: 0.20s; }

  .navbar-wrap.open .cta-mobile { display: inline-flex; margin-top: 6px; }

  .navbar-wrap.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navbar-wrap.open .menu-btn span:nth-child(2) { opacity: 0; }
  .navbar-wrap.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@keyframes navLinkIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero */

.hero {
  text-align: center;
  padding: 56px 24px 48px;
  max-width: 820px;
  margin: 0 auto;
}

.hero .tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.15s both;
}

h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s both;
}

h1 span { color: var(--red); }

.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 640px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.45s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Generic scroll-reveal (applies fadeUp once an element enters the viewport) */

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.revealed {
  animation: fadeUp 0.6s ease both;
}

/* Offer strip — flat, static, works identically on touch and desktop */

.offer-strip-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 36px auto 0;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.55s both;
}

.offer-strip {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 14px;
  margin: 18px auto 0;
  width: 100%;
  max-width: 720px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.6s both;
}

.offer-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 16px;
  flex: 1 1 0;
  min-width: 0;
  text-align: left;
  box-shadow: 0 12px 24px -18px rgba(28, 29, 33, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offer-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px -16px rgba(28, 29, 33, 0.3);
}

.offer-chip .pct {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--red);
}

.offer-chip .label {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero .offer-strip-sources {
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
  opacity: 0;
  max-width: 100%;
  white-space: nowrap;
  margin: 28px auto 0;
  animation: fadeUp 0.6s ease 0.7s both;
}

/* How it works — 4 cards */

.band {
  background: var(--soft);
  padding: 64px 24px;
}

.grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .offer-strip { flex-wrap: wrap; }
  .offer-chip { flex: 1 1 150px; min-width: 150px; }
  .hero .offer-strip-sources { white-space: normal; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 28px;
  opacity: 0;
  transform: translateY(18px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card.revealed {
  animation: fadeUp 0.6s ease both;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px -20px rgba(28, 29, 33, 0.18);
  border-color: transparent;
}

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--red-light);
  color: var(--red);
  margin-bottom: 18px;
}

.card .icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0;
}

/* Status */

.section {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}

.section h2 {
  font-size: 1.5rem;
  margin: 0 0 16px;
}

.section p {
  color: var(--muted);
}

.status-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  color: var(--red-dark);
  font-weight: 600;
}

.status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Footer */

footer {
  border-top: 1px solid var(--border);
  background: var(--soft);
}

.footer-top {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

.footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.footer-brand .brand-logo {
  height: 22px;
}

.footer-col p.desc {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 240px;
  margin: 0;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--red);
}

.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #9a9ca3;
  font-size: 0.78rem;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Legal pages (Uslovi korišćenja, Politika privatnosti) */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin: 0 0 6px;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 40px;
}

.legal .company {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 0 0 40px;
  font-size: 0.94rem;
  color: var(--muted);
}

.legal .company strong {
  color: var(--ink);
}

.legal a {
  color: var(--red);
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

.legal section {
  margin-bottom: 34px;
}

.legal h2 {
  font-size: 1.1rem;
  margin: 0 0 12px;
}

.legal p {
  color: var(--muted);
  margin: 0 0 12px;
}

.legal ul {
  color: var(--muted);
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal li {
  margin-bottom: 6px;
}

.legal .signature {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-weight: 700;
}
