/* ============================================================
   HOLOSYNC-CENTERPOINTE.COM — Global Stylesheet
   Aesthetic: Scientific journal meets dark-mode terminal
   Fonts: Instrument Serif (display) + IBM Plex Sans (body) + IBM Plex Mono (data)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=IBM+Plex+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@300;400;500&display=swap');

/* ── TOKENS ── */
:root {
  --bg:          #0a0c0e;
  --bg-2:        #0f1215;
  --bg-3:        #141820;
  --surface:     #161b22;
  --surface-2:   #1c2330;
  --border:      rgba(255,255,255,0.07);
  --border-accent: rgba(0,194,168,0.25);

  --text:        #e8eaed;
  --text-muted:  #7d8590;
  --text-dim:    #444c56;

  --teal:        #00c2a8;
  --teal-dim:    rgba(0,194,168,0.12);
  --teal-glow:   rgba(0,194,168,0.06);

  --gold:        #c9a84c;

  --font-serif:  'Instrument Serif', Georgia, serif;
  --font-sans:   'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:   'IBM Plex Mono', 'Courier New', monospace;

  --nav-h:       64px;
  --max-w:       1100px;
  --reading-w:   720px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: .6;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  background: rgba(10,12,14,0.85);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; flex-direction: column; gap: 1px;
  text-decoration: none;
}
.nav-logo-main {
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: .08em;
}
.nav-logo-sub {
  font-size: .6rem;
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav-links {
  display: flex; gap: 2rem; list-style: none;
}
.nav-links a {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: 2px;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.nav-cta:hover {
  background: var(--teal);
  color: var(--bg);
  opacity: 1;
}

/* ── PAGE WRAPPER ── */
.page { position: relative; z-index: 1; }

/* ── SECTIONS ── */
section { padding: 100px 5%; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before {
  content: '//';
  color: var(--text-dim);
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.15; }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 1.2rem;
}
.section-title em { font-style: italic; color: var(--teal); }

.section-lead {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: var(--reading-w);
  margin-bottom: 3rem;
}

.rule {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--teal), transparent);
  margin: 2rem 0;
}

/* ── MONO CALLOUT BOXES ── */
.mono-box {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-left: 2px solid var(--teal);
  border-radius: 0 4px 4px 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  white-space: pre;
  overflow-x: auto;
}
.mono-box .key { color: var(--teal); }
.mono-box .val { color: var(--text); }
.mono-box .dim { color: var(--text-dim); }

/* ── PROSE ── */
.prose p {
  font-size: .97rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.2rem;
  max-width: var(--reading-w);
}
.prose p strong { color: var(--text); font-weight: 500; }
.prose p:last-child { margin-bottom: 0; }

/* ── DATA BADGE ── */
.freq-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  padding: 4px 12px;
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color .25s, background .25s;
}
.card:hover { border-color: var(--border-accent); background: var(--surface-2); }

/* ── FOOTER ── */
.footer {
  padding: 4rem 5% 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  position: relative; z-index: 1;
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.footer-logo-main {
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 500;
  color: var(--teal);
  display: block; margin-bottom: .3rem;
}
.footer-trademark {
  font-size: .72rem;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.6;
}
.footer-nav-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .8rem;
  display: block;
}
.footer-nav-links { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-nav-links a {
  font-size: .8rem;
  font-weight: 300;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-nav-links a:hover { color: var(--teal); opacity: 1; }
.footer-contact { display: flex; flex-direction: column; gap: .5rem; }
.footer-contact a {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 300;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-contact a:hover { color: var(--teal); opacity: 1; }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--text-dim);
  font-weight: 300;
}

/* ── HERO (shared base) ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 60px) 5% 80px;
  position: relative; overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,194,168,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,194,168,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-glow {
  position: absolute; z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; width: 100%; }

.hero-site-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2rem;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--teal); }
.hero h1 .line-muted { color: var(--text-muted); }
.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 580px;
  margin-bottom: 3rem;
}
.scroll-hint {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .14em;
  color: var(--text-dim);
  display: flex; align-items: center; gap: .5rem;
  animation: bounce-down 2s ease-in-out infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ── TERMINAL READOUT ── */
.terminal {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  padding: 1.4rem 1.8rem;
  margin-bottom: 2.5rem;
}
.terminal-row {
  display: flex; gap: 1rem; align-items: baseline;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 300;
  line-height: 2;
}
.terminal-key { color: var(--text-dim); min-width: 220px; }
.terminal-val { color: var(--teal); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all .2s;
  padding: 12px 24px;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--teal);
  color: var(--bg);
  border-color: var(--teal);
}
.btn-primary:hover { background: #00dfc0; border-color: #00dfc0; opacity: 1; }
.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); opacity: 1; }
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: transparent;
  padding-left: 0;
}
.btn-ghost:hover { color: var(--teal); opacity: 1; }

/* ── TIMELINE ── */
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 3rem; }
.timeline-item {
  display: grid;
  grid-template-columns: 120px 1px 1fr;
  gap: 0 2rem;
  padding-bottom: 2.5rem;
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  color: var(--teal);
  padding-top: .2rem;
  text-align: right;
}
.timeline-line {
  position: relative;
  background: var(--border);
}
.timeline-line::before {
  content: '';
  position: absolute;
  top: .35rem; left: 50%;
  transform: translateX(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}
.timeline-content {
  padding-top: .1rem;
  padding-bottom: .5rem;
}
.timeline-content p {
  font-size: .88rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── PRINCIPLE CARDS ── */
.principles { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; margin-top: 3rem; background: var(--border); }
.principle-card {
  background: var(--bg-2);
  padding: 2.2rem 2rem;
  transition: background .2s;
}
.principle-card:hover { background: var(--surface); }
.principle-num {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--teal);
  letter-spacing: .12em;
  margin-bottom: 1rem;
  display: block;
}
.principle-title {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: .05em;
  margin-bottom: .8rem;
  line-height: 1.4;
}
.principle-body {
  font-size: .85rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── NAV CARDS (overview page) ── */
.nav-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); margin-top: 3rem; }
.nav-card {
  background: var(--bg-2);
  padding: 2.5rem;
  text-decoration: none;
  display: block;
  border: none;
  transition: background .25s;
  position: relative;
  overflow: hidden;
}
.nav-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  height: 1px; width: 0;
  background: var(--teal);
  transition: width .35s;
}
.nav-card:hover { background: var(--surface); opacity: 1; }
.nav-card:hover::after { width: 100%; }
.nav-card-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .8rem;
  display: block;
}
.nav-card h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: .75rem;
}
.nav-card p {
  font-size: .85rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}
.nav-card-arrow {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--teal);
  letter-spacing: .08em;
}

/* ── BRAINWAVE SECTIONS ── */
.bw-section { border-bottom: 1px solid var(--border); }
.bw-section:last-of-type { border-bottom: none; }

.bw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }

.bw-wave-viz {
  width: 100%;
  height: 60px;
  margin: 1.2rem 0;
}

/* ── TECHNOLOGY PAGE ── */
.step-grid { display: flex; flex-direction: column; gap: 0; margin: 3rem 0; }
.step-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 2rem;
  padding-bottom: 3rem;
  position: relative;
}
.step-item::before {
  content: '';
  position: absolute;
  left: 23px; top: 48px; bottom: 0;
  width: 1px;
  background: var(--border);
}
.step-item:last-child::before { display: none; }
.step-num-wrap {
  width: 48px; height: 48px;
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--surface);
  position: relative; z-index: 1;
}
.step-num {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  color: var(--teal);
}
.step-content { padding-top: .8rem; }
.step-content h4 {
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: .02em;
  margin-bottom: .6rem;
}
.step-content p {
  font-size: .88rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
}

.finding-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); margin-top: 2.5rem; }
.finding-card {
  background: var(--bg-2);
  padding: 1.8rem 2rem;
  transition: background .2s;
}
.finding-card:hover { background: var(--surface); }
.finding-num {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--teal);
  letter-spacing: .12em;
  margin-bottom: .6rem;
  display: block;
}
.finding-title {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .6rem;
  line-height: 1.4;
}
.finding-body {
  font-size: .84rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--surface);
  border-top: 1px solid var(--border-accent);
  border-bottom: 1px solid var(--border-accent);
  padding: 80px 5%;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, var(--teal-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--text);
  margin-bottom: .8rem;
  position: relative; z-index: 1;
}
.cta-banner p {
  font-size: .97rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.2rem;
  line-height: 1.8;
  position: relative; z-index: 1;
}
.cta-btn-group { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .principles { grid-template-columns: 1fr; }
  .nav-cards { grid-template-columns: 1fr; }
  .bw-grid { grid-template-columns: 1fr; gap: 2rem; }
  .finding-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 80px 1px 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  section { padding: 70px 5%; }
  .hero h1 { font-size: 2.4rem; }
  .cta-btn-group { flex-direction: column; align-items: center; }
}
