/* ==========================================================================
   Lynceus - Cybersecurity Consulting
   Minimal / cyber theme. Single accent, dark surface, generous whitespace.
   ========================================================================== */

:root {
  /* Palette */
  --bg: #0a0e12;
  --bg-alt: #0c1218;
  --surface: #111820;
  --surface-2: #141c25;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e6edf3;
  --text-muted: #8b98a5;
  --text-dim: #5d6b78;
  --accent: #3bb8d4;
  --accent-dim: rgba(59, 184, 212, 0.12);
  --accent-glow: rgba(59, 184, 212, 0.25);

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Layout */
  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --radius-sm: 10px;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

/* Layout helpers ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 12vw, 140px); position: relative; }
.section-alt { background: rgba(255, 255, 255, 0.018); border-block: 1px solid var(--border); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head h2 {
  font-size: clamp(27px, 4.2vw, 42px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-sub { color: var(--text-muted); font-size: clamp(15px, 1.6vw, 18px); margin-top: 20px; max-width: 60ch; }

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

/* Skip link --------------------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 10px; z-index: 1000;
  background: var(--accent); color: #04110d; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { left: 16px; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand-mark { color: var(--accent); display: flex; filter: drop-shadow(0 0 10px var(--accent-glow)); }
.brand-name { font-weight: 700; letter-spacing: 0.22em; font-size: 17px; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-menu a {
  font-size: 14.5px; color: var(--text-muted); font-weight: 500;
  transition: color 0.2s ease; position: relative;
}
.nav-menu a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--border-strong);
  padding: 9px 18px; border-radius: 8px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { border-color: var(--accent); background: var(--accent-dim); color: var(--accent) !important; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s ease; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.22s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #04110d; box-shadow: 0 0 0 0 var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px var(--accent-glow); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(84px, 14vw, 168px); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.hero-title {
  font-size: clamp(40px, 8vw, 82px);
  line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; margin-block: 8px 28px;
}
.hero-lede { font-size: clamp(16px, 2vw, 20px); color: var(--text-muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 26px; margin-top: 52px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-dim);
}
.hero-meta li { display: flex; align-items: center; gap: 9px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

/* Hero background grid + glow */
/* Full-page grid backdrop ------------------------------------------------- */
/* Base layer: a faint grid that is always visible across the whole site. */
.site-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  /* --mx / --my track the pointer (set in script.js); --spot is the glow strength */
  --mx: 72%; --my: 30%; --spot: 0.5;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(circle 230px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.25) 52%, transparent 78%);
          mask-image: radial-gradient(circle 230px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.25) 52%, transparent 78%);
  opacity: var(--spot);
  transition: opacity 0.6s ease;
}
/* Soft accent halo that follows the same point */
.site-grid::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle 240px at var(--mx) var(--my), var(--accent-dim), transparent 70%);
}
/* Keep page content above the backdrop */
.site-header { z-index: 100; }
main { position: relative; z-index: 1; }

/* Services ---------------------------------------------------------------- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.card {
  background: var(--surface); padding: 36px 32px 40px; position: relative;
  transition: background 0.25s ease; min-height: 210px;
}
.card:hover { background: var(--surface-2); }
.card-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); opacity: 0.8; }
.card h3 { font-size: 20px; font-weight: 600; margin-block: 16px 12px; letter-spacing: -0.01em; }
.card p { color: var(--text-muted); font-size: 15px; }
.card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.card:hover::before { transform: scaleX(1); }

/* Approach ---------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 48px; }
.steps li { display: flex; gap: 20px; }
.step-num {
  font-family: var(--font-mono); font-size: 14px; color: var(--accent);
  border: 1px solid var(--border-strong); border-radius: 8px; padding: 6px 10px; height: fit-content;
  background: var(--accent-dim);
}
.steps h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.steps p { color: var(--text-muted); font-size: 15px; }

/* About ------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.pillar { position: relative; padding-left: 20px; }
.pillar::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--accent), transparent); border-radius: 2px;
}
.pillar h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.pillar p { color: var(--text-muted); font-size: 15px; }

.frameworks { margin-top: clamp(48px, 7vw, 76px); }
.frameworks-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 20px;
}
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips li {
  font-family: var(--font-mono); font-size: 13.5px; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 16px;
  background: var(--surface); transition: border-color 0.2s ease, color 0.2s ease;
}
.chips li:hover { border-color: var(--accent); color: var(--accent); }

.creds { margin-top: clamp(44px, 6vw, 64px); display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.creds li { background: var(--surface); padding: 18px 24px; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; }
.cred-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); opacity: 0.85; min-width: 140px; }
.cred-val { color: var(--text); font-size: 15.5px; }

/* Contact ----------------------------------------------------------------- */
.contact-inner { text-align: center; max-width: 760px; margin-inline: auto; }
.contact-inner .section-head { margin-inline: auto; margin-bottom: 40px; }
.contact-email {
  display: inline-block; font-family: var(--font-mono); font-size: clamp(20px, 3.5vw, 32px);
  color: var(--accent); border-bottom: 1px solid var(--accent-glow); padding-bottom: 6px;
  transition: border-color 0.2s ease, text-shadow 0.2s ease; word-break: break-all;
}
.contact-email:hover { border-color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }
.contact-note { margin-top: 26px; color: var(--text-dim); font-size: 14.5px; }

/* Footer ------------------------------------------------------------------ */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding-block: 52px; background: rgba(255, 255, 255, 0.018); }
.footer-inner { display: grid; gap: 20px; justify-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.2em; }
.footer-brand .brand-mark { color: var(--accent); }
.footer-tag { color: var(--text-muted); font-family: var(--font-mono); font-size: 13px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.footer-nav a { color: var(--text-muted); font-size: 14px; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { color: var(--text-dim); font-size: 13px; }

/* Legal pages ------------------------------------------------------------- */
.legal { padding-block: clamp(56px, 9vw, 104px); }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -0.025em; margin-block: 6px 10px; }
.legal-updated { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); margin-bottom: 36px; }
.legal h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-block: 40px 14px; }
.legal p { color: var(--text-muted); font-size: 16px; margin-bottom: 14px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent); border-bottom: 1px solid var(--accent-glow); transition: border-color 0.2s ease; }
.legal a:hover { border-color: var(--accent); }
.legal-list { margin: 0 0 14px; padding-left: 0; display: grid; gap: 12px; }
.legal-list li { position: relative; padding-left: 22px; color: var(--text-muted); font-size: 16px; }
.legal-list li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.7; }
.legal-details { margin-top: 20px; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.legal-details li { background: var(--surface); padding: 16px 22px; display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: baseline; }
.legal-details li > span:first-child { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); min-width: 150px; }
.legal-details li > span:last-child { color: var(--text); font-size: 15.5px; }

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

/* Responsive -------------------------------------------------------------- */
@media (max-width: 760px) {
  .nav-toggle { display: block; z-index: 110; }
  .nav-menu {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 24px; transform: translateY(-120%); transition: transform 0.32s ease;
    align-items: stretch;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { border-bottom: 1px solid var(--border); }
  .nav-menu a { display: block; padding: 16px 0; font-size: 16px; }
  .nav-cta { border: 0 !important; padding: 16px 0; border-radius: 0; }
  .nav-cta:hover { background: transparent; }
}
