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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #050510;
  color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Three.js Canvas ── */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Dark overlay for readability ── */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: rgba(5, 5, 16, 0.55);
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(5, 5, 16, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-logo img { height: 20px; width: auto; opacity: 1; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5)); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; }
.nav-cta {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #000;
  background: #44aaff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.3s, transform 0.2s;
}
.nav-cta:hover { background: #5bbcff; transform: translateY(-1px); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: rgba(255,255,255,0.7);
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 5, 16, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.nav-mobile .nav-cta { font-size: 0.8rem; padding: 14px 28px; margin-top: 12px; }

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 40px 80px;
}
.hero-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #44aaff;
  margin-bottom: 28px;
  opacity: 0.7;
}
.founder-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(68, 170, 255, 0.2);
  box-shadow: 0 0 40px rgba(68, 170, 255, 0.1), 0 0 80px rgba(68, 170, 255, 0.05);
}
.founder-photo {
  position: relative;
  cursor: pointer;
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ascii-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  max-width: 700px;
}
.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  max-width: 520px;
  line-height: 1.7;
}

/* ── Shared Section ── */
.page-section {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 40px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.25);
  margin-bottom: 20px;
}

.section-heading {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

.section-heading span {
  color: #44aaff;
}

.divider {
  width: 32px;
  height: 1px;
  background: rgba(68,170,255,0.25);
  margin: 24px 0 32px;
}

/* ── Founder Section ── */
.founder-block {
  margin-top: 4px;
}

.founder-name {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  line-height: 1.15;
}

.founder-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #44aaff;
  opacity: 0.5;
  margin-bottom: 32px;
}

.founder-text p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}

.founder-text p strong {
  color: #fff;
  font-weight: 600;
}

/* ── Team Section ── */
.team-block {
  margin-top: 4px;
}

.team-block p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
}

.team-block p strong {
  color: #fff;
  font-weight: 600;
}

/* ── What Changes Section ── */
.change-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 40px 36px;
  margin-bottom: 16px;
  transition: border-color 0.3s, background 0.3s;
}

.change-card:hover {
  border-color: rgba(68,170,255,0.12);
  background: rgba(255,255,255,0.03);
}

.change-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  color: #fff;
}

.change-card p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
}

/* ── Why Clients Stay ── */
.proof-card {
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.proof-card:last-of-type {
  border-bottom: none;
}

.proof-card p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
}

.proof-card .still-here {
  color: #44aaff;
  font-weight: 600;
}

.proof-closer {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.6);
  margin-top: 36px;
}

/* ── The Math Section ── */
.math-section {
  max-width: 780px;
}

.math-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 0;
}

.math-tab {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  background: none;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  transition: color 0.3s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.math-tab:hover { color: rgba(255,255,255,0.7); }

.math-tab.active {
  color: #44aaff;
  border-bottom-color: #44aaff;
}

.math-panels { position: relative; }

.math-panel {
  display: none;
}

.math-panel.active {
  display: block;
}

.math-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
  font-weight: 300;
}

.math-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.math-table thead th {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.math-table thead th.col-enc {
  color: #44aaff;
}

.math-table tbody td {
  font-size: 0.82rem;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.math-table .row-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
}

.math-table .val-them {
  color: rgba(255,255,255,0.4);
}

.math-table .val-us {
  color: #44aaff;
  font-weight: 600;
}

.math-saved {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #44aaff;
  background: rgba(68,170,255,0.06);
  border: 1px solid rgba(68,170,255,0.12);
  border-radius: 4px;
  padding: 12px 16px;
  text-align: center;
  margin-top: 8px;
}

.math-closing {
  margin-top: 40px;
}

.math-closing p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.math-closing .closer-line {
  color: rgba(255,255,255,0.9);
  font-weight: 400;
  font-style: italic;
  font-size: 1.1rem;
}

/* ── Final CTA ── */
.final-cta {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 100px 40px 80px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.final-cta h2 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.1;
}

.final-cta p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  max-width: 540px;
  margin: 0 auto 24px;
}

.final-cta p:last-of-type {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}

.final-cta .cta-btn-solid {
  display: inline-block;
  background: #44aaff;
  color: #000;
  padding: 16px 36px;
  border: none;
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.final-cta .cta-btn-solid:hover {
  background: #5bbcff;
  transform: translateY(-1px);
}

.final-cta .cta-subtext {
  display: block;
  margin-top: 20px;
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 20px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-teams {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.6);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 120px 20px 60px; min-height: 50vh; }
  .hero h1 { font-size: 2rem; }
  .founder-photo { width: 220px; height: 220px; }

  .page-section { padding: 60px 20px; }
  .section-heading { font-size: 1.8rem; }
  .founder-name { font-size: 1.5rem; }
  .founder-text p, .team-block p, .proof-card p, .math-closing p { font-size: 0.95rem; }

  .change-card { padding: 28px 24px; }
  .change-card h3 { font-size: 1.1rem; }

  .math-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .math-tab { white-space: nowrap; font-size: 0.55rem; padding: 8px 12px; }

  .final-cta { padding: 80px 20px 60px; }
  .final-cta h2 { font-size: 1.9rem; }

  .site-footer { padding: 20px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
