/* HybridCompute (coded) — Hero section
   Mirrors Home hero spacing/layout/behavior.
*/

/* Section */
.hc-hero.section {
  position: relative;
  background: var(--brand-white);
}
.hc-hero.section--fullvh {
  display: grid;
  align-items: center;
}

/* Inner layout */
.hc-hero .hero-grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}

/* Left content */
.hc-hero .hero-copy { max-width: 58ch; }

/* HC logo */
.hc-hero .hc-logo {
  display: block;
  height: 160px;         /* 5x larger than 32px */
  width: auto;
  margin: 0 0 12px 0;
}
.hc-hero .hc-logo-text {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 12px 0;
}

/* Body */
.hc-hero .hero-text {
  color: var(--text-muted);
  font-size: 15px;       /* match Home body copy */
  line-height: 1.6;
  margin: 16px 0 0 0;
  max-width: 60ch;
}

/* Buttons */
.hc-hero .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Right visual placeholder (image if ever needed) */
.hc-hero .hero-visual {
  background-position: center right;
  background-repeat: no-repeat;
  background-size: contain;
  inline-size: min(100%, 560px);
  block-size: min(40vh, 380px);
  margin-inline: auto;
}

/* Mobile-first: full-bleed hero video above content */
@media (max-width: 980px) {
  .hc-hero .hero-video-mobile {
    display: block !important;
    width: 70%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;
  }
  .hc-hero .hero-video-mobile video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* Contain any horizontal bleed on mobile */
  .hc-hero {
    overflow-x: hidden;
    overflow-x: clip;
  }
}

/* Mobile: center align content like Home */
@media (max-width: 980px) {
  .hc-hero .hc-hero-inner,
  .hc-hero .hero-grid,
  .hc-hero .hero-copy {
    max-width: 100%;
    min-width: 0;
  }

  .hc-hero .hero-grid { justify-items: center; }
  .hc-hero .hero-copy { text-align: center; margin-left: auto; margin-right: auto; }
  .hc-hero .hero-text { text-align: center; margin-left: auto; margin-right: auto; }
  .hc-hero .btn-group { justify-content: center; }

  .hc-hero .hc-logo {
    height: auto;
    width: min(100%, 340px);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 981px) {
  .hc-hero .hero-video-mobile { display: none !important; }
}

/* Desktop absolute art (video), same pattern as Home */
.hc-hero .hero-art {
  position: absolute;
  display: none; /* show on desktop only */
  bottom: 0;
  right: var(--gutter);
  pointer-events: none;
  z-index: 0;
}
.hc-hero .hero-art video {
  display: block;
  position: static;
  max-height: 100%;
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Desktop layout: split columns and anchor art */
@media (min-width: 981px) {
  .hc-hero .hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .hc-hero .hero-visual { display: none; }
  .hc-hero .hero-art {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: absolute;
    bottom: 0;
    left: var(--art-left, 75%);     /* mirror Home default anchor */
    transform: translateX(-50%);
    height: var(--art-height, 92vh);
    right: auto;
    pointer-events: none;
  }
}

/* Unify desktop section spacing like Home/Tokenomics */
@media (min-width: 981px) {
  .hc-hero.section--fullvh {
    box-sizing: border-box;
    padding-top: var(--header-bottom); /* account for fixed coded header */
    min-height: 100vh;
  }
}

/* Standalone page mobile gutter parity (like Home standalone) */
@media (max-width: 980px) {
  .hybridcompute-standalone { --gutter: 48px; overflow-x: clip; }
  .hc-hero.section.section--fullvh {
    min-height: auto !important;
    display: block !important;
    align-items: initial !important;
  }
  .hc-hero .hero-visual {
    display: none !important;
  }
  .section.hc-hero {
    padding-top: clamp(48px, 8vw, 128px);
    padding-bottom: clamp(20px, 4vw, 40px);
  }
}

/* Desktop/Shared section rhythm for other HC sections if added later */
@media (min-width: 981px) {
  .hc-hero.section {
    /* Other sections on this page should use 80px top/bottom to match Home/Tokenomics */
  }
}

/* ===== HC Stack (image placeholders) ===== */
.hc-stack.section {
  background: var(--brand-white);
  padding-top: clamp(24px, 4vw, 64px);
  padding-bottom: clamp(24px, 4vw, 64px);
}

.hc-stack .stack-viewport {
  --hc-card-count: 5;
  --hc-stage-card-h: 540px;
  position: relative;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

.hc-stack .stack-stage {
  position: relative;
}

html.hc-scroll-locked,
body.hc-scroll-locked {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.hc-stack .hc-card-track {
  position: relative;
}

.hc-stack .hc-card {
  background: #fff;
  border-radius: 30px;
  border: 1px solid rgba(0,0,0,var(--hc-border-alpha,1));
  box-shadow: none;
  padding: clamp(24px, 4vw, 43px);
  min-height: auto;
}

.hc-stack .hc-card-grid {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
}

.hc-stack .hc-card-copy h3 {
  margin: 0 0 8px 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(20px, 1.6vw + 9px, 31px);
}

.hc-stack .hc-card-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 70ch;
}

.hc-stack .hc-card-media {
  display: grid;
  place-items: center;
}

.hc-stack .hc-card-image {
  display: block;
  width: min(100%, 220px);
  height: auto;
}

@media (min-width: 981px) {
  .hc-stack.section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .hc-stack .stack-viewport {
    min-height: calc(var(--hc-stage-card-h) + 8svh);
  }

  .hc-stack .stack-stage {
    position: relative;
    height: var(--hc-stage-card-h);
    display: grid;
    align-items: center;
    padding-block: 22px;
  }

  .hc-stack .stack-viewport.is-caught .stack-stage {
    position: sticky;
    top: max(clamp(88px, 10vh, 132px), calc(50svh - (var(--hc-stage-card-h) / 2)));
  }

  .hc-stack .hc-card-track {
    position: relative;
    min-height: var(--hc-stage-card-h);
  }

  .hc-stack .hc-card {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    margin: 0;
    z-index: var(--hc-z, 1);
    transform-origin: center center;
    transform: translateY(calc(-50% + var(--hc-offset, 64px))) scale(var(--hc-scale, 0.98));
    opacity: var(--hc-alpha, 1);
    pointer-events: none;
    will-change: transform, opacity, border-color;
    transition: transform 0ms linear,
                opacity 140ms linear,
                border-color 140ms linear;
  }

  .hc-stack .hc-card.is-active {
    z-index: var(--hc-z, 6);
    transform: translateY(-50%) scale(1);
    opacity: 1;
    box-shadow: none;
  }

  .hc-stack .hc-card.is-stack {
    box-shadow: none;
  }

  .hc-manual-row.section {
    padding-top: 0;
  }
}

@media (max-width: 980px) {
  .hc-stack .stack-stage {
    position: static;
    height: auto;
  }

  .hc-stack .hc-card-track {
    display: grid;
    gap: 28px;
  }

  .hc-stack .hc-card {
    position: static;
    margin: 0;
    transform: none !important;
    opacity: 1 !important;
  }

  .hc-stack .hc-card.is-mobile-reveal-ready {
    opacity: 0 !important;
    transform: translateY(18px) !important;
    transition: opacity 1960ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 1960ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }

  .hc-stack .hc-card.is-mobile-reveal-in {
    opacity: 1 !important;
    transform: none !important;
  }

  .hc-stack .hc-card-grid {
    grid-template-columns: 1fr;
    gap: 0;
    justify-items: start !important;
  }

  .hc-stack .hc-card-copy {
    text-align: left;
  }

  .hc-stack .hc-card-media {
    order: -1;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    width: 100%;
    text-align: left !important;
  }

  .hc-stack .hc-card-image {
    width: 144px !important;
    max-width: 100%;
    margin: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc-stack .stack-stage {
    position: static !important;
    height: auto !important;
  }

  .hc-stack .hc-card-track {
    display: grid !important;
    gap: clamp(16px, 3vw, 24px);
  }

  .hc-stack .hc-card {
    position: static !important;
    margin: 0 !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 980px) and (prefers-reduced-motion: reduce) {
  .hc-stack .hc-card.is-mobile-reveal-ready {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== HC Manual Horizontal Row ===== */
.hc-manual-row.section {
  background: var(--brand-white);
  padding-top: clamp(10px, 2.2vw, 26px);
  padding-bottom: clamp(40px, 5vw, 88px);
}

.hc-manual-row .hc-manual-row-title {
  margin: 0 0 clamp(24px, 3vw, 40px) 0;
  font-family: var(--font-heading);
  font-weight: 500;
  text-align: center;
  font-size: clamp(20px, 1.6vw + 9px, 31px);
}

.hc-manual-row .hc-manual-row-shell {
  --hc-manual-left-fade: 0;
  --hc-manual-right-fade: 1;
  --hc-manual-edge-gap: 0px;
  position: relative;
  box-sizing: border-box;
}

.hc-manual-row .hc-manual-row-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 31vw, 390px);
  gap: clamp(14px, 2vw, 24px);
  overflow-x: auto;
  overflow-y: visible;
  padding-block: 4px 12px;
  padding-inline: var(--hc-manual-edge-gap);
  scroll-snap-type: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

.hc-manual-row .hc-manual-row-scroller::-webkit-scrollbar {
  display: none;
}

.hc-manual-row .hc-manual-card {
  background: #f3f4f6;
  border-radius: 24px;
  padding: clamp(18px, 2.3vw, 26px) clamp(36px, 4.6vw, 52px) clamp(36px, 4.6vw, 52px);
  box-shadow: none;
  min-height: 100%;
  transition: opacity 840ms cubic-bezier(0.22, 1, 0.36, 1), transform 840ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.hc-manual-row .hc-manual-row-scroller.is-pre-reveal .hc-manual-card {
  opacity: 0;
  transform: translateY(16px);
}

.hc-manual-row .hc-manual-row-scroller.is-pre-reveal .hc-manual-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.hc-manual-row .hc-manual-card-image {
  display: block;
  width: min(100%, 180px);
  height: auto;
  margin: 0 0 14px 0;
}

.hc-manual-row .hc-manual-card h3 {
  margin: 0 0 10.4px 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(20px, 1.4vw + 10px, 29px);
  line-height: 1.15;
}

.hc-manual-row .hc-manual-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.hc-manual-row .hc-manual-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20%;
  pointer-events: none;
  z-index: 2;
  transition: opacity 180ms linear;
}

.hc-manual-row .hc-manual-fade--right {
  right: 0;
  opacity: var(--hc-manual-right-fade);
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
}

.hc-manual-row .hc-manual-fade--left {
  left: 0;
  opacity: var(--hc-manual-left-fade);
  background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

@media (min-width: 981px) {
  .hc-manual-row .hc-manual-row-shell {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-inline: 0;
    --hc-manual-edge-gap: clamp(20px, 2vw, 40px);
  }

  .hc-manual-row .hc-manual-row-scroller {
    grid-auto-columns: clamp(280px, 24vw, 390px);
  }
}

@media (max-width: 980px) {
  .hc-manual-row .hc-manual-row-shell {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-inline: 0;
    --hc-manual-edge-gap: clamp(20px, 4vw, 28px);
  }

  .hc-manual-row .hc-manual-row-scroller {
    grid-auto-columns: min(84vw, 340px);
    gap: 14px;
  }

  .hc-manual-row .hc-manual-fade {
    width: 24%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc-manual-row .hc-manual-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== HC Technical Details ===== */
.hc-technical-details.section {
  background: var(--brand-white);
  padding-top: clamp(24px, 4vw, 64px);
  padding-bottom: clamp(24px, 4vw, 64px);
}

.hc-technical-details .hc-technical-details-title {
  margin: 0 0 clamp(24px, 3vw, 40px) 0;
  font-family: var(--font-heading);
  font-weight: 500;
  text-align: center;
  font-size: clamp(20px, 1.6vw + 9px, 31px);
}

.hc-technical-details .hc-technical-details-image {
  display: block;
  width: 85%;
  height: auto;
  margin-inline: auto;
}

@media (min-width: 981px) {
  .hc-technical-details.section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

/* ===== HC Resources ===== */
.hc-resources.section {
  background: var(--brand-white);
  padding-top: clamp(24px, 4vw, 64px);
  padding-bottom: clamp(7px, 1.2vw, 19px);
}

.hc-resources .hc-resources-title {
  margin: 0 0 clamp(24px, 3vw, 40px) 0;
  font-family: var(--font-heading);
  font-weight: 500;
  text-align: center;
  font-size: clamp(20px, 1.6vw + 9px, 31px);
}

.hc-resources .hc-resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.hc-resources .hc-resource-card {
  display: block;
  position: relative;
  border-radius: 18px;
  border: 1px solid #111111;
  overflow: hidden;
  box-shadow: none;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, opacity 220ms ease;
}

.hc-resources .hc-resource-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 1;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), background-color 220ms ease;
}

.hc-resources .hc-resource-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #ffffff;
  transform: translate(-42%, -50%);
  pointer-events: none;
  z-index: 2;
}

.hc-resources .hc-resource-card img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 980px) {
  .hc-resources.section {
    padding-bottom: 28px;
  }

  .hc-resources .hc-resources-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (min-width: 981px) {
  .hc-resources.section {
    padding-top: 80px;
    padding-bottom: 24px;
  }
}

/* ===== HC CTA Cards ===== */
.hc-cta-cards.section {
  background: var(--brand-white);
  padding-top: clamp(7px, 1.2vw, 19px);
  padding-bottom: clamp(24px, 4vw, 64px);
}

.hc-cta-cards .hc-cta-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, clamp(280px, 24vw, 390px));
  justify-content: center;
  gap: clamp(14px, 2vw, 24px);
}

.hc-cta-cards .hc-cta-card {
  --hc-cta-pad: clamp(36px, 4.6vw, 52px);
  display: block;
  position: relative;
  background: #ffffff;
  border: 1px solid #111111;
  border-radius: 24px;
  box-shadow: none;
  padding: var(--hc-cta-pad);
  color: var(--text-main);
  text-decoration: none;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), background-color 220ms ease;
}

.hc-cta-cards .hc-cta-card-image {
  display: block;
  width: min(100%, 153px);
  height: auto;
  margin: 0 0 28px 0;
}

.hc-cta-cards .hc-cta-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(20px, 1.4vw + 10px, 29px);
  line-height: 1.15;
  display: block;
}

.hc-cta-cards .hc-cta-title-arrow {
  position: absolute;
  right: var(--hc-cta-pad);
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 42px;
  height: 42px;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--brand-green);
  object-fit: contain;
  filter: none;
  pointer-events: none;
}

@media (min-width: 981px) and (hover: hover) and (pointer: fine) {
  .hc-resources .hc-resource-card:hover {
    transform: translateY(-4px);
    border-color: #000000;
    opacity: 0.92;
    outline: none;
  }

  .hc-resources .hc-resource-card:focus-visible {
    transform: translateY(-4px);
    border-color: #000000;
    opacity: 0.92;
    outline: none;
  }

  .hc-resources .hc-resource-card:hover::before {
    transform: translate(-50%, -50%) scale(1.06);
    background: rgba(0, 0, 0, 0.52);
  }

  .hc-resources .hc-resource-card:focus-visible::before {
    transform: translate(-50%, -50%) scale(1.06);
    background: rgba(0, 0, 0, 0.52);
  }

  .hc-cta-cards .hc-cta-card:hover {
    transform: translateY(-4px);
    background: #ffffff;
    outline: none;
  }

  .hc-cta-cards .hc-cta-card:focus-visible {
    transform: translateY(-4px);
    background: #ffffff;
    outline: none;
  }
}

@media (max-width: 980px) {
  .hc-cta-cards.section {
    padding-top: 0;
    padding-bottom: 56px;
  }

  .hc-cta-cards .hc-cta-cards-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 28px;
  }
}

@media (min-width: 981px) {
  .hc-cta-cards.section {
    padding-top: 24px;
    padding-bottom: 80px;
  }
}
