/* SECAM — Komercijalni predlog. Sharp, restrained, institutional. No gradients/glass/badges. */

:root {
  --canvas: #0E1216;
  --surface: #151B21;
  --hairline: #2B343D;
  --text: #F4F2EC;
  --muted: #AAB2BA;
  --amber: #FFB000;
  --amber-ink: #0E1216;
  --danger: #D64545;
  --max: 1180px;
  --gap: 24px;
  --radius: 8px;
  --font-display: "Space Grotesk", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { background: var(--canvas); }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 14px;
}

.eyebrow--muted { color: var(--muted); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
  color: var(--text);
}

h1 { font-size: 44px; line-height: 1.08; letter-spacing: -1.2px; }
h2 { font-size: 32px; line-height: 1.15; letter-spacing: -0.8px; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.2px; }
h4 { font-size: 16px; line-height: 1.4; }

p { margin: 0 0 16px; color: var(--muted); }
p:last-child { margin-bottom: 0; }
.mono, code, .risk { overflow-wrap: anywhere; }

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
}

.mono { font-family: var(--font-mono); }

section {
  padding: 72px 0;
  border-bottom: 1px solid var(--hairline);
}

section:last-of-type { border-bottom: none; }

.section-head {
  max-width: 720px;
  margin: 0 0 40px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--amber-ink);
  padding: 10px 16px;
  z-index: 200;
  font-family: var(--font-mono);
  font-size: 13px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ===== Top bar / sticky section nav ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 18, 22, 0.94);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: none;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.2px;
  white-space: nowrap;
}
.brand__dot { color: var(--amber); }
.brand small {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
}

.section-nav {
  display: none;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}
.section-nav a {
  display: block;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
}
.section-nav a:hover,
.section-nav a.is-active { color: var(--text); background: var(--surface); }

.topbar__cta {
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .section-nav { display: flex; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: #E59C00; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--hairline); }
.btn-outline:hover { border-color: var(--muted); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ===== Hero ===== */
.hero { padding-top: 64px; padding-bottom: 64px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.hero__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 0 0 24px;
}
.hero__lede { margin-top: 20px; margin-bottom: 28px; }
.hero__demo {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  max-width: 420px;
}
.hero__demo img {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 4px;
}
.hero__demo-text { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.hero__demo-text a { color: var(--amber); text-decoration: none; }
.hero__demo-text a:hover { text-decoration: underline; }

/* ===== Cards ===== */
.cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
}
.card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--amber);
  margin: 0 0 12px;
}

/* ===== Before / After ===== */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-bottom: 40px;
}
.compare-item { break-inside: avoid; }
.compare-item figure { margin: 0; }
.compare-item img {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  width: 100%;
}
.compare-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.tag--old { background: rgba(214, 69, 69, 0.14); color: #E8807F; }
.tag--new { background: rgba(255, 176, 0, 0.14); color: var(--amber); }
.compare-item figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* Comparison matrix */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius); }
table.matrix { width: 100%; border-collapse: collapse; min-width: 640px; }
table.matrix th, table.matrix td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  font-size: 14px;
}
table.matrix th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
}
table.matrix tr:last-child td { border-bottom: none; }
table.matrix td.crit { font-family: var(--font-mono); font-size: 12px; color: var(--text); white-space: nowrap; }
table.matrix td.old-col { color: #C79795; }
table.matrix td.new-col { color: var(--text); }
table.matrix tbody tr:nth-child(odd) { background: rgba(255,255,255,0.015); }

/* ===== Risk note ===== */
.risk {
  background: var(--surface);
  border: 1px solid var(--amber);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 32px;
}
.risk h3 { color: var(--amber); }
.risk .quote {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 18px 20px;
  margin: 20px 0;
}
.risk ul { margin: 16px 0; padding-left: 20px; color: var(--muted); }
.risk li { margin-bottom: 8px; }

/* ===== Built list ===== */
.built-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-bottom: 40px;
}
.built-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.built-list li {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
}
.built-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  background: var(--amber);
  border-radius: 1px;
}
.qa-strip {
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.qa-strip strong { color: var(--amber); font-weight: 500; }

.shot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
.shot-grid figure { margin: 0; break-inside: avoid; }
.shot-grid img { border: 1px solid var(--hairline); border-radius: var(--radius); }
.shot-grid figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ===== Migration plan ===== */
.phase-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
.phase {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.phase__num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--amber);
  line-height: 1;
}
.phase h4 { margin-bottom: 6px; }
.phase p { margin: 0; font-size: 14px; }

/* ===== Scope ===== */
.scope-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
.scope-col {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
}
.scope-col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; }
.scope-col ul { margin: 0; padding: 0; list-style: none; }
.scope-col li {
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--text);
}
.scope-col li:last-child { border-bottom: none; }

/* ===== Investment ===== */
.offer-card {
  background: var(--surface);
  border: 1px solid var(--amber);
  border-radius: var(--radius);
  padding: 40px;
}
.offer-price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin: 28px 0;
}
.price-block {
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 22px;
  background: var(--canvas);
}
.price-block .price-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 10px;
}
.price-block .price-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.8px;
  color: var(--amber);
}
.price-block .price-value small {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.milestones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
.milestone {
  flex: 1 1 140px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.milestone strong { display: block; color: var(--amber); font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.offer-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.offer-meta strong { color: var(--text); font-weight: 500; }
.phase2-note {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px dashed var(--hairline);
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* ===== Final CTA ===== */
.final-cta {
  text-align: center;
  padding: 80px 0;
}
.final-cta .wrap { max-width: 680px; }
.final-cta h2 { font-size: 36px; }
.final-cta .btn-row { justify-content: center; margin-top: 28px; }
.final-cta__qr {
  margin: 32px auto 0;
  width: 120px;
  height: 120px;
  border-radius: 4px;
}

/* ===== Footer ===== */
footer.site-footer {
  padding: 32px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ===== Reveal (progressive enhancement; visible by default) ===== */
[data-reveal] { opacity: 1; transform: none; }
body.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
body.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  body.reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive breakpoints ===== */
@media (min-width: 640px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .built-list { grid-template-columns: repeat(2, 1fr); }
  .offer-price-grid { grid-template-columns: repeat(2, 1fr); }
  .scope-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  h1 { font-size: 52px; }
  h2 { font-size: 36px; }
  .compare-grid { grid-template-columns: repeat(2, 1fr); }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .phase-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
}

@media (min-width: 1200px) {
  h1 { font-size: 60px; }
}

@media (max-width: 500px) {
  .topbar__inner { padding: 10px 12px; gap: 10px; }
  .brand small { display: none; }
  .topbar__cta { padding: 0 12px; }
  .wrap { padding-left: 24px; padding-right: 24px; }
  h1 { font-size: 42px; }
  .offer-card { padding: 40px; }
}

/* ===== Print ===== */
@media print {
  @page { size: A4; margin: 12mm 10mm; }
  html, body { background: #0E1216 !important; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; color-adjust: exact !important; }
  .no-print { display: none !important; }
  section { padding: 28px 0; border-bottom: 1px solid var(--hairline); }
  .card, .risk, .offer-card, .phase, .compare-item, .shot-grid figure, table.matrix, .scope-col {
    break-inside: avoid;
  }
  .section-head { break-inside: avoid; break-after: avoid; }
  .final-cta { break-before: page; break-inside: avoid; padding: 52px 0; }
  footer.site-footer { break-inside: avoid; padding: 20px 0; }
  h1, h2, h3 { break-after: avoid; }
}
