:root {
  --bg: #0d1520;
  --text: #eef2f6;
  --muted: #9fb0c0;
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.15);
  --accent: #d9c38c;                      /* šampanj — glavni akcenat (brend) */
  --accent-soft: rgba(217, 195, 140, 0.14);
  --accent-2: #3fb3a3;                     /* tirkizna — sporedni, medicinski */
  --accent-2-soft: rgba(63, 179, 163, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 70% 30%, rgba(80,120,170,0.35), transparent 60%),
    linear-gradient(160deg, #0d1520 0%, #16202e 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* aurora — spori obojeni ambijent iza svega */
body::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;              /* iza graina (-1) i iza sadržaja */
  pointer-events: none;
  background:
    radial-gradient(40% 40% at 25% 30%, rgba(217,195,140,0.10), transparent 70%),
    radial-gradient(45% 45% at 75% 35%, rgba(63,179,163,0.12), transparent 70%),
    radial-gradient(50% 50% at 55% 75%, rgba(80,120,170,0.16), transparent 70%);
  filter: blur(40px);
  animation: aurora 32s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1); }
  50%  { transform: translate3d(3%, 2%, 0)   scale(1.08); }
  100% { transform: translate3d(-2%, 3%, 0)  scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}


.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.2s, opacity 0.2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #f4f7fa; color: #0d1520; }
.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text);
}

.hero { padding: 5rem 3rem 8rem; max-width: 1400px; margin: 0 auto; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--accent);     /* bilo var(--muted) */
  margin-bottom: 1.5rem;
}
h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}
h1 .muted { color: var(--muted); }
.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 32ch;
  margin: 1.5rem 0 2rem;
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }

.stats { display: flex; gap: 1rem; flex-wrap: wrap; }
.stat {
  padding: 1.25rem 1.75rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  min-width: 160px;
}
.stat .num { font-size: 1.75rem; font-weight: 600; }
.stat .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-top: 0.4rem;
}

@media (max-width: 768px) {
  .hero { padding: 3rem 1.5rem 5rem; }
  .stats { flex-direction: column; }
  .stat { width: 100%; }
}

/* === UNUTRAŠNJE STRANE === */
.page { max-width: 1400px; margin: 0 auto; padding: 3rem; }
.page-header { padding: 3rem 0 4rem; }
.page-header h1 { font-size: clamp(2.5rem, 6vw, 4rem); }

.section { margin-bottom: 3rem; max-width: 70ch; }
.section h2 { font-size: 1.6rem; font-weight: 500; margin-bottom: 1rem; }
.prose { color: var(--muted); line-height: 1.7; font-size: 1.05rem; }

/* === KARTICE PROGRAMA === */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.feature-card { padding: 2rem; border-radius: 16px; }
.card-num { font-size: 0.8rem; color: var(--muted); }
.feature-card h3 { font-size: 1.5rem; font-weight: 500; margin: 0.5rem 0 0.75rem; }
.feature-card p { color: var(--muted); line-height: 1.6; }
@media (max-width: 768px) { .card-grid { grid-template-columns: 1fr; } }

/* === KONTAKT === */
.contact-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; align-items: start; }
.form { padding: 2rem; border-radius: 16px; display: flex; flex-direction: column; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.field input, .field textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px; padding: 0.8rem 1rem;
  color: var(--text); font-family: inherit; font-size: 1rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(255,255,255,0.4); }
.form button { align-self: flex-start; border: none; }
.contact-info { padding: 2rem; border-radius: 16px; }
.contact-info h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 1rem; }
.contact-info a { display: block; color: var(--text); text-decoration: none; margin-bottom: 0.6rem; }
.contact-info a:hover { opacity: 0.8; }
.muted-text { color: var(--muted); font-size: 0.85rem; margin-top: 1rem; }
@media (max-width: 768px) { .contact-wrap { grid-template-columns: 1fr; } }

/* === BLOG GRID === */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.blog-card { border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.blog-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.blog-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.blog-card:hover .blog-media img { transform: scale(1.04); }
.blog-body { padding: 1.25rem; }
.blog-body h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.5rem; line-height: 1.3; }
.blog-body h3 a { color: var(--text); text-decoration: none; }
.blog-body h3 a:hover { opacity: 0.75; }
.blog-body p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
@media (max-width: 1100px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .blog-grid { grid-template-columns: 1fr; } }

/* === DETALJNA STRANA === */
.post { max-width: 760px; margin: 0 auto; }
.back { color: var(--muted); text-decoration: none; font-size: 0.9rem; display: inline-block; margin-bottom: 1.5rem; }
.back:hover { color: var(--text); }
.post h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.post-hero { width: 100%; border-radius: 16px; margin-bottom: 2rem; aspect-ratio: 16 / 9; object-fit: cover; }

/* === TELO ČLANKA === */
.post-body { max-width: 72ch; margin: 2.5rem auto 0; }
.post-body > *:first-child { margin-top: 0; }
.post-body > p:first-of-type {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text);
  opacity: 0.92;
  text-align: left;
}
.post-body h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin: 3.25rem 0 1rem;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: 0.01em;
}
.post-body h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-bottom: 0.9rem;
  background: var(--accent);
  opacity: 0.85;
}
.post-body p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
  text-align: justify;
  hyphens: auto;
}
.post-body strong { color: var(--text); font-weight: 600; }
.post-body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--accent); }

.post-body ul {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.post-body ul li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
  line-height: 1.7;
  text-align: left;
}
.post-body ul li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.9;
}
.post-body ul li strong { color: var(--text); font-weight: 600; }

.post-fig { margin: 2.5rem auto; max-width: 440px; }
.post-fig img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
}
.post-fig figcaption {
  text-align: center; color: var(--muted);
  font-size: 0.85rem; margin-top: 0.6rem; font-style: italic;
}

/* === PRAVNA STRANA === */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; margin-bottom: 1.5rem; }
.legal-section { margin: 2.5rem 0; }
.legal-section h2 { font-size: 1.3rem; font-weight: 500; margin-bottom: 1rem; }
.legal .prose { margin-bottom: 1.1rem; }
.legal-note { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--glass-border); font-size: 0.9rem; color: var(--muted); }

/* === ANCESTRY AI === */
.example {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--glass-border);
  color: var(--text);
  font-style: italic;
  opacity: 0.85;
  font-size: 0.95rem;
}
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.benefit-card { padding: 1.75rem; border-radius: 16px; }
.benefit-card h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 0.6rem; }
.benefit-card p { color: var(--muted); line-height: 1.6; font-size: 0.95rem; }
@media (max-width: 768px) { .benefit-grid { grid-template-columns: 1fr; } }

/* === DISCLAIMER BLOK === */
.disclaimer { padding: 1.75rem 2rem; border-radius: 16px; max-width: 70ch; }
.disclaimer p { color: var(--muted); line-height: 1.7; font-size: 0.9rem; margin-bottom: 0.9rem; }
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer strong { color: var(--text); }

/* === Q&A / ACCORDION (globalno, za sve strane) === */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border-radius: 14px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; cursor: pointer;
  background: none; border: none; color: var(--text);
  font-family: inherit; font-size: 1.05rem;
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-icon {
  font-size: 1.5rem; font-weight: 300; line-height: 1;
  transition: transform 0.3s ease; flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { padding: 0 1.5rem 1rem; color: var(--muted); line-height: 1.7; }
.faq-a p:last-child { padding-bottom: 1.5rem; }

.bottom-glow {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 55%);   /* pola ispod ivice → polukrug */
  width: min(120vw, 1300px);
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;                        /* iza sadržaja */
  background: radial-gradient(
    ellipse at center,
    rgba(150, 95, 230, 0.40) 0%,
    rgba(120, 85, 220, 0.22) 35%,
    rgba(80, 90, 190, 0.10) 60%,
    transparent 75%
  );
  filter: blur(70px);
}



@media (prefers-reduced-motion: no-preference) {
  .js-anim :is(.sec-head, .intro, .qa-card, .step-card, .ben-card, .compare-card,
               .feature-card, .cta-box, .contact-box, .promo-box, .sample-box,
               .disclaimer, .faq-item, .stat) {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.22,0.61,0.36,1),
                transform 0.7s cubic-bezier(0.22,0.61,0.36,1);
    will-change: opacity, transform;
  }
  .js-anim :is(.sec-head, .intro, .qa-card, .step-card, .ben-card, .compare-card,
               .feature-card, .cta-box, .contact-box, .promo-box, .sample-box,
               .disclaimer, .faq-item, .stat).in {
    opacity: 1;
    transform: none;
  }
}.nav[data-astro-cid-wpvy4v7s] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  margin: 1rem;
  border-radius: 16px;
  position: sticky;
  top: 1rem;
  z-index: 100;
  background: #0d1520b8;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
}

.logo[data-astro-cid-wpvy4v7s] {
  display: inline-flex;
  align-items: center;
}

.logo[data-astro-cid-wpvy4v7s] img[data-astro-cid-wpvy4v7s] {
  height: 50px;
  width: auto;
  display: block;
  border-radius: 8px;
}

.nav-links[data-astro-cid-wpvy4v7s] {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}

.nav-links[data-astro-cid-wpvy4v7s] > li[data-astro-cid-wpvy4v7s] > a[data-astro-cid-wpvy4v7s] {
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  opacity: .8;
}

.nav-links[data-astro-cid-wpvy4v7s] > li[data-astro-cid-wpvy4v7s] > a[data-astro-cid-wpvy4v7s]:hover {
  opacity: 1;
}

.has-dropdown[data-astro-cid-wpvy4v7s] {
  position: relative;
}

.dropdown[data-astro-cid-wpvy4v7s] {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  list-style: none;
  padding: .5rem;
  border-radius: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, transform .2s;
}

.has-dropdown[data-astro-cid-wpvy4v7s]:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.has-dropdown[data-astro-cid-wpvy4v7s]:hover .dropdown[data-astro-cid-wpvy4v7s] {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(10px);
}

.dropdown[data-astro-cid-wpvy4v7s] li[data-astro-cid-wpvy4v7s] a[data-astro-cid-wpvy4v7s] {
  display: block;
  padding: .65rem .9rem;
  border-radius: 10px;
  background: #0f1826;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px #00000073;
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  opacity: .85;
  white-space: nowrap;
}

.dropdown[data-astro-cid-wpvy4v7s] li[data-astro-cid-wpvy4v7s] a[data-astro-cid-wpvy4v7s]:hover {
  opacity: 1;
  background: var(--accent);
  color: #0d1520;
  font-weight: 500;
}

.nav-toggle[data-astro-cid-wpvy4v7s] {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: none;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle[data-astro-cid-wpvy4v7s] span[data-astro-cid-wpvy4v7s] {
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform .25s, opacity .25s;
}

.nav[data-astro-cid-wpvy4v7s].open .nav-toggle[data-astro-cid-wpvy4v7s] span[data-astro-cid-wpvy4v7s]:first-child {
  transform: translateY(7px) rotate(45deg);
}

.nav[data-astro-cid-wpvy4v7s].open .nav-toggle[data-astro-cid-wpvy4v7s] span[data-astro-cid-wpvy4v7s]:nth-child(2) {
  opacity: 0;
}

.nav[data-astro-cid-wpvy4v7s].open .nav-toggle[data-astro-cid-wpvy4v7s] span[data-astro-cid-wpvy4v7s]:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu[data-astro-cid-wpvy4v7s] {
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: none;
  position: absolute;
  top: calc(100% + .75rem);
  left: 0;
  right: 0;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem;
  border-radius: 16px;
  background: #0f1826;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px #00000073;
}

.nav[data-astro-cid-wpvy4v7s].open .mobile-menu[data-astro-cid-wpvy4v7s] {
  display: flex;
}

.mobile-menu[data-astro-cid-wpvy4v7s] a[data-astro-cid-wpvy4v7s] {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  padding: .7rem .6rem;
  border-radius: 10px;
  opacity: .9;
}

.mobile-menu[data-astro-cid-wpvy4v7s] a[data-astro-cid-wpvy4v7s]:hover {
  background: #ffffff0d;
  opacity: 1;
}

.mm-label[data-astro-cid-wpvy4v7s] {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin: .75rem .6rem .25rem;
}

.mm-sub[data-astro-cid-wpvy4v7s] {
  padding-left: 1.4rem !important;
  font-size: .92rem !important;
  opacity: .75 !important;
}

.mm-cta[data-astro-cid-wpvy4v7s] {
  text-align: center;
  margin-top: .75rem;
}

@media (max-width: 900px) {
  .nav-links[data-astro-cid-wpvy4v7s] {
    display: none;
  }

  .nav-cta[data-astro-cid-wpvy4v7s] {
    display: none;
  }

  .nav-toggle[data-astro-cid-wpvy4v7s] {
    display: flex;
  }
}
.footer[data-astro-cid-jo6i4kqk] {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem;
  margin: 1rem;
  border-radius: 16px;
  max-width: 1400px;
  margin-inline: auto;
}

.footer-logo[data-astro-cid-jo6i4kqk] {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: .15em;
}

.footer-tag[data-astro-cid-jo6i4kqk] {
  color: var(--muted);
  font-size: .9rem;
  margin-top: .3rem;
}

.footer-col[data-astro-cid-jo6i4kqk] h4[data-astro-cid-jo6i4kqk] {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-col[data-astro-cid-jo6i4kqk] a[data-astro-cid-jo6i4kqk] {
  display: block;
  color: var(--text);
  text-decoration: none;
  opacity: .8;
  font-size: .9rem;
  margin-bottom: .5rem;
}

.footer-col[data-astro-cid-jo6i4kqk] a[data-astro-cid-jo6i4kqk]:hover {
  opacity: 1;
}

.footer-copy[data-astro-cid-jo6i4kqk] {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: .8rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .footer[data-astro-cid-jo6i4kqk] {
    grid-template-columns: 1fr;
  }
}
