/* Connor Security Labs — connorsecurity.com */

/* Fonts (self-hosted; Geist is licensed under the SIL Open Font License) */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/geist-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/geist-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/geist-mono-latin-400-normal.woff2') format('woff2');
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { background: #06080B; }
body {
  margin: 0;
  background: #06080B;
  color: #E6EDF3;
  font-family: 'Geist', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #7CF5D2; text-decoration: none; }
a:hover { color: #B9FBE8; }
:focus-visible { outline: 2px solid #7CF5D2; outline-offset: 3px; }
::selection { background: #7CF5D2; color: #06080B; }

/* Page shell */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* fallback for older browsers */
  overflow: clip;   /* clips the glow without breaking the sticky header */
}
.page > main { flex: 1; }
.bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 245, 210, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 245, 210, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-glow {
  position: absolute;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 640px;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(124, 245, 210, 0.14), transparent);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(6, 8, 11, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #E6EDF3; }
.brand:hover { color: #E6EDF3; }
.brand-mark { filter: drop-shadow(0 0 8px rgba(124, 245, 210, 0.45)); }
.brand-dot { filter: drop-shadow(0 0 3px #FF3B3B); }
.brand-name { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }

/* Hero */
.hero {
  position: relative;
  container-type: inline-size;
  background: radial-gradient(ellipse 50% 70% at 30% 50%, rgba(255, 59, 59, 0.07), transparent 70%);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 28px 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 64px;
  align-items: center;
}
.emblem { width: 100%; max-width: 460px; aspect-ratio: 1; justify-self: center; }
.emblem svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(124, 245, 210, 0.25);
  border-radius: 999px;
  background: rgba(124, 245, 210, 0.06);
  font-family: 'Geist Mono', monospace;
  font-size: clamp(10px, 3.2vw, 12px);
  color: #7CF5D2;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7CF5D2;
  box-shadow: 0 0 10px #7CF5D2;
}
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 6.2vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-wrap: balance;
}
.accent { color: #7CF5D2; text-shadow: 0 0 40px rgba(124, 245, 210, 0.4); }
.lede {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: #9AA7B4;
  max-width: 520px;
  text-wrap: pretty;
}
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.email-btn {
  padding: 15px 26px;
  border-radius: 12px;
  border: none;
  background: #7CF5D2;
  color: #06080B;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(124, 245, 210, 0.5), 0 10px 40px -10px rgba(124, 245, 210, 0.6);
}
.email-btn:hover { background: #A8FAE2; }
.email-out { font-family: 'Geist Mono', monospace; font-size: 15px; color: #7CF5D2; user-select: all; }
.email-fallback { margin: 0; font-family: 'Geist Mono', monospace; font-size: 15px; color: #7CF5D2; }
/* Without JavaScript the button cannot work, so hide it and show the fallback line instead. */
.no-js .email-btn { display: none; }

/* When the hero stacks into one column, centre the text under the emblem.
   960px = two 420px columns + 64px gap + 2 x 28px side padding. */
@container (width < 960px) {
  .hero-text { align-items: center; text-align: center; }
  .badge { align-self: center; }
  .cta { justify-content: center; }
}

/* Footer */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #7D8A97;
}
.mono { font-family: 'Geist Mono', monospace; }

/* Emblem animation */
.em-spin, .em-spinr, .em-sweep { transform-origin: 200px 200px; transform-box: view-box; }
.em-spin { animation: cs-spin 40s linear infinite; }
.em-spinr { animation: cs-spinr 60s linear infinite; }
.em-sweep { animation: cs-spin 6s linear infinite; }
.em-eye { animation: cs-eye 2.4s ease-in-out infinite; }
.em-shield { filter: drop-shadow(0 0 14px rgba(124, 245, 210, 0.5)); }
.em-glyph { filter: drop-shadow(0 0 10px rgba(124, 245, 210, 0.6)); }
@keyframes cs-spin { to { transform: rotate(360deg); } }
@keyframes cs-spinr { to { transform: rotate(-360deg); } }
@keyframes cs-eye { 0%, 100% { opacity: 1; r: 16px; } 50% { opacity: 0.7; r: 13px; } }

/* Respect the visitor's reduce-motion setting: hold the emblem still. */
@media (prefers-reduced-motion: reduce) {
  .em-spin, .em-spinr, .em-sweep, .em-eye { animation: none; }
}
