/* Javna početna — moderan landing (hero + mockup, gradijenti, čista tipografija) */
:root {
  --home-accent: #0d9488;
  --home-accent-deep: #0f766e;
  --home-violet: #6366f1;
  --home-fuchsia: #d946ef;
  --home-text: #334155;
  --home-muted: #64748b;
  --home-bg: #ffffff;
  --home-bg-soft: #f8fafc;
  --home-card: #ffffff;
  --home-radius: 20px;
  --home-radius-sm: 14px;
  --home-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  --home-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 12px 28px -8px rgba(15, 23, 42, 0.12);
  --home-shadow-lg: 0 20px 50px -20px rgba(15, 23, 42, 0.18);
}

html {
  scroll-behavior: smooth;
}

.home {
  margin: 0;
  font-family: var(--home-font);
  color: var(--home-text);
  background: var(--home-bg);
  line-height: 1.6;
  min-height: 100vh;
}

.home * {
  box-sizing: border-box;
}

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

/* —— Header —— */
.home-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.home-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (min-width: 901px) {
  .home-header__inner {
    padding-left: 0;
    padding-right: 0;
  }
}

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

.home-brand__logo {
  display: block;
  height: 54px;
  width: auto;
  max-width: min(280px, 60vw);
  object-fit: contain;
}

.home-brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--home-accent) 0%, var(--home-violet) 55%, var(--home-fuchsia) 100%);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  position: relative;
  overflow: hidden;
}

.home-brand__mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
}

.home-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-brand__name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--home-text);
  line-height: 1.15;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.home-nav__link {
  font-size: 14px;
  font-weight: 650;
  color: var(--home-muted);
  padding: 8px 2px;
  border-radius: 8px;
  transition: color 0.15s ease;
}

.home-nav__link:hover {
  color: var(--home-accent);
}

.home-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.home-nav-backdrop {
  display: none;
}

.home-drawer {
  display: none;
}

.home-drawer__brand {
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.home-drawer__brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.home-drawer__logo {
  display: block;
  height: 46px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.home-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0 24px;
}

.home-drawer__link {
  display: block;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 650;
  color: var(--home-text);
  border-bottom: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.home-drawer__link:hover {
  background: rgba(13, 148, 136, 0.06);
  color: var(--home-accent);
}

.home-drawer__sep {
  height: 12px;
  border: 0;
}

.home-drawer__account {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 16px 0;
}

.home-drawer__btn {
  width: 100%;
  justify-content: center;
}

/* Hamburger (isti princip kao u aplikaciji) */
.home-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--home-text);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.home-nav-toggle:hover {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
}

.home-nav-toggle:focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 2px;
}

.home-nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease, width 0.22s ease, opacity 0.18s ease;
}

.home-nav-toggle__bar--1 {
  width: 40%;
  align-self: flex-end;
}

.home-nav-toggle__bar--2 {
  width: 100%;
  align-self: center;
}

.home-nav-toggle__bar--3 {
  width: 55%;
  align-self: flex-start;
}

.home-root.is-nav-open .home-nav-toggle__bar--1 {
  width: 100%;
  align-self: center;
  transform: translateY(7px) rotate(-45deg);
}

.home-root.is-nav-open .home-nav-toggle__bar--2 {
  opacity: 0;
  transform: scaleX(0);
}

.home-root.is-nav-open .home-nav-toggle__bar--3 {
  width: 100%;
  align-self: center;
  transform: translateY(-7px) rotate(45deg);
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 650;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.home-btn:active {
  transform: scale(0.98);
}

.home-btn--ghost {
  background: transparent;
  color: var(--home-muted);
  border-color: rgba(15, 23, 42, 0.1);
}

.home-btn--ghost:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--home-text);
  border-color: rgba(15, 23, 42, 0.14);
}

.home-btn--primary {
  background: var(--home-accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.35);
  border: none;
}

.home-btn--primary:hover {
  background: #0f766e;
  color: #fff;
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.42);
}

.home-btn--primary:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 2px;
}

/* .home a { color: inherit } inače pobijedi bijeli tekst na primarnim linkovima */
.home a.home-btn--primary,
a.home-btn--primary {
  color: #fff;
}

.home a.home-btn--primary:hover {
  color: #fff;
}

.home-btn--solid {
  background: var(--home-text);
  color: #fff;
}

.home-btn--solid:hover {
  opacity: 0.92;
}

/* —— Hero (dvije kolone, SkillForge-inspirisani banner) —— */
.home-hero {
  --home-hero-orange: #f97316;
  position: relative;
  overflow: hidden;
  padding: 44px 24px 88px;
  background:
    radial-gradient(900px 520px at 8% 0%, rgba(13, 148, 136, 0.16), transparent 58%),
    radial-gradient(700px 420px at 100% 20%, rgba(14, 165, 233, 0.06), transparent 50%),
    linear-gradient(180deg, #f7f5f2 0%, #faf9f6 38%, #ffffff 100%);
}

.home-hero__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.home-hero__visual {
  order: 0;
  min-height: 380px;
  position: relative;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(13, 148, 136, 0.38);
  background: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
  color: var(--home-accent-deep);
  line-height: 1.35;
  max-width: 100%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.home-hero__badge strong {
  font-weight: 750;
}

.home-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.home-hero__title {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.6vw, 3.05rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.12;
  max-width: 15ch;
}

.home-hero__title-gradient {
  background: linear-gradient(92deg, #0d9488 0%, #14b8a6 42%, var(--home-hero-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero__title-plain {
  color: var(--home-text);
}

.home-hero__lead {
  margin: 0 0 26px;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--home-muted);
  max-width: 48ch;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.home-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease, background 0.15s ease;
}

.home-hero-btn svg {
  flex-shrink: 0;
}

.home-hero-btn--primary {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%);
  color: #fff;
  box-shadow: 0 10px 28px -8px rgba(13, 148, 136, 0.55);
}

/* .home a { color: inherit } inače pobjeđuje slabiju specifičnost .home-hero-btn--primary */
.home a.home-hero-btn--primary,
.home a.home-hero-btn--primary:visited {
  color: #fff;
}

.home-hero-btn--primary:hover,
.home a.home-hero-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -8px rgba(13, 148, 136, 0.6);
  color: #fff;
}

.home-hero-btn--secondary {
  background: #fff;
  color: var(--home-text);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.home-hero-btn--secondary:hover {
  border-color: rgba(13, 148, 136, 0.35);
  background: rgba(255, 255, 255, 0.95);
}

.home-hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 28px;
}

.home-hero__avatars {
  display: flex;
  align-items: center;
  padding-right: 4px;
}

.home-hero__face {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  margin-left: -12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  flex-shrink: 0;
}

.home-hero__face:first-child {
  margin-left: 0;
}

.home-hero__face--1 {
  background: linear-gradient(145deg, #0d9488, #6366f1);
}

.home-hero__face--2 {
  background: linear-gradient(145deg, #ea580c, #f97316);
}

.home-hero__face--3 {
  background: linear-gradient(145deg, #7c3aed, #d946ef);
}

.home-hero__face--4 {
  background: linear-gradient(145deg, #0ea5e9, #14b8a6);
}

.home-hero__proof-text {
  font-size: 14px;
  font-weight: 650;
  color: #475569;
}

.home-hero__proof-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--home-muted);
}

.home-hero__star {
  color: var(--home-hero-orange);
  font-size: 15px;
  line-height: 1;
}

.home-hero-showcase {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.home-hero-showcase__card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 14px;
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.06),
    0 24px 48px -20px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.home-hero-showcase__stage {
  position: relative;
}

.home-hero-showcase__viz {
  position: relative;
  min-height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(155deg, #0c1929 0%, #1e3a5f 45%, #0f2847 100%);
}

.home-hero-showcase__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  background-image:
    radial-gradient(circle at 22% 35%, rgba(20, 184, 166, 0.55) 0, transparent 42%),
    radial-gradient(circle at 78% 28%, rgba(99, 102, 241, 0.45) 0, transparent 38%),
    radial-gradient(circle at 55% 72%, rgba(249, 115, 22, 0.35) 0, transparent 40%);
}

.home-hero-showcase__mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M20 60 L55 35 L95 55 L75 88 Z' fill='none' stroke='rgba(255,255,255,0.12)' stroke-width='1'/%3E%3Ccircle cx='20' cy='60' r='4' fill='rgba(20,184,166,0.85)'/%3E%3Ccircle cx='55' cy='35' r='4' fill='rgba(255,255,255,0.5)'/%3E%3Ccircle cx='95' cy='55' r='4' fill='rgba(99,102,241,0.9)'/%3E%3Ccircle cx='75' cy='88' r='4' fill='rgba(249,115,22,0.85)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: 0.65;
}

.home-hero-glass {
  position: absolute;
  z-index: 2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 40px -12px rgba(15, 23, 42, 0.25);
}

.home-hero-glass--progress {
  left: 12px;
  bottom: 14px;
  width: min(46%, 168px);
  padding: 12px 14px;
  animation: home-hero-float-a 7s ease-in-out infinite;
}

.home-hero-glass--done {
  right: 10px;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  max-width: calc(100% - 24px);
  animation: home-hero-float-b 7s ease-in-out infinite -3.5s;
}

.home-hero-glass__label {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 8px;
}

.home-hero-glass__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.home-hero-glass__bar-fill {
  display: block;
  height: 100%;
  width: 78%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--home-hero-orange), #fb923c);
}

.home-hero-glass__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.home-hero-glass__msg {
  font-size: 13px;
  font-weight: 750;
  color: var(--home-text);
  line-height: 1.25;
}

.home-hero-showcase__foot {
  padding: 16px 8px 10px;
}

.home-hero-showcase__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
  margin-right: 10px;
}

.home-hero-showcase__meta {
  font-size: 12px;
  font-weight: 650;
  color: var(--home-muted);
}

.home-hero-showcase__headline {
  margin: 10px 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--home-text);
  line-height: 1.3;
}

.home-hero-showcase__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.home-hero-showcase__mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--home-accent), var(--home-violet));
  flex-shrink: 0;
}

.home-hero-showcase__author {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--home-muted);
}

.home-hero-showcase__mini-rating {
  color: var(--home-hero-orange);
  font-size: 16px;
  line-height: 1;
}

@keyframes home-hero-float-a {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes home-hero-float-b {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.home-hero__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--home-muted);
  max-width: 48ch;
}

.home-hero__contact-icon {
  display: flex;
  flex-shrink: 0;
  color: var(--home-accent-deep);
  line-height: 0;
}

.home-hero__contact-icon svg {
  display: block;
}

.home .home-hero__content a.home-hero__contact-mail {
  font-weight: 600;
  color: var(--home-accent-deep);
  text-decoration: underline;
  text-decoration-color: rgba(13, 148, 136, 0.35);
  text-underline-offset: 2px;
}

.home .home-hero__content a.home-hero__contact-mail:hover {
  color: var(--home-accent);
  text-decoration-color: rgba(13, 148, 136, 0.55);
}

/* —— Moduli (mreža kartica / browse by category stil) —— */
.home-section--cat {
  padding: 68px 24px 76px;
  background: #f7f5f2;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.home-cat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: 36px;
}

.home-cat-head__text {
  max-width: 560px;
}

.home-cat-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--home-text);
}

.home-cat-head__sub {
  margin: 0;
  font-size: 1.05rem;
  color: var(--home-muted);
  line-height: 1.55;
}

.home .home-cat-head__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--home-accent-deep);
  text-decoration: none;
  white-space: nowrap;
}

.home .home-cat-head__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .home-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .home-cat-head {
    margin-bottom: 28px;
  }
}

.home .home-cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: 28px 24px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 28px -14px rgba(15, 23, 42, 0.1);
  color: var(--home-text);
  cursor: default;
}

.home-cat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.home-cat-card__icon svg {
  display: block;
}

.home-cat-card__icon--teal {
  background: #ccfbf7;
  color: #0f766e;
}

.home-cat-card__icon--orange {
  background: #ffedd5;
  color: #c2410c;
}

.home-cat-card__icon--pink {
  background: #fce7f3;
  color: #be185d;
}

.home-cat-card__icon--blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.home-cat-card__icon--violet {
  background: #ede9fe;
  color: #6d28d9;
}

.home-cat-card__icon--amber {
  background: #fef9c3;
  color: #a16207;
}

.home-cat-card__icon--rose {
  background: #ffe4e6;
  color: #e11d48;
}

.home-cat-card__icon--green {
  background: #dcfce7;
  color: #15803d;
}

.home-cat-card__title {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--home-text);
}

.home-cat-card__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #64748b;
  flex: 1 1 auto;
  padding-bottom: 18px;
}

.home-cat-card__foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.home-cat-card__meta {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

/* —— Sekcije —— */
.home-section {
  padding: 72px 24px;
}

.home-section--alt {
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.home-section--features {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.home-section__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.home-section__head {
  margin-bottom: 48px;
  max-width: 640px;
}

.home-section__inner > .home-section__intro {
  margin-bottom: 40px;
}

.home-section__head .home-section__intro {
  margin-bottom: 0;
}

.home-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--home-text);
}

.home-section__intro {
  margin: 0;
  color: var(--home-muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

/* Kako funkcioniše — koraci ispod heroa */
.home-section--how {
  padding-top: 56px;
  padding-bottom: 64px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 42%, #ffffff 100%);
}

.home-how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.home-how-step {
  margin: 0;
  padding: 26px 22px 28px;
  border-radius: var(--home-radius);
  background: var(--home-card);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--home-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
  position: relative;
}

.home-how-step:hover {
  box-shadow: 0 20px 44px -16px rgba(15, 23, 42, 0.14);
  transform: translateY(-3px);
  border-color: rgba(13, 148, 136, 0.2);
}

/* Squircle + outline ikone, različite pastel palete */
.home-how-step__icon {
  width: 56px;
  height: 56px;
  border-radius: 28%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  line-height: 0;
  flex-shrink: 0;
}

.home-how-step__icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.home-how-step__icon--mint {
  background: #e0f7f9;
  color: #005c5c;
}

.home-how-step__icon--lavender {
  background: #ede9fe;
  color: #5b21b6;
}

.home-how-step__icon--peach {
  background: #ffedd5;
  color: #9a3412;
}

.home-how-step__icon--sky {
  background: #e0f2fe;
  color: #0369a1;
}

.home-how-step__text {
  margin: 0;
  font-size: clamp(1rem, 1.9vw, 1.12rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: var(--home-text);
}

@media (max-width: 960px) {
  .home-how-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .home-how-steps {
    grid-template-columns: 1fr;
  }

  .home-section--how {
    padding-top: 48px;
    padding-bottom: 52px;
  }
}

/* Najvažnije mogućnosti — cik-cak tekst / slika (50% : 50%) */
.home-features-zigzag {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 56px);
}

.home-feature-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
}

.home-feature-row--flip {
  flex-direction: row-reverse;
}

.home-feature-row__text,
.home-feature-row__media {
  flex: 1 1 50%;
  min-width: 0;
}

.home-feature-row__text {
  padding: 0;
  margin: 0;
}

.home-feature-row__text h3 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: var(--home-text);
}

.home-feature-row__text p {
  margin: 0;
  font-size: clamp(0.98rem, 1.7vw, 1.08rem);
  font-weight: 500;
  color: var(--home-text);
  line-height: 1.65;
  max-width: 42ch;
}

.home-feature-row__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-feature-row__placeholder {
  width: 100%;
  min-height: clamp(200px, 28vw, 280px);
  border-radius: var(--home-radius-sm);
  border: 1px dashed rgba(15, 23, 42, 0.14);
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.06), rgba(99, 102, 241, 0.06));
}

/* Zamijeni .home-feature-row__placeholder slikom: <img class="home-feature-row__img" src="..." alt=""> */
.home-feature-row__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--home-radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--home-shadow);
}

@media (max-width: 768px) {
  .home-feature-row,
  .home-feature-row--flip {
    flex-direction: column;
    align-items: stretch;
  }

  /* Bez order-a: uvijek tekst pa slika kao u HTML-u (ranije su --flip redovi na mobilnom stavljali sliku iznad teksta). */

  .home-feature-row__text,
  .home-feature-row__media {
    flex-basis: auto;
    width: 100%;
  }
}

/* —— CTA —— */
.home-cta {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(155deg, #0f172a 0%, #1e1b4b 42%, #134e4a 100%);
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.home-cta::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  max-width: 480px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.25) 0%, transparent 65%);
  pointer-events: none;
}

.home-cta h2 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  position: relative;
}

.home-cta p {
  margin: 0 auto 20px;
  max-width: 58ch;
  color: rgba(226, 232, 240, 0.88);
  font-size: 1.06rem;
  line-height: 1.55;
  position: relative;
}

.home-cta p:last-of-type {
  margin-bottom: 26px;
}

.home-cta .home-btn--primary {
  position: relative;
  background: var(--home-accent);
  color: #fff;
  box-shadow: 0 10px 32px rgba(13, 148, 136, 0.45);
}

.home-cta .home-btn--primary:hover {
  background: #0f766e;
  color: #fff;
}

/* —— Footer —— */
.home-footer {
  padding: 40px 24px 36px;
  font-size: 14px;
  color: var(--home-muted);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: var(--home-bg-soft);
}

.home-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.home-footer__main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 40px;
  margin-bottom: 28px;
}

.home-footer__brand {
  max-width: 340px;
}

.home-footer__name {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--home-text);
  margin-bottom: 8px;
}

.home-footer__tagline {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--home-muted);
}

.home-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.home .home-footer__nav a {
  font-size: 14px;
  font-weight: 650;
  color: var(--home-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.home .home-footer__nav a:hover {
  color: var(--home-accent);
}

.home-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 12px;
  color: #94a3b8;
}

.home-footer__copy {
  margin: 0;
}

.home-footer__credit {
  margin: 0;
}

.home .home-footer .home-footer__credit a.home-footer__author {
  font-weight: 600;
  color: var(--home-accent-deep);
  text-decoration: underline;
  text-decoration-color: rgba(13, 148, 136, 0.35);
  text-underline-offset: 2px;
}

.home .home-footer .home-footer__credit a.home-footer__author:hover {
  color: var(--home-accent);
  text-decoration-color: rgba(13, 148, 136, 0.55);
}

@media (max-width: 640px) {
  .home-footer__main {
    flex-direction: column;
    align-items: stretch;
  }

  .home-footer__nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .home-footer__meta {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* —— Scroll to top (isti vizuelni jezik kao .home-cat-card__icon--teal) —— */
.home-scroll-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #ccfbf7;
  color: #0f766e;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 6px 16px -8px rgba(13, 148, 136, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease, color 0.15s ease;
}

.home .home-scroll-top,
.home .home-scroll-top:visited {
  color: #0f766e;
}

.home-scroll-top svg {
  display: block;
}

.home-scroll-top:hover {
  transform: translateY(-2px);
  background: #b2f5ea;
  color: #0d9488;
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 10px 22px -8px rgba(13, 148, 136, 0.45);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  /* Slojevi: backdrop < header (hamburger) < drawer (panel mora biti iznad headera) */
  .home-header {
    z-index: 9010;
  }

  .home-nav--desktop,
  .home-nav-actions--desktop {
    display: none !important;
  }

  .home-nav-toggle {
    display: inline-flex;
  }

  .home-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  .home-root.is-nav-open .home-nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .home-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    width: min(300px, 88vw);
    height: 100%;
    height: 100dvh;
    margin: 0;
    z-index: 9050;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 2px 0 24px rgba(15, 23, 42, 0.12);
    transform: translateX(-100%);
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .home-root.is-nav-open .home-drawer {
    transform: translateX(0);
  }

  body.home-nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .home-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .home-hero__visual {
    min-height: 320px;
    order: 1;
  }

  .home-hero__content {
    order: 0;
  }

  .home-hero-showcase {
    max-width: 420px;
  }

  .home-hero-showcase__viz {
    min-height: 200px;
  }
}

@media (max-width: 640px) {
  .home-hero-glass--progress {
    width: min(52%, 156px);
    padding: 10px 12px;
  }

  .home-hero-glass--done {
    padding: 8px 12px;
    right: 8px;
    top: 10px;
  }

  .home-hero-glass__msg {
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .home-hero__title {
    max-width: none;
  }

  .home-hero__proof {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-glass--progress,
  .home-hero-glass--done {
    animation: none;
  }

  .home-drawer,
  .home-nav-backdrop,
  .home-nav-toggle__bar {
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
