/* ==========================================================================
   GeForce RTX 50 Series / DLSS 4.5 Upgrade — Partner Landing Page
   Computer Solution Ranchi × Colorful × NVIDIA

   Sections 1–2 follow "Colorful - Landing Page1.psd" (the updated campaign
   creative from Rptech). Sections 3–8 follow the NVIDIA partner template.
   ========================================================================== */

:root {
  --black:  #000000;
  --surface:#1A1A1A;
  --green:  #93E600;   /* NVIDIA green — CTAs */
  --white:  #FFFFFF;
  --muted:  #999999;
  --legal:  #9E9E9E;
  --rule:   #3A3A3A;

  /* If Rptech supplies the licensed NVIDIA Sans webfont, drop it in and it
     takes over automatically — Inter is the closest free stand-in. */
  --font: 'NVIDIA Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --col: 958px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

sup {
  font-size: .5em;
  vertical-align: super;
  line-height: 0;
}

/* ---------- shared type ---------- */
.sec-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  margin-bottom: 20px;
}

.sec-body {
  font-size: 15px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 16px;
}

.caption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
}

.kv {
  width: 100%;
  max-width: 790px;
  margin: 32px auto 0;
}

/* ---------- CTA button ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--black);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 14px 24px;
  text-decoration: none;
  transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.12); }
.btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

/* ---------- logo lockup ---------- */
.logos {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
}
.logos .partner-logo,
.logos .badge { height: 42px; width: auto; }

/* ==========================================================================
   1. HERO — per "Colorful - Landing Page1.psd"
   The updated creative drops the body paragraph, the Shop All button and the
   partner logo from the hero: headline, subhead and GeForce badge only.
   ========================================================================== */
.hero {
  position: relative;
  background: var(--black);
  overflow: hidden;
}

.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  width: 88%;
  height: 100%;
  background: url('images/hero-art-v2.jpg') no-repeat right center;
  background-size: contain;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 689px;
  display: flex;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}

.hero-copy { max-width: 400px; }

.hero-copy h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 26px;
}

.hero-copy h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 40px;
}

.hero-copy .badge { height: 42px; width: auto; }

/* ==========================================================================
   2. BUY GEFORCE RTX — per "Colorful - Landing Page1.psd"
   ========================================================================== */
.shop { padding: 72px 0; background: var(--black); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

/* Product render is a transparent PNG, so it sits directly on the section.
   Width-driven: the asset is 450px wide so it renders at or below native
   size in a ~285px tile and stays sharp. */
.tile {
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile img {
  width: 100%;
  max-width: 300px;
  height: auto;
}

/* Column flex + margin-top:auto on the button keeps all three CTAs on a
   shared baseline even when one product name wraps to an extra line. */
.card {
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card .btn { align-self: center; margin-top: auto; }

/* Partner build name — our own naming, per NVIDIA's naming policy. */
.build-name {
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 22px 0 6px;
}

.card-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 24px;
}

/* ==========================================================================
   3–4. FEATURE SECTIONS (DMFG / Super Resolution)
   ========================================================================== */
.feature {
  padding: 72px 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#dmfg     { background-image: url('images/dmfg-bg.jpg'); }
#superres { background-image: url('images/superres-bg.jpg'); }

/* ==========================================================================
   5. REVOLUTIONIZING YOUR FAVORITE GAMES
   ========================================================================== */
.games {
  position: relative;
  background: var(--black) url('images/games-wall.jpg') no-repeat center right;
  background-size: cover;
  min-height: 584px;
  display: flex;
  align-items: center;
}

.games-inner { display: flex; align-items: center; }

.games-copy { max-width: 300px; }

.games-copy h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 22px;
}

.games-copy em { font-style: italic; }

/* ==========================================================================
   6. DLSS SUPPORTED HARDWARE TABLE
   ========================================================================== */
.hw { padding: 72px 0; background: var(--black); }

.table-scroll { overflow-x: auto; margin-top: 40px; }

.hw-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: center;
}

.hw-table th,
.hw-table td {
  padding: 18px 10px;
  border-bottom: 1px solid var(--rule);
}

.hw-table thead th {
  font-size: 15px;
  font-weight: 700;
  vertical-align: bottom;
}

.hw-table tbody th {
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  width: 34%;
}

.hw-table .yes { color: var(--green); font-size: 22px; }
.hw-table .no  { color: var(--muted); }

/* ==========================================================================
   7–8. BENCHMARK CHARTS
   Bars are driven by --v against a --max on .chart, so the numbers in the
   markup stay the literal figures NVIDIA published.
   ========================================================================== */
.chart-sec { padding: 72px 0; background: var(--black); }

.legend {
  display: flex;
  justify-content: center;
  gap: 28px;
  list-style: none;
  margin: 32px 0 28px;
  font-size: 13px;
}
.legend li { display: flex; align-items: center; gap: 8px; }

.sw { width: 14px; height: 14px; display: inline-block; }
.sw-50 { background: var(--green); }
.sw-30 { background: #B0B0B0; }
.sw-20 { background: #6E6E6E; }

.chart {
  --gutter: 190px;         /* room for the row labels */
  border-left: 1px solid var(--rule);
  margin-left: var(--gutter);
  position: relative;
}

.row { position: relative; padding: 14px 0; }

.row-label {
  position: absolute;
  right: calc(100% + 16px);
  top: 50%;
  transform: translateY(-50%);
  width: calc(var(--gutter) - 24px);
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.bars { display: flex; flex-direction: column; gap: 4px; }

.bar {
  height: 13px;
  width: calc(var(--v) / var(--max) * 100%);
  position: relative;
  min-width: 2px;
}
.bar i {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.b50 { background: var(--green); }
.b50 i { color: var(--green); }
.b30 { background: #B0B0B0; }
.b20 { background: #6E6E6E; }
.b30 i, .b20 i { color: var(--muted); }

/* 3D Rendering is 11.7X — beyond the 5X axis. An arrowhead marks the break,
   matching how NVIDIA presents it, with the true figure still labelled.
   Drawn as a pseudo-element: clip-path here would also clip the <i> label. */
.bar.over::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 0;
  border-left: 11px solid var(--green);
  border-top: 6.5px solid transparent;
  border-bottom: 6.5px solid transparent;
}
.bar.over i { left: calc(100% + 20px); }

.axis {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--muted);
}
.axis span { transform: translateX(-50%); }
.axis span:first-child { transform: none; }

.axis-title {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 14px;
}

.footnote {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  max-width: 760px;
  margin: 32px auto 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding: 48px 0 64px; background: var(--black); }

.rule { height: 1px; background: var(--rule); margin-bottom: 48px; }

.footer-logos { justify-content: center; margin: 0 0 32px; }

.legal {
  font-size: 11px;
  line-height: 1.6;
  color: var(--legal);
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .hero-art {
    width: 100%;
    opacity: .40;
    background-position: center right -60px;
    background-size: cover;
  }
  /* Longhand only — a `padding` shorthand here would wipe the 24px
     side gutters that .wrap sets, pushing text to the screen edge. */
  .hero-inner   { min-height: 0; padding-top: 72px; padding-bottom: 72px; }
  .hero-copy    { max-width: 100%; }
  .hero-copy h1 { font-size: 30px; }
  .hero-copy h2 { font-size: 21px; margin-bottom: 30px; }

  .games {
    min-height: 0;
    padding: 64px 0 340px;      /* keep the artwork visible below the copy */
    background-position: bottom center;
    background-size: 150% auto;
    align-items: flex-start;
  }
  .games-copy { max-width: 100%; }

  .feature { padding: 56px 0; }

  .grid-3 { grid-template-columns: 1fr; gap: 32px; }

  .sec-title { font-size: 24px; }

  .logos { flex-wrap: wrap; gap: 20px; }

  /* Charts: the side-label gutter doesn't fit — stack the label above its bars. */
  .chart {
    --gutter: 0px;
    margin-left: 0;
    border-left: 0;
  }
  .row {
    padding: 0 0 22px;
    border-left: 1px solid var(--rule);
  }
  .row-label {
    position: static;
    transform: none;
    width: auto;
    display: block;
    text-align: left;
    margin: 0 0 8px 12px;
  }
  .row-label br { display: none; }
  .bar i { font-size: 11px; }
  .legend { flex-wrap: wrap; gap: 14px 20px; }
  .chart-sec { padding: 56px 0; }
}

@media (max-width: 480px) {
  .hero-copy h1 { font-size: 26px; }
  .logos .partner-logo,
  .logos .badge { height: 34px; }
}
