/* Page chrome for /gtm-systems. Matches yehudazahler.com tokens and nav. */

:root {
  --black: #0b0b0a;
  --surface: #141413;
  --surface-2: #1c1c1a;
  --surface-3: #242422;
  --border: #2a2a27;
  --border-light: #1e1e1c;
  --white: #edebe6;
  --white-dim: #c8c4bb;
  --gray: #8a857c;
  --gray-dim: #5a564f;
  --green: #00e661;
  --green-dim: rgba(0, 230, 97, 0.08);
  --green-border: rgba(0, 230, 97, 0.18);
  --green-glow: rgba(0, 230, 97, 0.04);
  --font-display: "Syne", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-color: var(--surface-3) var(--black);
}

body[data-page="gtm"] {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[data-page="gtm"] ::selection {
  background: var(--green-dim);
  color: var(--green);
}

body[data-page="gtm"] a { color: inherit; text-decoration: none; }

body[data-page="gtm"] a:focus-visible,
body[data-page="gtm"] button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

body[data-page="gtm"]::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Zero specificity so explicit logo and footer heights still win. */
:where(body[data-page="gtm"] img) { max-width: 100%; height: auto; }

body[data-page="gtm"] main,
body[data-page="gtm"] section,
body[data-page="gtm"] article,
body[data-page="gtm"] h1,
body[data-page="gtm"] h2,
body[data-page="gtm"] h3,
body[data-page="gtm"] p {
  min-width: 0;
  max-width: 100%;
}

body[data-page="gtm"] h1,
body[data-page="gtm"] h2,
body[data-page="gtm"] h3 {
  overflow-wrap: break-word;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10001;
  background: var(--green);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
}

.skip:focus { top: 12px; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, var(--black) 60%, transparent);
  pointer-events: none;
}

.nav > * { pointer-events: auto; }

.nav-mark { display: inline-flex; align-items: center; }
.nav-mark img { display: block; width: auto; }
body[data-page="gtm"] .nav-logo-icon { height: 88px; width: auto; max-width: none; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links { display: flex; gap: 28px; }

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--gray);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width 0.4s var(--ease-out);
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { width: 100%; }
.nav-link[aria-current="page"] { color: var(--white); }

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  text-shadow: 0 0 12px rgba(0, 230, 97, 0.15);
}

.nav-status-text {
  background: rgba(0, 230, 97, 0.1);
  border-radius: 3px;
  padding: 2px 8px;
}

.nav-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: navDotPulseC 2s ease-in-out infinite;
}

@keyframes navDotPulseC {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

.section-padding { padding: 112px 48px; }

.section-header { margin-bottom: 48px; }

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--green);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1.05;
}

.section-lead {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--gray);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
}

.gtm-hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 168px 48px 72px;
}

.hero-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, #000 58%, #000 100%);
}

.net-path {
  fill: none;
  stroke: var(--green);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 5 9;
  animation: edgeFlow 28s linear infinite;
}

.net-path-dim { opacity: 0.45; }

.net-node { fill: var(--green); }

.gtm-hero-copy { position: relative; z-index: 1; max-width: 1100px; }

.gtm-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.9;
  letter-spacing: -2px;
  text-transform: uppercase;
  max-width: min(11ch, 100%);
}

.page-sub {
  margin-top: 28px;
  max-width: 42rem;
  font-size: 16px;
  line-height: 1.6;
  color: var(--white-dim);
  font-weight: 400;
}

.gtm-statement {
  margin-top: 48px;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 0.95;
  letter-spacing: -1.5px;
  text-transform: uppercase;
}

.gtm-statement .accent { color: var(--green); }

.gtm-support {
  margin-top: 22px;
  max-width: 40rem;
  color: var(--gray);
  font-size: 16px;
  line-height: 1.7;
}

.jump {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.jump:hover { color: var(--white); }

.band { border-top: 1px solid var(--border); }

.connect { text-align: center; position: relative; overflow: hidden; }

.connect::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 100%);
  height: 400px;
  background: radial-gradient(ellipse, var(--green-glow), transparent 70%);
  pointer-events: none;
}

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -2px;
  line-height: 0.95;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.cta-support {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin: 0 auto 40px;
  color: var(--gray);
  font-size: 16px;
}

.cta-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1.5px solid var(--border);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.cta-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
  z-index: -1;
}

.cta-link:hover { border-color: var(--green); color: var(--black); }
.cta-link:hover::before { transform: translateY(0); }

.site-footer {
  padding: 28px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.footer-brand { width: min(100%, 860px); }
.footer-brand img { display: block; width: 100%; height: auto; }

.footer-meta {
  width: 100%;
  max-width: 860px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-left {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-dim);
  letter-spacing: 1px;
}

.footer-right { display: flex; align-items: center; gap: 20px; }

.footer-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-dim);
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.footer-link:hover { color: var(--green); }

.footer-highlight {
  background: rgba(0, 230, 97, 0.1);
  border-radius: 3px;
  padding: 1px 6px;
  color: var(--green);
}

.footer-clock {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  background: rgba(0, 230, 97, 0.1);
  border-radius: 3px;
  padding: 1px 6px;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  .nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .nav-status { font-size: 9px; letter-spacing: 1px; }
  body[data-page="gtm"] .nav-logo-icon { height: 64px; }
  .gtm-hero { padding: 128px 24px 56px; min-height: 0; }
  .hero-net { opacity: 0.14; mask-image: linear-gradient(180deg, transparent 0%, #000 42%, #000 100%); }
  .section-padding { padding: 72px 24px; }
  .section-header { margin-bottom: 36px; }
  .site-footer { padding: 24px; }
  .footer-brand { width: min(100%, 680px); }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cta-links { flex-direction: column; align-items: stretch; }
  .cta-link { justify-content: center; }
}

@media (max-width: 480px) {
  .nav { padding: 16px; }
  body[data-page="gtm"] .nav-logo-icon { height: 52px; }
  .nav-status { display: none; }
  .gtm-hero { padding: 108px 16px 48px; }
  .gtm-title { font-size: clamp(30px, 8vw, 40px); letter-spacing: -1px; }
  .page-sub, .gtm-support { font-size: 15px; }
  .section-padding { padding: 56px 16px; }
  .section-title { font-size: clamp(22px, 5.5vw, 28px); }
  .site-footer { padding: 20px 16px; }
  .footer-brand { width: 100%; }
  .footer-left, .footer-link, .footer-clock { font-size: 10px; }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .site-footer { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .nav { padding-top: calc(20px + env(safe-area-inset-top)); }
}

.gtm-index {
  padding: 28px 48px 32px;
  border-top: 1px solid var(--border);
  background: var(--black);
}

.gtm-index-systems,
.gtm-index-sections {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
}

.gtm-index-sections {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.gtm-index li {
  min-width: 0;
  max-width: 100%;
}

.gtm-index a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: var(--white-dim);
}

.gtm-index-num { color: var(--green); }

.gtm-index a:hover,
.gtm-index a:focus-visible { color: var(--green); }

#stages,
#systems,
.system,
#whats-next,
#record,
#close {
  scroll-margin-top: 148px;
}

@media (max-width: 860px) {
  .gtm-index { padding: 24px 24px 28px; }
  #stages,
  #systems,
  .system,
  #whats-next,
  #record,
  #close { scroll-margin-top: 116px; }
}

@media (max-width: 480px) {
  .gtm-index { padding: 20px 16px 24px; }
  .gtm-index-systems,
  .gtm-index-sections {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  #stages,
  #systems,
  .system,
  #whats-next,
  #record,
  #close { scroll-margin-top: 96px; }
}
