:root {
  --bg: #000000;
  --card: #161617;
  --text: #f5f5f7;
  --muted: #86868b;
  --radius: 28px;
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Orbitron", "Space Grotesk", sans-serif;
}

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

html { overflow-x: hidden; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.47;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
main { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 22px; flex: 1; }

section { padding: 80px 0 0; }

/* Hero */
.hero { position: relative; text-align: center; padding: 180px 0 160px; }

#net {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
}

.eyebrow {
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 7vw, 76px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 28px;
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: inline-block;
  min-width: 132px;
  padding: 12px 26px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary { background: var(--text); color: var(--bg); border: 1px solid var(--text); }
.btn-primary:hover { background: #d2d2d7; border-color: #d2d2d7; }

.btn-secondary { background: rgba(0, 0, 0, 0.4); color: var(--text); border: 1px solid #6e6e73; }
.btn-secondary:hover { border-color: var(--text); }

/* Links */
.link {
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

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

.back { display: inline-block; padding-top: 48px; font-size: 14px; color: var(--muted); }
.back:hover { color: var(--text); }

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

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.4s;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.04);
}

.card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: 0.03em; margin-bottom: 8px; }
.card p { font-size: 17px; color: var(--muted); }

/* Mission (wide card) */
.mission {
  text-align: center;
  padding: 72px 40px;
}

.mission:hover { transform: none; box-shadow: none; }

.mission p {
  color: var(--text);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 760px;
  margin: 0 auto;
}

.mission p span { color: var(--muted); }

/* Humans */
.founder {
  padding: 44px 32px;
  margin-bottom: 20px;
}

.role {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 10px;
}

.founder h3 { font-size: 30px; }

.badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 980px;
  background: #2a2a2c;
  font-size: 14px;
  color: var(--text);
}

footer {
  width: 100%;
  max-width: 1000px;
  margin: 80px auto 0;
  padding: 20px 22px 40px;
  border-top: 1px solid #424245;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* Home: fit everything in one screen */
.home main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 4vh, 48px);
  min-height: 100vh;
  min-height: 100dvh;
  flex: none;
}

.home .hero { padding: clamp(40px, 12vh, 140px) 0; }
.home section { padding: 0; }
.home .mission { padding: clamp(28px, 7vh, 72px) 40px; }
.home footer { margin-top: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  section { padding-top: 60px; }
  .hero { padding: 120px 0 100px; }
  .home .mission { padding: clamp(28px, 6vh, 56px) 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card { transition: none; }
}
