/* i-h4ck.pro — offensive security consultancy
   No framework, no build step, no JavaScript. One stylesheet, served from
   disk by nginx, so the page paints before a spinner would have appeared. */

:root {
  --bg: #0a0d14;
  --surface: #11151f;
  --surface-2: #161b27;
  --line: #1f2634;
  --line-soft: #171d29;
  --fg: #e9edf5;
  --muted: #8c97ab;
  --muted-dim: #626d80;
  --accent: #4cc2ff;
  --accent-ink: #062033;

  --crit: #ff6b6b;
  --high: #ff9f45;
  --med: #ffd166;
  --low: #5ad3a5;

  --radius: 14px;
  --maxw: 1080px;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

/* A faint grid, fixed behind everything. Reads as technical without
   resorting to matrix rain. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  opacity: 0.6;
}

main, header, footer { position: relative; z-index: 1; }

a { color: var(--accent); text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { left: 16px; top: 16px; z-index: 99; }

/* ----------------------------------------------------------- header */

header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 13, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex; align-items: center; gap: 28px;
  min-height: 64px; flex-wrap: wrap;
}

.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

nav.links {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-left: auto;
  font-size: 0.93rem;
}
nav.links a {
  color: var(--muted);
  text-decoration: none;
}
nav.links a:hover, nav.links a:focus-visible { color: var(--fg); }

/* ------------------------------------------------------------ atoms */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--muted-dim); background: var(--surface); }

section { padding-block: clamp(64px, 9vw, 112px); }
section + section { border-top: 1px solid var(--line-soft); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); }
.section-head p { color: var(--muted); margin: 14px 0 0; }

/* ------------------------------------------------------------- hero */

.hero { padding-block: clamp(72px, 11vw, 132px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 3.7rem);
  letter-spacing: -0.035em;
}
.hero p.lede {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  margin: 22px 0 34px;
  max-width: 52ch;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Sample finding card — shows what the deliverable looks like, which is
   more persuasive than a stock photograph of a server room. */
.finding {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.83rem;
}
.finding-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted-dim);
  font-size: 0.76rem;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.finding-body { padding: 18px 16px; }
.finding-row { display: flex; gap: 10px; padding-block: 5px; }
.finding-row .k { color: var(--muted-dim); width: 74px; flex: none; }
.finding-row .v { color: var(--fg); }

.chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--mono);
}
.chip-crit { background: rgba(255,107,107,.14); color: var(--crit); }
.chip-high { background: rgba(255,159,69,.14); color: var(--high); }
.chip-med  { background: rgba(255,209,102,.14); color: var(--med); }
.chip-low  { background: rgba(90,211,165,.14); color: var(--low); }

/* --------------------------------------------------------- services */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card:hover { border-color: var(--muted-dim); }
.card .num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.card h3 { font-size: 1.12rem; margin: 14px 0 10px; }
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ---------------------------------------------------------- process */

ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 4px; }
ol.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line-soft);
  align-items: start;
}
ol.steps li:first-child { border-top: 0; }
ol.steps li::before {
  content: "0" counter(s);
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--accent);
  padding-top: 2px;
}
ol.steps h3 { font-size: 1.1rem; margin-bottom: 8px; }
ol.steps p { color: var(--muted); margin: 0; font-size: 0.97rem; max-width: 62ch; }

/* ----------------------------------------------------- deliverables */

ul.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
ul.checks li {
  display: grid; grid-template-columns: 22px 1fr; gap: 14px;
  color: var(--muted); font-size: 0.97rem;
}
ul.checks strong { color: var(--fg); font-weight: 600; }
ul.checks li::before {
  content: "→";
  font-family: var(--mono);
  color: var(--accent);
}

.severity-key {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

/* --------------------------------------------------------------- faq */

details {
  border-bottom: 1px solid var(--line-soft);
  padding: 20px 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.03rem;
  list-style: none;
  display: flex; justify-content: space-between; gap: 20px;
  align-items: baseline;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1;
  flex: none;
}
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 14px 0 0; max-width: 72ch; font-size: 0.97rem; }

/* ------------------------------------------------------------ contact */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
}
.contact-card h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.contact-card p { color: var(--muted); max-width: 54ch; margin: 16px auto 30px; }
.contact-mail {
  font-family: var(--mono);
  font-size: 1.05rem;
  display: inline-block;
  margin-top: 22px;
}

/* ------------------------------------------------------------- footer */

footer {
  border-top: 1px solid var(--line);
  padding-block: 40px;
  color: var(--muted-dim);
  font-size: 0.88rem;
}
.foot {
  display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
}
.foot .spacer { margin-left: auto; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); }

/* -------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  nav.links { width: 100%; margin-left: 0; gap: 18px; padding-bottom: 12px; }
  .bar { padding-top: 12px; }
  ol.steps li { grid-template-columns: 44px 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .btn { width: 100%; text-align: center; }
  .hero-cta { flex-direction: column; }
}
