﻿.home-page .hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(380px, 0.84fr);
  align-items: start;
  gap: 56px;
  padding: 140px 0 40px;
}

.home-page .hero-copy {
  max-width: 560px;
  padding-top: 36px;
}

.home-page h1 {
  margin: 8px 0 0;
  display: grid;
  gap: 4px;
  line-height: 0.94;
}

.home-page h1 span {
  display: block;
  font: 800 clamp(2.8rem, 5.2vw, 3.75rem) / 0.93 Syne, sans-serif;
  letter-spacing: 0.048em;
  text-transform: uppercase;
  background: linear-gradient(100deg, #f5f8ff 0%, #d3d8e7 34%, #f7fbff 57%, #8fd2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.48);
}

.home-page .eyebrow {
  color: #7d57df;
  font: 600 12px Syne, sans-serif;
  letter-spacing: 0.31em;
  margin: 0 0 16px;
}

.home-page .line-accent {
  width: 76px;
  margin: 22px 0 30px;
  background: linear-gradient(90deg, rgba(122, 87, 223, 0.9), rgba(122, 87, 223, 0));
}

.home-page .subheading {
  margin: 0 0 18px;
  color: #8f65ef;
  font: 500 14px Syne, sans-serif;
  letter-spacing: 0.13em;
}

.home-page .lead {
  max-width: 590px;
  margin: 0 0 36px;
  color: #d6e1f2;
  font-size: 16px;
  line-height: 1.52;
}

.home-page .cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  border-radius: 12px;
  color: #f4f7ff;
  text-decoration: none;
  font: 700 11px Syne, sans-serif;
  letter-spacing: 0.15em;
  background: linear-gradient(90deg, #6e4ce0 0%, #229ef2 100%);
  box-shadow: 0 0 44px rgba(66, 136, 255, 0.42);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.home-page .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 56px rgba(87, 160, 255, 0.5);
  filter: brightness(1.04);
}

.home-page .hero-image-wrap {
  box-sizing: border-box;
  display: block;
  opacity: 1;
  transform: none;
  padding: 0;
  border-width: 0;
  border-style: solid;
  border-color: hsl(var(--border));
  border-radius: 1rem;
  background: #060d1d;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(4, 8, 19, 0.74);
  margin-top: 6px;
  width: min(100%, 560px);
  justify-self: end;
}

.home-page .hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  background-image: linear-gradient(
    to top,
    hsl(222 71% 2% / 0.88),
    transparent 58%
  );
  pointer-events: none;
}

.home-page .hero-image {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  object-fit: cover;
}

.home-page .hero-image-wrap.is-missing {
  min-height: 520px;
  position: relative;
  overflow: hidden;
}

.home-page .hero-image-wrap.is-missing::before {
  content: "RRC";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #dbe6ff;
  font: 700 54px/1 Syne, sans-serif;
  letter-spacing: 0.24em;
  background:
    radial-gradient(circle at 18% 20%, rgba(122, 87, 223, 0.4), transparent 40%),
    radial-gradient(circle at 82% 18%, rgba(38, 182, 234, 0.4), transparent 45%),
    linear-gradient(160deg, #151c34, #070c1a);
}

.home-page .stats {
  box-sizing: border-box;
  position: relative;
  z-index: 10;
  background: #060b1a;
  backdrop-filter: none;
  border: 1px solid rgba(56, 76, 110, 0.24);
  border-top-width: 1px;
  border-bottom-width: 1px;
  border-color: rgba(56, 76, 110, 0.24);
}

.home-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-page .stats article {
  padding: 34px 16px 30px;
  text-align: center;
  border-right: 0;
}

.home-page .stats article:last-child {
  border-right: 0;
}

.home-page .stats h3 {
  margin: 10px 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.home-page .stats p {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  color: #d6dcea;
}

.home-page .stat-icon {
  display: inline-flex;
  color: #7d57df;
}

.home-page .stat-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.home-page .ticker {
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(56, 76, 110, 0.34);
  background: #060b1a;
  position: relative;
}

.home-page .track {
  min-width: 200%;
  display: inline-flex;
  gap: 0;
  padding: 0;
  animation: marquee 48s linear infinite;
  align-items: center;
}

.home-page .track span {
  display: grid;
  grid-template-columns: 10px max-content;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  width: 340px;
  flex: 0 0 340px;
  padding: 30px 0;
  margin: 0;
  column-gap: 16px;
  user-select: none;
  color: hsl(var(--muted-foreground, 215 25% 65%));
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: .875rem;
  line-height: 1.25rem;
  letter-spacing: 0.2em;
}

.home-page .track span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #5f7ae8;
  box-shadow: none;
}

.home-page .track span::after {
  content: "";
}

.home-page .ticker::before,
.home-page .ticker::after {
  content: none;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.home-page .quote {
  padding: 74px 0;
  text-align: center;
}

.home-page .quote blockquote {
  max-width: 860px;
  margin: 0 auto 16px;
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  font-style: italic;
  line-height: 1.7;
}

.home-page .quote p {
  margin: 0;
  color: var(--electric-light);
  font: 600 11px Syne, sans-serif;
  letter-spacing: 0.22em;
}

.home-page .pillars {
  padding: 72px 0;
  border-top: 1px solid #30416780;
  background: var(--surface);
}

.home-page .center { text-align: center; }

.home-page .pillars h2 {
  margin: 6px 0 36px;
  text-align: center;
  font-size: clamp(1.3rem, 2.7vw, 2rem);
  letter-spacing: 0.12em;
}

.home-page .pillars-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-page .pillars article {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.home-page .pillars article span {
  color: var(--cyan);
  font: 600 11px Syne, sans-serif;
  letter-spacing: 0.2em;
}

.home-page .pillars article h3 {
  margin: 8px 0 10px;
  font-size: 14px;
  letter-spacing: 0.14em;
}

.home-page .pillars article p {
  margin: 0;
  color: #d2dbe8;
  font-size: 14px;
}

@media (max-width: 980px) {
  .home-page .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    min-height: unset;
    padding-top: 112px;
  }

  .home-page h1 span {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  .home-page .subheading {
    font-size: 24px;
  }

  .home-page .lead {
    font-size: 16px;
  }

  .home-page .cta {
    font-size: 16px;
    padding: 13px 30px;
  }

  .home-page .hero-image-wrap {
    max-width: 560px;
  }

  .home-page .hero-image,
  .home-page .hero-image-wrap.is-missing {
    min-height: 520px;
  }

  .home-page .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-page .track span {
    width: 220px;
    padding: 22px 16px;
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .home-page .pillars-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .home-page .stats article {
    padding: 24px 12px;
  }

  .home-page .track {
    gap: 28px;
    padding: 14px 0;
  }

  .home-page .pillars-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1280px) {
  section.relative.min-h-screen .grid > .relative.block {
    overflow: hidden;
  }

  section.relative.min-h-screen .grid > .relative.block img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 70vh !important;
    object-fit: contain !important;
  }
}

@media (min-width: 1024px) and (max-width: 1100px) {
  section.relative.min-h-screen .grid {
    grid-template-columns: 1fr 1fr !important;
  }

  section.relative.min-h-screen .grid > div:first-child {
    min-width: 0;
    overflow: hidden;
  }

  section.relative.min-h-screen h1,
  section.relative.min-h-screen h1.text-6xl,
  section.relative.min-h-screen h1.lg\:text-6xl {
    font-size: 3.5rem !important;
    letter-spacing: 0.02em !important;
    line-height: 1.1 !important;
  }

  section.relative.min-h-screen .grid > div:first-child p {
    font-size: 0.75rem !important;
    letter-spacing: 0.04em !important;
    max-width: 100% !important;
  }
}

/* Tablet hero fixes */
@media (min-width: 768px) and (max-width: 1023px) {
  section.relative.min-h-screen .grid {
    padding-top: 10rem !important;
    padding-bottom: 4rem !important;
  }
}

/* Mobile hero fixes */
@media (max-width: 1023px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  section.relative.min-h-screen .grid > div:first-child {
    min-width: 0;
    max-width: 100%;
  }

  section.relative.min-h-screen h1 {
    font-size: clamp(1.8rem, 9vw, 3rem) !important;
    letter-spacing: 0.04em !important;
  }

  section.relative.min-h-screen .grid > div:first-child p {
    letter-spacing: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  section.relative.min-h-screen .grid > .relative.block {
    display: flex;
    justify-content: center;
    overflow: hidden;
  }

  section.relative.min-h-screen .grid > .relative.block img {
    width: min(260px, 70vw);
    height: auto;
  }

  section.relative.min-h-screen .grid > .relative.block .absolute {
    display: none;
  }
}




