/* =========================================================
   NUVORELIX V6.2 — ASTRO CODE HERO
   Real HTML text/buttons + decorative image only.
   ========================================================= */

body.cm-nova-ux:has(.astro-code-hero) main.container.cm-page,
body.cm-theme-c:has(.astro-code-hero) main.container.cm-page{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}

body.cm-nova-ux:has(.astro-code-hero),
body.cm-theme-c:has(.astro-code-hero){
  background:#000!important;
  overflow-x:hidden!important;
}

.astro-code-hero{
  position:relative;
  isolation:isolate;
  min-height:760px;
  width:100%;
  overflow:hidden;
  background:#030303;
  border-top:1px solid rgba(212,175,55,.13);
  border-bottom:1px solid rgba(212,175,55,.16);
}

.astro-code-bg{
  position:absolute;
  inset:0;
  z-index:-3;
  background-image:url('brand/astro-tcg-hero-bg.png');
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center center;
  filter:saturate(.88) contrast(1.04) brightness(.72);
  transform:scale(1.02);
}

/* Completely hides the baked text/buttons on the left side of the artwork.
   Only the environmental scene + monitor remain visible. */
.astro-code-shade{
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(90deg,
      #030303 0%,
      rgba(3,3,3,.99) 25%,
      rgba(3,3,3,.95) 39%,
      rgba(3,3,3,.68) 51%,
      rgba(3,3,3,.18) 70%,
      rgba(3,3,3,.10) 100%),
    linear-gradient(180deg,rgba(0,0,0,.08),transparent 22%,transparent 76%,rgba(0,0,0,.30));
}

.astro-code-inner{
  width:min(1440px,calc(100% - 64px));
  min-height:760px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(540px,1.1fr);
  gap:42px;
  align-items:center;
  padding:72px 0 86px;
}

.astro-code-copy{
  position:relative;
  z-index:3;
  max-width:680px;
}

.astro-code-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:#d4af37;
  font-family:'IBM Plex Mono',monospace;
  font-size:.74rem;
  font-weight:700;
  letter-spacing:.16em;
}

.astro-code-eyebrow::after{
  content:"";
  width:64px;
  height:1px;
  background:#d4af37;
}

.astro-code-title{
  margin:22px 0 24px;
  max-width:10ch;
  color:#f5efe4;
  font-family:'Plus Jakarta Sans','Inter',sans-serif;
  font-size:clamp(4rem,6vw,7rem);
  line-height:.88;
  letter-spacing:-.075em;
  font-weight:800;
}

.astro-code-title em{
  display:block;
  margin-top:16px;
  color:#e5bd5c;
  font-family:Georgia,'Times New Roman',serif;
  font-size:.78em;
  line-height:.92;
  letter-spacing:-.045em;
  font-style:italic;
  font-weight:600;
}

.astro-code-description{
  max-width:640px;
  margin:0;
  color:rgba(244,238,226,.78);
  font-size:1.06rem;
  line-height:1.72;
}

.astro-code-actions{
  display:flex;
  flex-wrap:wrap;
  gap:13px;
  margin-top:30px;
}

.astro-code-btn{
  min-height:56px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:0 24px;
  border-radius:15px;
  border:1px solid rgba(212,175,55,.48);
  font-weight:800;
  transition:transform .18s ease,background .18s ease,border-color .18s ease,color .18s ease;
}

.astro-code-btn:hover{
  transform:translateY(-2px);
}

.astro-code-btn.primary{
  background:linear-gradient(135deg,#f2d276,#c99727);
  color:#0b0803;
  box-shadow:0 16px 34px rgba(201,151,39,.18);
}

.astro-code-btn.primary:hover{
  background:linear-gradient(135deg,#f6da85,#d5a431);
}

.astro-code-btn.secondary{
  background:rgba(5,5,5,.72);
  color:#eee4d3;
  backdrop-filter:blur(12px);
}

.astro-code-btn.secondary:hover{
  background:rgba(212,175,55,.08);
  color:#f2cf75;
}

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

.astro-code-benefits article{
  min-width:0;
  display:grid;
  grid-template-columns:36px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:13px 12px;
  border:1px solid rgba(212,175,55,.12);
  border-radius:14px;
  background:rgba(8,7,5,.56);
  backdrop-filter:blur(10px);
}

.astro-benefit-icon{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:11px;
  color:#d4af37;
  background:rgba(212,175,55,.08);
}

.astro-benefit-icon svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.astro-code-benefits strong{
  display:block;
  color:#f0e7d8;
  font-size:.72rem;
}

.astro-code-benefits small{
  display:block;
  margin-top:3px;
  color:#9f9585;
  font-size:.58rem;
  line-height:1.35;
}

/* This visual shows only the right side of the existing artwork.
   No Nuvorelix hero copy or fake buttons are used here. */
.astro-code-visual{
  position:relative;
  z-index:2;
  min-height:570px;
  border-radius:34px;
  overflow:hidden;
  border:1px solid rgba(212,175,55,.24);
  background:#080604;
  box-shadow:0 36px 90px rgba(0,0,0,.42);
  transform:perspective(1400px) rotateY(-4deg) rotateX(1deg);
  transform-origin:center right;
}

.astro-code-monitor{
  position:absolute;
  inset:0;
  background-image:url('brand/astro-tcg-hero-bg.png');
  background-repeat:no-repeat;
  background-size:auto 100%;
  background-position:88% center;
  filter:saturate(.95) contrast(1.04) brightness(.88);
  transform:scale(1.03);
}

.astro-code-visual::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(0,0,0,.34),transparent 20%),
    linear-gradient(180deg,rgba(255,211,111,.04),transparent 22%,transparent 78%,rgba(0,0,0,.16));
  box-shadow:inset 0 0 0 1px rgba(255,222,137,.04);
}

.astro-code-visual-link{
  position:absolute;
  inset:0;
  z-index:4;
}

.astro-code-association{
  margin-top:56px!important;
}

@media(max-width:1180px){
  .astro-code-hero{
    min-height:auto;
  }

  .astro-code-inner{
    width:min(1100px,calc(100% - 40px));
    min-height:0;
    grid-template-columns:1fr;
    gap:34px;
    padding:58px 0 72px;
  }

  .astro-code-copy{
    max-width:840px;
  }

  .astro-code-title{
    max-width:12ch;
    font-size:clamp(3.6rem,8vw,6rem);
  }

  .astro-code-visual{
    min-height:520px;
    transform:none;
  }

  .astro-code-bg,
  .astro-code-shade{
    display:none;
  }
}

@media(max-width:760px){
  .astro-code-inner{
    width:calc(100% - 28px);
    gap:26px;
    padding:34px 0 calc(126px + env(safe-area-inset-bottom,0px));
  }

  .astro-code-eyebrow{
    font-size:.62rem;
    line-height:1.5;
    letter-spacing:.12em;
  }

  .astro-code-eyebrow::after{
    width:34px;
  }

  .astro-code-title{
    max-width:none;
    margin:18px 0 18px;
    font-size:clamp(3.15rem,14vw,4.5rem);
    line-height:.91;
    letter-spacing:-.065em;
  }

  .astro-code-title em{
    margin-top:14px;
    font-size:.72em;
    line-height:.94;
  }

  .astro-code-description{
    font-size:1rem;
    line-height:1.64;
  }

  .astro-code-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    margin-top:24px;
  }

  .astro-code-btn{
    width:100%;
    min-height:56px;
    padding:0 18px;
  }

  .astro-code-benefits{
    grid-template-columns:1fr;
    margin-top:24px;
  }

  .astro-code-benefits article{
    grid-template-columns:40px minmax(0,1fr);
    padding:14px;
  }

  .astro-code-benefits strong{
    font-size:.79rem;
  }

  .astro-code-benefits small{
    font-size:.64rem;
  }

  .astro-code-visual{
    order:-1;
    min-height:0;
    aspect-ratio:4/3;
    border-radius:24px;
    box-shadow:0 22px 60px rgba(0,0,0,.38);
  }

  .astro-code-monitor{
    background-size:auto 100%;
    background-position:88% center;
    transform:scale(1.01);
  }

  .astro-code-visual::after{
    background:linear-gradient(180deg,transparent 62%,rgba(0,0,0,.20));
  }

  .astro-code-association{
    margin-top:32px!important;
  }
}

@media(max-width:460px){
  .astro-code-inner{
    width:calc(100% - 22px);
  }

  .astro-code-title{
    font-size:clamp(2.75rem,13.5vw,3.75rem);
  }

  .astro-code-visual{
    aspect-ratio:1/1;
  }

  .astro-code-monitor{
    background-position:86% center;
  }
}
