/* ParaBellum Infosec — styles */
:root {
  --bg: #0b0c0e;
  --surface: #14161a;
  --surface-2: #101215;
  --border: #23262c;
  --text: #e6e6e6;
  --muted: #8f949d;
  --accent: #c8963e;
  --accent-hover: #e0b05a;
  --accent-soft: rgba(200, 150, 62, 0.12);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 6px;
  --container: 1180px;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--bg); }

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

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--accent); color: var(--bg); padding: .5rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.accent { color: var(--accent); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem;
  background: var(--accent);
  color: #0b0c0e;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(200, 150, 62, .5);
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); color: var(--text); border-color: var(--accent); box-shadow: none; }
.btn-small { padding: .5rem 1rem; font-size: .875rem; }
.btn-large { padding: 1.1rem 2rem; font-size: 1.05rem; font-family: var(--font-mono); font-weight: 500; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(11, 12, 14, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(11, 12, 14, .88); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-size: 1.15rem; letter-spacing: -0.01em; }
.brand strong { font-weight: 700; }
.brand em { font-style: normal; color: var(--muted); font-weight: 500; margin-left: .15rem; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.btn) { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s; }
.site-nav a:not(.btn):hover { color: var(--text); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding: 6rem 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 75% 35%, rgba(200, 150, 62, .16), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(200, 150, 62, .06), transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 40%, transparent 100%);
}
.hero-bg::after {
  /* faint shield watermark */
  content: "";
  position: absolute;
  right: -4%; top: 50%;
  width: min(46vw, 620px); aspect-ratio: 1;
  transform: translateY(-50%);
  background: url("assets/logo.svg") center / contain no-repeat;
  opacity: .06;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}
.hero-translation {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: clamp(.85rem, 1.4vw, 1rem);
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}
.lead {
  max-width: 38rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: #c4c7cc;
  margin-top: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 10vw, 8rem) 0; border-top: 1px solid var(--border); }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 600; }
.section-sub { color: var(--muted); margin-top: 1rem; font-size: 1.1rem; }

/* Services cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  transition: border-color .3s, transform .3s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s ease;
}
.card:hover { border-color: #33373f; transform: translateY(-3px); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.75rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.6rem; font-weight: 600; margin-bottom: 1rem; }
.card > p { color: var(--muted); margin-bottom: 1.75rem; }
.checklist { display: grid; gap: .75rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.checklist li { position: relative; padding-left: 1.75rem; font-size: .975rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: .7rem; height: 2px; background: var(--accent);
}

/* Approach steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step {
  position: relative;
  padding: 2rem 1.75rem 0 0;
  border-top: 1px solid var(--border);
}
.step::before {
  content: ""; position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg);
}
.step-num { display: block; font-family: var(--font-mono); color: var(--accent); font-size: .85rem; margin-bottom: .75rem; }
.step h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: .75rem; }
.step p { color: var(--muted); font-size: .975rem; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about-text h2 { margin-bottom: 1.75rem; }
.about-text p:not(.eyebrow) { color: #c4c7cc; margin-bottom: 1.25rem; font-size: 1.1rem; }
.about-text em { color: var(--accent); }
.values { display: grid; gap: 1rem; padding-top: 2.5rem; }
.value {
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
}
.value h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .35rem; }
.value p { color: var(--muted); font-size: .95rem; }

/* Contact CTA */
#contact { padding-top: clamp(3rem, 6vw, 5rem); }
.cta {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(200, 150, 62, .14), transparent 70%),
    var(--surface);
  overflow: hidden;
}
.cta h2 { max-width: 40rem; margin-inline: auto; }
.cta p:not(.eyebrow) { color: var(--muted); margin: 1.25rem auto 2.25rem; max-width: 34rem; font-size: 1.1rem; }
.cta .btn-large { max-width: 100%; overflow-wrap: anywhere; justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand-footer { font-family: var(--font-body); font-size: .9rem; }
.motto { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .about { grid-template-columns: 1fr; }
  .values { padding-top: 0; }
}

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }

  .nav-toggle {
    display: grid; gap: 6px; place-content: center;
    width: 44px; height: 44px;
    background: none; border: 1px solid var(--border); border-radius: var(--radius);
    cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform .25s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1.5rem;
    background: rgba(11, 12, 14, .97);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 1.25rem; justify-content: center; }

  .hero { padding: 4rem 0; }
  .hero-bg::after { width: 80vw; right: -30%; opacity: .05; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .brand em { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .btn-large { font-size: .85rem; padding: 1rem 1.1rem; }
}

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