/* ============================================================
   Hyneex — hyneex.com
   Design system per brief v7. Static site, no framework.
   ============================================================ */

/* ---------- Font ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/Inter-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  /* HYNEEX brand system (board v1): Space Black / Deep Charcoal /
     Electric Blue -> Violet Accent gradient */
  --bg: #0b0d12;            /* Space Black */
  --bg-card: #1a1d24;       /* Deep Charcoal */
  --bg-footer: #090a0f;
  --text: #ffffff;
  --text-secondary: #a0a6b5;
  --text-faint: #7a8090;
  --text-faint-2: #8a90a0;
  --brand-blue: #4f7dff;    /* Electric Blue */
  --brand-violet: #7b61ff;  /* Violet Accent */
  --brand-grad: linear-gradient(135deg, #4f7dff, #7b61ff);
  --button-blue: #3d63e0;
  --button-blue-hover: #3156c9;
  /* Legacy token names kept so component rules keep working */
  --green-deep: #7c96ff;    /* accent: links, icons */
  --green-mid: #7b61ff;     /* accents */
  --green-light: #1d2333;   /* icon tile bg */
  --green-darkest: #10131c; /* deep band fallback (band uses gradient) */
  --green-soft: #bcc6ff;    /* soft text on gradient band */
  --line: #262a34;
  --radius-card: 14px;
  --radius-block: 16px;
  --radius-btn: 999px;      /* board buttons are pills */
  --container: 1340px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

svg {
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color 200ms ease, transform 200ms ease;
}

.btn .btn-arrow {
  display: block;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--button-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--button-blue-hover);
}

.btn-dark {
  background: var(--button-blue);
  color: #ffffff;
  padding: 8px 18px;
  font-size: 13.5px;
}

.btn-dark:hover {
  background: var(--button-blue-hover);
}

.btn-mint {
  background: #ffffff;
  color: #0b0d12;
  font-weight: 600;
}

.btn-mint:hover {
  background: #e7eaf3;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand-word {
  display: block;
  height: 20px;
  width: auto;
}

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

.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 150ms ease;
}

.nav-link:hover {
  color: var(--text);
}

.home-page .site-header {
  position: absolute;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-page .site-header .container {
  max-width: none;
  height: 88px;
  padding-left: 48px;
  padding-right: 67px;
}

.home-page .brand-word {
  height: 26px;
}

.home-page .nav-menu {
  gap: clamp(30px, 5.1vw, 78px);
}

.home-page .nav-link {
  color: rgba(255, 255, 255, 0.72);
}

.home-page .btn-dark {
  padding: 11px 22px 11px 24px;
  margin-left: clamp(14px, 4.8vw, 74px);
  font-size: 15px;
  box-shadow: 0 12px 34px rgba(61, 109, 255, 0.28);
}

.nav-toggle {
  display: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 10px;
  margin-right: -10px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--text);
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 4px;
}

.menu-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */
/* Hero: left copy, absolute light-trail art bleeding to the right and
   bottom edges of the band (per approved mockup) */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 579px;
  padding: 166px 0 64px;
  text-align: left;
  border-bottom: 0;
  background:
    radial-gradient(circle at 82% 32%, rgba(38, 78, 205, 0.2), transparent 32%),
    radial-gradient(circle at 54% 86%, rgba(81, 55, 180, 0.16), transparent 34%),
    #020711;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 470px;
}

.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: auto;
  z-index: 1;
  width: min(1080px, 72vw);
  height: 579px;
  pointer-events: none;
}

.hero-art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

@media (max-width: 860px) {
  .hero {
    min-height: 560px;
    padding: 132px 0 72px;
  }

  .hero-art {
    width: 92%;
    height: 560px;
    opacity: 0.55;
  }
}

.hero h1 {
  font-size: clamp(52px, 4.6vw, 70px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

/* Board hero treatment: "next" as gradient type, no underline */
.u-next {
  background-image: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 438px;
  margin: 20px 0 0;
  font-size: 22px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.hero-cta {
  margin-top: 31px;
}

.hero-cta .btn-primary {
  min-width: 247px;
  justify-content: center;
  padding: 16px 28px 16px 32px;
  font-size: 18px;
  box-shadow: 0 16px 44px rgba(58, 104, 255, 0.34);
}

/* ---------- Promise strip ---------- */
.identity-strip {
  background: rgba(8, 15, 27, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid #1d2431;
}

.identity-strip .container {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  min-height: 108px;
}

.identity-label {
  font-size: 16px;
  line-height: 1.35;
  color: var(--text-faint);
  max-width: none;
  white-space: nowrap;
}

.identity-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.identity-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 34px;
  padding: 0 34px;
  color: #f5f7ff;
}

.identity-item + .identity-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 44px;
  background: #242b39;
}

.identity-item strong {
  font-size: 19px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.identity-item small {
  margin-top: 7px;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .identity-strip .container {
    grid-template-columns: 1fr;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .identity-label {
    max-width: none;
    width: 100%;
    margin-bottom: 18px;
  }

  .identity-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 0;
    width: 100%;
  }

  .identity-item {
    padding: 0 18px 0 0;
  }

  .identity-item + .identity-item::before {
    display: none;
  }

  .identity-item strong {
    font-size: 16px;
  }
}

/* ---------- Feature band ---------- */
.feature-band {
  padding: 64px 0 36px;
  background:
    radial-gradient(circle at 12% 0%, rgba(41, 87, 215, 0.08), transparent 32%),
    #020711;
  border-bottom: 1px solid #151d2a;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature {
  min-height: 236px;
  padding: 0 44px 0 48px;
  border-left: 1px solid #1d2431;
}

.feature:first-child {
  padding-left: 0;
  border-left: 0;
}

.feature-icon {
  display: flex;
  width: 66px;
  height: 62px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid #2b3446;
  border-radius: 14px;
  color: var(--brand-blue);
  background: rgba(8, 15, 27, 0.48);
  box-shadow: inset 0 0 22px rgba(79, 125, 255, 0.08);
}

.feature h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.02em;
}

.feature p {
  max-width: 245px;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.5;
}

.feature a {
  display: inline-flex;
  margin-top: 26px;
  color: var(--brand-blue);
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background-image: linear-gradient(90deg, #4f7dff, #7b61ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-title {
  margin-top: 10px;
  font-size: clamp(26px, 1.5vw + 18px, 32px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

/* ---------- How we build ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle-icon {
  color: var(--green-deep);
  margin-bottom: 14px;
}

.principle h3 {
  font-size: 16px;
  font-weight: 600;
}

.principle p {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---------- About ---------- */
.about-block {
  background: var(--bg-card);
  border-radius: var(--radius-block);
  padding: 76px 32px;
  text-align: center;
}

.about-block p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
}

.about-em {
  font-weight: 500;
  color: var(--green-deep);
}

/* ---------- CTA ---------- */
.cta-block {
  background: var(--green-darkest);
  border-radius: var(--radius-block);
  padding: 72px 32px;
  text-align: center;
}

.cta-block h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.cta-block p {
  margin: 12px 0 28px;
  font-size: 14px;
  color: var(--green-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 96px;
  background: var(--bg-footer);
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding: 56px 0 48px;
}

.footer-brand-name {
  font-size: 15px;
  font-weight: 500;
}

.footer-brand p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.footer-col h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint-2);
}

.footer-col ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 8px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: color 150ms ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-faint);
}

/* Legal pages: footer has only the bottom line — avoid doubling the
   separator with the footer's own top border. */
.footer-bottom:first-child {
  border-top: 0;
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.legal h1 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.legal .updated {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-faint-2);
}

.legal h2 {
  margin-top: 40px;
  font-size: 18px;
  font-weight: 600;
}

.legal p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.legal a {
  color: var(--green-deep);
  font-weight: 500;
}

/* ============================================================
   Motion — everything below is gated on JS being present and
   prefers-reduced-motion NOT set. Without JS or with reduced
   motion, the page renders fully static.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 250ms ease-out, transform 250ms ease-out;
  }

  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
}

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

  .btn,
  .nav-link,
  .footer-col a,
  .nav-toggle-bar {
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .feature-grid,
  .principles {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    max-width: 480px;
    margin: 0 auto;
  }

  .feature {
    min-height: 0;
    padding: 28px 0 26px;
    border-left: 0;
    border-top: 1px solid #1d2431;
  }

  .feature:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .principles {
    gap: 28px;
    max-width: 480px;
    margin: 0 auto;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 720px) {
  .home-page .site-header .container {
    height: 72px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .home-page .brand-word {
    height: 20px;
  }

  .nav-toggle {
    display: block;
  }

  /* Legal pages use .nav-menu--inline (button only, no toggle) and keep
     the inline layout on mobile. */
  .nav-menu:not(.nav-menu--inline) {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0f0f16;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }

  .menu-open .nav-menu {
    display: flex;
  }

  .nav-link {
    padding: 12px 0;
    font-size: 15px;
  }

  .nav-menu:not(.nav-menu--inline) .btn-dark {
    margin-top: 10px;
    margin-left: 0;
    text-align: center;
    padding: 12px 16px;
    font-size: 14.5px;
  }

  .hero {
    min-height: 620px;
    padding: 118px 0 64px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero-sub {
    font-size: 18px;
  }

  .hero-art {
    top: 170px;
    width: 120%;
    height: 430px;
    opacity: 0.58;
  }

  .feature-band {
    padding: 44px 0 18px;
  }

  .section {
    padding: 40px 0;
  }

  .about-block {
    padding: 56px 24px;
  }

  .cta-block {
    padding: 56px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ---------- L2 variant: full-bleed bands ---------- */
.band-beige {
  background: var(--bg-card);
  border-top: 1px solid #232733;
  border-bottom: 1px solid #232733;
}

.band-beige .about-block {
  background: transparent;
  border-radius: 0;
  padding: 24px 0;
}

.band-cta {
  background: linear-gradient(135deg, #4f7dff, #7b61ff);
}

.band-cta .cta-block {
  background: transparent;
  border-radius: 0;
  padding: 40px 0;
}
