/* =========================================================
   Ri MARKETING — "Izrada web sajtova" prodajni landing page
   + demo-request modal (shared: koristi se i na landing i na početnoj)
   Built on top of styles.css (tokens, buttons)
   ========================================================= */

/* ---------- minimal landing header ---------- */
.landing-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  padding: 18px 0;
  background: rgba(9, 6, 15, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.landing-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landing-header .logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.landing-header .logo-link img { width: 42px; }
.landing-header .logo-link span {
  font-family: 'Nexa Heavy', sans-serif;
  font-size: 15px;
  color: var(--text);
  display: none;
}
@media (min-width: 480px) { .landing-header .logo-link span { display: block; } }

.landing-header-actions { display: flex; align-items: center; gap: 10px; }

.landing-phone {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: border-color var(--ease) .25s, transform var(--ease) .25s;
}
.landing-phone:hover { border-color: var(--primary-2); transform: translateY(-2px); }
.landing-phone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- hero ---------- */
.landing-hero {
  position: relative;
  padding: 150px 0 90px;
  text-align: center;
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.landing-hero .container { position: relative; z-index: 1; }

.landing-hero h1 {
  font-family: 'Nexa Heavy', sans-serif;
  font-size: clamp(30px, 5.2vw, 54px);
  line-height: 1.2;
  max-width: 820px;
  margin: 0 auto 20px;
  color: var(--text);
}

.landing-hero .sub {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 36px;
}

.landing-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.landing-trust .num {
  font-family: 'Nexa Heavy', sans-serif;
  font-size: 28px;
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.landing-trust .label { font-family: 'Manrope', sans-serif; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* ---------- website mockup gallery ---------- */
.mockup-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mockup-gallery .mockup-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform var(--ease) .3s, border-color var(--ease) .3s;
}
.mockup-gallery .mockup-card:hover { transform: translateY(-6px); border-color: rgba(168,85,247,.4); }
.mockup-gallery .mockup-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.mockup-gallery .mockup-card:nth-child(4),
.mockup-gallery .mockup-card:nth-child(5) { grid-column: span 1; }

@media (max-width: 900px) { .mockup-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mockup-gallery { grid-template-columns: 1fr; } }

/* ---------- process steps ---------- */
.process-steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.process-step {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: 34px;
}
.process-step:last-child { padding-bottom: 0; }

.process-marker {
  position: relative;
  flex-shrink: 0;
  width: 44px;
}

.process-num-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nexa Heavy', sans-serif;
  font-size: 16px;
  color: #fff;
  background: var(--gradient-brand);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
  position: relative;
  z-index: 1;
}

.process-step.step-outline .process-num-circle {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  box-shadow: none;
}

.process-marker::after {
  content: '';
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% - 10px);
  background: var(--border);
}
.process-step:last-child .process-marker::after { display: none; }

.process-content { flex: 1; padding-top: 6px; }

.process-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.process-top h3 { font-family: 'Nexa Heavy', sans-serif; font-size: 17px; color: var(--text); margin: 0; }

.process-duration {
  font-family: 'Manrope', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.process-content p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* ---------- maintenance (hosting i održavanje) ---------- */
.maintenance-section { margin-top: 56px; }

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

.maintenance-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
  transition: transform var(--ease) .3s, border-color var(--ease) .3s;
}
.maintenance-card:hover { transform: translateY(-6px); }
.maintenance-card.featured { border: 1.5px solid var(--primary-2); box-shadow: 0 20px 50px rgba(124, 58, 237, 0.22); }

.maintenance-card h4 { font-family: 'Nexa Heavy', sans-serif; font-size: 18px; color: var(--text); margin-bottom: 10px; }
.maintenance-price { font-family: 'Nexa Heavy', sans-serif; font-size: 28px; color: var(--text); margin-bottom: 4px; }
.maintenance-price span { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600; color: var(--text-faint); }
.maintenance-note { font-size: 12.5px; color: var(--text-faint); margin-bottom: 18px; }

.maintenance-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.maintenance-card li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.maintenance-card li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; stroke: var(--primary-2); fill: none; stroke-width: 2.4; }

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

/* ---------- pricing cards ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.price-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--ease) .3s, border-color var(--ease) .3s, box-shadow var(--ease) .3s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }

.price-card.featured {
  border: 1.5px solid var(--primary-2);
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.28);
}

.price-card .price-tag, .maintenance-card .price-tag {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card h3 { font-family: 'Nexa Heavy', sans-serif; font-size: 21px; color: var(--text); margin-bottom: 8px; }
.price-card .price-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; min-height: 40px; }

.price-card .price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.price-card .price-old {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: var(--text-faint);
  text-decoration: line-through;
}
.price-card .price-new {
  font-family: 'Nexa Heavy', sans-serif;
  font-size: 38px;
  color: var(--text);
}
.price-card .price-new sup { font-size: 16px; font-family: 'Manrope', sans-serif; font-weight: 700; margin-left: 2px; }
.price-card .price-period { font-family: 'Manrope', sans-serif; font-size: 12.5px; color: var(--text-faint); margin-bottom: 26px; }

.price-card ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}
.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.price-card li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; stroke: var(--primary-2); fill: none; stroke-width: 2.4; }

@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

.pricing-addon {
  margin-top: 30px;
  text-align: center;
  padding: 22px 28px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
}
.pricing-addon strong { color: var(--text); }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--ease) .25s;
}
.faq-item.open { border-color: rgba(168, 85, 247, .4); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.faq-question .faq-plus {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform var(--ease) .3s, border-color var(--ease) .3s;
}
.faq-question .faq-plus::before, .faq-question .faq-plus::after {
  content: '';
  position: absolute;
  background: var(--text);
  transition: transform var(--ease) .3s, opacity var(--ease) .3s;
}
.faq-question .faq-plus::before { width: 10px; height: 1.6px; }
.faq-question .faq-plus::after { width: 1.6px; height: 10px; }
.faq-item.open .faq-plus { border-color: var(--primary-2); }
.faq-item.open .faq-plus::after { opacity: 0; transform: rotate(90deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease), padding .4s var(--ease);
}
.faq-answer p {
  padding: 0 24px 20px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; }

/* ---------- slim landing footer ---------- */
.landing-footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.landing-footer img { width: 90px; margin: 0 auto 14px; }
.landing-footer .social-icons { justify-content: center; margin-top: 18px; margin-bottom: 18px; }
.landing-footer p { color: var(--text-faint); font-size: 12.5px; }

/* =========================================================
   DEMO REQUEST MODAL
   ========================================================= */
.demo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5, 2, 12, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease) .3s;
}
.demo-modal-overlay.open { opacity: 1; pointer-events: auto; }

.demo-modal {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-strong);
  transform: translateY(24px) scale(.97);
  transition: transform var(--ease) .35s;
}
.demo-modal-overlay.open .demo-modal { transform: translateY(0) scale(1); }

.demo-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--ease) .2s, color var(--ease) .2s;
}
.demo-modal-close:hover { border-color: var(--primary-2); color: var(--text); }

.demo-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.demo-modal h2 { font-family: 'Nexa Heavy', sans-serif; font-size: 24px; color: var(--text); margin-bottom: 8px; }
.demo-modal-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 26px; line-height: 1.6; }

.demo-modal-field-label {
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.demo-package-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.demo-package-option {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 16px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  transition: border-color var(--ease) .2s, background var(--ease) .2s;
  text-align: center;
}
.demo-package-option:hover { border-color: rgba(168,85,247,.5); }
.demo-package-option.selected {
  border-color: var(--primary-2);
  background: rgba(124, 58, 237, 0.1);
  color: var(--text);
}

.demo-package-radio {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
}
.demo-package-option.selected .demo-package-radio { display: none; }

.demo-package-check {
  display: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 11px;
  align-items: center;
  justify-content: center;
}
.demo-package-option.selected .demo-package-check { display: flex; }

.demo-package-badge {
  position: absolute;
  top: -9px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.demo-package-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.demo-package-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.demo-package-features li svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; stroke: var(--primary-2); fill: none; stroke-width: 2.6; }

.demo-form { display: flex; flex-direction: column; gap: 12px; }

.demo-form-field { position: relative; }
.demo-form-field svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; stroke: var(--text-faint); fill: none; stroke-width: 1.8;
  pointer-events: none;
}
.demo-form-field input {
  width: 100%;
  padding: 13px 14px 13px 40px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14.5px;
  font-family: 'Poppins', sans-serif;
  transition: border-color var(--ease) .2s, background var(--ease) .2s;
}
.demo-form-field input::placeholder { color: var(--text-faint); }
.demo-form-field input:focus { outline: none; border-color: var(--primary-2); background: rgba(168,85,247,.06); }

.demo-upload-label { font-size: 12.5px; color: var(--text-muted); margin: 6px 0 8px; }
.demo-upload-label span { color: var(--text-faint); }

.demo-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 26px 16px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--ease) .25s, background var(--ease) .25s;
}
.demo-upload-zone:hover, .demo-upload-zone.dragover {
  border-color: var(--primary-2);
  background: rgba(124, 58, 237, 0.06);
}
.demo-upload-zone svg { width: 26px; height: 26px; stroke: var(--text-faint); fill: none; stroke-width: 1.6; margin-bottom: 4px; }
.demo-upload-zone span { font-size: 13.5px; color: var(--text-muted); }
.demo-upload-zone span strong { color: var(--text); }
.demo-upload-zone .demo-upload-hint { font-size: 11.5px; color: var(--text-faint); }

.demo-upload-filelist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.demo-upload-filelist span {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  background: rgba(124,58,237,.12);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
}

.demo-submit { margin-top: 8px; width: 100%; }
.demo-form-note { text-align: center; font-size: 12px; color: var(--text-faint); margin-top: 10px; }

.demo-form-success { text-align: center; padding: 20px 0; }
.demo-form-success .demo-success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.demo-form-success .demo-success-icon svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2.4; }
.demo-form-success h3 { font-family: 'Nexa Heavy', sans-serif; font-size: 21px; color: var(--text); margin-bottom: 8px; }
.demo-form-success p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

@media (max-width: 560px) {
  .demo-modal { padding: 26px 20px; }
  .demo-package-options { gap: 6px; }
  .demo-package-option { padding: 12px 4px 10px; font-size: 11px; }
}

body.modal-open { overflow: hidden; }

.demo-modal [hidden] { display: none !important; }

.demo-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
