/* Blueprint Builds — official site
   Zero external requests: system fonts only, no CDNs, no trackers. */

:root {
  --bg: #0B0F17;
  --bg-2: #0E1420;
  --card: #131B2A;
  --card-2: #16202F;
  --border: #1E293B;
  --border-strong: #2B3A4F;
  --text: #F8FAFC;
  --text-dim: #94A3B8;
  --text-faint: #64748B;
  --amber: #258EFF;
  --amber-hi: #35A7FF;
  --amber-dim: rgba(37,142,255,0.14);
  --offline: #EAB308;
  --synced: #10B981;
  --approved: #3B82F6;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --maxw: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--amber); color: #FFFFFF; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* Blueprint grid backdrop */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(148,163,184,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ---------- Header ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,23,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.02em; font-size: 17px; }
.brand .mark { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-dim); font-size: 14.5px; font-weight: 500; transition: color .18s ease; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* mobile menu */
.mobile-menu { display: none; }
@media (max-width: 860px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu.open { display: flex; }
  .mobile-menu {
    flex-direction: column; gap: 6px; padding: 12px 24px 22px;
    border-bottom: 1px solid var(--border); background: rgba(11,15,23,0.96);
    backdrop-filter: blur(16px);
  }
  .mobile-menu a { padding: 12px 4px; color: var(--text-dim); font-weight: 600; border-bottom: 1px solid var(--border); }
  .mobile-menu .btn { margin-top: 12px; justify-content: center; }
  .mobile-menu a.btn-primary { color: #14130f; border-bottom: 0; }
}

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-weight: 600; font-size: 14.5px; border-radius: 11px;
  padding: 11px 20px; border: 1px solid transparent;
  transition: background-color .18s ease, transform .12s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--amber); color: #FFFFFF; box-shadow: 0 8px 24px -8px rgba(37,142,255,0.5); }
.btn-primary:hover { background: var(--amber-hi); box-shadow: 0 10px 30px -6px rgba(37,142,255,0.55); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--card-2); border-color: var(--amber); }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--card); color: var(--text-dim); text-transform: uppercase;
}
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot.on { background: var(--offline); box-shadow: 0 0 0 3px rgba(234,179,8,0.18); }
.dot.sync { background: var(--synced); box-shadow: 0 0 0 3px rgba(16,185,129,0.18); }
.dot.appr { background: var(--approved); }

.overline {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--amber); font-weight: 600;
}

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; padding: 84px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; line-height: 1.03;
  letter-spacing: -0.03em; margin: 20px 0 22px;
}
.hero h1 .accent { color: var(--amber); }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-dim); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.trust-row { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.trust-row div { display: flex; align-items: center; gap: 9px; color: var(--text-dim); font-size: 13.5px; }
.trust-row svg { color: var(--synced); flex: none; }

/* device mock */
.device {
  position: relative; border: 1px solid var(--border-strong); border-radius: 26px;
  background: linear-gradient(180deg, #101826, #0C1220);
  padding: 14px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.04);
}
.device-screen { border-radius: 16px; background: var(--bg-2); border: 1px solid var(--border); overflow: hidden; }
.ds-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.ds-title { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.ds-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.evi {
  display: flex; align-items: center; gap: 12px; padding: 11px; border-radius: 11px;
  background: var(--card); border: 1px solid var(--border);
}
.evi .thumb { width: 42px; height: 42px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, #1f2937, #0f172a); display: grid; place-items: center; color: var(--amber); }
.evi .meta { flex: 1; min-width: 0; }
.evi .meta b { font-size: 13px; font-weight: 600; }
.evi .meta span { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Sections ---------- */
section { position: relative; z-index: 1; padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; margin: 14px 0 14px; }
.section-head p { color: var(--text-dim); font-size: 1.08rem; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; position: relative; overflow: hidden;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.card:hover { border-color: rgba(249,115,22,0.4); transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0,0,0,0.9); }
.card .icn { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--amber-dim); color: var(--amber); margin-bottom: 18px; }
.card h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.97rem; }

/* Simulator */
.sim { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 40px; }
.sim-controls .switch-row { display: flex; align-items: center; gap: 14px; margin: 22px 0; }
.switch {
  position: relative; width: 58px; height: 32px; border-radius: 999px; cursor: pointer;
  background: var(--synced); border: 1px solid var(--border-strong); transition: background-color .25s ease; flex: none;
}
.switch.offline { background: var(--offline); }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; border-radius: 50%;
  background: #0B0F17; transition: transform .25s cubic-bezier(.4,0,.2,1); }
.switch.offline .knob { transform: translateX(26px); }
.sim-capture { min-height: 220px; }
.log-line { font-family: var(--mono); font-size: 12.5px; padding: 9px 12px; border-radius: 9px;
  background: var(--bg-2); border: 1px solid var(--border); margin-bottom: 8px; word-break: break-all; }
.log-line .k { color: var(--text-faint); }
.log-line .v-hash { color: var(--amber-hi); }
.log-line .v-ok { color: var(--synced); }
.log-line .v-wait { color: var(--offline); }

/* Role switcher */
.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); flex-wrap: wrap; }
.tab { padding: 9px 16px; border-radius: 8px; border: 0; background: transparent; color: var(--text-dim);
  font-weight: 600; font-size: 14px; cursor: pointer; font-family: var(--sans);
  transition: background-color .18s ease, color .18s ease; }
.tab.active { background: var(--amber); color: #FFFFFF; }
.role-panel { margin-top: 26px; }
.role-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.role-item { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border); }
.role-item.hidden-row { opacity: .32; }
.role-item .r-ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--amber-dim); color: var(--amber); }
.role-item b { font-size: 14px; }
.role-item small { color: var(--text-faint); font-family: var(--mono); font-size: 11px; }
.lock { margin-left: auto; color: var(--text-faint); }

/* Privacy spotlight */
.spotlight { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 48px;
  position: relative; overflow: hidden; }
.spotlight::before { content: ""; position: absolute; top: -40%; right: -10%; width: 420px; height: 420px;
  background: radial-gradient(circle, var(--amber-dim), transparent 70%); pointer-events: none; }
.pledge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.pledge { display: flex; gap: 12px; align-items: flex-start; }
.pledge svg { color: var(--synced); flex: none; margin-top: 2px; }
.pledge b { display: block; font-size: 15px; margin-bottom: 2px; }
.pledge span { color: var(--text-dim); font-size: 14px; }

/* Download */
.download { text-align: center; }
.download .card-lg { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 56px 40px; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--border); padding: 56px 0 40px; position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-col h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--text-dim); font-size: 14.5px; padding: 6px 0; transition: color .16s ease; }
.foot-col a:hover { color: var(--amber); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 13px; }

/* ---------- Legal / content pages ---------- */
.page-hero { position: relative; z-index: 1; padding: 64px 0 32px; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 12px; }
.page-hero p { color: var(--text-dim); max-width: 640px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--text-faint); font-size: 13px; margin-bottom: 6px; font-family: var(--mono); }
.breadcrumb a:hover { color: var(--amber); }
.prose { position: relative; z-index: 1; max-width: 780px; padding: 48px 0 72px; }
.prose h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 40px 0 14px; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.15rem; font-weight: 600; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--text-dim); margin-bottom: 14px; font-size: 1.02rem; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 16px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.prose a { color: var(--amber-hi); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--card); border: 1px solid var(--border); padding: 2px 7px; border-radius: 6px; color: var(--amber-hi); }
.callout { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--amber); border-radius: 10px; padding: 18px 20px; margin: 22px 0; }
.callout p { margin: 0; color: var(--text); }
.toc { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; margin-bottom: 34px; }
.toc h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.toc a { display: block; color: var(--text-dim); padding: 5px 0; font-size: 14.5px; }
.toc a:hover { color: var(--amber); }

/* Steps */
.steps { counter-reset: step; }
.step { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: 0; }
.step .num { counter-increment: step; flex: none; width: 34px; height: 34px; border-radius: 9px;
  background: var(--amber-dim); color: var(--amber); display: grid; place-items: center; font-weight: 700; font-family: var(--mono); }
.step .num::before { content: counter(step); }
.step .s-body b { display: block; margin-bottom: 4px; color: var(--text); }
.step .s-body p { margin: 0; }

/* FAQ */
.faq { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--card); }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--text); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--amber); font-size: 20px; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 22px 20px; color: var(--text-dim); }

/* Contact / cards grid */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 8px 0 12px; }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.contact-card .icn { width: 42px; height: 42px; border-radius: 10px; background: var(--amber-dim); color: var(--amber); display: grid; place-items: center; margin-bottom: 14px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 10px; }
.contact-card a { color: var(--amber-hi); font-weight: 600; font-family: var(--mono); font-size: 14px; }

/* Form */
.form { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; max-width: 640px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-family: var(--sans); font-size: 15px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-dim);
}
.field .hint { color: var(--text-faint); font-size: 12.5px; margin-top: 6px; }
.confirm-box { display: none; background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.35);
  border-radius: 12px; padding: 20px; margin-top: 18px; }
.confirm-box.show { display: block; }
.confirm-box b { color: var(--synced); }
.confirm-box .cid { font-family: var(--mono); font-size: 15px; color: var(--amber-hi); margin-top: 6px; }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--card-2); border: 1px solid var(--border-strong); border-left: 3px solid var(--synced);
  color: var(--text); padding: 14px 20px; border-radius: 12px; font-size: 14px; z-index: 100;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.9); transition: transform .35s cubic-bezier(.2,.8,.2,1); max-width: 90vw; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* subtle entrance — content is ALWAYS visible (no opacity hiding) */
.reveal { opacity: 1; transform: none; }
@media (min-width: 1px) {
  .reveal { animation: revealIn .55s ease both; }
}
@keyframes revealIn { from { opacity: .35; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .device { max-width: 380px; }
  .bento { grid-template-columns: 1fr; }
  .sim { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .pledge-grid, .role-list, .foot-grid, .contact-grid { grid-template-columns: 1fr; }
  .spotlight { padding: 32px 24px; }
}
