/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0b0f1a;
  --bg2: #111827;
  --bg3: #1a2236;
  --card: #161d2e;
  --border: #1e2d45;
  --accent: #3b82f6;
  --accent2: #6366f1;
  --accent-glow: rgba(59,130,246,.18);
  --text: #f1f5f9;
  --text2: #94a3b8;
  --text3: #64748b;
  --success: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 8px;
  --nav-h: 68px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11,15,26,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 20px;
  height: var(--nav-h);
}
.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.2rem;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.4rem; }
.logo-text strong { color: var(--accent); }

/* Desktop links — fill remaining space */
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link {
  color: var(--text2); text-decoration: none; padding: 6px 14px;
  border-radius: var(--radius-sm); font-size: .93rem; transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--text); background: var(--bg3); }

/* nav-end: always visible, right side */
.nav-end {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
/* Install button — hidden on mobile */
.nav-cta { /* inherits .btn .btn-primary */ }

/* ── Hamburger — hidden on desktop ── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; padding: 0;
}
.hamburger .bar {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
  transform-origin: center;
}
.hamburger.is-open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer ── */
.mobile-drawer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  border-top: 0 solid var(--border);
  transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .25s ease, border-top-width 0s .35s;
}
.mobile-drawer.is-open {
  max-height: 500px;
  opacity: 1;
  border-top: 1px solid var(--border);
  transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .25s ease;
}
.drawer-inner {
  padding: 16px 0 28px;
  display: flex; flex-direction: column;
}
.drawer-links { display: flex; flex-direction: column; }
.drawer-links .nav-link {
  display: block; padding: 16px 0; font-size: 1rem; font-weight: 500;
  border-bottom: 1px solid var(--border); border-radius: 0;
  color: var(--text2);
}
.drawer-links .nav-link:last-child { border-bottom: none; }
.drawer-links .nav-link:hover { background: none; color: var(--text); }
.drawer-install {
  display: flex; justify-content: center;
  width: 100%; margin-top: 24px;
  padding: 14px; border-radius: var(--radius);
  font-size: .95rem;
}

/* Lang switcher */
.lang-switcher { display: flex; gap: 2px; background: var(--bg3); border-radius: 8px; padding: 3px; }
.lang-btn {
  background: none; border: none; color: var(--text3); cursor: pointer;
  font: 600 .75rem/1 'Inter', sans-serif; padding: 5px 10px; border-radius: 6px; transition: all .2s;
}
.lang-btn.active, .lang-btn:hover { background: var(--accent); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; border: none; cursor: pointer; border-radius: var(--radius-sm);
  font: 600 .9rem 'Inter', sans-serif; transition: all .2s; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff; padding: 10px 20px;
  box-shadow: 0 4px 20px rgba(59,130,246,.35);
}
.btn-primary:hover { background: #2563eb; transform: translateY(-1px); box-shadow: 0 6px 28px rgba(59,130,246,.45); }
.btn-ghost {
  background: transparent; color: var(--text2); padding: 10px 20px;
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); background: var(--accent-glow); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-xl { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius); }

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 80px; position: relative; overflow: hidden;
}
.hero-bg-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(59,130,246,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 50px;
  color: var(--text2); font-size: .83rem; padding: 6px 16px; font-weight: 500;
}
.hero-title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { max-width: 620px; color: var(--text2); font-size: 1.05rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-stats {
  display: flex; align-items: center; gap: 24px; margin-top: 8px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 32px;
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--text3); font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* Mock browser */
.hero-img-wrap { width: 100%; max-width: 700px; margin-top: 16px; }
.hero-img { width: 100%; border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0,0,0,.6); }
.mock-browser {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.mock-bar {
  display: flex; align-items: center; gap: 8px; background: var(--bg3);
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.mock-dot.r { background: #ff5f57; }
.mock-dot.y { background: #ffbd2e; }
.mock-dot.g { background: #28ca41; }
.mock-url {
  flex: 1; background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 12px; font-size: .78rem; color: var(--text3); text-align: center;
}
.mock-body { padding: 16px; }
.mock-tabs { display: flex; gap: 2px; margin-bottom: 16px; background: var(--bg3); border-radius: 8px; padding: 4px; }
.mock-tab {
  flex: 1; text-align: center; padding: 7px 4px; font-size: .75rem; color: var(--text3);
  border-radius: 6px; font-weight: 500;
}
.mock-tab.active { background: var(--accent); color: #fff; }
.mock-content { display: flex; flex-direction: column; gap: 8px; }
.mock-heading { padding: 8px 12px; border-radius: 6px; font-size: .82rem; font-weight: 600; }
.mock-heading.h1 { background: rgba(239,68,68,.12); color: #fca5a5; border-left: 3px solid #ef4444; }
.mock-heading.h2 { background: rgba(249,115,22,.1); color: #fdba74; border-left: 3px solid #f97316; margin-left: 12px; }
.mock-heading.h3 { background: rgba(234,179,8,.1); color: #fde047; border-left: 3px solid #eab308; margin-left: 24px; }
.mock-vitals { display: flex; gap: 8px; margin-top: 8px; }
.mock-vital { flex: 1; padding: 10px; border-radius: 8px; font-size: .78rem; text-align: center; }
.mock-vital.good { background: rgba(34,197,94,.12); color: #86efac; border: 1px solid rgba(34,197,94,.2); }
.mock-vital.warn { background: rgba(245,158,11,.12); color: #fcd34d; border: 1px solid rgba(245,158,11,.2); }

/* ── Section shared ── */
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block; background: var(--accent-glow); color: var(--accent);
  border: 1px solid rgba(59,130,246,.25); border-radius: 50px;
  font-size: .78rem; font-weight: 600; padding: 5px 14px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em;
}
.section-header h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 12px; letter-spacing: -.02em; }
.section-header p { color: var(--text2); font-size: 1rem; max-width: 520px; margin: 0 auto; }

/* ── Features ── */
.features { background: var(--bg2); }
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feat-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(59,130,246,.12); }
.feat-icon { font-size: 2rem; margin-bottom: 14px; }
.feat-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feat-card p { font-size: .88rem; color: var(--text2); line-height: 1.65; }

/* ── How it works ── */
.steps { display: flex; align-items: flex-start; gap: 16px; }
.step {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px;
}
.step-num {
  font-size: 2.2rem; font-weight: 800; color: var(--accent);
  font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1;
}
.step-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-body p { font-size: .88rem; color: var(--text2); line-height: 1.65; }
.step-arrow { font-size: 1.5rem; color: var(--text3); padding-top: 38px; flex-shrink: 0; }

/* ── Export section ── */
.export-section { background: var(--bg2); }
.export-inner { display: flex; align-items: center; gap: 64px; }
.export-text { flex: 1; }
.export-text .section-tag { margin-bottom: 12px; }
.export-text h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 16px; letter-spacing: -.02em; }
.export-text p { color: var(--text2); font-size: .95rem; line-height: 1.7; margin-bottom: 24px; }
.export-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.export-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--text2); }
.check { color: var(--success); font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* Sheets mock */
.export-visual { flex: 1; }
.sheets-mock {
  background: #1e2533; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 16px 60px rgba(0,0,0,.4);
}
.sheets-header {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: #252e42; border-bottom: 1px solid var(--border); font-size: .82rem; color: var(--text2);
}
.sheets-logo { font-size: 1.2rem; }
.sheets-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); background: #1a2030; }
.sheets-tab { padding: 8px 16px; font-size: .75rem; color: var(--text3); cursor: default; border-right: 1px solid var(--border); }
.sheets-tab.active { background: var(--bg2); color: var(--text); font-weight: 600; border-bottom: 2px solid var(--accent); }
.sheets-rows { padding: 8px 0; }
.sheets-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; padding: 8px 16px; font-size: .8rem; align-items: center; }
.sheets-row.head { color: var(--text3); font-weight: 600; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.sheets-row.ok { background: rgba(34,197,94,.04); }
.sheets-row.warn { background: rgba(245,158,11,.04); }
.sheets-row.bad { background: rgba(239,68,68,.04); }
.badge-ok, .badge-warn, .badge-bad { padding: 2px 8px; border-radius: 4px; font-size: .72rem; font-weight: 700; }
.badge-ok { background: rgba(34,197,94,.15); color: #86efac; }
.badge-warn { background: rgba(245,158,11,.15); color: #fcd34d; }
.badge-bad { background: rgba(239,68,68,.15); color: #fca5a5; }

/* ── Privacy ── */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.priv-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 22px; text-align: center;
}
.priv-icon { font-size: 2rem; margin-bottom: 14px; }
.priv-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.priv-card p { font-size: .84rem; color: var(--text2); line-height: 1.65; }

/* ── Install CTA ── */
.install {
  background: var(--bg2); position: relative; overflow: hidden; text-align: center; padding: 120px 0;
}
.install-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(59,130,246,.12) 0%, transparent 70%);
  pointer-events: none;
}
.install-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.install-inner h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; }
.install-inner p { color: var(--text2); font-size: 1.05rem; max-width: 480px; }
.install-note { font-size: .8rem; color: var(--text3); margin-top: -8px; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border); padding: 40px 0;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; }
.footer-copy { font-size: .83rem; color: var(--text3); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: .83rem; color: var(--text3); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

/* ── Logo image ── */
.logo-img { width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0; }

/* ── Video section ── */
.video-section { background: var(--bg); padding: 0 0 100px; }
.video-wrap {
  max-width: 980px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  position: relative; padding-top: 56.25%; /* 16:9 */
}
.yt-embed {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none; display: block;
}

/* ── Screenshots ── */
.screenshots { background: var(--bg2); }
.screenshot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.screenshot-item { display: flex; flex-direction: column; gap: 16px; }
.screenshot-img-wrap {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,.45);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  text-decoration: none;
}
.screenshot-img-wrap:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  border-color: var(--accent);
}
.screenshot-img { width: 100%; display: block; }
.screenshot-zoom {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(11,15,26,.75); backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 10px; font-size: 1rem;
  opacity: 0; transition: opacity .2s;
}
.screenshot-img-wrap:hover .screenshot-zoom { opacity: 1; }
.screenshot-caption { text-align: left; }
.screenshot-tab-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-glow); border: 1px solid rgba(59,130,246,.25);
  color: var(--accent); border-radius: 50px; padding: 4px 12px;
  font-size: .75rem; font-weight: 700; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: .04em;
}
.screenshot-caption p { font-size: .86rem; color: var(--text2); line-height: 1.6; }

/* ── Lead Banner ── */
.lead-banner { padding: 36px 0; background: var(--bg); }
.lead-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 36px;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(59,130,246,.08) 0%, var(--card) 55%);
  border: 1px solid rgba(59,130,246,.28);
  border-radius: var(--radius);
  padding: 40px 48px;
  box-shadow: 0 4px 32px rgba(59,130,246,.09), inset 0 1px 0 rgba(255,255,255,.04);
}
.lead-inner::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2));
}
.lead-text { flex: 1; }
.lead-title {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 800; letter-spacing: -.025em;
  margin-bottom: 10px; color: var(--text);
}
.lead-desc {
  font-size: .9rem; color: var(--text2); line-height: 1.7; max-width: 520px;
}

/* ── Install icon ── */
.install-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 8px 32px rgba(59,130,246,.25); }

/* ── Support / Donation ── */
.support-section { background: var(--bg); padding: 100px 0; }
.support-card {
  display: grid; grid-template-columns: 1fr 240px; gap: 64px; align-items: start;
  background: var(--card);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: var(--radius);
  padding: 56px 64px;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,.35);
}
.support-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(59,130,246,.06) 0%, transparent 65%);
  pointer-events: none;
}
.support-copy { display: flex; flex-direction: column; gap: 20px; position: relative; }
.support-eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #22c55e;
}
.support-copy h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; margin: 0; }
.support-body { color: var(--text2); font-size: 1rem; line-height: 1.7; }
.support-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-support-coffee {
  background: #0070ba; color: #fff;
  border: none; padding: 14px 28px; border-radius: 8px;
  font-size: .95rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,112,186,.35);
}
.btn-support-coffee:hover {
  background: #005ea6;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,112,186,.5);
}
.support-note {
  font-size: .78rem; color: var(--text3); line-height: 1.6;
  border-top: 1px solid var(--border); padding-top: 16px;
}
.support-qr { display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }
.qr-img {
  width: 200px; height: 200px; object-fit: contain;
  background: #fff; border-radius: 12px; padding: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.qr-caption { font-size: .78rem; color: var(--text3); text-align: center; max-width: 200px; line-height: 1.5; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .export-inner { flex-direction: column; gap: 40px; }
}
@media (max-width: 768px) {
  /* Sakrij desktop linkove i Install dugme */
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  /* nav-end (lang + hamburger) guraj desno kad nema nav-links flex:1 */
  .nav-end   { margin-left: auto; }
  /* Prikaži hamburger */
  .hamburger { display: flex; }
  /* Lead banner */
  .lead-inner {
    flex-direction: column; text-align: center;
    padding: 32px 24px; gap: 24px;
  }
  .lead-inner::before { width: 100%; height: 4px; bottom: auto; right: 0; }
  .lead-desc { max-width: 100%; }
  .lead-inner .btn { width: 100%; justify-content: center; }
  .feat-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .support-card { grid-template-columns: 1fr; padding: 36px 24px; gap: 40px; }
  .support-qr { order: -1; }
  .steps { flex-direction: column; }
  .step-arrow { display: none; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 40px; height: 1px; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; }
}
