@font-face {
  font-family: berkeley;
  src: url('../font/berkeley.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

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

:root {
  --bg: #0a0a0a;
  --bg-subtle: #101010;
  --bg-card: #141414;
  --border: #222;
  --text: #e8e8e8;
  --text-muted: #888;
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --accent-glow: rgba(0, 255, 136, 0.15);
}

html {
  font-family: berkeley, monospace;
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* header */

body > header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

body > header > a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

body > header > a svg {
  width: 32px;
  height: 32px;
}

body > header > a span {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

body > header > a mark {
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

body > header nav {
  display: flex;
  gap: 0.75rem;
}

body > header nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

body > header nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

body > header nav a svg {
  width: 18px;
  height: 18px;
}

/* main */

main {
  flex: 1;
  padding-top: 64px;
}

/* hero */

main > section:first-child {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

main > section:first-child::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main > section:first-child > * {
  position: relative;
  z-index: 1;
}

main > section:first-child svg[data-logo] {
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 40px var(--accent-glow));
}

main > section:first-child h1 {
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--text), var(--accent), var(--text), var(--accent));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

main > section:first-child > p {
  font-size: 1.35rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

main > section:first-child > p a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px dotted var(--accent);
  transition: border-color 0.2s;
}

main > section:first-child > p a:hover {
  border-bottom-style: solid;
}

main > section:first-child nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

main > section:first-child nav a:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #0a0a0a;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

main > section:first-child nav a:first-child:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
}

main > section:first-child nav a:first-child svg {
  width: 18px;
  height: 18px;
}

main > section:first-child nav a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

main > section:first-child nav a:last-child:hover {
  border-color: var(--text-muted);
}

main > section:first-child nav a:last-child svg {
  width: 20px;
  height: 20px;
}

/* tagline */

main > section:first-child > small {
  display: block;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* features */

main > section:nth-child(2) {
  padding: 6rem 2rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

main > section:nth-child(2) > h2 {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

main > section:nth-child(2) > p {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 4rem;
}

main > section:nth-child(2) > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  list-style: none;
}

main > section:nth-child(2) > ul > li {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.2s, transform 0.2s;
}

main > section:nth-child(2) > ul > li:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

main > section:nth-child(2) > ul > li > figure {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

main > section:nth-child(2) > ul > li > figure svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

main > section:nth-child(2) > ul > li > h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

main > section:nth-child(2) > ul > li > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* how it works */

main > section:nth-child(3) {
  padding: 6rem 2rem;
}

main > section:nth-child(3) > h2 {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 4rem;
}

main > section:nth-child(3) > ol {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 700px;
  margin: 0 auto;
  list-style: none;
  counter-reset: steps;
}

main > section:nth-child(3) > ol > li {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  counter-increment: steps;
}

main > section:nth-child(3) > ol > li::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 50%;
  color: #0a0a0a;
  font-size: 1rem;
  font-weight: 600;
}

main > section:nth-child(3) > ol > li > div h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

main > section:nth-child(3) > ol > li > div p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

main > section:nth-child(3) > ol > li > div code {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--accent);
}

/* cta */

main > section:nth-child(4) {
  padding: 6rem 2rem;
  text-align: center;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

main > section:nth-child(4) > h2 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

main > section:nth-child(4) > p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}

main > section:nth-child(4) > a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.5rem;
  background: var(--accent);
  border-radius: 10px;
  color: #0a0a0a;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

main > section:nth-child(4) > a:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
}

main > section:nth-child(4) > a svg {
  width: 20px;
  height: 20px;
}

/* footer */

body > footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

body > footer > p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

body > footer > p a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

body > footer > p a:hover {
  color: var(--accent);
}

/* responsive */

@media (max-width: 800px) {
  body > header {
    padding: 0.75rem 1rem;
  }

  body > header > a span {
    font-size: 1.1rem;
  }

  body > header nav {
    gap: 0.5rem;
  }

  body > header nav a span {
    display: none;
  }

  body > header nav a {
    padding: 0.5rem;
  }

  main > section:first-child {
    padding: 3rem 1.5rem;
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  main > section:first-child svg[data-logo] {
    width: 80px;
    height: 80px;
    margin-bottom: 0.75rem;
  }

  main > section:first-child h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  main > section:first-child > p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  main > section:first-child nav {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  main > section:first-child nav a {
    width: 100%;
    justify-content: center;
  }

  main > section:nth-child(2),
  main > section:nth-child(3),
  main > section:nth-child(4) {
    padding: 4rem 1.5rem;
  }

  main > section:nth-child(2) > h2,
  main > section:nth-child(3) > h2,
  main > section:nth-child(4) > h2 {
    font-size: 1.75rem;
  }

  main > section:nth-child(3) > ol > li {
    flex-direction: column;
    gap: 1rem;
  }
}

/* scrollbar */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
