/* ============================================
   LIBELA SOFT - Product Presentation Framework
   Modern SaaS Landing Page Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #09090b;
  --bg-card: #18181b;
  --bg-card-hover: #1f1f23;
  --surface: #27272a;
  --border: #2e2e32;
  --border-light: #3f3f46;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #2563eb;
  --green: #22c55e;
  --green-dark: #16a34a;
  --amber: #f59e0b;
  --red: #ef4444;
  --purple: #a855f7;
  --cyan: #06b6d4;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.4);
  --transition: all .2s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- NAVIGATION ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(9,9,11,.8);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 16px; letter-spacing: -.02em;
  text-decoration: none; color: var(--text);
}
.nav-logo img { height: 28px; border-radius: 6px; }
.nav-logo .dot { color: var(--accent); }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; transition: var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta {
  padding: 8px 18px !important; border-radius: 8px !important;
  background: var(--accent) !important; color: #fff !important;
  font-weight: 600 !important; font-size: 13px;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(59,130,246,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.2);
  font-size: 13px; font-weight: 600; color: var(--accent-light);
  margin-bottom: 24px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hero h1 {
  font-size: clamp(40px, 7vw, 80px); font-weight: 900;
  line-height: 1.05; letter-spacing: -.04em;
  max-width: 900px; margin-bottom: 20px;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent), var(--cyan), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 18px; color: var(--text-muted); max-width: 600px;
  margin-bottom: 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-screenshot {
  margin-top: 60px; max-width: 1100px; width: 100%;
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), var(--shadow-lg);
}
.hero-screenshot img { width: 100%; display: block; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: var(--transition); cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(59,130,246,.3); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--border-light); }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }
.btn-large { padding: 14px 32px; font-size: 15px; border-radius: 12px; }

/* ---- SECTIONS ---- */
.section {
  padding: 100px 24px; max-width: 1200px; margin: 0 auto;
}
.section-header {
  text-align: center; max-width: 700px; margin: 0 auto 60px;
}
.section-header .label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--accent); margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.15; margin-bottom: 16px;
}
.section-header p {
  font-size: 16px; color: var(--text-muted); line-height: 1.7;
}

/* ---- FEATURE GRID ---- */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.feature-icon.blue { background: rgba(59,130,246,.12); color: var(--accent); }
.feature-icon.green { background: rgba(34,197,94,.12); color: var(--green); }
.feature-icon.purple { background: rgba(168,85,247,.12); color: var(--purple); }
.feature-icon.cyan { background: rgba(6,182,212,.12); color: var(--cyan); }
.feature-icon.amber { background: rgba(245,158,11,.12); color: var(--amber); }
.feature-card h3 {
  font-size: 16px; font-weight: 700; margin-bottom: 8px;
  letter-spacing: -.01em;
}
.feature-card p {
  font-size: 14px; color: var(--text-muted); line-height: 1.6;
}

/* ---- STATS ---- */
.stats-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--border); border-radius: var(--radius-lg);
  overflow: hidden; margin: 60px 0;
}
.stat {
  background: var(--bg-card); padding: 32px; text-align: center;
}
.stat-value {
  font-size: 36px; font-weight: 900; letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* ---- SHOWCASE (feature detail) ---- */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; padding: 80px 0;
}
.showcase.reverse { direction: rtl; }
.showcase.reverse > * { direction: ltr; }
.showcase-content h3 {
  font-size: 28px; font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 16px; line-height: 1.2;
}
.showcase-content p {
  font-size: 15px; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 24px;
}
.showcase-list { list-style: none; }
.showcase-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; font-size: 14px; color: var(--text-muted);
}
.showcase-list li::before {
  content: '✓'; color: var(--green); font-weight: 700;
  min-width: 20px; text-align: center;
}
.showcase-image {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.showcase-image img { width: 100%; display: block; }

/* ---- PRICING ---- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px; max-width: 900px; margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  position: relative; transition: var(--transition);
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 40px rgba(59,130,246,.15);
}
.pricing-card:hover { transform: translateY(-2px); }
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em;
}
.pricing-card .plan-name {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted); margin-bottom: 8px;
}
.pricing-card .price {
  font-size: 40px; font-weight: 900; letter-spacing: -.03em;
  margin-bottom: 4px;
}
.pricing-card .price span { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.pricing-card .price-note {
  font-size: 13px; color: var(--text-dim); margin-bottom: 24px;
}
.pricing-features { list-style: none; margin-bottom: 24px; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 14px; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border: none; }
.pricing-features li::before {
  content: '✓'; color: var(--green); font-weight: 700;
  min-width: 16px; text-align: center; font-size: 13px;
}
.pricing-features li.disabled { opacity: .4; }
.pricing-features li.disabled::before { content: '—'; color: var(--text-dim); }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ---- TESTIMONIALS ---- */
.testimonials {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.testimonial {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.testimonial-text {
  font-size: 15px; line-height: 1.7; color: var(--text-muted);
  margin-bottom: 20px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 14px;
  color: var(--accent);
}
.testimonial-name { font-size: 14px; font-weight: 600; }
.testimonial-role { font-size: 12px; color: var(--text-dim); }

/* ---- TECH STACK ---- */
.tech-pills {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 40px 0;
}
.tech-pill {
  padding: 8px 16px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
.tech-pill .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ---- CTA SECTION ---- */
.cta-section {
  text-align: center; padding: 100px 24px;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; bottom: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(59,130,246,.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  letter-spacing: -.03em; margin-bottom: 16px;
}
.cta-section p {
  font-size: 16px; color: var(--text-muted); max-width: 500px;
  margin: 0 auto 32px;
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border); padding: 40px 24px;
  text-align: center; font-size: 13px; color: var(--text-dim);
}
.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---- COMPARISON TABLE ---- */
.comparison-table {
  width: 100%; border-collapse: collapse; margin: 40px 0;
  background: var(--bg-card); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
}
.comparison-table th {
  padding: 16px 20px; text-align: left;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted);
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.comparison-table td {
  padding: 14px 20px; font-size: 14px; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.comparison-table tr:last-child td { border: none; }
.comparison-table td:first-child { font-weight: 600; color: var(--text); }
.comparison-table .check { color: var(--green); font-weight: 700; }
.comparison-table .cross { color: var(--text-dim); }

/* ---- BENTO GRID ---- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 16px;
}
.bento-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: var(--transition); overflow: hidden;
}
.bento-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-3 { grid-column: span 3; }
.bento-card.span-4 { grid-column: span 4; }
.bento-card.tall { grid-row: span 2; }
.bento-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--accent); margin-bottom: 8px;
}
.bento-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.bento-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.bento-icon { font-size: 28px; margin-bottom: 12px; }
.bento-card img { width: 100%; border-radius: 8px; margin-top: 16px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .showcase.reverse { direction: ltr; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-card.span-2, .bento-card.span-3, .bento-card.span-4 { grid-column: span 2; }
  .hero { padding: 100px 20px 60px; }
  .section { padding: 60px 20px; }
}

@media (max-width: 480px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.span-2, .bento-card.span-3, .bento-card.span-4 { grid-column: span 1; }
  .hero h1 { font-size: 36px; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; cursor: pointer;
  transition: opacity .25s, visibility .25s;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90vw; max-height: 90vh; object-fit: contain;
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transform: scale(.85); transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: none; color: #fff;
  font-size: 24px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

/* Clickable images */
.clickable-img { cursor: zoom-in; transition: transform .2s, box-shadow .2s; }
.clickable-img:hover { transform: scale(1.02); box-shadow: 0 8px 30px rgba(0,0,0,.3); }

/* ============================================
   LIBELA SOFT — Site header (prilagođen glavnom sajtu)
   ============================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 72px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(9,9,11,.85);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.site-header .site-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); font-weight: 800; font-size: 16px;
  letter-spacing: -.02em; white-space: nowrap;
}
.site-header .brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg,#6366f1,#a855f7);
  color: #fff; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(99,102,241,.35);
}
.site-header .brand-name { display: flex; align-items: center; gap: 4px; }
.site-header .brand-name .dot { color: var(--accent); }
.site-header .site-nav { display: flex; flex: 1; align-items: center; gap: 6px; justify-content: flex-end; min-width: 0; }
.site-header .site-nav a {
  padding: 8px 13px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; transition: var(--transition); white-space: nowrap;
}
.site-header .site-nav a:hover { color: var(--text); background: var(--surface); }
.site-header .site-nav a.active { color: #fff; background: var(--surface); }
.site-header .site-nav a.site-cta {
  padding: 8px 18px !important; border-radius: 8px !important;
  background: linear-gradient(135deg,#6366f1,#a855f7) !important; color: #fff !important;
  font-weight: 600 !important; font-size: 13px;
}
.site-header .site-nav a.site-cta:hover { opacity: .9; background: linear-gradient(135deg,#6366f1,#a855f7) !important; }

/* kompenzacija fiksiranog headera + MOBILNI MENI */
.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.menu-btn {
  display: none; padding: 8px 12px; border: none; background: transparent; cursor: pointer;
  color: var(--text-muted); font-size: 18px; border-radius: 8px; transition: var(--transition);
  font-family: inherit; line-height: 1;
}
.menu-btn:hover { color: var(--text); background: var(--surface); }

@media (max-width: 900px) {
  .site-header { height: auto; min-height: 64px; padding: 10px 16px; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .site-header .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg-card); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg); padding: 10px 16px 18px; z-index: 99;
  }
  .site-header .site-nav.open { display: flex; }
  .site-header .site-nav a { padding: 12px 10px; border-radius: 10px; font-size: 15px; }
  .site-header .site-nav a.site-cta { text-align: center; margin-top: 6px; }
}

/* ============================================
   LIBELA SOFT — svetla tema (light) + header dugmad
   ============================================ */
html.light {
  --bg: #f4f6fb;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --surface: #eef1f7;
  --border: #dde3ee;
  --border-light: #cbd5e1;
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --shadow: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.06);
  --shadow-lg: 0 10px 40px rgba(15,23,42,.12);
}
html.light .site-header {
  background: rgba(255,255,255,.88);
  border-bottom-color: var(--border);
}
html.light .site-header .brand-mark {
  box-shadow: 0 4px 16px rgba(99,102,241,.25);
}
html.light .site-header .site-nav a.active { color: #111; background: var(--surface); }
html.light .hero::before { opacity: .5; }
html.light .footer { border-top-color: var(--border); }

.site-header .theme-btn, .site-header .lang-btn {
  padding: 8px; border-radius: 8px; border: none; cursor: pointer;
  background: transparent; color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; transition: var(--transition); font-family: inherit;
}
.site-header .theme-btn:hover, .site-header .lang-btn:hover {
  color: var(--text); background: var(--surface);
}
.site-header .theme-btn svg { display: none; }
.site-header .theme-btn i { font-size: 16px; line-height: 1; }
.site-header .theme-btn .icon-sun { display: none; }
.site-header .theme-btn .icon-moon { display: block; }
html.light .site-header .theme-btn .icon-sun { display: block; }
html.light .site-header .theme-btn .icon-moon { display: none; }
.site-header .lang-btn { gap: 5px; padding: 8px 10px; font-weight: 700; font-size: 12px; letter-spacing: .04em; }
.site-header .lang-flag { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; }

/* napomena o licencama u pricing sekcijama */
.licence-note {
  font-size: 12px; color: var(--text-dim); font-style: italic;
  margin: 0 0 18px; text-align: center; max-width: 720px; margin-left: auto; margin-right: auto;
}

/* logo LIBELA SOFT u headeru */
.site-header .brand-logo { height: 34px; width: auto; border-radius: 8px; background: #fff; padding: 2px; box-sizing: content-box; }

/* ============================================
   QA ispravke 2026-09-04
   ============================================ */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }
.menu-btn { min-width: 44px; min-height: 44px; }
.site-header .theme-btn, .site-header .lang-btn { min-height: 40px; }
img[loading="lazy"] { background: var(--surface); }
.site-nav.open { background: var(--bg-card); }
html.light .site-nav.open { background: #ffffff; }
html.light .site-nav.open a { color: var(--text); }
html.light .site-nav.open a:hover { background: var(--surface); }

.back-to-top {
  position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
  border-radius: 12px; border: none; cursor: pointer; z-index: 95;
  background: linear-gradient(135deg,#6366f1,#a855f7); color: #fff;
  display: none; align-items: center; justify-content: center;
  font-size: 15px; box-shadow: 0 6px 20px rgba(99,102,241,.35);
}
.back-to-top.show { display: flex; }

/* Spriceava razvlačenje slika (HTML height atribut + CSS width) */
.section img, .screenshot-card img, .showcase-image img, .bento-card img, .hero-screenshot img, .feature-highlight img, .figure img { height: auto; }
.hero img { height: auto; }
