/* =========================================================
   CrowBit — design tokens
   ========================================================= */
:root {
  --color-bg: #14141a;
  --color-hero-start: #272834;
  --color-hero-end: #14141a;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-white: #ffffff;
  --color-green: #2eb377;
  --color-green-dark: #093429;
  --color-btn-ink: #272834;

  --font-display: "Sulphur Point", "Trebuchet MS", sans-serif;

  --radius-pill: 170px;
  --radius-panel: 2px;

  --container-max: 1440px;
  --header-pad-x: clamp(20px, 4vw, 40px);

  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

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

img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Shared button styles
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-standard), box-shadow 0.2s var(--ease-standard), background-color 0.2s var(--ease-standard);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--pill { border-radius: var(--radius-pill); }

.btn--filled {
  background: var(--color-green);
  color: var(--color-btn-ink);
  box-shadow: 0 4px 6px rgba(9, 67, 41, 0.25);
}
.btn--filled:hover { background: #35c684; }

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 3px solid var(--color-green);
  box-shadow: 0 4px 12px rgba(9, 67, 41, 0.25);
}
.btn--outline:hover { background: rgba(46, 179, 119, 0.08); }

.btn--nav {
  padding: 9px 18px;
  font-size: 20px;
}

.btn--lg {
  padding: 10px 22px;
  font-size: 24px;
}

.thin { font-weight: 400; }
.light { font-weight: 300; }

/* =========================================================
   Header / navigation
   ========================================================= */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px var(--header-pad-x);
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo__mark {
  height: 32px;
  width: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-weight: 700;
  font-size: 20px;
}
.nav-link:hover { color: var(--color-green); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 30;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.25s var(--ease-standard), opacity 0.25s var(--ease-standard);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 100px;
  background: linear-gradient(to bottom, var(--color-hero-start), var(--color-hero-end));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
}

/* Decorative binary-texture "crow" mark behind the headline.
   Built from a small tiled 1/0 pattern, clipped into the crow
   silhouette and faded radially so it reads as a soft watermark. */
.hero__texture {
  position: absolute;
  top: 20%;
  left: 50%;
  width: min(260px, 24vw);
  aspect-ratio: 51 / 39;
  transform: translateX(-50%);
  overflow: hidden;

  -webkit-mask-image:
    url("../assets/crow-icon.svg"),
    radial-gradient(circle at 50% 50%, #000 45%, transparent 78%);
  mask-image:
    url("../assets/crow-icon.svg"),
    radial-gradient(circle at 50% 50%, #000 45%, transparent 78%);
  -webkit-mask-size: contain, cover;
  mask-size: contain, cover;
  -webkit-mask-position: center, center;
  mask-position: center, center;
  -webkit-mask-repeat: no-repeat, no-repeat;
  mask-repeat: no-repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;

  pointer-events: none;
}

.hero__texture-text {
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: "Bytesized", monospace;
  font-size: 14px;
  line-height: 0.8;
  color: var(--color-green);
  word-break: break-all;
  white-space: normal;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-width: 960px;
}

.hero__heading {
  margin: 0;
  font-weight: 400;
  font-size: clamp(32px, 5.4vw, 64px);
  line-height: 0.95;
}

.hero__heading-line { display: block; }

.hero__heading em {
  font-style: normal;
  color: var(--color-green);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 8px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 96px 28px 40px;
    background: var(--color-hero-start);
    transform: translateY(-100%);
    transition: transform 0.3s var(--ease-standard);
    z-index: 20;
  }

  .primary-nav.is-open { transform: translateY(0); }

  .hero { padding-top: 120px; }
}

@media (max-width: 520px) {
  .hero__actions { flex-direction: column; width: 100%; }
  .btn--lg { width: 100%; }
}
