:root {
  --bg: #0a0e14;
  --bg-elev: #10151d;
  --border: #1e2530;
  --text: #e6e9ef;
  --text-dim: #8891a1;
  --text-faint: #5a6373;
  --accent: #5eead4;
  --accent-soft: rgba(94, 234, 212, 0.12);
  --violet: #a78bfa;
  --radius: 12px;
  --font-head: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 64px);
  flex-wrap: wrap;
}

.nav-brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px clamp(20px, 5vw, 64px) 80px;
  max-width: 920px;
}

.eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9rem;
  margin: 0 0 20px;
  min-height: 1.2em;
}

.cursor {
  display: inline-block;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--text-dim);
  max-width: 46ch;
  margin: 0 0 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #06120f;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-soft);
}

.social-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

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

.section {
  padding: 72px clamp(20px, 5vw, 64px);
  max-width: 920px;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  margin: 0 0 20px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.section-copy {
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 0 36px;
  font-size: 1.02rem;
}

.about-grid {
  display: grid;
  gap: 20px;
}

.about-text {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--text);
  max-width: 62ch;
  margin: 0;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 480px;
}

.newsletter-form input {
  flex: 1 1 240px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 20px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.newsletter-form input::placeholder {
  color: var(--text-faint);
}

.newsletter-form input:focus {
  border-color: var(--accent);
}

.newsletter-form button {
  border: none;
}

.form-message {
  min-height: 1.4em;
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--accent);
}

.form-message.error {
  color: #f87171;
}

.fine-print {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin: 8px 0 0;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 40px clamp(20px, 5vw, 64px) 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

.footer-socials {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

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

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  margin: 0;
}

@media (max-width: 480px) {
  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cursor {
    animation: none;
  }
}
