/* ==========================================================
   KVA P15-WEB-R4E-R3
   VISUAL COMPOSITION + BRAND INTEGRATION
   Candidate visual layer
   ========================================================== */

:root {
  --r4e-gold: #d4a853;
  --r4e-gold-bright: #e8c879;
}

body {
  background:
    radial-gradient(ellipse 70% 38% at 73% -5%, rgba(212,168,83,.09), transparent 70%),
    linear-gradient(180deg, #080b10 0%, #080c11 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.017) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.017) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.site-shell {
  width: min(calc(100% - 38px), 1340px);
}

.brand-symbol {
  width: 37px;
  height: 37px;
}

.brand-symbol img {
  filter: drop-shadow(0 8px 18px rgba(212,168,83,.08));
}

.eyebrow {
  color: var(--r4e-gold-bright);
}

/* HOME HERO */

.hero {
  min-height: min(700px, calc(100vh - 72px));
  padding-top: 46px;
  padding-bottom: 58px;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(46px,4.45vw,66px);
  letter-spacing: -.06em;
}

.hero h1 span {
  color: var(--r4e-gold-bright);
}

.hero-lead {
  max-width: 530px;
  line-height: 1.58;
}

.ecosystem {
  position: relative;
  min-height: 440px;
  border-color: rgba(255,255,255,.11);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 36%, rgba(212,168,83,.11), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.025), rgba(255,255,255,.008)),
    #0b1017;
  box-shadow:
    0 32px 100px rgba(0,0,0,.32),
    inset 0 1px rgba(255,255,255,.025);
}

.ecosystem::before,
.ecosystem::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  pointer-events: none;
}

.ecosystem::before {
  width: 390px;
  height: 390px;
  border: 1px solid rgba(212,168,83,.055);
}

.ecosystem::after {
  width: 245px;
  height: 245px;
  border: 1px solid rgba(255,255,255,.04);
}

.ecosystem-top,
.ecosystem-grid,
.ecosystem-foot,
.ecosystem-core {
  position: relative;
  z-index: 2;
}

.ecosystem-core {
  max-width: 300px;
  padding: 18px 20px 22px;
}

.core-mark {
  width: 98px;
  height: 98px;
}

.core-mark img {
  width: 90px;
}

.ecosystem-grid article {
  min-height: 92px;
  padding: 14px 16px;
  background: rgba(8,11,16,.35);
}

.ecosystem-grid strong {
  margin-top: 19px;
}

.ecosystem-foot {
  height: 38px;
}

/* HOME ROUTING */

.explore {
  padding-top: 64px;
  padding-bottom: 72px;
}

.path-grid {
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.path-card,
.path-card.featured {
  min-height: 225px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 23px 25px;
}

.path-card:last-child {
  border-right: 0;
}

.path-card.featured {
  background: linear-gradient(135deg, rgba(212,168,83,.055), transparent 55%);
}

.path-card:hover {
  transform: none;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
}

.card-body h3 {
  font-size: 25px;
}

.card-body p {
  max-width: 290px;
  font-size: 14px;
}

.card-body strong {
  margin-top: 20px;
}

/* FEATURED PRODUCT */

.featured-product {
  min-height: 535px;
  grid-template-columns: .72fr 1.28fr;
  gap: 44px;
  padding: 50px 48px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 0, rgba(212,168,83,.10), transparent 34%),
    #f3f0e8;
}

.product-title h2 {
  font-size: clamp(48px,5vw,69px);
}

.product-lead {
  max-width: 450px;
  font-size: 16px;
}

.app-card {
  transform: perspective(1400px) rotateY(-1deg) rotateX(.25deg);
}

.app-content {
  min-height: 350px;
}

/* METHOD */

.method {
  padding-top: 70px;
  padding-bottom: 72px;
}

.method-flow {
  gap: 0;
  border-top: 1px solid var(--line);
}

.method-flow article {
  min-height: 160px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.method-flow article strong {
  margin-top: 38px;
}

/* COMPANY */

.page-hero {
  min-height: 420px;
  padding-top: 68px;
  padding-bottom: 52px;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(47px,4.7vw,68px);
}

.page-hero-side > p {
  max-width: 420px;
  font-size: 16px;
}

.editorial-grid {
  grid-template-columns: 1.55fr repeat(3,.65fr);
  gap: 0;
  padding-top: 58px;
  padding-bottom: 62px;
}

.editorial-large,
.editorial-card {
  min-height: 270px;
  border-radius: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 0;
  background: transparent;
}

.editorial-large {
  border-right: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(212,168,83,.055), transparent 58%);
}

.editorial-card {
  border-right: 1px solid var(--line);
}

.editorial-card:last-child {
  border-right: 0;
}

.principle-grid {
  gap: 0;
}

.principle-grid article {
  min-height: 170px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.principle-grid article:last-child {
  border-right: 0;
}

/* SERVICES */

.services-grid {
  grid-template-columns: 1.28fr .72fr;
  grid-template-areas:
    "primary automation"
    "primary web"
    "custom custom";
  gap: 10px;
  padding-top: 56px;
  padding-bottom: 64px;
}

.services-grid > article:nth-child(1) { grid-area: primary; }
.services-grid > article:nth-child(2) { grid-area: automation; }
.services-grid > article:nth-child(3) { grid-area: web; }
.services-grid > article:nth-child(4) { grid-area: custom; }

.service-card {
  min-height: 225px;
  border-radius: 19px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.025), transparent),
    var(--surface);
}

.service-featured {
  min-height: 460px;
}

.service-featured h2 {
  max-width: 500px;
  font-size: clamp(38px,3.6vw,52px);
}

.services-grid > article:nth-child(4) {
  min-height: 210px;
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: end;
}

.process-band {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* HOSPITALITY */

.hospitality-hero {
  min-height: min(675px,calc(100vh - 72px));
  padding-top: 45px;
  padding-bottom: 55px;
}

.hospitality-hero-copy h1 {
  font-size: clamp(46px,4.55vw,64px);
}

.hospitality-dashboard {
  border-radius: 21px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.018), transparent 45%),
    #0b1016;
}

.dashboard-body {
  min-height: 415px;
}

.hospitality-story {
  padding-top: 62px;
  padding-bottom: 66px;
}

.hospitality-capabilities {
  gap: 0;
  border-top: 1px solid var(--line);
}

.hospitality-capabilities article {
  min-height: 165px;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.hospitality-capabilities article:nth-child(3n) {
  border-right: 0;
}

.hospitality-capabilities h3 {
  margin-top: 36px;
}

.hotel-participation-banner {
  padding: 45px 44px;
  border-radius: 25px;
}

/* QR / PARTICIPATION */

.participation-shell {
  width: min(calc(100% - 30px),1030px);
}

.participation-hero {
  min-height: 410px;
  padding: 45px 0;
}

.participation-hero h1 {
  font-size: clamp(47px,5vw,65px);
}

.participation-status,
.participation-options {
  padding-top: 54px;
  padding-bottom: 56px;
}

.status-track article {
  min-height: 112px;
  border-radius: 14px;
  padding: 16px;
}

.status-track article strong {
  margin-top: 25px;
}

.participation-grid {
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.participation-grid article {
  min-height: 235px;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  background: transparent;
}

.participation-grid article:last-child {
  border-right: 0;
}

.participation-grid article:hover {
  transform: none;
  background: rgba(255,255,255,.018);
}

.participation-grid h3 {
  margin-top: 34px;
}

.participation-product {
  padding-top: 42px;
  padding-bottom: 42px;
}

.participation-close {
  padding-top: 46px;
  padding-bottom: 58px;
}

/* CONTACT */

.contact {
  padding: 42px 44px;
  border-radius: 24px;
}

footer {
  min-height: 105px;
  margin-top: 28px;
}

/* TABLET */

@media (max-width: 1000px) {
  .hero {
    min-height: 0;
  }

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

  .path-card {
    min-height: 165px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .path-card:last-child {
    border-bottom: 0;
  }

  .featured-product {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "primary primary"
      "automation web"
      "custom custom";
  }

  .service-featured {
    min-height: 360px;
  }

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

  .editorial-large {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .hospitality-capabilities article:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .hospitality-capabilities article:nth-child(2n) {
    border-right: 0;
  }
}

/* MOBILE */

@media (max-width: 760px) {
  body::before {
    background-size: 48px 48px;
    opacity: .18;
  }

  .site-shell {
    width: min(calc(100% - 18px),1340px);
  }

  .hero {
    padding-top: 39px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: clamp(38px,10.5vw,49px);
  }

  .ecosystem {
    min-height: 350px;
  }

  .ecosystem::before {
    width: 280px;
    height: 280px;
  }

  .ecosystem::after {
    width: 180px;
    height: 180px;
  }

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

  .ecosystem-grid article {
    min-height: 80px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    padding: 11px 8px;
  }

  .ecosystem-grid article:last-child {
    border-right: 0;
  }

  .ecosystem-grid strong {
    margin-top: 14px;
    font-size: 8px;
  }

  .ecosystem-grid span {
    font-size: 8px;
  }

  .explore {
    padding-top: 48px;
    padding-bottom: 50px;
  }

  .path-card {
    min-height: 150px;
    padding: 18px 14px;
  }

  .featured-product {
    padding: 35px 16px;
  }

  .app-card {
    transform: none;
  }

  .method {
    padding-top: 50px;
    padding-bottom: 52px;
  }

  .method-flow article {
    min-height: 130px;
  }

  .page-hero {
    padding-top: 44px;
    padding-bottom: 42px;
  }

  .page-hero h1 {
    font-size: 40px;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
    padding-top: 44px;
    padding-bottom: 45px;
  }

  .editorial-large,
  .editorial-card {
    min-height: 190px;
    border-right: 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "primary"
      "automation"
      "web"
      "custom";
    padding-top: 44px;
    padding-bottom: 46px;
  }

  .service-featured {
    min-height: 315px;
  }

  .services-grid > article:nth-child(4) {
    display: flex;
    min-height: 205px;
  }

  .hospitality-hero {
    padding-top: 42px;
    padding-bottom: 44px;
  }

  .hospitality-hero-copy h1 {
    font-size: 40px;
  }

  .hospitality-capabilities {
    grid-template-columns: 1fr;
  }

  .hospitality-capabilities article,
  .hospitality-capabilities article:nth-child(2n),
  .hospitality-capabilities article:nth-child(3n) {
    min-height: 135px;
    border-right: 0;
  }

  .hospitality-capabilities h3 {
    margin-top: 25px;
  }

  .hotel-participation-banner {
    padding: 31px 18px;
  }

  .participation-hero {
    min-height: 0;
    padding: 38px 0;
  }

  .participation-hero h1 {
    font-size: 39px;
  }

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

  .participation-grid article {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .participation-grid article:last-child {
    border-bottom: 0;
  }

  .contact {
    padding: 28px 17px;
  }
}

/* SMALL MOBILE */

@media (max-width: 420px) {
  .ecosystem-grid span {
    display: none;
  }

  .ecosystem-grid article {
    min-height: 62px;
  }

  .ecosystem-grid strong {
    margin-top: 9px;
  }

  .hero h1,
  .page-hero h1,
  .hospitality-hero-copy h1,
  .participation-hero h1 {
    font-size: 37px;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .app-card {
    transform: none;
  }
}