:root {
  --cocoa: #2a160c;
  --espresso: #1a0e08;
  --bark: #4a2a18;
  --chocolate: #6e3d22;
  --caramel: #c9a06a;
  --milk: #e8d4b8;
  --foam: #f3e6d4;
  --steel: #c5ccd4;
  --lock: #9aa3ad;
  --ink: #1a0e08;
  --max-width: 68rem;
  --font-display: "Space Mono", monospace;
  --font-body: "Inter", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--foam);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.55;
  background:
    radial-gradient(ellipse 90% 60% at 70% -10%, rgba(110, 61, 34, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 40%, rgba(74, 42, 24, 0.55), transparent 50%),
    linear-gradient(165deg, #3a2012 0%, var(--espresso) 42%, #120905 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 11px,
      rgba(26, 14, 8, 0.07) 11px,
      rgba(26, 14, 8, 0.07) 12px
    );
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--caramel);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--milk);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--caramel);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
.hero,
.section,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--foam);
  text-decoration: none;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.35rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
}

.nav a {
  color: var(--milk);
  text-decoration: none;
  opacity: 0.85;
}

.nav a:hover {
  opacity: 1;
  color: var(--caramel);
}

.lang-switch {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(232, 212, 184, 0.35);
  border-radius: 2px;
  overflow: hidden;
}

.lang-switch__btn {
  margin: 0;
  padding: 0.35rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--milk);
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.lang-switch__btn + .lang-switch__btn {
  border-left: 1px solid rgba(232, 212, 184, 0.35);
}

.lang-switch__btn:hover {
  opacity: 1;
  color: var(--caramel);
}

.lang-switch__btn.is-active {
  opacity: 1;
  color: var(--ink);
  background: linear-gradient(135deg, var(--caramel), #a87848);
}

/* —— Hero: one full-bleed composition —— */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__plane {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.04);
  animation: hero-drift 14s var(--ease-out) infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(18, 9, 5, 0.96) 0%,
      rgba(18, 9, 5, 0.72) 38%,
      rgba(26, 14, 8, 0.35) 68%,
      rgba(26, 14, 8, 0.15) 100%
    ),
    radial-gradient(ellipse 55% 45% at 50% 35%, transparent 30%, rgba(18, 9, 5, 0.45) 100%);
}

.hero__copy {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: clamp(5.5rem, 12vh, 7rem) clamp(1.25rem, 4vw, 2.5rem)
    clamp(2.5rem, 7vh, 4rem);
}

.brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw + 1rem, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--foam);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
}

.headline {
  margin: 0 0 0.85rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 0.95rem + 0.9vw, 1.45rem);
  line-height: 1.35;
  color: var(--milk);
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.15rem);
  color: rgba(243, 230, 212, 0.82);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: linear-gradient(135deg, var(--caramel), #a87848);
  border: none;
  border-radius: 2px;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), filter 0.25s ease;
}

.cta:hover {
  color: var(--ink);
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.cta--ghost {
  color: var(--foam);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(232, 212, 184, 0.45);
}

.cta--ghost:hover {
  color: var(--caramel);
  filter: none;
}

/* —— Sections —— */
.section {
  padding: clamp(4rem, 10vh, 7rem) 0;
}

.section__inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section__inner--split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 860px) {
  .section__inner--split {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--caramel);
}

.section h2 {
  margin: 0 0 1.25rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 1.2rem + 2.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--foam);
}

.section__text {
  margin: 0 0 1.1rem;
  max-width: 42rem;
  color: rgba(243, 230, 212, 0.88);
}

.section__text:last-child {
  margin-bottom: 0;
}

.section__text--accent {
  padding-left: 1rem;
  border-left: 3px solid var(--caramel);
  color: var(--milk);
}

.section__text strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--foam);
}

.section__text a {
  font-family: var(--font-display);
  font-weight: 700;
}

.section--what {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(74, 42, 24, 0.28) 20%,
    rgba(74, 42, 24, 0.18) 80%,
    transparent
  );
}

.section--features {
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(110, 61, 34, 0.25), transparent 60%);
}

.feature-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
  }
}

.feature-list li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 160, 106, 0.28);
}

.feature-list strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--foam);
}

.feature-list span {
  color: rgba(243, 230, 212, 0.78);
  font-size: 0.98rem;
}

.section--logo {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(26, 14, 8, 0.55) 30%,
    rgba(42, 22, 12, 0.4)
  );
}

.logo-figure {
  margin: 0;
  justify-self: center;
}

.logo-figure img {
  width: min(100%, 20rem);
  margin-inline: auto;
  border-radius: 0;
  background: transparent;
  animation: lock-breathe 5s ease-in-out infinite;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
}

.logo-figure figcaption {
  margin-top: 1rem;
  max-width: 22rem;
  margin-inline: auto;
  font-size: 0.9rem;
  color: rgba(201, 160, 106, 0.9);
  text-align: center;
}

.section--hackers {
  padding-bottom: clamp(5rem, 12vh, 8rem);
}

.section--hackers .section__inner {
  max-width: 40rem;
}

.site-footer {
  border-top: 1px solid rgba(201, 160, 106, 0.2);
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  text-align: center;
  background: rgba(18, 9, 5, 0.65);
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.footer-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(232, 212, 184, 0.55);
}

/* —— Motion —— */
@keyframes hero-drift {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

@keyframes lock-breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(1.1rem);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.hero [data-reveal]:nth-child(1) {
  transition-delay: 0.05s;
}
.hero [data-reveal]:nth-child(2) {
  transition-delay: 0.18s;
}
.hero [data-reveal]:nth-child(3) {
  transition-delay: 0.3s;
}
.hero [data-reveal]:nth-child(4) {
  transition-delay: 0.42s;
}

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

  .hero__logo,
  .logo-figure img {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .brand {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }
}
