/* ZipIntel — Shared Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg:       #050d1f;
  --bg2:      #071428;
  --surface:  #0c1d38;
  --surface2: #0f2040;
  --border:   rgba(255,255,255,.06);
  --border2:  rgba(255,255,255,.10);
  --text:     #d1dce8;
  --muted:    #7a90a8;
  --dim:      #4a607a;
  --blue:     #1a56db;
  --blue2:    #3b82f6;
  --green:    #22c55e;
  --gold:     #b89c5d;
  --sky:      #0ea5e9;
  --violet:   #8b5cf6;
  --red:      #ef4444;
  --max:      1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--blue2); text-decoration: none; }
strong { color: #fff; }
img { max-width: 100%; }

/* ── Layout ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
section { padding: 5.5rem 0; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(5,13,31,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: .85rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 1.22rem; font-weight: 900; color: #fff;
  letter-spacing: -.035em; text-decoration: none;
}
.logo em {
  background: linear-gradient(90deg, #3b82f6, #1a56db);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-style: normal;
}
.nav-links { display: flex; gap: .4rem; list-style: none; }
.nav-links a {
  color: var(--muted);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .01em;
  padding: .42rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: all .18s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-color: var(--border2);
}
.nav-links a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(26,86,219,.35), rgba(59,130,246,.25));
  border-color: rgba(59,130,246,.35);
}
.nav-cta {
  background: linear-gradient(90deg, #1a56db, #3b82f6);
  color: #fff !important;
  font-size: .82rem; font-weight: 700;
  padding: .44rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,.4) !important;
  background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  transition: opacity .2s, transform .2s;
}
.nav-cta:hover { opacity: .88; transform: translateY(-1px); }

/* ── SECTION LABELS ── */
.section-tag {
  font-size: .7rem; font-weight: 700;
  color: var(--blue2); letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: .75rem;
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800; color: #fff;
  letter-spacing: -.035em; margin-bottom: .5rem;
}
.section-header p { color: var(--muted); font-size: .97rem; max-width: 580px; margin: 0 auto; }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(59,130,246,.18); transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, #1a56db, #3b82f6);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: .45rem; }
.card p  { font-size: .88rem; color: var(--muted); line-height: 1.65; }

/* ── GRIDS ── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 8rem 2rem 6rem;
  background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(26,86,219,.14) 0%, transparent 68%);
  border-bottom: 1px solid var(--border);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(26,86,219,.12); border: 1px solid rgba(59,130,246,.25);
  color: #93b4f8; font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .38rem 1rem; border-radius: 999px; margin-bottom: 2rem;
}
.hero-badge::before {
  content: ''; display: block; width: 6px; height: 6px;
  border-radius: 50%; background: #3b82f6;
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 900; color: #fff;
  line-height: 1.02; letter-spacing: -.045em; margin-bottom: 1.5rem;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #3b82f6, #1a56db);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin: 0 auto 1.5rem; line-height: 1.7; }
.validated-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(34,197,94,.07); border: 1px solid rgba(34,197,94,.22);
  color: #4ade80; font-size: .8rem; font-weight: 500;
  padding: .38rem 1rem; border-radius: 999px; margin-bottom: 2.5rem;
}
.validated-badge::before { content: '✓ '; }
.hero-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: .78rem 1.9rem;
  border-radius: 8px; font-size: .92rem; font-weight: 600;
  transition: all .2s;
}
.btn-primary {
  background: linear-gradient(90deg, #1a56db, #3b82f6);
  color: #fff;
  box-shadow: 0 4px 20px rgba(26,86,219,.28);
}
.btn-primary:hover { opacity: .9; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(26,86,219,.38); }
.btn-secondary {
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { border-color: rgba(255,255,255,.18); transform: translateY(-1px); }

/* ── STAT ROW ── */
.stats-row {
  display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-value {
  font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(90deg, #3b82f6, #1a56db);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: .74rem; color: var(--dim); text-transform: uppercase; letter-spacing: .09em; margin-top: .2rem; }

/* ── PERFORMANCE BOX ── */
.perf-box {
  background: linear-gradient(135deg, rgba(26,86,219,.08), rgba(59,130,246,.06));
  border: 1px solid rgba(59,130,246,.18); border-radius: 12px;
  padding: 2rem; margin-bottom: 2rem;
}
.perf-label-row { font-size: .76rem; font-weight: 700; color: var(--blue2); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.5rem; }
.perf-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; text-align: center; }
.perf-value { font-size: 2.4rem; font-weight: 800; color: #fff; }
.perf-sub { font-size: .76rem; color: var(--dim); margin-top: .2rem; line-height: 1.4; }

/* ── WALK-FORWARD ── */
.wf-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 2.25rem;
}
.wf-fold { display: flex; align-items: center; gap: .65rem; margin-bottom: .9rem; font-size: .83rem; }
.wf-label { color: var(--dim); width: 46px; flex-shrink: 0; font-family: monospace; }
.wf-train {
  background: linear-gradient(90deg, rgba(26,86,219,.5), rgba(59,130,246,.6));
  border-radius: 5px; flex: 1; padding: .3rem .65rem;
  color: #fff; font-size: .76rem; text-align: center;
}
.wf-sep { color: var(--dim); }
.wf-test {
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3);
  border-radius: 5px; padding: .3rem .65rem;
  color: #4ade80; font-size: .76rem; font-weight: 700; white-space: nowrap;
}
.wf-note { font-size: .76rem; color: var(--dim); margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ── WHY CARD ── */
.why-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 2.25rem;
}
.why-card .problem { color: var(--red); font-weight: 700; font-size: .84rem; }
.why-card .solution { color: var(--green); font-weight: 700; font-size: .84rem; }
.why-card .result { color: var(--blue2); font-weight: 700; font-size: .84rem; }
.why-card p { font-size: .86rem; color: var(--muted); line-height: 1.65; margin-top: .3rem; margin-bottom: .9rem; }

/* ── PERSONA CARDS ── */
.persona-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(270px,1fr));
  gap: 1.1rem;
}
.persona-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.65rem;
  position: relative; overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.persona-card:hover { transform: translateY(-3px); }
.persona-stripe { position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.persona-icon { font-size: 1.7rem; margin-bottom: .8rem; }
.persona-name { font-size: .97rem; font-weight: 700; color: #fff; margin-bottom: .3rem; }
.persona-desc { font-size: .83rem; color: var(--muted); line-height: 1.55; margin-bottom: 1rem; }
.persona-dl { font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; transition: gap .15s; }
.persona-dl:hover { gap: .5rem; }

/* ── METHOD STEPS ── */
.method-steps { display: flex; flex-direction: column; gap: 1.5rem; }
.method-step { display: flex; gap: 1.1rem; align-items: flex-start; }
.step-dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #1a56db, #3b82f6);
  color: #fff; font-size: .75rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-content h4 { font-size: .93rem; font-weight: 700; color: #fff; margin-bottom: .2rem; }
.step-content p  { font-size: .84rem; color: var(--muted); line-height: 1.6; }

/* ── ARCH BOX ── */
.arch-box {
  background: rgba(7,20,40,.8); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 1.5rem;
  font-family: 'SF Mono','Fira Code','Fira Mono',monospace; font-size: .78rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.arch-layer {
  border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 1rem 1.1rem;
  background: rgba(255,255,255,.02);
}
.arch-layer-head {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue2); margin-bottom: .55rem;
}
.arch-items { display: flex; flex-direction: column; gap: .3rem; }
.arch-item { display: flex; align-items: baseline; gap: .7rem; line-height: 1.5; }
.arch-key { color: #7dd3fc; flex-shrink: 0; }
.arch-val { color: var(--muted); font-size: .76rem; }
.arch-arrow { color: rgba(59,130,246,.5); margin: 0 .2rem; }

/* ── PILLS ── */
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 2rem; }
.pill {
  background: rgba(26,86,219,.08); border: 1px solid rgba(59,130,246,.18);
  color: #93b4f8; padding: .35rem .85rem; border-radius: 999px;
  font-size: .77rem; font-weight: 500;
}

/* ── TABLE ── */
.data-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.data-table th {
  text-align: left; padding: .7rem 1rem;
  background: rgba(26,86,219,.1);
  color: var(--blue2); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  border-bottom: 1px solid var(--border2);
}
.data-table td {
  padding: .75rem 1rem;
  color: var(--muted); border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table td:first-child { color: #fff; font-weight: 600; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,.02); }
.table-wrap { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }

/* ── CTA SECTION ── */
.cta-section {
  text-align: center; padding: 7rem 2rem;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(26,86,219,.1) 0%, transparent 65%);
  border-top: 1px solid var(--border);
}
.cta-section h2 { font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: -.035em; margin-bottom: 1rem; }
.cta-section p { color: var(--muted); font-size: 1.05rem; margin-bottom: 2.5rem; }
.cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, #1a56db, #3b82f6);
  color: #fff; padding: 1.05rem 2.6rem;
  border-radius: 50px; font-weight: 700; font-size: .97rem;
  transition: all .25s; box-shadow: 0 4px 22px rgba(26,86,219,.3);
}
.cta-btn:hover { transform: scale(1.04); box-shadow: 0 10px 38px rgba(26,86,219,.45); }

/* ── FOOTER ── */
footer {
  text-align: center; padding: 2.25rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--dim); font-size: .8rem;
}
footer a { color: var(--dim); }
footer a:hover { color: var(--muted); }

/* ── COMPARISON TABLE CHECK MARKS ── */
.check { color: #3b82f6; font-weight: 700; text-align: center; }
.dash  { color: var(--dim); text-align: center; }

/* ── TEMPORAL CASCADE ── */
.cascade { display: flex; gap: 0; margin-top: 2rem; }
.cascade-step {
  flex: 1; padding: 1.25rem 1.1rem; border: 1px solid var(--border);
  position: relative; background: var(--surface);
}
.cascade-step:first-child  { border-radius: 10px 0 0 10px; }
.cascade-step:last-child   { border-radius: 0 10px 10px 0; }
.cascade-step + .cascade-step { border-left: none; }
.cascade-label { font-size: .7rem; font-weight: 700; color: var(--blue2); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem; }
.cascade-title { font-size: .92rem; font-weight: 700; color: #fff; margin-bottom: .3rem; }
.cascade-lead  { font-size: .78rem; color: var(--green); font-weight: 600; margin-bottom: .35rem; }
.cascade-desc  { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.cascade-arrow {
  position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--blue2); z-index: 1;
}

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
}
.contact-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: .75rem; }
.contact-card p  { font-size: .88rem; color: var(--muted); line-height: 1.65; margin-bottom: .5rem; }
.contact-email { font-size: 1.15rem; font-weight: 700; color: var(--blue2); }

/* ── ADMIN PANEL ── */
#admin-panel { font-family: 'SF Mono','Fira Code',monospace; font-size: .75rem; }
#admin-panel button {
  background: rgba(15,32,64,.95); border: 1px solid rgba(59,130,246,.3);
  color: #93b4f8; padding: .4rem .85rem; border-radius: 6px;
  cursor: pointer; font-size: .75rem; font-family: inherit;
  display: block; margin-left: auto;
}
#admin-content { background: #050d1f; border: 1px solid rgba(59,130,246,.25); border-radius: 8px; margin-top: .4rem; padding: 1rem; min-width: 300px; }
#admin-content p { color: #7dd3fc; margin: .25rem 0; }
#admin-content .ah { color: #4ade80; font-weight: 700; margin: .6rem 0 .2rem; }
#admin-content a  { color: var(--blue2); }

/* ── INDEX PREVIEW LINKS ── */
.preview-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-top: 1.5rem; }
.preview-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.35rem 1.5rem;
  transition: border-color .2s, transform .2s;
  display: block;
}
.preview-item:hover { border-color: rgba(59,130,246,.2); transform: translateY(-2px); }
.preview-item h4 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: .3rem; }
.preview-item p  { font-size: .83rem; color: var(--muted); line-height: 1.5; }
.preview-arrow  { color: var(--blue2); font-size: .85rem; font-weight: 700; display: block; margin-top: .6rem; }

/* ── RESPONSIVE ── */
@media(max-width:960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 2rem; }
  .cascade { flex-direction: column; }
  .cascade-step { border-radius: 8px !important; border: 1px solid var(--border) !important; }
  .cascade-step + .cascade-step { border-top: none !important; }
  .cascade-arrow { display: none; }
  .perf-grid { grid-template-columns: repeat(3,1fr); }
  .preview-grid { grid-template-columns: 1fr; }
}
@media(max-width:700px) {
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .stats-row { gap: 1.5rem; }
  .perf-grid { grid-template-columns: 1fr; }
}
