/* ============ NIBVOK homepage v2 — photo-led, high-tech ============ */

.announce {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px 16px; font-size: 12.5px;
  background: linear-gradient(90deg, #08111f, #0b1c33 50%, #08111f);
  border-bottom: 1px solid var(--border);
  color: #a9b8cd; flex-wrap: wrap; text-align: center;
}
.announce a { color: #6fa8ff; text-decoration: none; font-weight: 500; }
.announce a:hover { text-decoration: underline; }
.announce .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success-foreground); box-shadow: 0 0 10px var(--success-foreground);
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--background) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1320px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--foreground); text-decoration: none;
  font-weight: 650; letter-spacing: .14em; font-size: 14px;
}
.brand svg { color: var(--primary); }
.nav-links { display: flex; gap: 1px; margin-left: 6px; align-items: center; }
.nav-item { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--muted-foreground); font-family: inherit;
  font-size: 13px; font-weight: 500;
  padding: 8px 8px; border-radius: 7px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-trigger:hover, .nav-item.open .nav-trigger { color: var(--foreground); background: rgba(255,255,255,.04); }
.nav-trigger .chev { font-size: 9px; opacity: .6; transition: transform .18s; }
.nav-item.open .chev { transform: rotate(180deg); }

.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 280px; padding: 8px;
  background: linear-gradient(180deg, #1f6fe5, #0d4fbe);
  border: 1px solid #2b7bf0; border-radius: 12px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.95);
  display: none; z-index: 60;
}
.nav-item.open .nav-menu { display: block; }
.nav-menu.wide { min-width: 560px; display: none; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-item.open .nav-menu.wide { display: grid; }
.nav-menu a {
  display: block; padding: 9px 11px; border-radius: 8px;
  text-decoration: none; transition: background .12s;
}
.nav-menu a:hover { background: rgba(255,255,255,.14); }
.nav-menu strong {
  display: block; font-size: 13px; font-weight: 600;
  color: #ffffff; margin-bottom: 2px;
}
.nav-menu span { display: block; font-size: 11.5px; color: rgba(255,255,255,.78); line-height: 1.4; }

.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-cta .btn { padding: 8px 11px; font-size: 12.5px; }

.nav-burger {
  display: none; flex-direction: column; gap: 4px;
  background: transparent; border: 0; cursor: pointer; padding: 8px;
}
.nav-burger span { width: 20px; height: 2px; background: var(--foreground); border-radius: 2px; }
.nav-mobile { display: none; flex-direction: column; padding: 8px 18px 16px; border-top: 1px solid var(--border); }
.nav-mobile a {
  color: var(--muted-foreground); text-decoration: none;
  font-size: 14px; padding: 11px 4px; border-bottom: 1px solid rgba(255,255,255,.04);
}
.nav-mobile.open { display: flex; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 9px;
  font-size: 13.5px; font-weight: 550;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent; font-family: inherit;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #2b7bf0, var(--primary-deep));
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(31,111,229,.9), inset 0 1px 0 rgba(255,255,255,.16);
}
.btn-primary:hover { box-shadow: 0 12px 30px -10px rgba(31,111,229,1), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-outline { background: transparent; color: var(--foreground); border-color: var(--border); }
.btn-outline:hover { border-color: #33405a; background: rgba(255,255,255,.03); }
.btn-ghost { background: transparent; color: var(--muted-foreground); }
.btn-ghost:hover { color: var(--foreground); }
.btn-lg { padding: 13px 22px; font-size: 14.5px; border-radius: 10px; }

/* hero */
.hero { position: relative; padding: 76px 24px 0; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -220px 0 auto 0; height: 780px;
  background:
    radial-gradient(680px 360px at 18% 18%, rgba(31,111,229,.30), transparent 70%),
    radial-gradient(560px 320px at 82% 8%, rgba(13,79,190,.22), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: 52px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #7f8ea6; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 13px; margin-bottom: 24px; background: rgba(255,255,255,.02);
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success-foreground);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61,220,151,.6); }
  70% { box-shadow: 0 0 0 8px rgba(61,220,151,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); }
}
.hero h1 {
  font-size: clamp(36px, 4.9vw, 62px);
  line-height: 1.05; letter-spacing: -.035em; font-weight: 600;
  margin: 0 0 22px;
}
.grad {
  background: linear-gradient(100deg, #6fa8ff, #3ddc97 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lede {
  font-size: 16.5px; line-height: 1.68; color: var(--muted-foreground);
  max-width: 540px; margin: 0 0 30px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: #6f7c90;
}
.hero-meta .sep { width: 1px; height: 12px; background: var(--border); }

/* hero photo */
.hero-media { position: relative; }
.hero-photo {
  width: 100%; aspect-ratio: 4 / 3.15; object-fit: cover; object-position: 62% center;
  height: auto; display: block;
  border-radius: 16px;
  border: 1px solid #1e2a3f;
  box-shadow: 0 44px 90px -40px rgba(0,0,0,.95), 0 0 0 1px rgba(111,168,255,.08) inset;
}
.hero-photo-tag {
  position: absolute; left: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 10px;
  background: rgba(6,7,10,.82);
  border: 1px solid #24304a;
  backdrop-filter: blur(10px);
  font-size: 12px; color: #c3ccdb;
}
.hero-photo-tag .tag { min-width: 62px; padding: 3px 0; }

/* built for */
.built-for {
  max-width: 1240px; margin: 60px auto 0;
  padding: 26px 0 34px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 34px; flex-wrap: wrap;
}
.built-label { font-size: 10.5px; letter-spacing: .16em; color: #5d6a7d; font-weight: 700; }
.built-items { display: flex; gap: 30px; flex-wrap: wrap; }
.built-items span { font-size: 13.5px; color: #8b95a7; font-weight: 500; }

/* sections */
.section { max-width: 1240px; margin: 0 auto; padding: 78px 24px; }
.section-head { max-width: 780px; margin-bottom: 40px; }
.kicker {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #6fa8ff; margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(26px, 3.1vw, 40px); line-height: 1.14;
  letter-spacing: -.028em; font-weight: 600; margin: 0 0 16px;
}
.section-sub { font-size: 15.5px; line-height: 1.68; color: var(--muted-foreground); margin: 0; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 26px 22px; }
.stat-num {
  font-size: 38px; font-weight: 650; letter-spacing: -.03em;
  line-height: 1; margin-bottom: 12px;
  background: linear-gradient(180deg, #fff, #8b95a7);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-num span { font-size: 22px; }
.stat-label { font-size: 12.5px; line-height: 1.5; color: var(--muted-foreground); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 24px 22px; position: relative; overflow: hidden; }
.step::after {
  content: ""; position: absolute; inset: 0 auto auto 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent); opacity: .55;
}
.step-num { font-size: 11px; color: #5d6a7d; letter-spacing: .1em; margin-bottom: 14px; }
.step h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.01em; }
.step-q { font-size: 13px; color: #6fa8ff; margin: 0 0 16px; }
.step ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.step li {
  font-size: 12.5px; line-height: 1.45; color: var(--muted-foreground);
  padding-left: 15px; position: relative;
}
.step li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 5px; height: 5px; border-radius: 1px; background: #33405a;
}

/* live code editor */
.code-section { padding-top: 64px; padding-bottom: 78px; }
.code-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 52px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { font-size: 13.5px; color: #b9c6da; padding-left: 26px; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--success-foreground); font-weight: 700;
}

.editor {
  border: 1px solid #1e2a3f; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #0a0f18, #070a10);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.95), 0 0 60px -30px rgba(31,111,229,.5);
}
.editor-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.lights { display: flex; gap: 5px; }
.lights i { width: 8px; height: 8px; border-radius: 50%; background: #2a3140; display: block; }
.editor-file { font-size: 11.5px; color: #6f7c90; letter-spacing: .04em; }
.live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--success-foreground);
  text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
}
.editor-body {
  margin: 0; padding: 20px 18px; min-height: 300px;
  font-size: 12.5px; line-height: 1.85; color: #c3ccdb;
  white-space: pre-wrap; word-break: break-word;
}
.editor-body .c-comment { color: #4d5a6e; }
.editor-body .c-key { color: #6fa8ff; }
.editor-body .c-str { color: #3ddc97; }
.editor-body .c-deny { color: #ff5f6d; }
.editor-body .c-warn { color: #ffb340; }
.editor-body .c-dim { color: #7f8ea6; }
.editor-body .caret {
  display: inline-block; width: 7px; height: 14px;
  background: #6fa8ff; vertical-align: -2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.editor-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 16px; border-top: 1px solid var(--border);
  font-size: 11px; color: #6f7c90; background: rgba(255,255,255,.015);
}
.editor-foot .ok { color: var(--success-foreground); }

/* verdicts */
.verdicts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.verdict { padding: 24px 22px; }
.verdict-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.verdict-head .tag { min-width: 78px; padding: 4px 0; }
.verdict-ms { font-size: 11px; color: #5d6a7d; }
.verdict h3 { font-size: 17px; font-weight: 600; margin: 0 0 10px; letter-spacing: -.015em; }
.verdict p { font-size: 13.5px; line-height: 1.62; color: var(--muted-foreground); margin: 0; }
.verdict.allow { border-color: rgba(61,220,151,.18); }
.verdict.confirm { border-color: rgba(255,179,64,.18); }
.verdict.deny { border-color: rgba(255,95,109,.18); }

.tag {
  display: inline-block; text-align: center;
  font-size: 9.5px; font-weight: 700; letter-spacing: .08em;
  padding: 3px 0; border-radius: 4px; border: 1px solid transparent;
}
.tag.allow { color: var(--success-foreground); background: rgba(61,220,151,.10); border-color: rgba(61,220,151,.25); }
.tag.deny { color: var(--destructive-foreground); background: rgba(255,95,109,.10); border-color: rgba(255,95,109,.25); }
.tag.confirm { color: var(--warning-foreground); background: rgba(255,179,64,.10); border-color: rgba(255,179,64,.25); }

/* gate visual */
.gate-visual {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid #1e2a3f;
}
.gate-visual img { width: 100%; height: 340px; object-fit: cover; display: block; }
.gate-visual-copy {
  position: absolute; inset: auto 0 0 0;
  padding: 28px 26px;
  background: linear-gradient(180deg, transparent, rgba(5,7,11,.94) 55%);
}
.gate-visual-copy h3 { font-size: 19px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.015em; }
.gate-visual-copy p { font-size: 13.5px; color: var(--muted-foreground); margin: 0; }

/* failures */
.failure-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.failure { padding: 20px; }
.failure .tag { min-width: 76px; padding: 3px 0; margin-bottom: 14px; }
.failure h4 { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.failure p { font-size: 12.5px; line-height: 1.58; color: var(--muted-foreground); margin: 0; }

/* record */
.record-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.record-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: center; }
.record-media { position: relative; }
.record-media > img {
  width: 100%; height: 400px; object-fit: cover; display: block;
  border-radius: 16px; border: 1px solid #1e2a3f;
}
.ledger {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  background: rgba(6,8,12,.92); backdrop-filter: blur(12px);
  border-color: #24304a; overflow: hidden;
}
.ledger-head, .lrow {
  display: grid; grid-template-columns: 66px 1fr 1fr;
  gap: 10px; padding: 10px 16px; font-size: 11.5px;
}
.ledger-head {
  color: #5d6a7d; letter-spacing: .1em; text-transform: uppercase; font-size: 9.5px;
  border-bottom: 1px solid var(--border);
}
.ledger-rows { display: flex; flex-direction: column; }
.lrow { border-bottom: 1px solid rgba(255,255,255,.03); color: #8b95a7; }
.lrow span:first-child { color: #5d6a7d; }
.allow-t { color: var(--success-foreground); }
.deny-t { color: var(--destructive-foreground); }
.confirm-t { color: var(--warning-foreground); }
.ledger-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; font-size: 10.5px; color: #6f7c90;
  background: rgba(255,255,255,.02); border-top: 1px solid var(--border);
}
.verified { color: var(--success-foreground); }

/* family */
.family-section {
  padding-top: 72px; padding-bottom: 56px;
  border-top: 1px solid var(--border);
}
.family-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.family-media img, .paper-media img {
  width: 100%; height: auto; display: block;
  border-radius: 16px; border: 1px solid #1e2a3f;
  box-shadow: 0 40px 80px -44px rgba(0,0,0,.9);
}
.family-copy .btn, .paper-copy .btn { margin-top: 26px; }

/* whitepaper */
.paper-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 52px; align-items: center; }
.paper-media img { max-height: 520px; object-fit: cover; object-position: center 30%; }
.paper-stats { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.paper-stats > div {
  display: flex; flex-direction: column; gap: 2px;
  padding-left: 16px; border-left: 2px solid var(--primary);
}
.proof-num { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.paper-stats .muted { font-size: 12px; }

/* cta */
.cta-section { padding-bottom: 96px; }
.cta {
  position: relative; overflow: hidden; padding: 46px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center;
  background: linear-gradient(135deg, #0b1424, #080c14 62%);
  border-color: #1d2740;
}
.cta-glow {
  position: absolute; inset: auto -120px -160px auto; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(31,111,229,.32), transparent 65%);
  pointer-events: none;
}
.cta-copy h2 { font-size: clamp(24px, 2.7vw, 34px); margin: 0 0 12px; letter-spacing: -.025em; }
.cta-copy p { font-size: 14.5px; line-height: 1.62; color: var(--muted-foreground); margin: 0; }
.cta-form { display: flex; flex-direction: column; gap: 10px; position: relative; }
.cta-form input {
  width: 100%; padding: 12px 14px; border-radius: 9px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  color: var(--foreground); font-size: 13.5px; font-family: inherit;
  outline: none; transition: border-color .15s;
}
.cta-form input:focus { border-color: var(--primary); }
.cta-form input::placeholder { color: #5d6a7d; }
.cta-form .btn { justify-content: center; margin-top: 4px; }
.form-note { font-size: 11px; color: #5d6a7d; margin: 4px 0 0; line-height: 1.5; }
.cta-form.sent::after {
  content: "Thanks — we'll be in touch.";
  font-size: 12.5px; color: var(--success-foreground); margin-top: 6px;
}

/* footer */
.footer {
  border-top: 1px solid #2b7bf0;
  background: linear-gradient(180deg, #1f6fe5, #0d4fbe);
  color: #ffffff;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 54px 24px 38px;
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px;
}
.footer-brand p { font-size: 13px; line-height: 1.6; margin: 14px 0 0; max-width: 280px; color: rgba(255,255,255,.82); }
.footer .brand { color: #ffffff; }
.footer .brand svg { color: #ffffff; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h5 {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.72); margin: 0 0 14px; font-weight: 700;
}
.footer-cols a {
  display: block; font-size: 13px; color: rgba(255,255,255,.88);
  text-decoration: none; margin-bottom: 10px;
}
.footer-cols a:hover { color: #ffffff; text-decoration: underline; }
.footer-bottom {
  max-width: 1240px; margin: 0 auto; padding: 18px 24px 32px;
  border-top: 1px solid rgba(255,255,255,.22);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11.5px;
}
.footer-bottom .muted { color: rgba(255,255,255,.78); }

/* responsive */
@media (max-width: 1080px) {
  .hero-grid, .code-grid, .record-grid, .family-grid, .paper-grid, .cta { grid-template-columns: 1fr; gap: 40px; }
  .stats, .steps, .failure-grid { grid-template-columns: repeat(2, 1fr); }
  .verdicts { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .paper-media img { max-height: 420px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .section { padding: 60px 20px; }
  .stats, .steps, .failure-grid { grid-template-columns: 1fr; }
  .built-for { gap: 18px; margin-top: 40px; }
  .built-items { gap: 16px; }
  .cta { padding: 28px 22px; }
  .nav-inner { padding: 12px 18px; gap: 14px; }
  .nav-cta .btn-ghost { display: none; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .editor-body { min-height: 280px; font-size: 11.5px; }
  .gate-visual img { height: 240px; }
  .record-media > img { height: 300px; }
  .ledger-head, .lrow { grid-template-columns: 56px 1fr 1fr; font-size: 10.5px; padding: 9px 12px; }
}

@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* install button */
.btn-install {
  background: rgba(61,220,151,.10);
  color: var(--success-foreground);
  border-color: rgba(61,220,151,.32);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -.01em;
}
.btn-install:hover {
  background: rgba(61,220,151,.18);
  border-color: rgba(61,220,151,.55);
  box-shadow: 0 10px 26px -14px rgba(61,220,151,.8);
}
.btn-install svg { opacity: .9; }

/* plain nav link (no dropdown) */
.nav-link {
  display: inline-flex; align-items: center;
  color: var(--muted-foreground); text-decoration: none;
  font-size: 13px; font-weight: 500;
  padding: 8px 8px; border-radius: 7px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--foreground); background: rgba(255,255,255,.04); }
