:root {
  color-scheme: dark;
  --ink: #101615;
  --ink-soft: #17211f;
  --paper: #f4f4ed;
  --muted: #aeb9b5;
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #4bd4d0;
  --coral: #ff6f59;
  --gold: #f4c95d;
  --green: #73c97c;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 4px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 0 max(24px, calc((100% - 1240px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 16, 15, 0.78);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 5px 5px 5px 1px;
  transform: rotate(-4deg);
}

.brand-mark svg {
  width: 20px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a,
.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--cyan);
}

.header-connect {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.header-connect:hover,
.header-connect:focus-visible {
  border-color: var(--cyan);
  background: rgba(75, 212, 208, 0.15);
}

.header-connect svg,
.primary-action svg,
.secondary-action svg {
  width: 17px;
  height: 17px;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: 82svh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: url("/assets/feathrix-world.png") center center / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 11, 10, 0.34);
}

.hero-content {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: calc(var(--header-height) + 58px) 0 72px;
}

.status-label,
.eyebrow,
.product-state {
  margin: 0 0 15px;
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.status-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.status-label span {
  width: 9px;
  height: 9px;
  background: var(--coral);
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 82px;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.68);
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 31px;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.primary-action {
  border: 1px solid var(--coral);
  color: #101615;
  background: var(--coral);
  box-shadow: 4px 4px 0 #101615;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #ff8a77;
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 #101615;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.44);
  color: white;
  background: rgba(13, 19, 18, 0.62);
}

.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.server-address {
  margin: 19px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: Consolas, monospace;
  font-size: 13px;
  text-shadow: 0 2px 8px black;
}

.hero-scroll {
  position: absolute;
  right: max(24px, calc((100% - 1240px) / 2));
  bottom: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 4px;
  color: white;
  background: rgba(9, 14, 13, 0.58);
}

.hero-scroll:hover,
.hero-scroll:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #121a18;
}

.signal-strip > div {
  min-height: 112px;
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 15px;
  padding: 22px max(24px, calc((100vw - 1240px) / 6));
  border-right: 1px solid var(--line);
}

.signal-strip > div:last-child {
  border-right: 0;
}

.signal-strip svg {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--gold);
}

.signal-strip strong {
  font-size: 15px;
}

.signal-strip span {
  color: var(--muted);
  font-size: 13px;
}

.world-section,
.faq-section {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0;
}

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

.section-heading h2,
.join-band h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.08;
}

.section-heading > p:last-child {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 62px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.world-feature {
  position: relative;
  min-height: 290px;
  padding: 38px 32px;
  background: var(--ink);
}

.world-feature > svg {
  width: 34px;
  height: 34px;
  color: var(--green);
}

.feature-number {
  position: absolute;
  right: 22px;
  top: 20px;
  color: #5f6e69;
  font-family: Consolas, monospace;
  font-size: 13px;
}

.world-feature h3,
.product-card h3 {
  margin: 34px 0 10px;
  font-size: 21px;
}

.world-feature p,
.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.store-section {
  padding: 110px 24px;
  color: #17201e;
  background: #eef0e8;
}

.store-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.store-section .eyebrow,
.store-section .product-state {
  color: #ad3e2e;
}

.store-section .section-heading > p:last-child,
.store-section .product-card p {
  color: #57635f;
}

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

.product-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid #c7cdc5;
  border-radius: 6px;
  background: #fafbf6;
  box-shadow: 0 12px 28px rgba(25, 35, 32, 0.08);
}

.product-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #17201e;
}

.product-icon.coral { background: var(--coral); }
.product-icon.cyan { background: var(--cyan); }
.product-icon.gold { background: var(--gold); }

.product-card h3 {
  margin-top: 8px;
}

.product-state {
  font-size: 11px !important;
  font-weight: 900;
}

.join-band {
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px max(24px, calc((100% - 1240px) / 2));
  color: #10201d;
  background: var(--cyan);
}

.join-band .eyebrow {
  color: #315d59;
}

.primary-action.light {
  flex: 0 0 auto;
  border-color: var(--ink);
  color: white;
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--paper);
}

.primary-action.light:hover,
.primary-action.light:focus-visible {
  background: #263330;
  box-shadow: 6px 6px 0 var(--paper);
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
  gap: 90px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary svg {
  flex: 0 0 auto;
  width: 19px;
  color: var(--cyan);
  transition: transform 180ms ease;
}

.faq-list details[open] summary svg {
  transform: rotate(45deg);
}

.faq-list details p {
  margin: -5px 42px 24px 0;
  color: var(--muted);
}

.site-footer {
  min-height: 126px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px max(24px, calc((100% - 1240px) / 2));
  border-top: 1px solid var(--line);
  background: #0c1110;
}

.footer-brand svg {
  width: 20px;
  color: var(--cyan);
}

.site-footer p {
  color: #7f8c88;
  font-size: 12px;
  text-align: center;
}

.footer-links {
  justify-self: end;
  display: flex;
  gap: 20px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: min(360px, calc(100% - 40px));
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  color: white;
  background: #182421;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  :root { --header-height: 66px; }

  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .header-connect {
    display: none;
  }

  .menu-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 16, 15, 0.97);
  }

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

  .site-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 78svh;
    background-position: 58% center;
  }

  .hero-content {
    width: min(100% - 36px, 680px);
    padding-top: calc(var(--header-height) + 52px);
  }

  h1 {
    font-size: 54px;
  }

  .hero-copy {
    max-width: 520px;
    font-size: 17px;
  }

  .hero-scroll {
    display: none;
  }

  .signal-strip,
  .world-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip > div {
    min-height: 92px;
    padding: 18px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-strip > div:last-child {
    border-bottom: 0;
  }

  .world-section,
  .faq-section {
    width: min(100% - 36px, 680px);
    padding: 82px 0;
  }

  .section-heading h2,
  .join-band h2 {
    font-size: 35px;
  }

  .world-feature {
    min-height: 240px;
  }

  .store-section {
    padding: 82px 18px;
  }

  .product-card {
    min-height: 230px;
  }

  .join-band {
    min-height: 310px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 54px 18px;
  }

  .primary-action.light {
    max-width: 100%;
  }

  .faq-section {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-links {
    justify-self: center;
  }
}

@media (max-width: 420px) {
  h1 { font-size: 46px; }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .section-heading h2,
  .join-band h2 {
    font-size: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
