:root {
  --navy-900: #0a1020;
  --navy-800: #0e1729;
  --navy-700: #13203a;
  --line: #21304f;
  --blue: #3a86c8;
  --teal: #2bb6c4;
  --text: #eaf0fa;
  --muted: #9bacc8;
  --grad: linear-gradient(120deg, #2f6fb0 0%, #2bb6c4 100%);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 50% -8%, rgba(43,182,196,0.16), transparent 60%),
    radial-gradient(700px 500px at 85% 110%, rgba(47,111,176,0.14), transparent 55%),
    var(--navy-900);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 2.4rem);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-brand:hover { text-decoration: none; }
.nav-brand .lab {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--teal);
}
.nav-links { display: flex; gap: 1.4rem; font-size: 0.92rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--teal); text-decoration: none; }

.wrap {
  flex: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}
.logo { width: clamp(64px, 14vw, 92px); height: auto; margin-bottom: 1.6rem; }
.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.wordmark .lab {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--teal);
}
.tagline {
  margin-top: 1rem;
  font-size: clamp(0.72rem, 2.4vw, 0.86rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}
.pitch {
  margin-top: 1.6rem;
  max-width: 34rem;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  color: var(--muted);
}
.status {
  margin-top: 1.8rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  font-size: 0.82rem;
  color: var(--muted);
}
.status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(43,182,196,0.5);
  animation: pulse 2.4s infinite;
}
.cta {
  margin-top: 2.2rem;
  display: inline-block;
  padding: 13px 28px;
  border-radius: 10px;
  background: var(--grad);
  color: #06121f;
  font-weight: 600;
  font-size: 0.95rem;
}
.cta:hover { transform: translateY(-2px); opacity: 0.94; text-decoration: none; }
.pillars {
  margin-top: clamp(2.6rem, 7vw, 4rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 760px;
}
.pillar {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
  padding: 1.4rem 1.2rem;
  text-align: left;
}
.pillar h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.pillar p { font-size: 0.9rem; color: var(--muted); }
.pillar .bar { width: 34px; height: 3px; border-radius: 3px; background: var(--grad); margin-bottom: 0.9rem; }

.page {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem 3rem;
}
.page-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.page-intro { color: var(--muted); margin-bottom: 2.4rem; }

.note-list { list-style: none; display: flex; flex-direction: column; gap: 1.4rem; }
.note-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
  transition: border-color 0.15s ease;
}
.note-item:hover { border-color: var(--teal); }
.note-item a { color: var(--text); display: block; }
.note-item a:hover { text-decoration: none; }
.note-item .note-date {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.note-item h2 { font-family: var(--font-head); font-weight: 500; font-size: 1.2rem; margin: 0.3rem 0 0.4rem; }
.note-item .note-excerpt { color: var(--muted); font-size: 0.95rem; }
.empty-state {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
}

.note-article .note-meta {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.note-article h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 1.6rem;
}
.note-article h2 { font-family: var(--font-head); font-weight: 500; font-size: 1.4rem; margin: 2.2rem 0 0.8rem; }
.note-article h3 { font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; margin: 1.6rem 0 0.6rem; }
.note-article p { margin: 0 0 1.1rem; }
.note-article ul, .note-article ol { margin: 0 0 1.1rem 1.4rem; }
.note-article li { margin-bottom: 0.4rem; }
.note-article blockquote {
  border-left: 3px solid var(--teal);
  padding-left: 1rem;
  margin: 0 0 1.1rem;
  color: var(--muted);
}
.note-article code {
  font-family: var(--font-mono);
  background: var(--navy-700);
  padding: 0.15em 0.4em;
  border-radius: 5px;
  font-size: 0.9em;
}
.note-article pre {
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin: 0 0 1.1rem;
}
.note-article pre code { background: none; padding: 0; }
.note-article hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }
.note-article img { max-width: 100%; border-radius: 10px; }
.placeholder { color: #6f819e; font-style: italic; }

footer {
  text-align: center;
  padding: 1.8rem 1.5rem 2.2rem;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
}
footer .domains { margin-top: 0.4rem; opacity: 0.7; letter-spacing: 0.04em; }

.reveal { opacity: 0; transform: translateY(14px); animation: up 0.7s ease forwards; }
.reveal.d1 { animation-delay: 0.05s; }
.reveal.d2 { animation-delay: 0.15s; }
.reveal.d3 { animation-delay: 0.25s; }
.reveal.d4 { animation-delay: 0.35s; }
.reveal.d5 { animation-delay: 0.45s; }
@keyframes up { to { opacity: 1; transform: none; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43,182,196,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(43,182,196,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,182,196,0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  .status .dot { animation: none; }
}
