@font-face {
  font-family: "Carter Sans W04";
  src: url("./assets/brand/fonts/Carter Sans W04 Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Carter Sans W04";
  src: url("./assets/brand/fonts/Carter Sans W04 Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 550;
  font-display: swap;
}

@font-face {
  font-family: "Carter Sans W04";
  src: url("./assets/brand/fonts/Carter Sans W04 Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "HeroQuest";
  src: url("./assets/brand/fonts/HeroQuest.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --hq-bg: #11100e;
  --hq-panel: rgba(25, 22, 18, 0.9);
  --hq-panel-soft: rgba(255, 255, 255, 0.035);
  --hq-border: rgba(225, 170, 91, 0.36);
  --hq-border-soft: rgba(225, 170, 91, 0.2);
  --hq-accent: #d9a957;
  --hq-accent-bright: #f3d9a8;
  --hq-text: #ddd2c1;
  --hq-text-strong: #f7e4c3;
  --hq-text-muted: #c9bdab;
  --hq-font-body: "Carter Sans W04", Arial, Helvetica, sans-serif;
  --hq-font-display: Georgia, "Times New Roman", serif;
  --hq-font-brand: "HeroQuest", "Cinzel", "Trajan Pro", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(190, 128, 50, 0.22), transparent 42rem),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 8px),
    var(--hq-bg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--hq-text);
  font-family: var(--hq-font-body);
  padding-bottom: 4.75rem;
}

a {
  color: var(--hq-accent-bright);
}

a:hover {
  color: #fff4dc;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.65rem 0.9rem;
  background: var(--hq-accent-bright);
  color: #211a10;
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--hq-border-soft);
  background: rgba(17, 16, 14, 0.96);
  box-shadow: 0 0.35rem 1.2rem rgba(0, 0, 0, 0.25);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(76rem, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 0.85rem 0;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--hq-accent);
  font-family: var(--hq-font-brand);
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.site-header__brand img {
  width: 2.3rem;
  height: 2.3rem;
  filter: drop-shadow(0 0.35rem 0.65rem rgba(0, 0, 0, 0.4));
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-header__nav a {
  color: var(--hq-text-muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.site-header__nav a:hover,
.site-header__nav a:focus-visible {
  color: var(--hq-accent-bright);
}

.hqcc-hero {
  min-height: clamp(16rem, 26vw, 20rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--hq-border);
  background:
    linear-gradient(180deg, rgba(7, 6, 5, 0.48), rgba(17, 16, 14, 0.9)),
    radial-gradient(circle at 50% 35%, rgba(24, 17, 10, 0.08), rgba(5, 5, 4, 0.55)),
    url("./assets/brand/card-showcase.jpg") center 42% / cover no-repeat;
  box-shadow: inset 0 -4rem 6rem rgba(0, 0, 0, 0.3);
  text-align: center;
}

.hqcc-hero__inner {
  width: min(48rem, 100%);
}

.hqcc-hero__icon {
  display: block;
  width: clamp(3.25rem, 7vw, 4rem);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0.8rem 1.6rem rgba(0, 0, 0, 0.4));
}

.hqcc-hero__eyebrow {
  margin: 0.55rem 0 0.65rem;
  color: var(--hq-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hqcc-hero__title {
  margin: 0;
  color: var(--hq-accent-bright);
  font-family: var(--hq-font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 0.98;
}

.hqcc-hero__copy {
  max-width: 42rem;
  margin: 0.8rem auto 0;
  color: var(--hq-text-muted);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem 1.05rem;
  border: 1px solid var(--hq-border);
  text-decoration: none;
  font-weight: 700;
}

.cta--primary {
  background: rgba(217, 169, 87, 0.13);
  color: #fff4dc;
}

.cta--secondary {
  background: rgba(255, 255, 255, 0.04);
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 56rem);
  gap: 0;
  width: min(56rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) 0 6rem;
}

.page-content {
  min-width: 0;
}

.page-content__intro,
.page-content section {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--hq-border-soft);
  background: var(--hq-panel-soft);
}

.page-content section[id] {
  scroll-margin-top: 4.5rem;
}

.demo-video {
  margin-bottom: 1.2rem;
}

.demo-video__header {
  margin-bottom: 1.25rem;
}

.demo-video__header h2 {
  margin: 0;
  color: var(--hq-accent-bright);
  font-family: var(--hq-font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
}

.demo-video__header p {
  margin: 0.8rem 0 0;
  color: var(--hq-text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.demo-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--hq-border);
  background:
    linear-gradient(180deg, rgba(6, 5, 4, 0.3), rgba(12, 10, 8, 0.82)),
    url("https://i.ytimg.com/vi/AIy9yRAF718/maxresdefault.jpg") center / cover no-repeat,
    var(--hq-panel);
  box-shadow: 0 0.75rem 1.8rem rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.demo-video__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(243, 217, 168, 0.08);
  pointer-events: none;
}

.demo-video__poster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  width: 100%;
  height: 100%;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.demo-video__poster:hover,
.demo-video__poster:focus-visible {
  background: rgba(0, 0, 0, 0.08);
}

.demo-video__poster-copy {
  align-self: end;
  max-width: 34rem;
}

.demo-video__eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--hq-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.demo-video__poster-title {
  display: block;
  color: var(--hq-text-strong);
  font-family: var(--hq-font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.02;
}

.demo-video__poster-text {
  display: block;
  margin-top: 0.8rem;
  color: var(--hq-text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.demo-video__play {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem 0.8rem 0.85rem;
  border: 1px solid var(--hq-border);
  background: rgba(17, 16, 14, 0.74);
  box-shadow: 0 0.6rem 1.3rem rgba(0, 0, 0, 0.26);
}

.demo-video__play-icon {
  position: relative;
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid rgba(243, 217, 168, 0.24);
  border-radius: 999px;
  background: rgba(243, 217, 168, 0.08);
}

.demo-video__play-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-top: 0.65rem solid transparent;
  border-bottom: 0.65rem solid transparent;
  border-left: 1rem solid var(--hq-accent-bright);
}

.demo-video__play-label {
  color: var(--hq-text-strong);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-video__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.page-content__intro {
  margin-bottom: 1.2rem;
}

.page-content__intro h2,
.page-content section h3,
.feature-card h4,
.workflow-card h4,
.faq-item h4 {
  margin: 0;
  color: var(--hq-accent);
  font-family: var(--hq-font-display);
  font-weight: 400;
}

.page-content__intro h2 {
  color: var(--hq-accent-bright);
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.page-content__intro p {
  margin: 0.8rem 0 0;
  color: var(--hq-text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.page-content section + section {
  margin-top: 1.2rem;
}

.page-content section h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.page-content section p {
  margin: 0.8rem 0 0;
  line-height: 1.7;
}

.feature-grid,
.workflow-grid,
.faq-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

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

.feature-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.feature-row,
.workflow-card,
.faq-item {
  padding: 1.05rem 1rem;
  border: 1px solid rgba(225, 170, 91, 0.22);
  background: var(--hq-panel);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(15rem, 0.95fr);
  gap: 1.15rem;
  align-items: center;
  padding: 1.15rem;
}

.feature-row--reverse {
  grid-template-columns: minmax(15rem, 0.95fr) minmax(0, 1.9fr);
}

.feature-row__copy {
  min-width: 0;
}

.feature-row--reverse .feature-row__copy {
  order: 2;
}

.feature-row__media {
  margin: 0;
  min-width: 0;
}

.feature-row--reverse .feature-row__media {
  order: 1;
}

.feature-row__media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(225, 170, 91, 0.2);
  background: rgba(0, 0, 0, 0.2);
  object-fit: cover;
  box-shadow: 0 0.55rem 1.2rem rgba(0, 0, 0, 0.24);
}

.feature-row h4,
.workflow-card h4,
.faq-item h4 {
  font-size: 1.15rem;
}

.feature-row p,
.workflow-card p,
.faq-item p {
  margin: 0.7rem 0 0;
  color: var(--hq-text-muted);
  font-size: 0.9rem;
}

.community-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-card {
  padding: 1.05rem 1rem;
  border: 1px solid rgba(225, 170, 91, 0.22);
  background: var(--hq-panel);
}

.community-card h4 {
  margin: 0;
  color: var(--hq-accent);
  font-family: var(--hq-font-display);
  font-size: 1.15rem;
  font-weight: 400;
}

.community-card p {
  margin: 0.7rem 0 0;
  color: var(--hq-text-muted);
  font-size: 0.9rem;
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 15;
  border-top: 1px solid var(--hq-border-soft);
  background: rgba(17, 16, 14, 0.94);
  box-shadow: 0 -0.35rem 1.2rem rgba(0, 0, 0, 0.22);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.15rem;
  align-items: center;
  justify-content: center;
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 1.15rem;
}

.site-footer__inner a {
  color: var(--hq-text-muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.site-footer__inner a:hover,
.site-footer__inner a:focus-visible {
  color: var(--hq-accent-bright);
}

@media screen and (max-width: 70rem) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
  }

  .feature-row--reverse .feature-row__copy,
  .feature-row--reverse .feature-row__media {
    order: initial;
  }

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

  .demo-video__poster {
    grid-template-columns: 1fr;
  }

  .demo-video__play {
    justify-self: start;
  }
}

@media screen and (max-width: 59.984375em) {
  .site-header__inner {
    width: min(76rem, calc(100% - 1rem));
    padding: 0.8rem 0;
  }

  .page {
    width: min(72rem, calc(100% - 2rem));
    padding-top: 2rem;
  }
}

@media screen and (max-width: 44.984375em) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header__nav {
    gap: 0.75rem;
  }

  .hqcc-hero {
    min-height: 16rem;
    padding-right: 1rem;
    padding-left: 1rem;
    background-position: 48% center;
  }

  .hqcc-hero__title {
    font-size: clamp(2.15rem, 12vw, 3.4rem);
  }

  .page {
    width: min(72rem, calc(100% - 1rem));
  }

  .page-content__intro,
  .page-content section {
    padding: 1.1rem;
  }

  .demo-video__frame {
    aspect-ratio: 16 / 9;
    min-height: 0;
    background-position: 58% center;
  }

  .demo-video__poster {
    min-height: 100%;
    align-content: end;
  }

  .demo-video__play {
    width: 100%;
    justify-content: center;
  }
}
