/* ═══════════════════════════════════════
   NAREVIK DESIGN SYSTEM v2
   Theme: Near-future dark. Sharp. Editorial.
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800;900&family=Geist+Mono:wght@400;500;700&display=swap');

:root {
  --bg:           #09090B;
  --bg-elevated:  #18181B;
  --border:       #27272A;
  --text-1:       #FAFAFA;
  --text-2:       #A1A1AA;
  --text-3:       #52525B;
  --accent:       #4F46E5;
  --accent-h:     #4338CA;
  --accent-s:     rgba(79,70,229,0.12);
  --accent-b:     rgba(79,70,229,0.28);
  --amber:        #F59E0B;
  --amber-s:      rgba(245,158,11,0.1);
  --red:          #EF4444;
  --red-s:        rgba(239,68,68,0.08);
  --red-b:        rgba(239,68,68,0.18);
  --radius:       4px;
  --max-w:        1120px;
  --section-pad:  112px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: 'Geist','SF Pro Display',-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0; }

h1,h2,h3,h4 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-1);
}

/* ── Layout ── */
.wrap { width: min(var(--max-w), calc(100% - 48px)); margin: 0 auto; }

/* ── TOPBAR ── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9,9,11,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  width: min(var(--max-w), calc(100% - 48px));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 60px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.9375rem; letter-spacing: -0.02em;
}
.brand img { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 0.875rem; font-weight: 500; color: var(--text-2); transition: color 150ms; }
.nav a:hover { color: var(--text-1); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: opacity 150ms, background 150ms;
  text-decoration: none; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary  { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-h); border-color: var(--accent-h); }
.btn-secondary { background: transparent; border-color: var(--border); color: var(--text-1); }
.btn-secondary:hover { background: var(--bg-elevated); }
.btn-lg { height: 44px; padding: 0 24px; font-size: 0.9375rem; }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); }

/* ── Tags ── */
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: var(--radius); font-size: 0.75rem; font-weight: 600;
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-2);
}
.tag-amber { background: var(--amber-s); border-color: rgba(245,158,11,.25); color: var(--amber); }
.tag-indigo { background: var(--accent-s); border-color: var(--accent-b); color: #818CF8; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ── Section scaffold ── */
section { padding: var(--section-pad) 0; }
.section-label {
  display: inline-block; font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 20px;
}
.section-heading {
  font-size: clamp(1.875rem, 3.8vw, 3rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.05;
}
.section-body {
  font-size: 1rem; color: var(--text-2); max-width: 52ch;
  line-height: 1.75; margin-top: 16px;
}

/* ── Shared grid cells (flush-border style) ── */
.cell-grid {
  display: grid; margin-top: 48px;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; gap: 0;
  background: var(--border); /* gap color */
}
.cell-grid > * { background: var(--bg); }
.cell-grid.cols-2 { grid-template-columns: repeat(2,1fr); }
.cell-grid.cols-3 { grid-template-columns: repeat(3,1fr); }
.cell-grid.cols-4 { grid-template-columns: repeat(4,1fr); }
.cell { padding: 32px; }

/* ── Pain cards ── */
.pain-card h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 10px; }
.pain-card p  { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

/* ── Step cards ── */
.step-no { font-family: 'Geist Mono',monospace; font-size: 0.75rem; color: var(--text-3); margin-bottom: 20px; }
.step-card h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 10px; }
.step-card p  { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

/* ── Pricing tiers ── */
.tier-badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  border-radius: 2px; font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px;
}
.tier-badge.entry      { background: var(--bg-elevated); color: var(--text-3); border: 1px solid var(--border); }
.tier-badge.core       { background: var(--accent-s); color: #818CF8; border: 1px solid var(--accent-b); }
.tier-badge.monthly    { background: var(--amber-s); color: var(--amber); border: 1px solid rgba(245,158,11,.25); }
.tier-badge.enterprise { background: var(--bg-elevated); color: var(--text-2); border: 1px solid var(--border); }
.tier-name  { font-size: 0.8125rem; font-weight: 600; color: var(--text-2); margin-bottom: 12px; }
.tier-price { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 16px; }
.tier-price span { font-size: 1rem; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.tier.featured > * { /* highlight featured */ }
.tier.featured { background: var(--bg-elevated); }
.tier-desc { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; flex: 1; margin-bottom: 24px; }

/* ── FAQ ── */
.faq-item h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.02em; }
.faq-item p  { font-size: 0.875rem; color: var(--text-2); line-height: 1.7; }
.faq-item a  { color: var(--text-1); text-decoration: underline; text-decoration-color: var(--border); }
.faq-item a:hover { text-decoration-color: var(--text-2); }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner {
  width: min(var(--max-w), calc(100% - 48px)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-block { font-size: 0.8125rem; color: var(--text-3); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 0.8125rem; color: var(--text-3); transition: color 150ms; }
.footer-links a:hover { color: var(--text-2); }

/* ── Animations ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ── Mono util ── */
.mono { font-family: 'Geist Mono','JetBrains Mono',monospace; }


/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .nav { display: none; }
  .pain-grid,.step-grid,.tier-grid,.faq-grid,.support-grid,
  .deliverable-grid,.cell-grid.cols-4,.cell-grid.cols-3,.cell-grid.cols-2 { grid-template-columns: 1fr; }
  .timeline { flex-direction:column; }
  .timeline::before { display:none; }
  .timeline-step { padding:0 0 24px 52px; }
  .timeline-dot { position:absolute; left:0; top:0; }
  .upsell-band { flex-direction:column; gap:20px; }
}
