/* =====================================================================
   26Q4-18 Intel Holiday Bundle — landing page
   Design refs: Figma "26Q4-18-Intel-Holiday-Bundle-2026"
     Desktop 1440 — node 2157:155 (blade heights 1083/1307/716/601/587/601/684/1024/1680)
     Mobile  402  — node 2177:12 "Mobile Holiday" (Landing Page)

   Architecture
   - Every blade is content-driven: copy sits in normal flow, padding/margins
     equal the Figma gaps, and min-height holds the design height. Long or
     translated copy grows the blade instead of overlapping or clipping it.
   - Blade art is an <img class="blade-bg"> with object-fit: cover, so it
     crops (never stretches) when a blade grows or the viewport narrows.
   - .page is the size container, capped at 1440. `cqw` = 1% of .page width.
     The hero is the only blade sized fully in cqw, because its copy has to
     stay registered to the card painted into the background image.
   - Mobile is one @media (max-width: 767px) block at the bottom.
   ===================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "IntelOne Display";  src: url("fonts/intelone-display-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IntelOne Display";  src: url("fonts/intelone-display-medium.woff2") format("woff2");  font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IntelOne Display";  src: url("fonts/intelone-display-light.woff2") format("woff2");   font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "IntelOne Display";  src: url("fonts/intelone-display-bold.woff2") format("woff2");    font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IntelOne Text";     src: url("fonts/intelone-text-regular.woff2") format("woff2");    font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IntelOne Text";     src: url("fonts/intelone-text-italic.woff2") format("woff2");     font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IntelOne Text";     src: url("fonts/intelone-text-medium.woff2") format("woff2");     font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IntelOne Text";     src: url("fonts/intelone-text-bold.woff2") format("woff2");       font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IntelOne Text";     src: url("fonts/intelone-text-bolditalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "IntelOne Headline"; src: url("fonts/intelone-headline-bolditalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #000; color: #fff; font-family: "IntelOne Display", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ol { margin: 0; }
h1, h2, h3, h4 { overflow-wrap: break-word; }   /* long translated words wrap instead of overflowing */
a { color: inherit; }
button { font: inherit; color: inherit; }

.page {
  max-width: 1440px;
  margin: 0 auto;
  overflow-x: clip;
  container-type: inline-size;
}

.blade {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.blade-bg { position: absolute; inset: 0; z-index: -1; }
.blade-bg picture { display: contents; }
.blade-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-collage { display: none; }

/* Shared headline face: IntelOne Headline Bold Italic */
.feature h2, .products-title, .instructions-title, .legal-title {
  font-family: "IntelOne Headline", "IntelOne Text", Arial, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(40px, 5.2083cqw, 75px);
  line-height: 1;
  letter-spacing: 0.02em;
}

/* ---------- CTA (Figma component "CTA" 2098:29) ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 242.5px;                /* grows for longer translated labels */
  max-width: 100%;
  height: 44.5px;
  padding: 0 16px;
  border: 2.08px solid #fff;
  background: rgba(0, 42, 255, 0.26);
  font-family: "IntelOne Text", Arial, sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease;
}
.cta:hover { background: rgba(0, 42, 255, 0.6); }
.cta:focus-visible, .carousel-arrow:focus-visible, .carousel-dots button:focus-visible, .carousel-track:focus-visible {
  outline: 3px solid #00c7fd;
  outline-offset: 3px;
}

/* =====================================================================
   1. HERO — 1440 x 1083
   ===================================================================== */
.hero { background: #010105; }
.hero-art {
  align-self: stretch;
  height: 60.972cqw;                 /* 878 — subhead top */
  padding: 19.653cqw 0 0 11.667cqw;  /* logo at 168, 283 */
  text-align: left;
}
.hero-logo { width: 11.42cqw; height: auto; }
.hero-title {
  margin-top: 2.651cqw;              /* headline top 350 */
  font-family: "IntelOne Text", Arial, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: calc(6.6667cqw * var(--hs, 1));  /* 96; --hs shrinks long translated headlines to fit the card */
  line-height: 0.87;
  text-shadow: 0 0.2557cqw 0.1342cqw rgba(0, 0, 0, 0.75);
}
.hero-title span { display: block; }
.hero-title .l2 { margin-left: 0.85em; }
.hero-title .l3 { margin-left: 0.17em; font-size: 1.382em; } /* 132.67 */
.hero-sub {
  padding: 0 6.74cqw;
  font-family: "IntelOne Text", Arial, sans-serif;
  font-weight: 500;
  font-size: max(18px, 2.0833cqw);   /* 30 */
  line-height: 1.3;
}
.hero .cta { margin-top: 2.64cqw; }
.hero-ends {
  margin: 2.6cqw 0 1.75cqw;
  font-family: "IntelOne Text", Arial, sans-serif;
  font-size: max(12px, 1.1111cqw);   /* 16 */
  line-height: 1.3;
}

/* =====================================================================
   2. TITLES — 1440 x 1307, horizontal carousel
   ===================================================================== */
.titles { min-height: 1307px; padding: 112px 0 54px; }
.titles-title {
  max-width: 1240px;
  padding: 0 20px;
  font-family: "IntelOne Text", Arial, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(40px, 5.2083cqw, 75px);
  line-height: 1.3;
}
.titles-sub {
  max-width: 1027px;
  margin-top: 48px;
  padding: 0 20px;
  font-family: "IntelOne Text", Arial, sans-serif;
  font-size: clamp(20px, 2.0833cqw, 30px);
  line-height: 1.6;
}
.titles-sub b { font-weight: 700; }

.carousel { align-self: stretch; margin-top: 113px; }
.carousel-track {
  display: flex;
  gap: 1.6667cqw;                           /* 24 */
  padding: 0 16.875cqw 0 6.6667cqw;         /* first card at x=96; end pad lets the last card snap to the same spot */
  scroll-padding-left: 6.6667cqw;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  text-align: start;
  position: relative;
}
.carousel-track::-webkit-scrollbar { display: none; }
.game {
  flex: 0 0 76.4583cqw;                     /* 1101 */
  scroll-snap-align: start;
  cursor: pointer;
}
.game.is-active { cursor: default; }
.game-shot {
  aspect-ratio: 1101 / 439;
  border-radius: 40px;
  overflow: hidden;
}
.game-shot img { width: 100%; height: 100%; object-fit: cover; }
#game-tw40k .game-shot img { object-position: 50% 10%; }
#game-tr    .game-shot img { object-position: 50% 20%; }
.game-info {
  display: grid;
  grid-template-columns: 220px minmax(0, 860px);
  column-gap: 10px;
  align-items: center;
  min-height: 130px;
  margin-top: 51px;
}
.game-logo { justify-self: center; height: auto; }
.logo-tw40k { width: 166px; }
.logo-tr    { width: 165px; }
.logo-sw    { width: 207px; }
.game-info p {
  font-family: "IntelOne Text", Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
}
.carousel-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2.08px solid #fff;
  background: rgba(0, 42, 255, 0.26);
  cursor: pointer;
  transition: background-color .2s ease, opacity .2s ease;
}
.carousel-arrow:hover:not(:disabled) { background: rgba(0, 42, 255, 0.6); }
.carousel-arrow:disabled { opacity: .35; cursor: default; }
.carousel-arrow svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: square; }
.carousel-dots { display: flex; gap: 12px; }
.carousel-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: width .25s ease, background-color .25s ease;
}
.carousel-dots button[aria-current="true"] { width: 32px; background: #fff; }

.titles-note {
  max-width: 1227px;
  margin-top: 28px;
  padding: 0 20px;
  font-family: "IntelOne Text", Arial, sans-serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.3;
}

/* =====================================================================
   3–6. FEATURE BLADES — image one side, copy column the other
   ===================================================================== */
.feature {
  align-items: flex-start;
  text-align: start;
  min-height: var(--h);
  padding: var(--pt) 0 48px;
}
.feature-copy { margin-left: var(--x); width: min(var(--hw), 46%); }
.feature h2 { margin-bottom: 30px; }
.feature p {
  max-width: var(--pw);
  font-size: 16px;
  line-height: 1.3;
}
.feature p + p { margin-top: 1.3em; }

.performance  { --h: 716px; --pt: 115px; --x: 50.417%; --hw: 624px; --pw: 578px; }
.immersive    { --h: 601px; --pt: 110px; --x: 7.014%;  --hw: 625px; --pw: 619px; }
.multitasking { --h: 587px; --pt: 123px; --x: 50%;     --hw: 706px; --pw: 566px; }
.inside       { --h: 601px; --pt: 124px; --x: 7.014%;  --hw: 620px; --pw: 555px; }
.multitasking h2 { margin-bottom: 51px; }
.multitasking .indent { padding-left: 0.9em; }

/* =====================================================================
   7. PRODUCTS — 1440 x 684  (anchor target for every "Shop Now")
   ===================================================================== */
.products { background: #000; padding: 96px 0 36px; min-height: 684px; }
.products-title { max-width: 1240px; padding: 0 20px; letter-spacing: 0.01em; }
.product-grid {
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;                   /* 4-up at 1440, wraps to 3 / 2 as the page narrows */
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  padding: 0 6.944%;
}
.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 21px;
  flex: 0 1 280px;
  min-width: 260px;
  min-height: 436px;
  padding: 19px 13px;
}
.product img { width: 100%; max-width: 256px; height: auto; aspect-ratio: 256 / 174; object-fit: contain; background: #fff; }  /* Newegg shots are 4:3 on white — show the whole product */
.product h3, .product h4 { font-weight: 500; font-size: 20px; line-height: 1; letter-spacing: 0.01em; }
.product p  { font-size: 16px; line-height: 1; letter-spacing: 0.01em; }
.product .cta { width: 100%; max-width: 242.5px; }
.product p { line-height: 1.25; }
.product .cta { min-width: 0; }
.product-img { display: block; width: 100%; max-width: 256px; }   /* image + title link to the same page as the CTA */
.product-img img { max-width: 100%; }
.product h4 a { text-decoration: none; }
.product h4 a:hover { text-decoration: underline; }
.product h4 a:focus-visible { outline: 3px solid #00c7fd; outline-offset: 3px; }
.products-disclaimer { max-width: 958px; margin-top: 48px; padding: 0 20px; font-size: 14px; line-height: 20px; }

/* Product groups (CPU / Desktop / Notebook / VGA & Handheld) */
.product-group { align-self: stretch; margin-top: 56px; }
.products-title + .product-group { margin-top: 41px; }
/* Cards in a row share one height; CTAs line up along the bottom */
.product-group .product { justify-content: flex-start; min-height: 0; }
.product-group .product .cta { margin-top: auto; }
.product-group-title {
  padding: 0 20px;
  font-family: "IntelOne Text", Arial, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(28px, 2.5cqw, 36px);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

/* =====================================================================
   8. INSTRUCTIONS — 1440 x 1024
   ===================================================================== */
.instructions { min-height: 1024px; padding: 109px 0 40px; }
.instructions-title { line-height: 1.1; }
.instructions-sub {
  max-width: 1095px;
  margin-top: 29px;
  padding: 0 20px;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
}
.steps {
  align-self: stretch;
  max-width: 1087px;
  margin: 69px 0 0 11.944%;          /* x = 172 */
  padding: 0 20px 0 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 39px;
  text-align: start;
  font-size: 30px;
  line-height: 38px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 57px;
}
.steps li::before { content: counter(step) "."; position: absolute; inset-inline-start: 0; top: 0; }
.steps a { text-decoration: none; }
.steps a:hover { text-decoration: underline; }
.instructions .cta { margin-top: 66px; }
.instructions-note {
  max-width: 958px;
  margin-top: 51px;
  padding: 0 20px;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
}

/* =====================================================================
   9. LEGAL — 1440 x 1680
   ===================================================================== */
.legal {
  min-height: 1680px;
  padding: 69px 6.944% 83px;
  background: linear-gradient(180deg, #002aff 0%, #000 65.036%);
}
.legal-logo { width: 370px; height: auto; }
.legal-title {
  margin-top: 71px;
  font-size: clamp(48px, 6.68cqw, 96.19px);
  line-height: 0.9;
  letter-spacing: 0.0017em;
}
.legal-title .reg { font-size: 0.645em; letter-spacing: -0.05em; vertical-align: 0.42em; line-height: 0; }
.legal-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 38px;
  margin-top: 96px;
}
.game-logos { display: flex; align-items: center; gap: 58px 60px; }
.ll-tw40k { width: 150px; }
.ll-tr    { width: 194px; }
.ll-sw    { width: 240px; }
/* Each badge is a single image locked to the ESRB 2:3 ratio, so it scales as one unit */
.esrb { display: flex; gap: 4px; }
.esrb img { flex: none; width: 82px; height: auto; aspect-ratio: 2 / 3; }
.legal-text {
  align-self: stretch;
  max-width: 1240px;
  margin: 77px auto 0;
  text-align: start;
  font-size: 20px;
  line-height: 1;
}
.legal-text p + p { margin-top: 1em; }
.legal-text a { text-decoration: underline; }
.legal-text p { overflow-wrap: anywhere; }      /* long bare URLs must not set the min width */

/* =====================================================================
   NARROW DESKTOP / TABLET (768–1100) — keep two-column blades readable
   ===================================================================== */
@media (max-width: 1100px) and (min-width: 768px) {
  .feature-copy { width: 44%; }
  .feature--left .feature-copy { margin-left: 5%; }
  .steps { font-size: 24px; line-height: 32px; gap: 28px; margin-left: 8%; }
  .steps li { padding-left: 44px; }
  .game-info { grid-template-columns: 170px minmax(0, 1fr); }
  .game-logo { max-width: 150px; }
  .legal-text { font-size: 16px; }
  .product-grid { padding: 0 3%; gap: 2%; }
}

/* =====================================================================
   MOBILE — designed at 402, fluid 320–767
   ===================================================================== */
@media (max-width: 767px) {
  /* Mobile headlines are IntelOne Text Bold Italic (Figma 2177:12), not Headline */
  .feature h2, .products-title, .instructions-title, .legal-title { font-family: "IntelOne Text", Arial, sans-serif; }
  /* 38px at 402, scaling down below it so long translated words still fit at 320 */
  .feature h2, .instructions-title { font-size: min(38px, 9.45cqw); letter-spacing: 0.02em; }

  .cta { min-width: 236px; height: 45px; font-size: 20px; }

  /* ----- Hero: game collage over a nebula background, one-line headline below ----- */
  .hero .blade-bg img { object-position: 50% 0; }
  .hero-collage {
    display: block;
    position: absolute;
    top: 0;                          /* Figma 2184:55: 402 x 343, flush top-left */
    left: 0;
    width: 100cqw;
    max-width: none;
    height: auto;
    pointer-events: none;
  }
  .hero-art { position: relative; height: auto; padding: 90.55cqw 21px 0; text-align: center; }  /* headline top 364 */
  .hero-logo { display: none; }
  /* 40px line boxes so translated headlines can wrap; -5.5px margins keep one line exactly on Figma's 29px box */
  .hero-title { margin: -5.5px 0; font-size: 40.15px; line-height: 40px; text-shadow: none; }
  .hero-title span { display: inline; }
  .hero-title .l2, .hero-title .l3 { margin-left: 0; font-size: 1em; }
  .hero-sub {
    max-width: 402px;
    margin-top: 17px;
    padding: 0 21px;
    font-family: "IntelOne Display", Arial, sans-serif;
    font-size: 20px;
    line-height: 26px;
  }
  .hero .cta { margin-top: 17px; }
  .hero-ends { margin: 17px 0 45px; font-family: "IntelOne Display", Arial, sans-serif; font-size: 14px; }

  /* ----- Titles carousel: one card per view with a peek of the next ----- */
  .titles { min-height: 0; padding: 48px 0 55px; }
  .titles-title { font-size: 34px; line-height: 1.15; }
  .titles-sub { margin-top: 16px; padding: 0 24px; font-family: "IntelOne Display", Arial, sans-serif; font-size: 16px; line-height: 1.5; }
  .carousel { margin-top: 51px; }
  .carousel-track { gap: 12px; padding: 0 36px 0 20px; scroll-padding-left: 20px; }
  .game { flex: 0 0 100%; display: grid; grid-template-columns: 100%; align-content: start; }  /* % of the track's content box = viewport - 56 → 24px peek */
  .game-shot { grid-area: 1 / 1; aspect-ratio: 16 / 9; border-radius: 20px; }
  .game-info { display: contents; }
  /* Logo sits over the screenshot's bottom-left corner */
  .game-logo { grid-area: 1 / 1; align-self: end; justify-self: start; position: relative; height: auto; }
  .logo-tw40k { width: 77px; margin: 0 0 13px 8px; }
  .logo-tr    { width: 96px; margin: 0 0 19px 15px; }
  .logo-sw    { width: 131px; margin: 0 0 15px 11px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
  .game-info p { margin-top: 24px; font-family: "IntelOne Display", Arial, sans-serif; font-size: 14px; line-height: 1.4; }
  .carousel-nav { margin-top: 24px; gap: 20px; }
  .carousel-arrow { width: 40px; height: 40px; }
  .titles-note { margin-top: 24px; padding: 0 20px; font-family: "IntelOne Display", Arial, sans-serif; font-style: normal; font-size: 12px; }

  /* ----- Feature blades: art on top (cropped to the subject), copy below ----- */
  .feature { min-height: 0; padding: 0 0 48px; background: #000; }
  .feature .blade-bg { position: relative; inset: auto; z-index: 0; align-self: stretch; aspect-ratio: 402 / var(--mh); }
  .feature .blade-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, #000 100%);
  }
  .feature .blade-bg img { object-position: var(--mx) var(--my); }
  .feature-copy { position: relative; align-self: stretch; width: auto; margin: -64px 24px 0; }  /* stretch: column = viewport, never a long word's width */
  .feature--left .feature-copy { margin-left: 24px; }
  .feature h2 { margin-bottom: 16px; }
  .multitasking h2 { margin-bottom: 16px; }
  .inside h2 { font-size: min(32px, 7.96cqw); }
  .feature p { max-width: none; font-size: 14px; line-height: 1.4; }
  .feature p + p { margin-top: 1em; }

  .performance  { --mh: 400; --mx: 6%;  --my: 50%; }
  .immersive    { --mh: 340; --mx: 50%; --my: 50%; }   /* own 402x340 crop (Figma 2179:21) */
  .multitasking { --mh: 380; --mx: 3%;  --my: 30%; }
  .inside       { --mh: 320; --mx: 50%; --my: 50%; }

  /* ----- Products: stacked ----- */
  .products { min-height: 0; padding: 48px 20px 32px; }
  .products-title { max-width: 308px; padding: 0; font-size: 24px; }
  .product-grid { flex-direction: column; align-items: center; gap: 0; margin-top: 16px; padding: 0; }
  .product { flex: none; width: 100%; max-width: 307px; min-width: 0; min-height: 0; padding: 24px 13px; }
  .product-group { margin-top: 32px; }
  .products-title + .product-group { margin-top: 24px; }
  .product-group-title { padding: 0; font-size: 22px; }
  .products-disclaimer { margin-top: 24px; padding: 0; font-weight: 300; font-size: 12px; line-height: 1.45; }
  .product-group .product-grid { margin-top: 0; }

  /* ----- Instructions ----- */
  /* The art is a plain black→blue vertical ramp. Figma crops it so the blade ends at #001995,
     where the legal gradient starts; a CSS ramp hits that colour at any blade height.
     Holding it flat for the last stretch avoids a bright crease where the two ramps meet. */
  .instructions { min-height: 0; padding: 48px 24px 40px; background: linear-gradient(180deg, #000 0%, #001995 88%); }
  .instructions .blade-bg { display: none; }
  .instructions-sub { margin-top: 12px; padding: 0; font-size: 16px; line-height: 1.35; }
  .steps { margin: 32px 0 0; padding: 0; gap: 14px; font-size: 16px; line-height: 1.35; }
  .steps li { padding-inline-start: 24px; }
  .instructions .cta { margin-top: 32px; }
  .instructions-note { margin-top: 24px; padding: 0; font-weight: 300; font-size: 12px; line-height: 1.45; }

  /* ----- Legal ----- */
  .legal { min-height: 0; padding: 40px 20px 48px; background: linear-gradient(180deg, #001995 0%, #000 45%); }
  .legal-logo { width: 204px; }
  .legal-title { margin-top: 32px; font-size: 36px; }
  .legal-logos { flex-direction: column; gap: 24px; margin-top: 40px; }
  .game-logos { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .ll-tw40k { width: 82px; }
  .ll-tr    { width: 107px; }
  .ll-sw    { width: 132px; }
  .esrb img { width: 60px; }
  .legal-text { margin-top: 36px; font-size: 12px; line-height: 1.3; }
}
