/* =====================================================================
   JSYCURE — Security Research Community
   Design system: dark SOC-console aesthetic
   Accents: cyan #00d4ff (primary) / purple #a78bfa (secondary)
   Display: Space Grotesk · Body: Inter · Mono/utility: JetBrains Mono
   ===================================================================== */

:root {
  /* surfaces */
  --bg:        #0a0e14;
  --bg-grid:   #0d121b;
  --elev:      #11161f;
  --surface:   #141b26;
  --surface-2: #1a2230;
  --border:    #222c3a;
  --border-2:  #2c3848;

  /* accents */
  --cyan:      #00d4ff;
  --cyan-dim:  #0a8fb0;
  --purple:    #a78bfa;
  --green:     #3fb950;
  --amber:     #d8a657;
  --red:       #f47067;

  /* text */
  --text:      #e6edf3;
  --text-mid:  #aab5c4;
  --text-dim:  #6b7888;

  /* effects */
  --glow-cyan:   0 0 24px rgba(0, 212, 255, .35);
  --glow-purple: 0 0 24px rgba(167, 139, 250, .30);
  --grad: linear-gradient(120deg, var(--cyan), var(--purple));

  /* type */
  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body:    "Inter", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* layout */
  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 56px);
  --radius: 14px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ambient background: grid + dual radial glow + scanline */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(640px circle at 12% -5%, rgba(0,212,255,.10), transparent 60%),
    radial-gradient(720px circle at 92% 0%, rgba(167,139,250,.10), transparent 55%),
    linear-gradient(var(--bg-grid) 1px, transparent 1px) 0 0 / 100% 46px,
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px) 0 0 / 46px 100%,
    var(--bg);
  background-blend-mode: normal;
  opacity: 1;
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(0,212,255,.28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: .55em;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
}

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: -.01em; }

.lead { color: var(--text-mid); font-size: clamp(1rem, 1.6vw, 1.12rem); max-width: 62ch; }
.muted { color: var(--text-dim); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* path-style section heading (the structural signature) */
.path {
  font-family: var(--f-mono);
  font-size: .8rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.path b { color: var(--purple); font-weight: 500; }
.path .blink { color: var(--cyan); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-mono);
  font-size: .9rem;
  padding: .72em 1.3em;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform .15s, border-color .2s, box-shadow .25s, background .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.btn--primary {
  background: var(--grad);
  border-color: transparent;
  color: #04121a;
  font-weight: 600;
}
.btn--primary:hover { box-shadow: 0 8px 30px rgba(0,212,255,.35); }
.btn--ghost { background: transparent; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10,14,20,.72);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6em; font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand__glyph {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #04121a; font-family: var(--f-mono); font-weight: 700; font-size: .95rem;
  box-shadow: var(--glow-cyan);
}
.brand small { color: var(--text-dim); font-family: var(--f-mono); font-weight: 400; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; display:block; line-height: 1; margin-top: 2px;}

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-family: var(--f-mono); font-size: .86rem; color: var(--text-mid);
  padding: .5em .8em; border-radius: 8px; transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__links a.active { color: var(--cyan); }
.nav__links a.active::before { content: "› "; color: var(--purple); }

.nav__toggle { display: none; background: none; border: 1px solid var(--border-2); border-radius: 8px; width: 40px; height: 38px; cursor: pointer; color: var(--text); }
.nav__toggle span { display:block; width: 18px; height: 2px; background: currentColor; margin: 3px auto; transition: .25s; }
.nav.open .nav__toggle span:nth-child(1){ transform: translateY(5px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2){ opacity: 0; }
.nav.open .nav__toggle span:nth-child(3){ transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(10,14,20,.97); border-bottom: 1px solid var(--border);
    padding: 12px var(--gut); transform-origin: top;
    max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; padding-block: 0;
  }
  .nav.open .nav__links { max-height: 420px; padding-block: 12px; }
  .nav__links a { padding: .8em .6em; }
}

/* ---------- hero / console ---------- */
.hero { padding-block: clamp(70px, 11vw, 130px) clamp(50px, 7vw, 90px); position: relative; }
.console {
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20,27,38,.9), rgba(13,18,27,.9));
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.03);
  overflow: hidden;
  max-width: 720px;
}
.console__bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.015); }
.console__bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.console__bar i:nth-child(1){ background: #f47067; }
.console__bar i:nth-child(2){ background: #d8a657; }
.console__bar i:nth-child(3){ background: #3fb950; }
.console__bar span { margin-left: auto; font-family: var(--f-mono); font-size: .72rem; color: var(--text-dim); }
.console__body { padding: 22px clamp(18px, 3vw, 28px) 26px; font-family: var(--f-mono); font-size: clamp(.84rem, 1.5vw, .96rem); }
.console__line { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.6em; }
@media (max-width: 440px){ .console__body { font-size: .78rem; } }
.console__line .p { color: var(--green); }       /* prompt $ */
.console__line .c { color: var(--text); }         /* command */
.console__line .o { color: var(--cyan); }         /* output */
.console__line .o--p { color: var(--purple); }
.cursor { display:inline-block; width:9px; height:1.05em; vertical-align:-2px; background: var(--cyan); margin-left:2px; animation: blink 1.05s steps(1) infinite; }

.hero__title { margin: 40px 0 18px; font-size: clamp(2.4rem, 6.5vw, 4.4rem); }
.hero__title span { display: block; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- stat / HUD strip ---------- */
.hud { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--border); }
.hud__cell { background: var(--elev); padding: 22px 20px; }
.hud__cell .n { font-family: var(--f-display); font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 700; }
.hud__cell .k { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-top: 4px; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px){ .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .2s, border-color .25s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 18px 50px -24px rgba(0,0,0,.85); }
.card__tag { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.card p { color: var(--text-mid); margin-top: 10px; }

/* division card with accent rail */
.division { padding-left: 30px; }
.division::before { content:""; position:absolute; left:0; top: 18px; bottom: 18px; width: 4px; border-radius: 4px; background: var(--grad); }
.division h3 { display:flex; align-items:center; gap:.5em; }
.division .arrow { margin-top: 18px; font-family: var(--f-mono); font-size: .82rem; color: var(--cyan); display:inline-flex; align-items:center; gap:.4em; }
.division:hover .arrow { gap: .8em; transition: gap .2s; }

.chips { display:flex; flex-wrap:wrap; gap: 8px; margin-top: 16px; }
.chip { font-family: var(--f-mono); font-size: .76rem; padding: .35em .7em; border: 1px solid var(--border-2); border-radius: 999px; color: var(--text-mid); background: rgba(255,255,255,.015); }
.chip--cyan { color: var(--cyan); border-color: rgba(0,212,255,.4); }
.chip--purple { color: var(--purple); border-color: rgba(167,139,250,.4); }

/* ---------- timeline ---------- */
.timeline { position: relative; margin-top: 40px; padding-left: 30px; }
.timeline::before { content:""; position:absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--cyan), var(--purple)); opacity: .5; }
.tl { position: relative; padding: 0 0 34px 6px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content:""; position:absolute; left: -30px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); box-shadow: var(--glow-cyan); }
.tl time { font-family: var(--f-mono); font-size: .82rem; color: var(--cyan); }
.tl h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.tl p { color: var(--text-mid); }

/* ---------- profile cards ---------- */
.profile { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; }
.avatar {
  width: 72px; height: 72px; border-radius: 16px;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 1.5rem;
  color: #04121a; background: var(--grad);
}
.avatar--alt { background: linear-gradient(140deg, var(--purple), var(--cyan)); }
.profile h3 { font-size: 1.15rem; }
.profile .role { font-family: var(--f-mono); font-size: .8rem; color: var(--cyan); margin-top: 2px; }
.profile p { color: var(--text-mid); margin-top: 10px; font-size: .95rem; }
.profile .links { display:flex; gap: 14px; margin-top: 12px; }
.profile .links a { font-family: var(--f-mono); font-size: .78rem; color: var(--text-dim); }
.profile .links a:hover { color: var(--cyan); }

/* sample/placeholder marker — honesty cue for unverified data */
.sample::after {
  content: "sample";
  position: absolute; top: 12px; right: 12px;
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--amber); border: 1px solid rgba(216,166,87,.45); border-radius: 6px;
  padding: .15em .5em; background: rgba(216,166,87,.08);
}

/* ---------- collaboration list ---------- */
.collab { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
.collab__row { display: grid; grid-template-columns: 140px 1fr auto; gap: 20px; align-items: center; padding: 20px 24px; border:1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, background .2s; }
.collab__row:hover { border-color: var(--border-2); background: var(--surface-2); }
.collab__row .org { font-family: var(--f-display); font-weight: 600; }
.collab__row .when { font-family: var(--f-mono); font-size: .76rem; color: var(--text-dim); }
.collab__row .status { font-family: var(--f-mono); font-size: .74rem; padding: .3em .7em; border-radius: 999px; white-space: nowrap; }
.status--live { color: var(--green); border:1px solid rgba(63,185,80,.4); }
.status--done { color: var(--text-dim); border:1px solid var(--border-2); }
@media (max-width: 720px){ .collab__row { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- page header band ---------- */
.pagehead { padding-block: clamp(56px, 8vw, 96px) clamp(30px, 4vw, 50px); }
.pagehead h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 14px 0 16px; }

/* ---------- callout ---------- */
.callout { border: 1px dashed var(--border-2); border-radius: var(--radius); padding: 22px 24px; background: rgba(0,212,255,.03); }
.callout .k { font-family: var(--f-mono); color: var(--cyan); font-size: .8rem; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--border); margin-top: 40px; padding-block: 48px; }
.foot__grid { display:flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot__sign { font-family: var(--f-mono); font-size: .82rem; color: var(--text-dim); }
.foot__sign b { color: var(--green); }
.foot__links { display:flex; flex-wrap: wrap; gap: 22px; }
.foot__links a { font-family: var(--f-mono); font-size: .82rem; color: var(--text-mid); }
.foot__links a:hover { color: var(--cyan); }
.foot__copy { margin-top: 26px; font-family: var(--f-mono); font-size: .76rem; color: var(--text-dim); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; } }

/* utilities */
.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 44px; }
.center { text-align: center; } .max60 { max-width: 60ch; }
