:root {
  color-scheme: light;
  --ink: #101312;
  --muted: #5c6764;
  --paper: #f6f3eb;
  --surface: #ffffff;
  --line: #d8d2c4;
  --charcoal: #151817;
  --green: #2f5d50;
  --yellow: #f3c51d;
  --yellow-deep: #c99b00;
  --rust: #b45734;
  --shadow: 0 20px 60px rgba(16, 19, 18, 0.15);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(21, 24, 23, 0.94);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  color: var(--yellow);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 1rem;
  line-height: 1;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
}

.site-nav a:hover {
  color: var(--yellow);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #101312 url("a3mesh-hero.png?v=20260505") center center / cover no-repeat;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.12) contrast(1.08) brightness(1.12);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(12, 14, 13, 0.82) 0%, rgba(12, 14, 13, 0.6) 36%, rgba(12, 14, 13, 0.1) 68%, rgba(12, 14, 13, 0.04) 100%),
    linear-gradient(180deg, rgba(12, 14, 13, 0.18), rgba(12, 14, 13, 0.66));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding-top: 84px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 690px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 900;
}

.button.primary {
  background: var(--yellow);
  color: #171300;
}

.button.primary:hover {
  background: #ffd944;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 680px;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-stats div {
  padding: 18px 18px 0 0;
}

.hero-stats dt {
  color: var(--yellow);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.section,
.band-content,
.meshcore-content,
.hardware,
.join,
.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.section-heading {
  max-width: 760px;
}

.intro-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.intro-grid article,
.steps article,
.meshcore-grid article {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
  box-shadow: 0 8px 24px rgba(16, 19, 18, 0.05);
}

.meshcore-section {
  background: #fffdf8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meshcore-content {
  padding: 86px 0;
}

.meshcore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.meshcore-grid article {
  background: #f6f3eb;
}

.meshcore-grid h3 {
  color: var(--green);
}

.band {
  background: var(--charcoal);
  color: #fff;
}

.band-content {
  padding: 86px 0;
}

.band p {
  color: rgba(255, 255, 255, 0.72);
}

.route {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.route span {
  position: relative;
  min-height: 104px;
  border: 1px solid rgba(243, 197, 29, 0.34);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 900;
}

.route span::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 28px;
  height: 28px;
  border: 7px solid rgba(243, 197, 29, 0.24);
  border-radius: 50%;
  background: var(--yellow);
}

.step-number {
  display: block;
  margin-bottom: 26px;
  color: var(--rust);
  font-size: 0.84rem;
  font-weight: 900;
}

.hardware {
  padding: 86px 0;
}

.hardware-copy {
  max-width: 780px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.product-grid article {
  display: grid;
  align-content: start;
  min-height: 390px;
  border: 1px solid #cfc7b8;
  border-radius: var(--radius);
  background: #fffdf8;
  padding: 26px;
  box-shadow: 0 10px 34px rgba(16, 19, 18, 0.08);
}

.product-tag {
  width: max-content;
  max-width: 100%;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(47, 93, 80, 0.1);
  color: var(--green);
  padding: 7px 10px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-grid ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.hardware-note {
  max-width: 850px;
  margin-top: 24px;
  border-left: 4px solid var(--yellow);
  background: rgba(255, 255, 255, 0.56);
  padding: 16px 18px;
  color: #3e4744;
  font-weight: 700;
}

.join {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 36px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
}

.join-options {
  display: grid;
  gap: 12px;
}

.join-options a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 20px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(16, 19, 18, 0.05);
}

.join-options a:hover {
  border-color: var(--yellow-deep);
}

.join-options .donation-link {
  border-color: var(--yellow-deep);
  background: var(--yellow);
  color: #171300;
}

.join-options .donation-link:hover {
  background: #ffd944;
}

.meshcore-chat-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 12px;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: #fff;
  padding: 28px;
  box-shadow: var(--shadow);
}

.chat-qr {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #0f1211;
  padding: 14px;
}

.chat-qr img {
  width: min(100%, 280px);
  border-radius: 6px;
}

.chat-copy h3 {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.05;
}

.chat-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.chat-steps {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.secret-key-box {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(243, 197, 29, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
}

.secret-key-box span {
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.secret-key-box code {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
}

.copy-secret-button {
  width: max-content;
}

.copy-status {
  min-height: 1.4em;
  margin-top: 12px;
  margin-bottom: 0;
  color: var(--yellow) !important;
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c9c2b4;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(243, 197, 29, 0.34);
  border-color: var(--yellow-deep);
}

.form-note {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(21, 24, 23, 0.98);
    padding: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    margin-inline: 18px;
  }

  .hero-stats,
  .intro-grid,
  .meshcore-grid,
  .steps,
  .route,
  .meshcore-chat-card,
  .join,
  .contact {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats {
    gap: 12px;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 560px) {
  .brand-copy small {
    display: none;
  }

  h1 {
    font-size: clamp(2.6rem, 16vw, 4.2rem);
  }

  h2 {
    font-size: 2rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-stats div {
    padding-top: 12px;
  }

  .intro-grid article,
  .meshcore-grid article,
  .steps article,
  .product-grid article,
  .meshcore-chat-card,
  .contact-form {
    padding: 20px;
  }

  .copy-secret-button {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
