/* ========================================================================
   Instinct Software - design system
   Dark cinematic gaming theme
   ======================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* Brand */
  --brand-blue:        #2a9bff;
  --brand-blue-bright: #5fbcff;
  --brand-cyan:        #6ee0ff;
  --brand-violet:      #8b6cff;

  /* Surfaces */
  --bg:                #07090f;
  --bg-elev:           #0d1018;
  --surface:           #12161f;
  --surface-2:         #1a1f2c;
  --surface-3:         #232a3a;

  /* Borders + dividers */
  --border:            rgba(255, 255, 255, 0.08);
  --border-strong:     rgba(255, 255, 255, 0.16);

  /* Text */
  --text:              #eef1f7;
  --text-dim:          #b6bdcd;
  --text-muted:        #7d8699;
  --text-faint:        #5a6275;

  /* Accents */
  --glow-blue:         0 0 0 1px rgba(42, 155, 255, 0.5),
                       0 0 32px rgba(42, 155, 255, 0.35);
  --glow-soft:         0 8px 40px rgba(0, 0, 0, 0.55);

  /* Gradients */
  --grad-hero:         radial-gradient(80% 60% at 50% 0%,
                         rgba(42, 155, 255, 0.18) 0%,
                         rgba(42, 155, 255, 0) 60%),
                       radial-gradient(60% 50% at 100% 100%,
                         rgba(139, 108, 255, 0.18) 0%,
                         rgba(139, 108, 255, 0) 60%);
  --grad-line:         linear-gradient(90deg,
                         transparent 0%,
                         rgba(42, 155, 255, 0.6) 50%,
                         transparent 100%);
  --grad-text:         linear-gradient(135deg, #eef1f7 0%, #8fb8e8 100%);
  --grad-accent:       linear-gradient(135deg, #2a9bff 0%, #6ee0ff 100%);

  /* Type */
  --font-display:      "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --font-body:         "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:         "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --max-w:             1200px;
  --max-w-narrow:      820px;
  --radius-sm:         8px;
  --radius:            14px;
  --radius-lg:         22px;
  --shadow-card:       0 1px 0 rgba(255, 255, 255, 0.04) inset,
                       0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --header-h:          68px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 50% -200px, rgba(42, 155, 255, 0.08), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(139, 108, 255, 0.06), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-blue-bright);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-cyan);
}

p { margin: 0 0 1em; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand-blue-bright); }

ul {
  padding-left: 1.2em;
  margin: 0 0 1em;
}

li { margin-bottom: 0.4em; }

hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 4rem 0;
}

::selection {
  background: rgba(42, 155, 255, 0.35);
  color: #fff;
}

/* --- Layout ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

main {
  display: block;
  min-height: 60vh;
}

section {
  padding: 5rem 0;
}

@media (max-width: 720px) {
  section { padding: 3.5rem 0; }
}

/* --- Header / Nav ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { color: var(--text); }

.brand__logo {
  display: block;
  height: 38px;
  width: auto;
  /* Logo is dark-on-white. Invert + hue-rotate keeps the blue accents blue
     while flipping the dark text to light for the dark theme. */
  filter: invert(1) hue-rotate(180deg) brightness(1.05);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.brand:hover .brand__logo {
  filter: invert(1) hue-rotate(180deg) brightness(1.2)
          drop-shadow(0 0 12px rgba(42, 155, 255, 0.45));
}

/* Visually-hidden brand text (kept for screen readers) */
.brand__name--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer renders the logo a bit smaller */
.site-footer .brand__logo { height: 28px; }

/* Hero showcase logo (homepage) */
.hero__logo {
  display: block;
  height: clamp(72px, 12vw, 130px);
  width: auto;
  margin-bottom: 1.8rem;
  filter: invert(1) hue-rotate(180deg) brightness(1.05)
          drop-shadow(0 8px 30px rgba(42, 155, 255, 0.25));
}

/* Page-title art (e.g. DogFighter title PNG used as the H1).
   Resets H1 text styling and renders the artwork at a hero scale. */
.hero .hero__title-art,
.hero__title-art {
  margin: 0 0 1.4rem;
  padding: 0;
  font-size: 0;            /* eat whitespace inside h1 */
  line-height: 0;
  max-width: none;         /* override .hero h1 max-width: 18ch (which would be 0 here) */
  background: none;        /* override .hero h1 gradient text fill */
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: inherit;
}

.hero__title-art img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(560px, 100%);
  filter: drop-shadow(0 18px 60px rgba(0, 0, 0, 0.6));
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav a {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav a.is-active {
  color: var(--text);
  background: rgba(42, 155, 255, 0.12);
}

.nav__social {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  padding-left: 0.8rem;
  border-left: 1px solid var(--border);
}

.nav__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  color: var(--text-muted);
}

.nav__social a:hover {
  color: var(--brand-blue-bright);
  background: rgba(255, 255, 255, 0.04);
}

.nav__social svg {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: rgba(10, 13, 22, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-110%);
    transition: transform 0.25s ease;
  }

  .nav.is-open { transform: translateY(0); }

  .nav a { padding: 0.8rem 0.9rem; font-size: 1rem; }

  .nav__social {
    margin: 0.5rem 0 0;
    padding: 0.8rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--border);
    justify-content: flex-start;
  }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--grad-line);
  z-index: 1;
}

.hero--media {
  padding: clamp(7rem, 14vw, 11rem) 0 clamp(5rem, 10vw, 8rem);
}

.hero--media::before {
  background-image:
    linear-gradient(180deg, rgba(7, 9, 15, 0.55) 0%, rgba(7, 9, 15, 0.92) 88%),
    var(--hero-image, none);
  background-size: cover, cover;
  background-position: center, center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-blue-bright);
  background: rgba(42, 155, 255, 0.08);
  border: 1px solid rgba(42, 155, 255, 0.25);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-blue-bright);
  box-shadow: 0 0 12px var(--brand-blue-bright);
}

.hero h1 {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 18ch;
}

.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-dim);
  max-width: 56ch;
  margin: 1.2rem 0 2rem;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  color: #04101e;
  background: var(--grad-accent);
  box-shadow: 0 8px 28px -8px rgba(42, 155, 255, 0.55);
}

.btn--primary:hover {
  color: #04101e;
  box-shadow: 0 14px 40px -10px rgba(42, 155, 255, 0.7);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: var(--brand-blue);
}

.btn--small {
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
}

/* --- Cards / Grid ------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 880px) {
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

/* Title link that "stretches" to make the whole card clickable */
.card__link {
  color: inherit;
  text-decoration: none;
}

.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.card__link:hover { color: inherit; }

/* Any other links inside a card (e.g. inline external links) sit above the
   stretched-link overlay so they remain clickable. */
.card a:not(.card__link) {
  position: relative;
  z-index: 2;
}

.card__media {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 9, 15, 0.85) 100%);
}

.card__body {
  padding: 1.4rem 1.4rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-blue-bright);
  margin-bottom: 0.5rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0 0 1.2rem;
}

.card__cta {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-blue-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}

.card:hover .card__cta { gap: 0.7rem; color: var(--brand-cyan); }

/* --- Featurettes (alternating rows) ------------------------------------- */
.featurette {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0;
}

.featurette--reverse > .featurette__media { order: 2; }

.featurette__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
  background: var(--surface);
  background-size: cover;
  background-position: center;
}

.featurette__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 30%, rgba(7, 9, 15, 0.5) 100%);
  pointer-events: none;
}

.featurette__date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-blue-bright);
  margin-bottom: 0.6rem;
}

.featurette h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  margin-bottom: 1rem;
}

.featurette p {
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.7;
}

@media (max-width: 880px) {
  .featurette {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 0;
  }
  .featurette--reverse > .featurette__media { order: 0; }
}

/* --- Section headers ---------------------------------------------------- */
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-blue-bright);
  display: block;
  margin-bottom: 0.8rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head p {
  color: var(--text-dim);
  max-width: 60ch;
  margin: 0 auto;
}

/* --- Content panel (long-form copy) ------------------------------------ */
.panel {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  margin-bottom: 1.5rem;
}

.panel h2 {
  font-size: 1.4rem;
  margin: 1.6rem 0 0.8rem;
  color: var(--text);
}

.panel h2:first-child { margin-top: 0; }

.panel h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-blue-bright);
  margin: 1.6rem 0 0.6rem;
}

.panel p,
.panel li {
  color: var(--text-dim);
}

.panel ul {
  list-style: none;
  padding-left: 0;
}

.panel ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
}

.panel ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 0 8px rgba(42, 155, 255, 0.6);
}

.panel address {
  font-style: normal;
  display: inline;
  color: inherit;
}

/* --- Spec list (system requirements style) ------------------------------ */
.spec-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.spec-list dt {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  padding-top: 0.15rem;
}

.spec-list dd {
  margin: 0;
  color: var(--text-dim);
}

/* --- Gallery ------------------------------------------------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 880px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

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

.gallery a {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: saturate(0.95);
}

.gallery a:hover img {
  transform: scale(1.05);
  filter: saturate(1.1);
}

.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(7, 9, 15, 0.55) 100%);
  pointer-events: none;
}

/* --- Video embed -------------------------------------------------------- */
.video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: var(--shadow-card);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Clickable thumbnail that opens the YouTube watch page in a new tab.
   Used in place of an iframe embed when the video disallows embedding. */
.video-link {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000 center / cover no-repeat;
  background-image: var(--video-thumb, none);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.video-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 15, 0.35) 0%, rgba(7, 9, 15, 0.65) 100%);
  transition: background 0.2s ease;
}

.video-link::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 60%),
    var(--grad-accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset,
              0 14px 40px -10px rgba(42, 155, 255, 0.6);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2304101e'><path d='M8 5v14l11-7z'/></svg>"),
    var(--grad-accent);
  background-size: 36px 36px, cover;
  background-position: 56% center, center;
  background-repeat: no-repeat, no-repeat;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-link:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.video-link:hover::before { background: linear-gradient(180deg, rgba(7, 9, 15, 0.2) 0%, rgba(7, 9, 15, 0.55) 100%); }
.video-link:hover::after {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset,
              0 18px 50px -10px rgba(42, 155, 255, 0.8);
}

.video-link__caption {
  position: absolute;
  bottom: 1.2rem;
  left: 1.4rem;
  right: 1.4rem;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.video-caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* --- News strip --------------------------------------------------------- */
.news-item {
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--border);
}

.news-item:last-child { border-bottom: 0; }

.news-item__date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-blue-bright);
  margin-bottom: 0.6rem;
}

.news-item h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 600;
  margin: 0 0 0.8rem;
  letter-spacing: -0.02em;
}

.news-item p {
  color: var(--text-dim);
  max-width: 72ch;
  font-size: 1.02rem;
}

/* --- CTA strip ---------------------------------------------------------- */
.cta-strip {
  position: relative;
  margin: 5rem auto;
  padding: 3rem clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(42, 155, 255, 0.16), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-elev));
  text-align: center;
  overflow: hidden;
}

.cta-strip h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 0.6rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-strip p {
  color: var(--text-dim);
  max-width: 60ch;
  margin: 0 auto 1.5rem;
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  margin-top: 5rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer .brand { font-size: 0.95rem; }

.site-footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer__links a {
  color: var(--text-muted);
}

.site-footer__links a:hover {
  color: var(--text);
}

.site-footer__copy {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

/* --- Utilities ---------------------------------------------------------- */
.flow > * + * { margin-top: 1rem; }

.text-center { text-align: center; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: 2rem !important; }
.mb-3 { margin-bottom: 3rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-3 { margin-top: 3rem !important; }

.divider {
  height: 1px;
  background: var(--grad-line);
  margin: 4rem 0;
  opacity: 0.6;
}

/* Subtle grid background for hero */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(60% 60% at 50% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000 0%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 0.5rem 1rem;
  background: var(--brand-blue);
  color: #04101e;
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus { top: 0; }
