:root {
  --bg: #07070b;
  --panel: rgba(18, 20, 30, 0.6);
  --line: rgba(120, 200, 255, 0.14);
  --line-strong: rgba(120, 200, 255, 0.32);
  --text: #c9d2e0;
  --text-dim: #6b7488;
  --cyan: #5fe3ff;
  --violet: #b083ff;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- background layers ---- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 80%);
  opacity: 0.5;
}
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 18% 12%, rgba(95, 227, 255, 0.10), transparent 60%),
    radial-gradient(700px circle at 85% 78%, rgba(176, 131, 255, 0.10), transparent 60%);
  pointer-events: none;
}

/* ---- nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1.2rem, 5vw, 3rem);
  backdrop-filter: blur(12px);
  background: rgba(7, 7, 11, 0.55);
  border-bottom: 1px solid var(--line);
}
.nav-mark {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  text-decoration: none;
}
.nav-mark span { color: var(--text); }
.nav-links { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.nav-links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cyan); }

/* ---- hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  position: relative;
}
.kicker {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1.2rem;
}
.title {
  font-size: clamp(2.8rem, 11vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.95;
  background: linear-gradient(180deg, #fff 30%, var(--cyan) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(95, 227, 255, 0.25);
}
.tagline {
  margin-top: 1.4rem;
  max-width: 34ch;
  color: var(--text-dim);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}
.cue {
  position: absolute;
  bottom: 2.5rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 1.2rem;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---- sections ---- */
.section {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 8rem) clamp(1.2rem, 5vw, 2rem);
  scroll-margin-top: 5rem;
}
.section-first { padding-top: clamp(6rem, 14vh, 9rem); }
#document { padding-bottom: 1vh; }
.label {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}
.section h2 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.body { color: var(--text-dim); max-width: 60ch; font-size: 1.05rem; }

.meta-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}
.meta-list li {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}
.meta-list span { color: var(--text-dim); margin-right: 0.5rem; }

/* ---- document ---- */
.doc-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0; }
.btn {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: var(--bg);
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(95, 227, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 0 36px rgba(95, 227, 255, 0.55); }
.btn-ghost { color: var(--cyan); background: transparent; }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: 0 0 20px rgba(95, 227, 255, 0.2); }

.viewer {
  margin-top: 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 0 50px rgba(95, 227, 255, 0.08), inset 0 0 0 1px rgba(255,255,255,0.02);
}
.viewer iframe {
  width: 100%;
  height: 95vh;
  border: 0;
  display: block;
  background: #15151c;
  transition: filter 0.2s ease;
}
/* user toggle: invert the dark PDF to a light reading mode */
.viewer iframe.light {
  filter: invert(1) hue-rotate(180deg);
  background: #fff;
}

/* ---- contact ---- */
.links-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.pill {
  font-family: var(--mono);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--violet);
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}
.pill:hover { border-color: var(--violet); color: #d4bcff; }

/* ---- footer ---- */
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem clamp(1.2rem, 5vw, 2rem) 3rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan);
}
.footer .dim { color: var(--text-dim); }

@media (max-width: 560px) {
  .nav-links { gap: 1rem; }
  .viewer iframe { height: 70vh; }
}

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