/* Kreativa 5: boje i tipografija */
:root {
  --bg: #14111d;
  --surface: #1c1828;
  --surface-2: #241f33;
  --line: #322c45;
  --text: #f3f0fa;
  --muted: #a9a2bb;
  --purple: #a389ff;
  --purple-strong: #8a6bff;
  --lime: #deff32;
  --radius: 18px;
  --font: "Archivo", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--purple); }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--lime); color: #111; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--lime); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }

/* Gumbi i poveznice */
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; font: inherit; font-weight: 700; cursor: pointer; }
.button.primary { background: var(--purple); color: #120e1d; }
.button.primary:hover { background: var(--lime); color: #111; transform: translateY(-2px); }
.button.primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.button.ghost { border-color: var(--line); color: var(--text); }
.button.ghost:hover { border-color: var(--purple); color: var(--purple); }
.text-link { display: inline-flex; gap: 8px; font-weight: 700; text-decoration: none; }
.text-link:hover span { transform: translateX(4px); }
.text-link span { transition: transform .2s; }

/* Zaglavlje */
.header { position: sticky; top: 0; z-index: 50; background: rgba(20, 17, 29, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(50, 44, 69, .6); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand img { width: 170px; height: auto; }
#navigation { display: flex; align-items: center; gap: 4px; }
#navigation a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 10px 14px; border-radius: 999px; transition: color .2s, background .2s; }
#navigation a:hover { color: var(--purple); }
#navigation a[aria-current="page"] { color: var(--purple); background: rgba(163, 137, 255, .1); }
#navigation .nav-cta { margin-left: 10px; border: 1px solid var(--line); }
#navigation .nav-cta:hover { border-color: var(--lime); color: var(--lime); }
.menu { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Naslovni dio */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 40px; padding: 90px 0 70px; }
.hero h1 em { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 440px; width: 100%; justify-self: end; }
.hero-art .ring { position: absolute; inset: 0; border: 1px solid var(--purple); border-radius: 50%; opacity: .55; animation: spin 40s linear infinite; border-top-color: transparent; }
.hero-art .ring-2 { inset: 14%; border-color: var(--line); border-right-color: var(--lime); opacity: .9; animation-duration: 26s; animation-direction: reverse; }
.hero-art .dot { position: absolute; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--purple); right: 18%; bottom: 20%; box-shadow: 0 0 80px rgba(163, 137, 255, .6); }
.hero-k { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(9rem, 22vw, 17rem); font-weight: 200; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--purple); padding-right: 12%; }
@keyframes spin { to { transform: rotate(360deg); } }
.tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 26px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.tools li { color: var(--muted); font-size: .9rem; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; }

/* Odjeljci */
.section { padding: 70px 0; }
.section-tight { padding: 10px 0 70px; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.page-hero { padding: 90px 0 50px; }
.page-hero.compact { padding: 70px 0 30px; }
.page-hero h1 { max-width: 900px; }
.page-hero h1 em { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips a { text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 600; }
.chips a:hover { border-color: var(--purple); color: var(--purple); }

/* Usluge */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service { display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .25s, transform .25s, background .25s; min-height: 280px; }
.service:hover { border-color: var(--purple); transform: translateY(-4px); background: var(--surface-2); color: var(--text); }
.service p { color: var(--muted); }
.service-no { color: var(--purple); font-weight: 700; font-size: .9rem; margin-bottom: auto; padding-bottom: 40px; }
.service-more { margin-top: auto; font-weight: 700; color: var(--lime); font-size: .95rem; }
.service-detail { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px 60px; padding: 60px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service-detail-head .service-no { display: block; padding-bottom: 12px; }
.service-detail .lead { font-size: 1.15rem; }
.service-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.service-points li { position: relative; padding: 18px 20px 18px 52px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.service-points li::before { content: ""; position: absolute; left: 20px; top: 25px; width: 14px; height: 14px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 4px rgba(163, 137, 255, .18); }
.service-detail .text-link { grid-column: 2; }

/* O nama */
.about-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; align-items: start; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-strip p { color: var(--muted); font-size: 1.1rem; }
.checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.checks li { padding-left: 34px; position: relative; font-weight: 600; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: #111; font-size: .8rem; font-weight: 800; margin-top: 2px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.value p { color: var(--muted); margin: 0; }

/* Portfolio */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work { position: relative; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: border-color .25s, transform .25s; }
.work:hover { border-color: var(--purple); transform: translateY(-4px); color: var(--text); }
.work-img { display: block; aspect-ratio: 8 / 5; overflow: hidden; background: #fff; }
.work-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.work:hover .work-img img { transform: scale(1.04); }
.work-meta { display: flex; flex-direction: column; padding: 18px 60px 20px 20px; }
.work-meta small { color: var(--muted); font-size: .88rem; }
.work-arrow { position: absolute; right: 18px; bottom: 22px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--purple); transition: background .2s, color .2s; }
.work:hover .work-arrow { background: var(--lime); color: #111; border-color: var(--lime); }

/* Hosting paketi */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.plan.featured { border-color: var(--purple); background: linear-gradient(160deg, #2a2045, var(--surface)); }
.plan-badge { position: absolute; top: -12px; left: 24px; background: var(--lime); color: #111; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.plan-price { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 6px 0 14px; color: var(--purple); }
.plan-price span { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-text { color: var(--muted); }
.plan-specs { list-style: none; padding: 16px 0 0; margin: 0 0 22px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.plan-specs strong { color: var(--text); }
.plan-specs li { color: var(--muted); }
.plan .text-link { margin-top: auto; }

/* IT podrška */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
.area { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.area .service-no { display: block; padding-bottom: 18px; }
.area p { color: var(--muted); margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { padding: 24px 0 0; border-top: 2px solid var(--purple); }
.steps .service-no { display: block; padding-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; }

/* Povezane tvrtke */
.group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.group-card { display: flex; flex-direction: column; gap: 8px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(140deg, var(--surface-2), var(--surface)); color: var(--text); text-decoration: none; transition: border-color .25s; }
a.group-card:hover { border-color: var(--purple); color: var(--text); }
.group-card strong { font-size: 1.3rem; }
.group-card span { color: var(--muted); }
.group-card small { margin-top: auto; padding-top: 14px; color: var(--purple); font-weight: 700; }

/* Poziv na akciju */
.cta { display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: 30px 50px; margin: 40px 0 90px; padding: clamp(32px, 6vw, 64px); border-radius: 28px; background: radial-gradient(circle at 90% 10%, rgba(222, 255, 50, .16), transparent 40%), linear-gradient(135deg, #2a2045, #1a1628); border: 1px solid var(--line); }
.cta p { color: var(--muted); margin: 0; font-size: 1.1rem; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* Kontakt */
.contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; padding-bottom: 90px; align-items: start; }
.contact-info p { color: var(--muted); }
.contact-details { margin: 26px 0; display: grid; gap: 14px; }
.contact-details div { padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.contact-details dt { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-details dd { margin: 2px 0 0; font-weight: 700; font-size: 1.1rem; }
.contact-details a { color: var(--text); text-decoration: none; }
.contact-details a:hover { color: var(--purple); }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; }
.contact-form { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .95rem; }
.field small, .optional { color: var(--muted); font-size: .85rem; font-weight: 400; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; transition: border-color .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(163, 137, 255, .2); }
textarea { min-height: 160px; resize: vertical; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { color: var(--muted); font-size: .9rem; }
.notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; border: 1px solid var(--line); background: var(--surface-2); }
.notice.success { border-color: var(--lime); color: var(--lime); }
.notice.error { border-color: #ff7a8a; color: #ffb3bd; }

/* Pravni dokumenti */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 60px; padding-bottom: 90px; align-items: start; }
.legal-nav { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 4px; }
.legal-nav a { color: var(--muted); text-decoration: none; padding: 10px 14px; border-radius: 10px; border-left: 2px solid var(--line); }
.legal-nav a:hover { color: var(--text); }
.legal-nav a[aria-current="page"] { color: var(--purple); border-left-color: var(--purple); background: rgba(163, 137, 255, .08); }
.prose { max-width: 780px; color: #d9d4e6; overflow-wrap: anywhere; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: #100d17; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-about p { color: var(--muted); margin-top: 18px; max-width: 320px; }
.footer-grid h2 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); margin-bottom: 14px; }
.footer-grid div > a:not(.brand) { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.footer-grid div > a:not(.brand):hover { color: var(--text); }
.external-arrow { color: var(--purple); }
.footer-legal { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: .88rem; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--text); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.footnote { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 20px 0 30px; border-top: 1px solid var(--line); color: #6f6884; font-size: .85rem; }

/* Pojavljivanje pri pomicanju: samo uz JavaScript i bez smanjenog kretanja */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Prilagodba ekranima */
@media (min-width: 1001px) and (max-width: 1180px) {
  #navigation .nav-cta { display: none; }
  #navigation a { padding: 10px 11px; }
}
@media (max-width: 1000px) {
  .menu { display: flex; }
  #navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  #navigation.open { display: flex; }
  #navigation a { padding: 14px 16px; }
  #navigation .nav-cta { margin: 8px 0 0; text-align: center; }
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-art { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid, .plan-grid, .area-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout, .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .service-detail, .about-strip, .cta { grid-template-columns: 1fr; }
  .service-detail .text-link { grid-column: 1; }
  .values { grid-template-columns: 1fr; }
  .page-hero { padding: 56px 0 30px; }
  .section { padding: 50px 0; }
}
@media (max-width: 560px) {
  .service-grid, .work-grid, .plan-grid, .area-grid, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .service-no { padding-bottom: 20px; }
  .hero-actions .button, .cta-actions .button { width: 100%; justify-content: center; }
}
