:root {
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --bg: #101410;
  --ink: #101410;
  --ink-inverse: #fbfcfa;
  --accent: #00c805;
  --accent-hover: #00b304;
  --accent-press: #009c04;
  --on-accent: #06130a;
  --content-max: 1128px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --hairline: 1px;
  --duration-fast: 0.16s;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --z-nav: 100;
  --landing-gap: calc(var(--space-24) + var(--space-8));
  --text-sm: 0.875rem;
  --text-base: 0.9375rem;
  --tracking-tight: -0.025em;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

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

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

button {
  font: inherit;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--ink);
  border-bottom: var(--hairline) solid transparent;
  transition:
    background 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
}

.header-scrolled {
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: color-mix(in srgb, var(--ink-inverse) 14%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 72px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink-inverse);
}

.brand-logo {
  display: block;
  height: 34px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.header-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  color: color-mix(in srgb, var(--ink-inverse) 76%, transparent);
  transition:
    color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}

.header-link:hover {
  color: var(--ink-inverse);
  background: color-mix(in srgb, var(--ink-inverse) 10%, transparent);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.pill-sm {
  height: 36px;
  padding: 0 var(--space-5);
  font-size: var(--text-sm);
}

.pill-lg {
  height: 48px;
  padding: 0 var(--space-8);
  font-size: var(--text-base);
}

.pill-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.pill-primary:hover {
  background: var(--accent-hover);
}

.pill-primary:active {
  background: var(--accent-press);
}

.pill:focus-visible,
.header-link:focus-visible,
.footer-social:focus-visible {
  outline: 2px solid #8b938a;
  outline-offset: 3px;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: var(--space-16);
  padding-bottom: var(--space-20);
  min-height: calc(100vh - 72px);
}

.copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.1vw, 4rem);
  line-height: 1.08;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

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

.footer {
  position: relative;
  overflow: hidden;
  margin-top: var(--landing-gap);
  background: var(--ink);
  color: var(--ink-inverse);
  padding: var(--space-12) var(--space-6) var(--space-16);
}

.watermark {
  position: absolute;
  left: 50%;
  bottom: -0.32em;
  translate: -50% 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(6rem, 16vw, 13rem);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--ink-inverse) 32%, transparent);
  pointer-events: none;
  user-select: none;
}

.footer-panel {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  background: color-mix(in srgb, var(--ink-inverse) 6%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-10);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-6) var(--space-10);
}

.footer-brand {
  justify-self: start;
}

.footer-brand-logo {
  display: block;
  height: 30px;
  width: auto;
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
  justify-self: center;
}

.footer-social {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  color: color-mix(in srgb, var(--ink-inverse) 78%, transparent);
  transition:
    color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}

.footer-social:hover {
  color: var(--ink-inverse);
  background: color-mix(in srgb, var(--ink-inverse) 10%, transparent);
}

.footer-social svg {
  transition: transform var(--duration-fast) var(--ease-out);
}

.footer-social:hover svg {
  transform: scale(1.12);
}

.footer-legal {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: var(--hairline) solid color-mix(in srgb, var(--ink-inverse) 18%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 16px;
  font-weight: 600;
  color: color-mix(in srgb, var(--ink-inverse) 62%, transparent);
}

.copyright {
  margin: 0;
  font-size: 13px;
}

.footer-chain {
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.footer-chain-logo {
  display: block;
  height: 22px;
  width: auto;
}

@media (max-width: 780px) {
  .footer-top {
    grid-template-columns: 1fr auto;
    justify-items: start;
    gap: var(--space-5);
  }

  .footer-socials {
    justify-self: end;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 60px;
  }

  .header-links {
    display: none;
  }

  .hero {
    min-height: calc(100vh - 60px);
  }
}

@media (max-width: 640px) {
  .footer-panel {
    padding: var(--space-6);
  }

  .watermark {
    -webkit-text-stroke: 1.5px color-mix(in srgb, var(--ink-inverse) 55%, transparent);
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(1.9rem, 8.4vw, 2.6rem);
  }
}

@media (max-width: 480px) {
  .footer-legal {
    justify-content: center;
  }
}
