/* Noble One Industries - site styles (committed dark theme) */

:root {
  --bg:            #000000;
  --bg-alt:        #070a10;
  --surface:       #0b1019;
  --surface-2:     #0e141f;
  --border:        #1b2432;
  --border-strong: #2c3849;
  --text:          #f2f5f9;
  --text-muted:    #98a7bc;
  --accent:        #6ea8f0;
  --accent-hover:  #9cc6f8;
  --accent-soft:   #0e1a2c;
  --footer-bg:     #04060a;
  --radius:        10px;
  --maxw:          1120px;
  --shadow:        0 1px 2px rgba(0,0,0,.6), 0 10px 30px rgba(0,0,0,.45);
  --header-h:      68px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;

  /* Sticky footer. Short pages (404) would otherwise end above the fold and
     let the fixed pulsar layer show through below the footer. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; display: flex; flex-direction: column; }
main > section:last-child { flex-grow: 1; }
.site-header, .site-footer { flex: none; }

/* Pulsar sits behind the top of every page. Fixed, so content scrolls over it.
   No mask here on purpose: every section except .hero is opaque, and .hero
   carries its own bottom fade, so a full-viewport mask layer would only add
   compositing cost and repaint artifacts. */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  background: url("/assets/pulsar.svg") center center / cover no-repeat;
  opacity: .9;
  z-index: 0;          /* above body's own background, below the content layer */
  pointer-events: none;
}
main, .site-footer { position: relative; z-index: 1; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 650; color: var(--text); }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: #04060a; padding: 10px 16px; z-index: 100; border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip:focus { left: 0; }

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

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,.62);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: auto; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-name {
  font-size: .92rem; font-weight: 600; letter-spacing: .26em;
  color: #ffffff; text-indent: .26em;
}
.brand-sub {
  font-size: .55rem; font-weight: 500; letter-spacing: .32em;
  color: var(--text-muted); text-indent: .32em;
}

.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
/* :not(.btn) so the nav link colour never overrides a button's own contrast pairing */
.nav-links a:not(.btn) { color: var(--text-muted); font-size: .95rem; font-weight: 500; }
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn)[aria-current="page"] { color: var(--text); text-decoration: none; }

.btn {
  display: inline-block; padding: 11px 20px; border-radius: 8px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #04060a; }
.btn-primary:hover { background: var(--accent-hover); color: #04060a; text-decoration: none; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ---------- sections ---------- */
/* Opaque by default so the fixed pulsar only shows through the hero. */
section { padding: 76px 0; background: var(--bg); position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  text-transform: uppercase; letter-spacing: .11em; font-size: .76rem;
  font-weight: 700; color: var(--accent); margin: 0 0 12px;
}
.lead { font-size: 1.14rem; color: var(--text-muted); max-width: 62ch; }
.section-head { max-width: 68ch; margin-bottom: 44px; }

/* ---------- hero (transparent: reveals the pulsar) ---------- */
.hero {
  padding: 104px 0 96px;
  background: transparent;
  overflow: hidden;
}
/* Scrim across the text column so copy stays legible over the pulsar core,
   while the beam stays visible on the right. */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.80) 28%,
    rgba(0,0,0,.42) 52%,
    rgba(0,0,0,0)   84%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 190px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  max-width: 18ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.85), 0 1px 4px rgba(0,0,0,.9);
}
.hero .lead {
  font-size: 1.22rem; margin-top: 20px; color: #c2cfe0;
  text-shadow: 0 1px 18px rgba(0,0,0,.9);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.section-alt .card { background: var(--surface-2); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .num {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border-strong);
  font-weight: 700; font-size: .9rem; margin-bottom: 14px;
}

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--text-muted); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px rgba(110,168,240,.6);
}
.ticks li strong { color: var(--text); font-weight: 600; }

/* ---------- prose (legal pages) ---------- */
.prose { max-width: 76ch; }
.prose h2 { margin-top: 2.2em; font-size: 1.42rem; }
.prose h3 { margin-top: 1.7em; }
.prose ul { padding-left: 22px; color: var(--text-muted); }
.prose li { margin-bottom: .5em; }
.prose p { color: var(--text-muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 11px 13px; border: 1px solid var(--border); vertical-align: top; color: var(--text-muted); }
.prose th { background: var(--surface); font-weight: 650; color: var(--text); }
.table-scroll { overflow-x: auto; }

/* These three exist as classes rather than inline style="" attributes on purpose:
   the Content-Security-Policy in _headers sets style-src 'self', and CSP Level 3
   falls style-src-attr back to style-src - so inline style attributes are stripped
   by the browser and silently do nothing. Verified against the real policy. */
.prose.is-full      { max-width: 100%; }          /* engagement table wants full column width */
.lead.is-spaced     { margin-top: 32px; }         /* trailing note under a card grid */
.footer-bottom.is-only {                          /* 404 has no footer grid above it */
  margin-top: 0; border-top: none; padding-top: 0;
}
.updated { color: var(--text-muted); font-size: .92rem; margin-bottom: 2.4em; }

/* ---------- contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 20px; }
.contact-list .label {
  display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .09em;
  font-weight: 700; color: var(--text-muted); margin-bottom: 3px;
}
.contact-list .value { font-size: 1.04rem; font-weight: 550; color: var(--text); }

/* ---------- cta band ---------- */
.cta-band {
  background: linear-gradient(180deg, #060b14 0%, #030509 100%);
  border-top: 1px solid var(--border);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--text-muted); max-width: 58ch; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--footer-bg); color: var(--text-muted);
  padding: 56px 0 32px; font-size: .93rem; border-top: 1px solid var(--border);
  position: relative;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer .brand { margin-bottom: 14px; }
.site-footer h4 {
  color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 12px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: .87rem;
}
.disclaimer { max-width: 70ch; line-height: 1.6; }

@media (max-width: 720px) {
  section { padding: 56px 0; }
  .hero { padding: 68px 0 60px; }
  /* keep .wrap's horizontal padding - a `padding: 14px 0` here would zero it */
  .nav { min-height: auto; flex-wrap: wrap; padding: 14px 24px; gap: 14px 20px; }
  .nav-links { margin-left: 0; width: 100%; gap: 18px; flex-wrap: wrap; }
  .brand-mark { height: 30px; }
  body::before { height: 78vh; }
}

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