/* =====================================================================
   SecBlok company hub — styles.css
   Organization: tokens → base → layout → components → sections → responsive
   AI-native cybersecurity lab. Dark-first. One accent (#5271FF).
   Depth = 1px hairlines, not shadows. Two color families only:
   blue (brand/interactive) + green/amber/red (status only).
   ===================================================================== */

/* =====================================================================
   1) TOKENS
   ===================================================================== */
:root {
  /* Canvas — dark default (near-black, slight cool cast, not pure #000) */
  --bg: #0a0b0d;
  --bg-raised: #121417;
  --panel: rgba(255, 255, 255, 0.04);

  /* Hairlines — primary depth tool (no shadows) */
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke-strong: rgba(255, 255, 255, 0.18);

  /* Text */
  --text: #f5f5f7;
  --muted: #8b8d93;

  /* Brand accent (the SecBlok blue from the logo) */
  --accent: #5271ff;
  --accent-hover: #6e88ff;

  /* Status colors ONLY (never decoration) */
  --live: #30d158;
  --soon: #e6a700;
  --err: #ff453a;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Spacing rhythm */
  --section-y: 140px;
  --container: 1120px;

  /* Motion */
  --t-fast: 200ms ease;
  --t-med: 300ms ease;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* Light override — clean near-white canvas, same #5271FF accent */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-raised: #f6f7f9;
  --panel: rgba(10, 11, 13, 0.025);

  --stroke: rgba(10, 11, 13, 0.12);
  --stroke-strong: rgba(10, 11, 13, 0.22);

  --text: #0a0b0d;
  --muted: #5c5f66;

  --accent: #3a57e0;       /* slightly deeper for AA on white */
  --accent-hover: #2c46c4;
}

/* =====================================================================
   2) BASE
   ===================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* No horizontal overflow at any width */
html, body { overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }

a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-hover); }

img { display: block; max-width: 100%; }

/* Visible focus everywhere */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Screen-reader-only utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Mono accent — the "security lab" signal */
.mono { font-family: var(--font-mono); }

/* =====================================================================
   3) LAYOUT
   ===================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: 760px; }

/* =====================================================================
   4) COMPONENTS
   ===================================================================== */

/* ---- Eyebrow (mono uppercase label) ---- */
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ---- Brand (logo tile + wordmark) ---- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand__icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;       /* rounded-tile icon */
  flex: 0 0 auto;
}
.brand__word { font-size: 17px; }
.brand--footer .brand__icon { width: 28px; height: 28px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;          /* legible white-on-accent */
  font-size: 15px;
  line-height: 1;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform 160ms var(--ease-out);
  white-space: nowrap;
}
.btn--sm { padding: 9px 16px; font-size: 14px; }

.btn--primary {
  background: var(--accent);
  color: #ffffff;
}
.btn--primary:hover { background: var(--accent-hover); color: #ffffff; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--stroke-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--text); }

.btn:active { transform: scale(0.97); }

/* ---- Status dot component (color = status, never decoration) ---- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
}
.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: inline-block;
}
.status__dot--live { background: var(--live); }
.status__dot--soon { background: var(--soon); }
.status__dot--dev  {
  background: transparent;
  border: 1px solid var(--muted);   /* hollow dot = in development */
}
.status__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Tasteful pulse — ONLY on the live dot */
.status__dot--live {
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(48, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}

/* ---- Cards (panel + 1px stroke, flat — not glass) ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-med), transform 300ms var(--ease-in-out);
}
.card:hover {
  border-color: var(--stroke-strong);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-3px);
  }
}
.card__title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.card__body {
  color: var(--muted);
  font-size: 15px;
  flex: 1 1 auto;
  margin-bottom: 24px;
}
.card__link {
  font-weight: 600;
  font-size: 15px;
  align-self: flex-start;
}
.card__link span { transition: margin-left var(--t-fast); }
.card__link:hover span { margin-left: 4px; }

/* Sparse card — negative space as roadmap signal */
.card--sparse { background: transparent; border-style: dashed; }
.card--sparse .card__body { margin-bottom: 0; }

/* ---- Feature list (platform) ---- */
.feature-list {
  list-style: none;
  margin: 48px 0 32px;
  padding: 0;
  border-top: 1px solid var(--stroke);
}
.feature-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--stroke);
}
.feature-list__k {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-top: 2px;
}
.feature-list__v { color: var(--text); }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), background var(--t-fast);
  backdrop-filter: saturate(140%) blur(8px);
}
/* Stuck state (set by JS) — hairline appears once scrolled */
.nav.is-stuck {
  border-bottom-color: var(--stroke);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links {
  display: flex;
  gap: 28px;
  margin: 0 auto 0 16px;
}
.nav__links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.nav__links a:hover { color: var(--text); }
.nav__right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

/* Theme toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.theme-toggle:hover { border-color: var(--stroke-strong); }
.theme-toggle__icon {
  width: 16px; height: 16px;
  border-radius: 50%;
  position: relative;
  background: var(--text);
}
/* In dark theme show a "moon" crescent; in light theme a filled "sun" */
[data-theme="dark"] .theme-toggle__icon::after {
  content: "";
  position: absolute;
  top: -3px; right: -4px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg);
}
[data-theme="light"] .theme-toggle__icon {
  background: transparent;
  border: 2px solid var(--text);
}

/* =====================================================================
   5) SECTIONS
   ===================================================================== */

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}
/* Very subtle hairline grid — no illustration/gradient/glow */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--stroke) 1px, transparent 1px),
    linear-gradient(to bottom, var(--stroke) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  /* fade the grid out toward edges so it reads as texture, not a table */
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero .container { position: relative; }
/* Centered hero: a text-only company focal point, balanced on wide screens */
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero .eyebrow { margin-left: auto; margin-right: auto; }
.hero__title {
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}
.hero__thesis {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---- Generic section ---- */
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--bg-raised); }
.section__title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  max-width: 22ch;
  margin-bottom: 22px;
}
.section__lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 60ch;
}
.prose {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 22px;
}
.prose:last-child { margin-bottom: 0; }
.section--alt .container .card__link,
.section .container .card__link { margin-top: 4px; display: inline-flex; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  border-top: 1px solid var(--stroke);
  padding: 80px 0 56px;
  background: var(--bg);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}
.footer__h {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.footer__col a { color: var(--text); font-size: 15px; font-weight: 400; }
.footer__col a:hover { color: var(--accent); }
/* No live-dot pulse in the footer (status indicator only, keep it calm) */
.footer .status__dot--live { animation: none; box-shadow: none; }

.footer__base {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--stroke);
}
.footer__copy { color: var(--muted); font-size: 14px; }
.footer__build {
  color: var(--muted);
  font-size: 12.5px;
  margin-left: auto;
}

/* =====================================================================
   REVEAL (IntersectionObserver-driven)
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Reduced motion: no reveal animation, no dot pulse, no hover lift */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .status__dot--live { animation: none; box-shadow: none; }
  .card:hover { transform: none; }
  * { scroll-behavior: auto; }
}

/* =====================================================================
   6) RESPONSIVE
   ===================================================================== */
@media (max-width: 920px) {
  .cards { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }

  /* Tablet: tighten nav link spacing so brand + links + actions never crowd */
  .nav__inner { gap: 16px; }
  .nav__links { gap: 18px; margin-left: 12px; }
}

@media (max-width: 720px) {
  :root { --section-y: 96px; }

  .container { padding: 0 20px; }
  .nav__inner { padding: 10px 20px; gap: 12px; }

  /* Mobile nav: collapse links simply (brand + toggle + sign-in remain) */
  .nav__links { display: none; }
  /* Keep brand at left, actions pinned right with no overlap */
  .brand { margin-right: auto; }

  /* Comfortable tap targets on mobile */
  .nav__right .btn--sm { padding: 11px 16px; }

  .hero { padding: 80px 0 64px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__title { font-size: clamp(2.1rem, 8vw, 2.9rem); }
  .hero__thesis { font-size: 1.05rem; }

  /* Stack key above value; left-align label so it does not crowd the value */
  .feature-list { margin: 36px 0 28px; }
  .feature-list li { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }

  .cards { gap: 16px; margin-top: 40px; }
  .card { padding: 28px 24px; }

  .footer { padding: 64px 0 48px; }
  .footer__cols { gap: 28px 24px; margin-bottom: 48px; }
  .footer__base { gap: 12px; }
  .footer__build { margin-left: 0; width: 100%; }
}

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

/* =====================================================================
   7) SECDOG SCANNER — FLAGSHIP SPOTLIGHT (.spotlight / .video-frame)
   Two-column split (copy + framed product video), stacking on mobile.
   Reuses hub tokens; one accent (#5271FF); hairlines, no glow.
   ===================================================================== */
.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
}
.spotlight__copy { min-width: 0; }
.spotlight .section__lead { margin-bottom: 28px; }

/* Trust one-liner — mono, muted, with the live accent dot */
.spotlight__trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}
.spotlight__trust .status__dot { margin: 0; }

.spotlight__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.spotlight__cta .btn span { transition: margin-left var(--t-fast); }
.spotlight__cta .btn:hover span { margin-left: 4px; }

/* ---- Video frame: raised panel, 1px hairline, ~12px radius ---- */
.spotlight__media { margin: 0; min-width: 0; }
.video-frame {
  background: var(--bg-raised);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--t-med);
}
.video-frame:hover { border-color: var(--stroke-strong); }

/* Clickable video + headline route to SecDog Scanner */
.video-link { display: block; text-decoration: none; border-radius: 12px; }
.video-link:hover { text-decoration: none; }
.video-link:hover .video-frame { border-color: var(--stroke-strong); }
.spotlight__title-link { color: inherit; text-decoration: none; transition: color var(--t-fast); }
.spotlight__title-link:hover { color: var(--accent); }

/* Minimal dark browser-chrome strip */
.video-frame__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--stroke);
  background: var(--panel);
}
.video-frame__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--stroke-strong);
}
.video-frame__video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg);
}

/* ---- Mobile: stack, video full-width ---- */
@media (max-width: 920px) {
  .spotlight {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 720px) {
  .spotlight__cta { flex-direction: column; align-items: stretch; }
  .spotlight__cta .btn { width: 100%; }
}

