:root {
  --bg: #05070c;
  --bg-soft: #0a0e18;
  --text: #eef1f7;
  --text-dim: #8b93a7;
  --accent: #2b7fff;
  --border: rgba(238, 241, 247, 0.12);
  --card-bg: #0d1424;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

.glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(43,127,255,0.16) 0%, rgba(43,127,255,0) 70%);
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

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

a.logo { color: var(--text); text-decoration: none; }

nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 28px;
  transition: color 0.2s ease;
}

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

.hero {
  padding: 80px 0 96px;
}

h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 820px;
}

h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.lede {
  margin-top: 28px;
  max-width: 620px;
  font-size: 1.15rem;
  color: var(--text-dim);
  font-weight: 400;
}

.lede strong { color: var(--text); font-weight: 600; }

.hero.compact {
  padding: 40px 0 48px;
}

.hero.compact h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  max-width: 640px;
}

.hero.compact .lede {
  margin-top: 18px;
  font-size: 1.05rem;
}

section.ventures {
  padding: 40px 0 72px;
}

section.software {
  padding: 0 0 100px;
}

.teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.teaser:hover {
  transform: translateY(-4px);
  border-color: rgba(43,127,255,0.45);
  background: #122036;
}

.teaser h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.teaser p {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 52ch;
}

.teaser .card-cta { margin-top: 0; white-space: nowrap; }

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

.hero .back-link { margin-top: 24px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.back-link:hover { color: var(--text); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.section-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.6rem;
}

.section-head p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

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

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.grid.two .card p { max-width: 44ch; }

@media (max-width: 860px) {
  .grid, .grid.two { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  min-height: 280px;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(43,127,255,0.45);
  background: #122036;
}

.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.version {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  vertical-align: middle;
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 30ch;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.9rem;
  font-weight: 600;
}

.card-cta .arrow {
  transition: transform 0.25s ease;
}

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

.card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(43,127,255,0.18) 0%, rgba(43,127,255,0) 70%);
  border-radius: 50%;
}

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

@media (max-width: 560px) {
  footer { flex-direction: column; gap: 12px; align-items: flex-start; }
  nav a { margin-left: 18px; }

  .hero { padding: 48px 0 56px; }
  .hero.compact { padding: 32px 0 36px; }
  .lede { font-size: 1.05rem; }

  section.ventures { padding: 16px 0 48px; }
  section.software { padding: 0 0 72px; }

  .teaser {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
