/* ============================================================
   Nicolas Fischer — Offensive Security
   Terminal / red-team aesthetic. Hand-built, no framework.
   ============================================================ */

:root {
  --bg:        #080b09;
  --bg-2:      #0c110d;
  --panel:     #0e140f;
  --panel-2:   #11180f;
  --line:      #1c261d;
  --line-2:    #26331f;
  --fg:        #cfe3d0;
  --fg-dim:    #7f9481;
  --fg-mute:   #5a6c5c;
  --acc:       #00ff9c;   /* primary green */
  --acc-dim:   #14b87a;
  --amber:     #ffcf5c;
  --red:       #ff5c66;
  --glow:      0 0 0 1px rgba(0,255,156,.18), 0 0 34px -8px rgba(0,255,156,.35);
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Cascadia Code", "Fira Code", Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1120px;
}

*,*::before,*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* radial ambience */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(0,255,156,.08), transparent 60%),
    radial-gradient(700px 600px at 8% 8%, rgba(0,255,156,.045), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  z-index: -3;
}

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

a { color: inherit; text-decoration: none; }

h1,h2,h3,h4 { line-height: 1.1; letter-spacing: -.02em; font-weight: 700; margin: 0; }

/* --- decorative overlays ------------------------------------ */
.scanlines {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.014) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.noise {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}

/* --- header ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  background: rgba(8,11,9,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--mono); font-size: 15px; letter-spacing: .02em; white-space: nowrap; }
.brand-prompt { color: var(--acc); }
.brand-sep, .brand-dollar { color: var(--fg-mute); }
.brand-path { color: var(--fg-dim); }
.brand-dollar { margin-left: 6px; }

.nav { display: flex; align-items: center; gap: 26px; font-family: var(--mono); font-size: 14px; }
.nav a { color: var(--fg-dim); transition: color .18s; }
.nav a:hover { color: var(--acc); }
.nav-cta {
  color: var(--acc) !important;
  border: 1px solid var(--line-2);
  padding: 7px 16px; border-radius: 6px;
  transition: box-shadow .2s, border-color .2s, background .2s;
}
.nav-cta:hover { box-shadow: var(--glow); border-color: var(--acc-dim); background: rgba(0,255,156,.05); }

.header-right { display: flex; align-items: center; gap: 12px; }

.lang {
  display: inline-flex; align-items: stretch; padding: 0; cursor: pointer;
  background: none; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
}
.lang span { padding: 6px 9px; color: var(--fg-mute); transition: color .2s, background .2s; }
.lang span.active { background: rgba(0,255,156,.1); color: var(--acc); }
.lang:hover { border-color: var(--acc-dim); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--acc); margin: 5px 0; transition: .25s; }

/* --- buttons ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  padding: 13px 22px; border-radius: 8px; cursor: pointer;
  transition: transform .12s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--acc); color: #04140c; font-weight: 700; box-shadow: 0 0 30px -10px rgba(0,255,156,.7); }
.btn-primary:hover { box-shadow: 0 0 42px -6px rgba(0,255,156,.85); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--fg); }
.btn-ghost:hover { border-color: var(--acc-dim); color: var(--acc); box-shadow: var(--glow); }

/* --- hero --------------------------------------------------- */
.hero { position: relative; padding: 92px 0 72px; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 40%, transparent 78%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 40%, transparent 78%);
  background-image:
    linear-gradient(rgba(0,255,156,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,156,.06) 1px, transparent 1px);
  background-size: 46px 46px;
}
.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .18em;
  color: var(--fg-dim); margin: 0 0 22px;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.hero-title {
  font-size: clamp(2.7rem, 8vw, 5.4rem);
  letter-spacing: -.035em;
  background: linear-gradient(180deg, #eafff5 10%, #7fe9c2 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-role {
  font-family: var(--mono); color: var(--acc);
  font-size: clamp(.9rem, 2.4vw, 1.15rem); letter-spacing: .02em;
  margin: 14px 0 34px;
}

/* terminal window */
.terminal {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.02);
  max-width: 720px;
}
.terminal.small { max-width: 420px; }
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; background: #0a0f0b; border-bottom: 1px solid var(--line);
}
.tdot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.tdot.r { background: #ff5f57; } .tdot.y { background: #febc2e; } .tdot.g { background: #28c840; }
.terminal-title { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--fg-mute); }
.terminal-body { padding: 18px 20px; font-family: var(--mono); font-size: 14px; line-height: 1.9; }
.terminal-body p { margin: 0; }
.tprompt { color: var(--acc); }
.typed { color: var(--fg); }
.cursor { color: var(--acc); animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.tout p { opacity: 0; transform: translateX(-4px); animation: reveal .3s forwards; }
.tout p:nth-child(1){animation-delay:.05s}.tout p:nth-child(2){animation-delay:.18s}
.tout p:nth-child(3){animation-delay:.31s}.tout p:nth-child(4){animation-delay:.44s}
.tout p:nth-child(5){animation-delay:.6s}
@keyframes reveal { to { opacity: 1; transform: none; } }
.ok { color: var(--acc); } .warn { color: var(--amber); } .muted { color: var(--fg-mute); }
.tresult { margin-top: 8px !important; color: var(--fg-dim); border-top: 1px dashed var(--line-2); padding-top: 8px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* --- stats -------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; margin: 8px auto 0;
}
.stat { background: var(--panel); padding: 24px 22px; }
.stat-n { display: block; font-family: var(--mono); font-size: 1.7rem; color: var(--acc); font-weight: 700; }
.stat-l { display: block; color: var(--fg-dim); font-size: 13.5px; margin-top: 4px; }

/* --- sections ----------------------------------------------- */
.section { padding: 92px 0; border-top: 1px solid var(--line); margin-top: 0; }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-kicker { font-family: var(--mono); color: var(--acc-dim); font-size: 13px; letter-spacing: .08em; margin: 0 0 14px; }
.section h2 { font-size: clamp(1.8rem, 4.4vw, 2.9rem); }
.section-lead { color: var(--fg-dim); font-size: 1.06rem; margin: 16px 0 0; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px 26px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
  opacity: 0; transition: opacity .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 50px -30px rgba(0,255,156,.35); }
.card:hover::before { opacity: .7; }
.card-idx { font-family: var(--mono); color: var(--fg-mute); font-size: 12px; letter-spacing: .1em; margin-bottom: 14px; }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card.outline h3 { color: #eafff5; }
.card p { color: var(--fg-dim); font-size: .98rem; margin: 0; }

/* tick lists */
.ticks { list-style: none; margin: 16px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 26px; color: var(--fg-dim); font-size: .96rem; margin: 8px 0; }
.ticks li::before {
  content: "▹"; position: absolute; left: 4px; top: 0; color: var(--acc);
  font-family: var(--mono);
}
.ticks.big li { font-size: 1.02rem; margin: 12px 0; color: var(--fg); }

/* --- special offer ------------------------------------------ */
.special { background:
  linear-gradient(180deg, rgba(0,255,156,.03), transparent 40%), var(--bg); }
.special-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.special-copy .btn { margin-top: 26px; }
.special-card { display: flex; justify-content: center; }
.special .terminal .warn { font-weight: 600; }

/* --- apt ---------------------------------------------------- */
.apt { background:
  radial-gradient(700px 300px at 80% 0%, rgba(255,92,102,.05), transparent 60%), var(--bg); }
.apt .cards { grid-template-columns: repeat(2, 1fr); }
.apt .card.outline { background: rgba(12,17,13,.5); border-color: var(--line); }

/* --- dev ---------------------------------------------------- */
.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.dev-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.dev-col h4 { font-family: var(--mono); font-size: 14px; color: var(--acc); margin-bottom: 12px; letter-spacing: .03em; }

/* --- contact ------------------------------------------------ */
.contact { text-align: center; }
.contact-box {
  max-width: 760px; margin: 0 auto;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: 18px; padding: 56px 32px;
  box-shadow: 0 40px 90px -50px rgba(0,255,156,.4);
}
.contact .section-kicker { text-align: center; }
.contact h2 { font-size: clamp(1.9rem, 5vw, 3.1rem); }
.contact .section-lead { margin-left: auto; margin-right: auto; max-width: 520px; }
.mail {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  font-family: var(--mono); font-size: clamp(1rem, 3.6vw, 1.5rem); font-weight: 600;
  color: var(--acc); margin: 30px 0 14px;
  border: 1px solid var(--line-2); border-radius: 10px; padding: 16px 24px;
  transition: box-shadow .2s, border-color .2s, background .2s;
}
.mail:hover { box-shadow: var(--glow); border-color: var(--acc-dim); background: rgba(0,255,156,.05); }
.mail-prompt { color: var(--fg-mute); }
.contact-note { color: var(--fg-mute); font-family: var(--mono); font-size: 13px; margin: 0; }

/* bug-bounty profile badges */
.profiles {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line);
}
.profiles-label {
  width: 100%; text-align: center; margin-bottom: 4px;
  font-family: var(--mono); font-size: 12.5px; color: var(--fg-mute);
}
.profiles-label b { color: var(--acc); font-weight: 600; }
.profile {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13.5px; color: var(--fg-dim);
  border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 15px;
  transition: color .2s, border-color .2s, box-shadow .2s, background .2s;
}
.profile:hover { color: var(--fg); border-color: var(--acc-dim); box-shadow: var(--glow); background: rgba(0,255,156,.04); }
.profile .handle { color: var(--acc); }

.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--fg-mute); }
.foot-links a:hover { color: var(--acc); }

/* --- footer ------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 13px; color: var(--fg-mute);
}
.footer-inner a:hover { color: var(--acc); }
.foot-mid { color: var(--fg-mute); }

/* --- responsive --------------------------------------------- */
@media (max-width: 900px) {
  .cards, .apt .cards { grid-template-columns: 1fr; }
  .special-grid, .dev-grid { grid-template-columns: 1fr; gap: 34px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(8,11,9,.97); border-bottom: 1px solid var(--line); padding: 12px 24px 18px;
  }
  .nav.open a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .dev-cols { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .contact-box { padding: 40px 20px; }
}

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