/* ==========================================================================
   Victor J. Rosario — design system
   Futuristic "civic-tech": deep ink, electric blue → cyan, glass, hairline grid.
   ========================================================================== */

:root {
  --bg: #05070f;
  --bg-2: #080c18;
  --ink: #0b1120;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-solid: #0c1322;
  --panel-2: rgba(255, 255, 255, 0.05);
  --line: rgba(130, 165, 255, 0.14);
  --line-strong: rgba(130, 165, 255, 0.30);
  --text: #eef2fb;
  --muted: #97a4c2;
  --muted-2: #6c7a99;

  --primary: #4d8dff;      /* electric blue */
  --primary-2: #3ee0d3;    /* cyan          */
  --primary-3: #7aa8ff;
  --gold: #d9b877;         /* premium accent, used sparingly */
  --glow: rgba(77, 141, 255, 0.45);
  --glow-cyan: rgba(62, 224, 211, 0.35);

  --good: #3ddc97;
  --bad: #ff6b7a;
  --warn: #ffc14d;

  --grad: linear-gradient(120deg, var(--primary) 0%, var(--primary-2) 100%);
  --radius: 16px;
  --radius-sm: 11px;
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Aurora glow + hairline grid, fixed behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(680px 420px at 82% -8%, rgba(62, 224, 211, 0.16), transparent 60%),
    radial-gradient(760px 520px at 12% 2%, rgba(77, 141, 255, 0.20), transparent 62%),
    radial-gradient(900px 700px at 50% 120%, rgba(77, 141, 255, 0.10), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(130, 165, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 165, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

a { color: var(--primary-3); text-decoration: none; transition: color 0.2s; }
a:hover { color: #a9c6ff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(5, 7, 15, 0.66);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: 0.2px; font-size: 16px; }
.brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 18px var(--glow), 0 0 6px var(--glow-cyan);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 12px 22px; font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: inherit; letter-spacing: 0.2px;
  transition: transform 0.12s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad); color: #04121f;
  box-shadow: 0 10px 30px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { color: #04121f; box-shadow: 0 14px 40px -10px var(--glow), 0 0 0 1px rgba(120, 200, 255, 0.4); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.02); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: #fff; box-shadow: 0 0 30px -12px var(--glow); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---- Eyebrow / section head ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary-2); font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; font-size: 11.5px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--primary-2)); }
.section-head { text-align: center; margin-bottom: 42px; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 12px 0 10px; letter-spacing: -0.8px; line-height: 1.08; }
.section-head p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 16.5px; }

section { padding: 74px 0; position: relative; }

/* ---- Hero ---- */
.hero { padding: 96px 0 58px; }
.hero-inner { max-width: 820px; }
.status-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  background: rgba(255, 255, 255, 0.02);
}
.status-chip .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--primary-2); box-shadow: 0 0 10px var(--primary-2); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 {
  font-size: clamp(38px, 6vw, 68px); line-height: 1.02; margin: 0 0 20px;
  letter-spacing: -1.6px; font-weight: 800;
}
.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.trust { margin-top: 26px; color: var(--muted-2); font-size: 13px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.trust::before { content: ""; width: 26px; height: 1px; background: var(--line-strong); }

/* Reveal-on-load */
.reveal { opacity: 0; transform: translateY(16px); animation: rise 0.7s var(--ease) forwards; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---- Cards / panels ---- */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---- Tiers ---- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 940px; margin: 0 auto; }
.tier {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.tier:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.tier.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--ink), var(--ink)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 24px 70px -30px var(--glow);
}
.tier.featured::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none;
  background: radial-gradient(120% 60% at 50% -10%, rgba(77, 141, 255, 0.14), transparent 70%);
}
.tier .tag { font-size: 10.5px; text-transform: uppercase; letter-spacing: 2px; color: var(--primary-2); font-weight: 700; }
.tier h3 { margin: 12px 0 4px; font-size: 20px; letter-spacing: -0.3px; }
.tier .price { font-size: 34px; font-weight: 800; margin: 14px 0 2px; letter-spacing: -1px; line-height: 1.1; }
.tier .price small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: 0.2px; margin-top: 4px; }
.tier .terms { color: var(--muted); font-size: 13.5px; min-height: 40px; }
.tier ul { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 10px; }
.tier li { font-size: 14px; color: #c3cee2; padding-left: 24px; position: relative; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 13px; height: 13px;
  background: var(--grad); border-radius: 3px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.tier .btn { margin-top: auto; }

/* ---- Method feature rows ---- */
.grid-2 p strong { color: #fff; }

/* ---- Forms ---- */
label.field { display: block; margin-bottom: 16px; font-size: 12.5px; color: var(--muted); letter-spacing: 0.3px; }
label.field span { display: block; margin-bottom: 7px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; font-size: 11px; }
input, select, textarea {
  width: 100%; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(77, 141, 255, 0.18); }
textarea { resize: vertical; min-height: 92px; }

/* ---- Coach console ---- */
#console { display: none; }
.console-grid { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.scoreboard .metric-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 12px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.scoreboard .metric-card .k { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted-2); }
.scoreboard .metric-card .v { font-size: 18px; font-weight: 700; margin-top: 5px; }
.chat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; height: 68vh; min-height: 480px; overflow: hidden;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.messages { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.msg { max-width: 82%; padding: 13px 16px; border-radius: 16px; font-size: 15px; white-space: pre-wrap; line-height: 1.55; }
.msg.user { align-self: flex-end; background: var(--grad); color: #04121f; border-bottom-right-radius: 5px; font-weight: 500; }
.msg.assistant { align-self: flex-start; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.system { align-self: center; color: var(--muted-2); font-size: 13px; background: transparent; }
.composer { border-top: 1px solid var(--line); padding: 16px; display: flex; gap: 12px; background: rgba(0, 0, 0, 0.2); }
.composer textarea { min-height: 48px; max-height: 170px; }

/* ---- Modal ---- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(3, 5, 12, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 80; padding: 20px; }
.modal-backdrop.open { display: flex; animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 440px; background: var(--panel-solid); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 30px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(77, 141, 255, 0.08);
}
.modal h3 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.4px; }
.modal .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.tabs { display: flex; gap: 6px; margin-bottom: 20px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: 12px; padding: 5px; }
.tabs button { flex: 1; background: transparent; border: 0; color: var(--muted); padding: 10px; border-radius: 8px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 14px; transition: 0.2s; }
.tabs button.active { background: var(--grad); color: #04121f; }

/* ---- Notices / badges ---- */
.notice { padding: 12px 15px; border-radius: 11px; font-size: 14px; margin-bottom: 16px; display: none; }
.notice.show { display: block; }
.notice.err { background: rgba(255, 107, 122, 0.12); border: 1px solid rgba(255, 107, 122, 0.5); color: #ffb7bf; }
.notice.ok { background: rgba(61, 220, 151, 0.12); border: 1px solid rgba(61, 220, 151, 0.5); color: #9fefc9; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.badge.active { background: rgba(61, 220, 151, 0.14); color: var(--good); border: 1px solid rgba(61, 220, 151, 0.4); }
.badge.inactive { background: rgba(151, 164, 194, 0.12); color: var(--muted); border: 1px solid var(--line); }

/* ---- About / Biography summary ---- */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.about-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.about-avatar {
  width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 28px; letter-spacing: 1px; color: #04121f;
  background: var(--grad);
  box-shadow: 0 18px 44px -14px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.about-photo {
  width: 108px; height: 108px; border-radius: 24px; object-fit: cover; object-position: center 20%;
  display: block; margin: 0 auto 18px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 44px -14px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.about-photo.lg { width: 148px; height: 148px; border-radius: 28px; }
.about-facts { display: grid; gap: 13px; }
.about-facts > div { display: flex; flex-direction: column; gap: 3px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.about-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.about-facts .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted-2); }
.about-facts .v { font-size: 14px; color: #c3cee2; }
.about-bio p { font-size: 16.5px; color: #c3cee2; margin: 0 0 16px; }
.about-bio a { font-weight: 600; }

.ventures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.venture {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  transition: transform 0.3s var(--ease), border-color 0.3s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.venture:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.venture h3 { margin: 0 0 9px; font-size: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; letter-spacing: -0.3px; }
.venture p { color: #c3cee2; font-size: 14.5px; margin: 0 0 6px; }
.venture .venture-meta { color: var(--muted-2); font-size: 13px; margin-top: 10px; }
.chip {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--primary-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px;
  background: rgba(62, 224, 211, 0.06);
}

/* ---- Biography page ---- */
.bio { max-width: 900px; margin: 0 auto; padding: 64px 0; }
.bio .lede { font-size: 21px; color: #d7deec; line-height: 1.55; }
.bio-hero { text-align: center; margin-bottom: 12px; }
.bio-hero .titles { color: var(--muted); font-size: 15px; margin-top: 10px; }
.bio-section { margin-top: 46px; padding-top: 32px; border-top: 1px solid var(--line); }
.bio-section:first-of-type { border-top: 0; }
.bio-section h2 { font-size: 26px; margin: 8px 0 8px; letter-spacing: -0.5px; }
.bio-section h3 { font-size: 18px; margin: 24px 0 6px; color: #fff; }
.bio-section p { color: #c3cee2; font-size: 16px; margin: 0 0 14px; }
.bio-section .kicker { color: var(--primary-2); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 11.5px; }
.honors, .roles { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.roles { grid-template-columns: 1fr 1fr; }
.honors li, .roles li { position: relative; padding-left: 24px; color: #c3cee2; font-size: 15px; }
.honors li::before { content: "★"; position: absolute; left: 0; color: var(--gold); }
.roles li::before { content: "▹"; position: absolute; left: 0; color: var(--primary-2); }
.callout { background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: 12px; padding: 18px 20px; margin: 20px 0; }
.callout p { margin: 0 0 8px; }
.callout p:last-child { margin: 0; }
.disclaimer { color: var(--muted-2); font-size: 13px; font-style: italic; }
@media (max-width: 620px) { .roles { grid-template-columns: 1fr; } }

/* ---- Legal pages ---- */
.legal { padding: 72px 0; max-width: 860px; }
.legal h1 { font-size: 38px; letter-spacing: -0.8px; }
.legal h2 { margin-top: 34px; font-size: 22px; }
.legal p, .legal li { color: #c3cee2; }
.legal .updated { color: var(--muted-2); font-size: 14px; }

/* ---- Footer ---- */
footer.site { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; margin-top: 60px; background: rgba(0, 0, 0, 0.25); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); margin-left: 20px; }
.foot a:hover { color: var(--text); }
.ai-disclosure { margin-top: 16px; font-size: 12.5px; color: var(--muted-2); max-width: 760px; }
.foot-network { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 22px 0 6px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot-network .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted-2); font-weight: 700; }
.foot-network a { color: var(--muted); margin: 0; font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px; }
.foot-network a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 8px var(--glow); }
.foot-network a:hover { color: var(--text); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .tiers { grid-template-columns: 1fr 1fr; }
  .console-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .ventures { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links a.hide-sm { display: none; }
}
@media (max-width: 560px) {
  .tiers { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 40px; }
}

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