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

:root {
  --bg:           #080a0f;
  --bg-2:         #0e1118;
  --surface:      #13161f;
  --surface-2:    #1b1f2b;
  --border:       #252836;
  --border-2:     #2e3347;
  --text:         #dde1ee;
  --text-muted:   #6b7191;
  --text-faint:   #3d4260;

  --abs:          #4f8ef7;
  --abs-glow:     rgba(79,142,247,0.18);
  --abs-soft:     rgba(79,142,247,0.08);

  --cal:          #3ecf8e;
  --cal-glow:     rgba(62,207,142,0.18);
  --cal-soft:     rgba(62,207,142,0.08);

  --scarriffle:   #c084fc;
  --scarriffle-glow: rgba(192,132,252,0.18);
  --scarriffle-soft: rgba(192,132,252,0.08);

  --radius:       14px;
  --radius-sm:    8px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── noise overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(8,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-logo span { color: var(--scarriffle); }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface);
}

.nav-links a .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── MAIN WRAPPER ── */
.page {
  padding-top: 64px;
}

/* ── HERO ── */
.hero {
  position: relative;
  padding: 100px 40px 80px;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  top: -100px; left: -100px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.5s 0.1s ease forwards;
}

.hero-eyebrow .pill {
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
}

h1.hero-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.5s 0.2s ease forwards;
}

h1.hero-title em {
  font-style: italic;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.5s 0.3s ease forwards;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.5s 0.4s ease forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-2px); opacity: 0.9; }

.btn-primary {
  color: #fff;
}

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-2);
}

.btn-ghost:hover { background: var(--surface); }

/* ── SECTION ── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 40px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ── FEATURE GRID ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.feature-card .coming-soon {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 10px;
  background: var(--surface-2);
  color: var(--text-faint);
  border: 1px solid var(--border);
}

/* ── PLATFORM BADGES ── */
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  font-family: 'Geist Mono', monospace;
}

/* ── PRIVACY SUMMARY ── */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.privacy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.privacy-card .icon { font-size: 20px; margin-bottom: 8px; }
.privacy-card .label { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.privacy-card .sub { font-size: 12px; color: var(--text-muted); }
.privacy-card.no .label  { color: #f76f6f; }
.privacy-card.yes .label { color: var(--cal); }

/* ── REPO CARD ── */
.repo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  gap: 20px;
  flex-wrap: wrap;
}

.repo-card .repo-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.repo-card .repo-info p {
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'Geist Mono', monospace;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-faint);
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

footer a:hover { color: var(--text); }

/* ── INDEX CARDS ── */
.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 0;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-decoration: none;
  display: block;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card:hover::before { opacity: 1; }

.project-card .card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-card .card-tag .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

.project-card h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.1;
}

.project-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.project-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-faint);
  font-family: 'Geist Mono', monospace;
}

.project-card .arrow {
  font-size: 18px;
  transition: transform 0.2s;
}

.project-card:hover .arrow { transform: translateX(4px); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate {
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .hero { padding: 80px 20px 60px; }
  .section { padding: 0 20px 60px; }
  footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
  .nav-links a span { display: none; }
}
