:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: #ffffff;
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-light: #94a3b8;
  --accent: #0d9488;
  --accent-dark: #0f766e;
  --accent-soft: #f0fdfa;
  --accent-light: #ccfbf1;
  --border: rgba(13, 148, 136, 0.1);
  --shadow: rgba(13, 148, 136, 0.06);
  --max-width: 1160px;
  --narrow-width: 720px;
  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: min(100% - 48px, var(--max-width));
  margin-inline: auto;
}

.container.narrow {
  max-width: var(--narrow-width);
}

/* Header */
.site-header {
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.logo-mark svg {
  width: 28px;
  height: 28px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.92); }
}

/* Hero */
.hero {
  padding: 110px 0 120px;
  text-align: center;
}

.hero-copy {
  max-width: 720px;
  margin-inline: auto;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-lead {
  font-size: clamp(1.05rem, 2.1vw, 1.25rem);
  color: var(--ink-muted);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.65;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Idea section */
.idea {
  padding: 100px 0;
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.idea-statement {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  line-height: 1.45;
  margin-bottom: 26px;
}

.idea-statement strong {
  font-weight: 600;
  color: var(--accent);
}

.idea-text {
  color: var(--ink-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

/* Pillars */
.pillars {
  padding: 110px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pillars-header {
  text-align: center;
  margin-bottom: 54px;
}

.pillars-intro {
  color: var(--ink-muted);
  font-size: 1.1rem;
  margin-top: 12px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar {
  padding: 38px 32px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-card);
}

.pillar-number {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 18px;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.pillar p {
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Topics */
.topics {
  padding: 90px 0;
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.topics-text {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.8vw, 1.65rem);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 640px;
  margin-inline: auto;
}

/* Open source */
.open-source {
  padding: 100px 0;
}

.open-source-text {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
  line-height: 1.55;
  text-align: center;
  color: var(--ink-muted);
}

/* About */
.about {
  padding: 100px 0 130px;
  border-top: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 22px;
}

.about p {
  font-size: 1.08rem;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 22px;
}

.about p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.footer-brand {
  font-weight: 500;
}

.footer-link {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Responsive */
@media (max-width: 860px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pillars {
    padding: 70px 0;
  }

  .pillars-header {
    margin-bottom: 36px;
  }

  .pillar {
    padding: 30px 26px;
  }

  .hero {
    padding: 60px 0 70px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 2.8rem);
  }

  .about {
    padding: 70px 0 90px;
  }

  .footer-inner {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .site-header .container {
    gap: 16px;
  }

  .main-nav {
    display: none;
  }

  .status-badge {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 16px 0;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .pillar {
    padding: 28px 24px;
  }

  .status-badge {
    display: none;
  }
}

/* v1 experiment: subtle hero entrance */
.hero-copy {
  animation: floatIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-mark {
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0);
  }
  100% {
    box-shadow: 0 0 20px 4px rgba(13, 148, 136, 0.12);
  }
}

.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible .section-title::after,
.section-title.visible::after {
  transform: scaleX(1);
}
