/* ============================================================
   NIBVOK — shared stylesheet for all landing pages
   ============================================================ */

:root {
  --bg:            #04070d;
  --bg-raised:     #090f1a;
  --bg-input:      #0e1626;
  --border:        #1e293b;
  --border-strong: #334155;

  --text:          #f1f5f9;
  --text-muted:    #94a3b8;
  --text-dim:      #64748b;

  --accent:        #2563eb;
  --accent-hover:  #3b82f6;
  --accent-text:   #60a5fa;

  --green:         #22c55e;
  --green-text:    #34d399;
  --red:           #f87171;
  --amber:         #fde68a;

  --radius:        12px;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select { font-family: inherit; font-size: inherit; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; border-top: 1px solid var(--border); }
.section-tight { padding: 48px 0; }

.split { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.grid-bg {
  background-image:
    linear-gradient(to right,  rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ---------- announcement ---------- */
.announce {
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.announce > .container {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px;
  padding-top: 10px; padding-bottom: 10px;
}
.announce .dot { color: var(--green); }
.announce a { color: var(--accent-text); }
.announce a:hover { text-decoration: underline; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 7, 13, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav > .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .04em; flex-shrink: 0; }
.brand-mark {
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--accent); border-radius: 6px; font-size: 14px; font-weight: 800;
}

.nav-links { display: none; align-items: center; gap: 26px; font-size: 14px; color: var(--text-muted); }
@media (min-width: 1000px) { .nav-links { display: flex; } }

.nav-links > a, .nav-drop > button {
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  background: none; border: 0; cursor: pointer; padding: 0; transition: color .15s;
}
.nav-links > a:hover, .nav-drop > button:hover { color: var(--text); }
.nav-links .active {
  color: var(--text); background: rgba(37, 99, 235, .15);
  border: 1px solid rgba(37, 99, 235, .4); padding: 5px 12px; border-radius: 6px;
}

.nav-drop { position: relative; }
.nav-drop > button { display: flex; align-items: center; gap: 4px; }
.nav-drop .chev { width: 12px; height: 12px; transition: transform .2s; }
.nav-drop:hover .chev, .nav-drop.open .chev { transform: rotate(180deg); }

.drop-panel {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(6px);
  margin-top: 12px; width: 560px;
  background: #0b1120; border: 1px solid var(--border-strong);
  border-radius: 14px; box-shadow: 0 24px 60px -12px rgba(0,0,0,.9);
  padding: 14px; display: grid; gap: 10px;
  max-height: 70vh; overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 60;
}
.nav-drop:hover .drop-panel, .nav-drop.open .drop-panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.drop-item { border-radius: 10px; padding: 12px; transition: background .15s; }
.drop-item:hover { background: rgba(30, 41, 59, .6); }
.drop-item .drop-title {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text);
}
.drop-item p { font-size: 12px; line-height: 1.55; color: var(--text-muted); margin-top: 6px; }
.drop-item .drop-link {
  display: inline-block; margin-top: 8px; font-size: 12px;
  font-weight: 600; color: var(--accent-text);
}
.drop-item .drop-link:hover { color: #93c5fd; }

.nav-toggle {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: none; border: 1px solid var(--border-strong);
  border-radius: 8px; color: var(--text); cursor: pointer;
}
@media (min-width: 1000px) { .nav-toggle { display: none; } }

.mobile-menu {
  display: none; border-top: 1px solid var(--border);
  background: #060a12; max-height: calc(100vh - 64px); overflow-y: auto;
}
.mobile-menu.open { display: block; }
@media (min-width: 1000px) { .mobile-menu.open { display: none; } }
.mobile-menu .container { padding-top: 12px; padding-bottom: 20px; }
.mobile-menu a, .mobile-menu .mob-group > button {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 13px 4px; font-size: 15px; color: var(--text-muted);
  background: none; border: 0; border-bottom: 1px solid rgba(30, 41, 59, .6);
  cursor: pointer; text-align: left; font-family: inherit;
}
.mobile-menu a:hover, .mobile-menu .mob-group > button:hover { color: var(--text); }
.mobile-menu .mob-sub {
  display: none; padding: 4px 0 8px 12px;
  border-bottom: 1px solid rgba(30, 41, 59, .6);
}
.mobile-menu .mob-group.open .mob-sub { display: block; }
.mobile-menu .mob-sub .drop-item { padding: 10px 8px; border-bottom: 1px solid rgba(30, 41, 59, .35); }
.mobile-menu .mob-sub .drop-item:last-child { border-bottom: 0; }
.mobile-menu .btn { margin-top: 16px; width: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px rgba(37, 99, 235, .6); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.05); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
h1 .accent { color: var(--accent-text); display: block; }
h2 { font-size: clamp(24px, 3.5vw, 34px); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 17px; font-weight: 700; }
.lede { font-size: 17px; color: var(--text-muted); max-width: 620px; margin-top: 18px; }
.section-head { margin-bottom: 40px; }
.section-head p { color: var(--text-muted); margin-top: 12px; max-width: 640px; }

/* ---------- cards ---------- */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card.featured { border-color: rgba(37,99,235,.55); box-shadow: 0 0 0 1px rgba(37,99,235,.2), 0 20px 50px -20px rgba(37,99,235,.35); }
.card h3 { margin-bottom: 8px; }
.card .price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 14px 0 4px; }
.card .price small { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.card .price-note { font-size: 12px; color: var(--text-dim); font-family: var(--mono); }
.card .card-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }

.tier-tag {
  display: inline-block; font-family: var(--mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-text); background: rgba(37,99,235,.12);
  border: 1px solid rgba(37,99,235,.3);
  padding: 3px 8px; border-radius: 4px; margin-bottom: 12px;
}
.tier-tag.green { color: var(--green-text); background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); }

.feature-list { list-style: none; margin: 18px 0; display: grid; gap: 9px; }
.feature-list li {
  font-size: 13.5px; color: var(--text-muted);
  padding-left: 22px; position: relative; line-height: 1.5;
}
.feature-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--green-text); font-weight: 700; font-size: 12px;
}
.feature-list.plain li::before { content: '·'; color: var(--text-dim); font-size: 18px; line-height: 1; }

/* ---------- code panel ---------- */
.code-panel {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-raised); overflow: hidden;
}
.code-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 12px; color: var(--text-muted);
}
.code-dots { display: flex; gap: 6px; }
.code-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.code-dots i:nth-child(1) { background: #ef4444; }
.code-dots i:nth-child(2) { background: #eab308; }
.code-dots i:nth-child(3) { background: #22c55e; }
.code-live { color: var(--green); }
.code-body {
  padding: 20px; font-family: var(--mono); font-size: 13px;
  line-height: 1.9; overflow-x: auto; white-space: pre;
}
.code-body .comment { color: var(--text-dim); }
.code-body .kw { color: var(--accent-text); }
.code-body .str { color: var(--green-text); }
.code-body .warn { color: var(--amber); }
.code-body .deny { color: var(--red); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; background: var(--bg-raised);
}
.stat .stat-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim);
}
.stat .stat-value { font-size: 24px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.stat .stat-note { font-size: 11px; color: var(--green-text); margin-top: 2px; font-family: var(--mono); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; background: var(--bg-raised); overflow: hidden; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 16px 18px; background: none; border: 0;
  color: var(--text); font-size: 14.5px; font-weight: 600;
  text-align: left; cursor: pointer; font-family: inherit;
}
.faq-q:hover { background: rgba(30,41,59,.4); }
.faq-q .plus { color: var(--accent-text); font-size: 18px; flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 18px 18px; font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.faq-item.open .faq-a { display: block; }

/* ---------- forms ---------- */
.form-field {
  width: 100%; padding: 12px 16px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--bg-input);
  color: var(--text); font-size: 14px; margin-bottom: 12px;
}
.form-field::placeholder { color: var(--text-dim); }
.form-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.2); }

/* ---------- product grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }
.cat {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 12px; text-align: center; background: var(--bg-raised);
  transition: border-color .15s, background .15s;
}
.cat:hover { border-color: var(--border-strong); background: #0d1524; }
.cat .cat-icon { font-size: 20px; }
.cat .cat-name { font-size: 12px; font-weight: 600; margin-top: 8px; line-height: 1.3; }
.cat .cat-count { font-family: var(--mono); font-size: 10px; color: var(--text-dim); margin-top: 3px; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  text-align: left; padding: 12px 16px; background: #0b1120;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data td { padding: 12px 16px; border-bottom: 1px solid rgba(30,41,59,.6); color: var(--text-muted); }
table.data tr:last-child td { border-bottom: 0; }
table.data td:first-child { color: var(--text); font-weight: 500; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px;
}
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer ul a { font-size: 13px; color: var(--text-muted); }
.footer ul a:hover { color: var(--text); }
.footer .foot-desc { font-size: 13px; color: var(--text-muted); max-width: 280px; margin-top: 12px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  font-size: 12px; color: var(--text-dim); text-align: center;
}

/* ---------- misc ---------- */
.pill {
  display: inline-block; font-family: var(--mono); font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 20px;
  border: 1px solid var(--border-strong); color: var(--text-muted);
}
.pill.green { color: var(--green-text); border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }
.pill.blue { color: var(--accent-text); border-color: rgba(37,99,235,.35); background: rgba(37,99,235,.08); }

.divider { height: 1px; background: var(--border); margin: 40px 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
