/* =============================================================
   Nura Studio — one-pager
   1. Tokens
   2. Reset & base
   3. Layout primitives
   4. Buttons
   5. Header & navigation
   6. Hero
   7. Sections & cards
   8. Work / portfolio
   9. About
   10. Pricing
   11. Contact
   12. Footer
   13. Reveal animation & motion preferences
   ============================================================= */

/* ---------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------- */
:root {
  /* Brand — purple taken from the Nura logotype */
  --brand:          #8A00C4;
  --brand-strong:   #9B10DA;
  --brand-tint:     #C77DFF;  /* accessible purple for text on dark */
  --brand-glow:     rgba(138, 0, 196, 0.45);

  /* Surfaces */
  --bg:             #121212;
  --bg-alt:         #161619;
  --surface:        #1A1A1E;
  --surface-hi:     #202026;

  /* Lines */
  --line:           rgba(255, 255, 255, 0.08);
  --line-strong:    rgba(255, 255, 255, 0.16);

  /* Text */
  --text:           #F4F4F6;
  --text-muted:     #B4B4BE;
  --text-dim:       #8E8E99;

  /* Typography */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;

  /* Spacing & shape */
  --container:      1200px;
  --gutter:         clamp(1.25rem, 4vw, 2.5rem);
  --section-y:      clamp(3rem, 5vw, 4.5rem);
  --radius:         16px;
  --radius-sm:      10px;

  /* Motion */
  --ease:           cubic-bezier(0.22, 1, 0.36, 1);
  --dur:            0.45s;

  --header-h:       72px;

  /* Tamne nativne kontrole i skrolbarove (Chrome, Edge, Safari, Firefox). */
  color-scheme: dark;
}

/* ---------------------------------------------------------------
   Skrolbarovi — tanki i diskretni, u tonu pozadine
   --------------------------------------------------------------- */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

::-webkit-scrollbar { width: 10px; height: 10px; }

::-webkit-scrollbar-track { background: transparent; }

::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  /* Providna ivica sužava paletu, pa thumb izgleda tanje nego što jeste. */
  border: 3px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(199, 125, 255, 0.45);
  background-clip: content-box;
}

::-webkit-scrollbar-corner { background: transparent; }

/* ---------------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg { display: block; max-width: 100%; }

img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; padding: 0; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1, h2, h3 {
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--brand-tint);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--brand);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.625rem 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible { transform: translateY(0); }

/* ---------------------------------------------------------------
   3. Layout primitives
   --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section-alt { background: var(--bg-alt); }

.section-alt + .section-alt { border-top: 1px solid var(--line); }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-tint);
  margin-bottom: 0.625rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  color: var(--text-muted);
  max-width: 36rem;
}

.lead {
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  color: var(--text-muted);
}

.accent-text { color: var(--brand-tint); }

.grid { display: grid; gap: clamp(0.75rem, 1.4vw, 1.125rem); }

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 940px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------
   4. Buttons
   --------------------------------------------------------------- */
.btn {
  --btn-py: 0.75rem;
  --btn-px: 1.4rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease),
              background-color 0.2s var(--ease),
              border-color 0.2s var(--ease),
              box-shadow 0.25s var(--ease),
              color 0.2s var(--ease);
}

.btn-sm { --btn-py: 0.5rem; --btn-px: 1rem; font-size: 0.875rem; }

.btn-lg {
  --btn-py: 0.9375rem;
  --btn-px: 1.9rem;
  font-size: 1rem;
}

.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px -10px var(--brand-glow);
}

.btn-primary:hover {
  background: var(--brand-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px var(--brand-glow);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: var(--brand-tint);
  color: var(--brand-tint);
  background: rgba(138, 0, 196, 0.08);
  transform: translateY(-2px);
}

.btn-ghost:active { transform: translateY(0); }

/* ---------------------------------------------------------------
   5. Header & navigation
   --------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(18, 18, 18, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(18, 18, 18, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* --- Logo: beli NURA wordmark, bez dodataka --- */
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-word {
  display: block;
  width: 104px;
  height: 30px;
  background: #fff;
  -webkit-mask: url("../assets/images/nura-wordmark-white.svg") no-repeat left center / contain;
  mask: url("../assets/images/nura-wordmark-white.svg") no-repeat left center / contain;
  transition: background-color 0.25s var(--ease);
}

.logo:hover .logo-word { background: var(--brand-tint); }

@media (max-width: 420px) {
  .logo-word { width: 84px; height: 24px; }
}

/* --- Desktop nav --- */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.9rem);
}

.nav-link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  padding-block: 0.25rem;
  transition: color 0.2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: var(--brand-tint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.nav-link:hover,
.nav-link.is-active { color: var(--text); }

.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

/* --- Mobile toggle --- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 6px;
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem var(--gutter) 2rem;
    background: rgba(18, 18, 18, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease),
                transform 0.28s var(--ease),
                visibility 0.28s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li + li { border-top: 1px solid var(--line); }

  .nav-link {
    display: block;
    padding-block: 1rem;
    font-size: 1.0625rem;
  }

  .nav-link::after { display: none; }

  .nav-cta { margin-top: 1.5rem; width: 100%; }

  body.nav-open { overflow: hidden; }
}

/* ---------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------- */
/* Hero i cenovnik zauzimaju tačno jedan ekran. `min-height` znači da na
   uskim ekranima sekcija može da naraste umesto da odseče sadržaj. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.hero-glow {
  position: absolute;
  z-index: -2;
  top: -34%;
  left: 50%;
  width: min(1100px, 145vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle,
              rgba(138, 0, 196, 0.30) 0%,
              rgba(138, 0, 196, 0.10) 42%,
              transparent 68%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 32%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 32%, #000 10%, transparent 72%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.9375rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-tint);
  box-shadow: 0 0 0 3px rgba(199, 125, 255, 0.18);
}

.hero-title {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  max-width: 17ch;
}

.hero-sub {
  margin-top: 1rem;
  max-width: 40ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.25rem);
  margin-top: clamp(2rem, 4.5vw, 3rem);
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--line);
  width: 100%;
  max-width: 44rem;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.hero-stats strong {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-stats span {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* ---------------------------------------------------------------
   7. Cards
   --------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease),
              border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease),
              background-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 125, 255, 0.35);
  background: var(--surface-hi);
  box-shadow: 0 22px 48px -28px rgba(0, 0, 0, 0.9),
              0 0 0 1px rgba(138, 0, 196, 0.08);
}

.service-card { padding: clamp(1.25rem, 2.2vw, 1.625rem); }

.card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border-radius: 11px;
  background: rgba(138, 0, 196, 0.16);
  border: 1px solid rgba(199, 125, 255, 0.22);
  color: var(--brand-tint);
}

.card-icon svg { width: 20px; height: 20px; }

.card-title {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------------------------------------------------------------
   8. Work / portfolio
   --------------------------------------------------------------- */
/* Naslov sekcije i strelice u istom redu. */
.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
}

.work-head-copy { max-width: 44rem; }

.carousel-nav {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.carousel-nav[hidden] { display: none; }

.carousel-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease),
              color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.carousel-btn svg { width: 18px; height: 18px; }

.carousel-btn:hover:not(:disabled) {
  border-color: var(--brand-tint);
  color: var(--brand-tint);
  background: rgba(138, 0, 196, 0.10);
}

.carousel-btn:disabled {
  opacity: 0.32;
  cursor: default;
}

@media (max-width: 640px) {
  .work-head { flex-direction: column; align-items: stretch; }
  .carousel-nav { display: none; }
}

/* --- Skrolabilne kartice --- */
.work-carousel { position: relative; }

.work-track {
  /* Broj kartica koje staju u vidljivi deo trake. Kada ceo broj kartica
     tačno stane, ukupan skrol je (ukupno - vidljivo) * korak, pa su svi
     koraci jednaki i nema kratkog „patrljka" na kraju. */
  --cards: 3;
  --work-gap: clamp(0.75rem, 1.4vw, 1.125rem);

  display: flex;
  gap: var(--work-gap);

  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;

  /* Traka ide do ivica ekrana, ali su kartice poravnate sa sadržajem. */
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);

  /* Prostor da hover podizanje i senka kartice ne budu odsečeni. */
  padding-block: 6px 26px;
  margin-bottom: -20px;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.work-track::-webkit-scrollbar { display: none; }

.work-track:focus-visible {
  outline: 2px solid var(--brand-tint);
  outline-offset: 4px;
}

.work-card {
  flex: 0 0 calc((100% - (var(--cards) - 1) * var(--work-gap)) / var(--cards));
  scroll-snap-align: start;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Poslednja kartica se poravnava desnom ivicom, da poslednji korak
   stane tačno na kraj trake. */
.work-card:last-child { scroll-snap-align: end; }

@media (max-width: 1023px) {
  .work-track { --cards: 2; }
}

/* Na telefonu strelica nema — swipe je slobodan, pa kartica namerno
   viri sa strane da se vidi da ima još sadržaja. */
@media (max-width: 640px) {
  .work-card { flex-basis: clamp(268px, 78vw, 320px); }
  .work-card:last-child { scroll-snap-align: start; }
}

.work-media {
  position: relative;
  aspect-ratio: 800 / 520;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0F0F12;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.work-card:hover .work-media img { transform: scale(1.035); }

.work-body {
  padding: clamp(1.125rem, 1.9vw, 1.375rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Naslov je dugme, a ::after ga širi preko cele kartice — jedan
   fokusabilan element, a klik radi bilo gde na kartici. */
.work-open {
  padding: 0;
  text-align: left;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  transition: color 0.2s var(--ease);
}

.work-open::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.work-card:hover .work-open { color: var(--brand-tint); }

.work-open:focus-visible { outline: none; }

.work-card:has(.work-open:focus-visible) {
  outline: 2px solid var(--brand-tint);
  outline-offset: 3px;
}

.work-more {
  margin-top: auto;
  padding-top: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-tint);
  opacity: 0.75;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.work-more::after {
  content: " →";
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

.work-card:hover .work-more { opacity: 1; }
.work-card:hover .work-more::after { transform: translateX(3px); }

.work-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-tint);
  margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------------
   9. About
   --------------------------------------------------------------- */
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}

@media (max-width: 900px) {
  .about-inner { grid-template-columns: minmax(0, 1fr); }
}

.about-lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

.about-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 40rem;
}

.about-text + .about-text { margin-top: 0.75rem; }

.about-points {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.about-points li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: clamp(0.875rem, 1.7vw, 1.125rem) clamp(1rem, 2vw, 1.375rem);
  background: var(--surface);
  transition: background-color 0.25s var(--ease);
}

.about-points li:hover { background: var(--surface-hi); }

.about-points strong {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.about-points span {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------
   10. Pricing
   --------------------------------------------------------------- */
/* Cenovnik zauzima tačno jedan ekran, kao i hero. Razmaci se skaliraju
   po visini prozora (`vh`) da bi tri kartice stale i na niskim laptop
   ekranima. Na uskim ekranima, gde kartice idu jedna ispod druge,
   sekcija naraste umesto da seče sadržaj. */
#cenovnik {
  --section-y: clamp(1.25rem, 5vh, 4rem);

  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
}

#cenovnik > .container { width: 100%; }

#cenovnik .section-head { margin-bottom: clamp(1rem, 3vh, 2.5rem); }

.pricing-grid { align-items: stretch; }

@media (max-width: 940px) and (min-width: 641px) {
  /* Keep the featured plan from sitting alone on a row of two. */
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: clamp(0.875rem, 2.2vh, 1.625rem) clamp(1.25rem, 2.2vw, 1.625rem);
}

.price-card-featured {
  border-color: rgba(199, 125, 255, 0.42);
  background: linear-gradient(180deg, rgba(138, 0, 196, 0.12) 0%, var(--surface) 46%);
  box-shadow: 0 24px 60px -34px var(--brand-glow);
}

.price-card-featured:hover {
  border-color: var(--brand-tint);
  box-shadow: 0 30px 70px -34px var(--brand-glow);
}

.price-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 20px -10px var(--brand-glow);
}

.price-head {
  padding-bottom: clamp(0.625rem, 1.6vh, 1rem);
  border-bottom: 1px solid var(--line);
}

.price-name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.25rem;
}

.price-desc {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-dim);
  min-height: 2.6em;
}

.price-value {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-top: clamp(0.5rem, 1.4vh, 0.875rem);
}

.price-amount {
  font-size: clamp(2rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.price-currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-tint);
}

.price-list {
  display: grid;
  align-content: start;
  gap: clamp(0.375rem, 1vh, 0.5rem);
  padding-block: clamp(0.625rem, 1.6vh, 1rem);
  margin-bottom: clamp(0.625rem, 1.6vh, 1rem);
  flex: 1;
}

.price-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 13px;
  height: 8px;
  border-left: 1.75px solid var(--brand-tint);
  border-bottom: 1.75px solid var(--brand-tint);
  transform: rotate(-45deg);
  border-radius: 1px;
}

.pricing-note {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* ---------------------------------------------------------------
   11. Contact
   --------------------------------------------------------------- */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}

.contact-glow {
  position: absolute;
  z-index: -1;
  bottom: -55%;
  left: 50%;
  width: min(900px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle,
              rgba(138, 0, 196, 0.26) 0%,
              rgba(138, 0, 196, 0.08) 45%,
              transparent 70%);
  pointer-events: none;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-title {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.875rem;
}

.contact-sub { max-width: 42ch; }

.contact-mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding: 0.4375rem 0.4375rem 0.4375rem 1.375rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.contact-mail:hover { border-color: rgba(199, 125, 255, 0.45); }

.contact-mail-link {
  font-size: clamp(0.9375rem, 2.2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  word-break: break-all;
  transition: color 0.2s var(--ease);
}

.contact-mail-link:hover { color: var(--brand-tint); }

.copy-btn {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.copy-btn:hover { background: var(--brand); color: #fff; }

.copy-btn.is-copied { background: rgba(138, 0, 196, 0.28); color: var(--brand-tint); }

.contact-actions { margin-top: 1.5rem; }

@media (max-width: 480px) {
  .contact-mail {
    padding: 1rem;
    border-radius: var(--radius);
    flex-direction: column;
  }
  .contact-mail-link { word-break: break-word; }
}

/* ---------------------------------------------------------------
   12. Footer
   --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: clamp(2rem, 3.5vw, 2.75rem) 1.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.footer-word {
  display: block;
  width: 92px;
  height: 26px;
  background: var(--brand-tint);
  -webkit-mask: url("../assets/images/nura-wordmark-white.svg") no-repeat left center / contain;
  mask: url("../assets/images/nura-wordmark-white.svg") no-repeat left center / contain;
}

.footer-tag {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-dim);
  max-width: 30ch;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  font-size: 0.9375rem;
}

.footer-nav a {
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.footer-nav a:hover { color: var(--brand-tint); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* ---------------------------------------------------------------
   13. Modal sa detaljima projekta
   --------------------------------------------------------------- */
.work-modal {
  width: min(720px, calc(100vw - 2rem));
  max-height: min(88svh, 900px);
  padding: 0;
  /* Globalni reset `* { margin: 0 }` gasi UA `margin: auto`, pa bi
     dijalog stajao u gornjem levom uglu. */
  margin: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
}

/* Dijalog sam ne skroluje — skroluje ovaj omotač, pa `.modal-close`
   ostaje zakačen za ugao dijaloga i kada je sadržaj duži od ekrana. */
.modal-scroll {
  max-height: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
  scrollbar-gutter: stable;
}

.work-modal::backdrop {
  background: rgba(8, 8, 10, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.work-modal:not([open]) { display: none; }

.modal-close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(12, 12, 14, 0.78);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease);
}

.modal-close svg { width: 17px; height: 17px; }

.modal-close:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.modal-media {
  position: relative;
  aspect-ratio: 800 / 520;
  background: #0F0F12;
  border-bottom: 1px solid var(--line);
}

.modal-media img { width: 100%; height: 100%; object-fit: cover; }

.modal-content { padding: clamp(1.375rem, 3vw, 2rem); }

.modal-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-tint);
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.modal-section + .modal-section { margin-top: 1.25rem; }

.modal-section h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.modal-section p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.modal-list { display: grid; gap: 0.5rem; }

.modal-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.modal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 13px;
  height: 8px;
  border-left: 1.75px solid var(--brand-tint);
  border-bottom: 1.75px solid var(--brand-tint);
  transform: rotate(-45deg);
  border-radius: 1px;
}

.modal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.125rem, 2.4vw, 1.5rem) clamp(1.375rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
  background: rgba(138, 0, 196, 0.06);
}

/* Jedina oznaka da je rad koncept — zato je ne smanjujemo previše. */
.modal-disclaimer {
  flex: 1 1 16rem;
  padding-left: 0.875rem;
  border-left: 2px solid rgba(199, 125, 255, 0.45);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.modal-disclaimer strong { color: var(--brand-tint); font-weight: 600; }

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .modal-foot { flex-direction: column; align-items: stretch; }
  .modal-actions { flex-direction: column; }
  .modal-foot .btn { width: 100%; }
}

body.modal-open { overflow: hidden; }

/* ---------------------------------------------------------------
   14. Reveal animation & motion preferences
   --------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
