:root {
  --home-bg: #f3f1ed;
  --home-ink: #17191e;
  --home-muted: #64676d;
  --home-red: #ef171b;
  --home-red-dark: #b9080d;
  --home-line: #dedbd5;
  --home-white: #fff;
}

.home-page { background: var(--home-bg); }
.home-page main { overflow: hidden; }
.home-page img { max-width: 100%; }

.home-hero {
  color: #fff;
  background:
    radial-gradient(circle at 72% 10%, rgba(239, 23, 27, .16), transparent 31%),
    linear-gradient(135deg, #15171b 0%, #21242a 58%, #15171a 100%);
}

.home-hero-inner {
  width: min(1380px, calc(100% - 56px));
  min-height: 690px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
  align-items: center;
  gap: 58px;
}

.home-hero-copy { padding: 76px 0 70px; }
.home-kicker { margin: 0 0 16px; color: var(--home-red); font-size: .72rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.home-kicker-light { color: #ff7a7d; }
.home-hero h1 { max-width: 820px; margin: 0; font-size: clamp(3rem, 5.6vw, 6.25rem); line-height: .92; letter-spacing: -.065em; }
.home-hero h1 span { color: #aeb2b9; }
.home-hero-copy > p:not(.home-kicker) { max-width: 690px; margin: 30px 0 0; color: #cfd2d7; font-size: 1.08rem; }

.home-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.home-button { min-height: 50px; padding: 13px 21px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; font-size: .82rem; font-weight: 800; transition: transform .2s, background .2s, border-color .2s; }
.home-button:hover { transform: translateY(-2px); }
.home-button-primary { color: #fff; background: var(--home-red); box-shadow: 0 12px 32px rgba(239, 23, 27, .22); }
.home-button-primary:hover { background: var(--home-red-dark); }
.home-button-secondary { color: #fff; border-color: #555a62; background: rgba(255,255,255,.04); }
.home-button-secondary:hover { border-color: #fff; }
.home-button-dark { color: #fff; border-color: #5b5e64; background: #26292f; }

.home-proof { margin: 48px 0 0; padding: 30px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; border-top: 1px solid #383c43; list-style: none; }
.home-proof li { display: grid; gap: 4px; }
.home-proof strong { color: #fff; font-size: .87rem; }
.home-proof span { color: #9499a2; font-size: .71rem; line-height: 1.4; }

.home-hero-visual { min-height: 570px; position: relative; display: grid; place-items: center; }
.home-hero-visual::before { content: ""; width: min(32vw, 440px); aspect-ratio: 1; position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 52px rgba(255,255,255,.025), 0 0 0 104px rgba(255,255,255,.018); }
.home-hero-visual img { width: min(520px, 100%); position: relative; z-index: 1; object-fit: contain; filter: drop-shadow(0 38px 40px rgba(0,0,0,.3)); }
.home-hero-visual .home-hero-photo { width: min(590px, 100%); height: auto; aspect-ratio: 4 / 3; display: block; object-fit: contain; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 34px 75px rgba(0,0,0,.42); filter: none; }
.home-hero-label, .home-hero-spec { position: absolute; z-index: 2; padding: 16px 18px; display: grid; gap: 3px; border: 1px solid rgba(255,255,255,.18); background: rgba(20,22,26,.82); backdrop-filter: blur(10px); }
.home-hero-label { top: 84px; left: -18px; }
.home-hero-spec { right: 0; bottom: 82px; }
.home-hero-label small, .home-hero-spec span { color: #aeb2b9; font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; }
.home-hero-label strong, .home-hero-spec strong { font-size: .88rem; }

.home-paths { width: min(1380px, calc(100% - 56px)); margin: -1px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--home-line); background: #fff; box-shadow: 0 18px 55px rgba(28,29,31,.07); }
.home-paths a { min-height: 126px; padding: 25px 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; border-right: 1px solid var(--home-line); transition: color .2s, background .2s; }
.home-paths a:hover { color: var(--home-red); background: #faf9f7; }
.home-paths > a > span { color: var(--home-red); font-size: .68rem; font-weight: 850; }
.home-paths div { display: grid; gap: 3px; }
.home-paths small { color: var(--home-muted); font-size: .65rem; }
.home-paths strong { font-size: .88rem; }
.home-paths b { font-size: 1rem; }

.home-section { width: min(1280px, calc(100% - 56px)); margin: auto; padding: 118px 0; }
.home-section-heading { margin-bottom: 48px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .65fr); align-items: end; gap: 70px; }
.home-section-heading h2, .home-assistance h2, .home-courses h2, .home-final h2 { margin: 0; color: var(--home-ink); font-size: clamp(2.25rem, 4.5vw, 4.65rem); line-height: .98; letter-spacing: -.055em; }
.home-section-heading > p { margin: 0; color: var(--home-muted); font-size: .95rem; }
.compact-heading { margin-bottom: 34px; }

.machine-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.machine-card { grid-column: span 4; min-width: 0; border: 1px solid var(--home-line); background: #fff; transition: transform .22s, box-shadow .22s, border-color .22s; }
.machine-card:nth-child(1), .machine-card:nth-child(2) { grid-column: span 6; }
.machine-card:hover { transform: translateY(-5px); border-color: #c9c4bc; box-shadow: 0 22px 50px rgba(30,31,34,.09); }
.machine-card-link { height: 100%; display: flex; flex-direction: column; }
.machine-media { min-height: 305px; position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #f6f6f5, #e8e7e3); }
.machine-card:nth-child(-n+2) .machine-media { min-height: 390px; }
.machine-media img { width: min(75%, 370px); height: 270px; object-fit: contain; transition: transform .25s; }
.machine-card:nth-child(-n+2) .machine-media img { height: 340px; }
.machine-card#pr1060w .machine-media img { width: 100%; height: 390px; object-fit: cover; }
.machine-card:hover .machine-media img { transform: scale(1.035); }
.machine-media small { position: absolute; left: 17px; bottom: 15px; padding: 7px 9px; color: #fff; background: #25282d; font-size: .62rem; font-weight: 750; }
.machine-media-text { align-content: center; gap: 0; color: #aeb0b4; background: linear-gradient(135deg, #202329, #32363d); }
.machine-media-text > span { font-size: 4.2rem; font-weight: 900; line-height: .9; letter-spacing: -.09em; }
.machine-media-text > strong { color: #fff; font-size: 2.1rem; letter-spacing: .12em; }
.machine-body { padding: 25px 25px 29px; display: grid; gap: 10px; }
.machine-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.machine-title h3 { margin: 0; font-size: 1.42rem; letter-spacing: -.035em; }
.machine-title span { color: var(--home-red); font-size: 1.1rem; }
.machine-area { color: var(--home-red); font-size: .76rem; }
.machine-body p { margin: 0; color: var(--home-muted); font-size: .82rem; }

.home-assistance { padding: 110px max(28px, calc((100vw - 1280px) / 2)); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .75fr); gap: 90px; color: #fff; background: linear-gradient(120deg, #181a1f 0%, #272a30 100%); }
.home-assistance h2 { color: #fff; }
.home-assistance-copy > p:not(.home-kicker) { max-width: 730px; color: #bfc3ca; }
.home-assistance-facts { margin: 0; display: grid; border-top: 1px solid #464a51; }
.home-assistance-facts div { padding: 24px 0; display: grid; grid-template-columns: 125px 1fr; gap: 22px; border-bottom: 1px solid #464a51; }
.home-assistance-facts dt { color: #fff; font-size: 1.08rem; font-weight: 850; }
.home-assistance-facts dd { margin: 0; color: #aeb3bb; font-size: .8rem; }

.home-courses { padding: 0 max(28px, calc((100vw - 1280px) / 2)); display: grid; grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr); background: #fff; }
.home-course-feature { padding: 108px 74px 108px 0; position: relative; color: #fff; background: linear-gradient(135deg, #17191e, #282b31); }
.home-course-feature::before { content: ""; position: absolute; inset: 0 100% 0 -100vw; background: #17191e; }
.home-course-feature h2 { color: #fff; font-size: clamp(2.45rem, 4.35vw, 4.5rem); }
.home-course-overline { margin: 0 0 18px; color: #9da2aa; font-size: .69rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.home-course-lead { max-width: 690px; margin: 28px 0 0; color: #c4c8ce; }
.home-course-models { max-width: 680px; margin: 22px 0 0; padding-left: 16px; border-left: 2px solid var(--home-red); color: #9fa4ac; font-size: .75rem; }
.home-course-models strong { display: block; margin-bottom: 3px; color: #fff; }
.home-course-badges { margin: 31px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; list-style: none; }
.home-course-badges li { padding: 9px 12px; border: 1px solid #4b4f57; color: #e9eaec; font-size: .68rem; font-weight: 800; }
.home-course-feature .home-text-link { align-self: center; }
.home-course-curriculum { padding: 108px 0 108px 76px; }
.home-course-curriculum-heading h3 { max-width: 660px; margin: 0; color: var(--home-ink); font-size: clamp(1.9rem, 3vw, 3.15rem); line-height: 1.02; letter-spacing: -.045em; }
.home-course-curriculum-heading > p:not(.home-kicker) { max-width: 670px; margin: 20px 0 0; color: var(--home-muted); }
.home-course-modules { margin-top: 38px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--home-line); border-left: 1px solid var(--home-line); }
.home-course-card { min-height: 215px; padding: 24px; display: grid; align-content: start; gap: 9px; border-right: 1px solid var(--home-line); border-bottom: 1px solid var(--home-line); transition: background .2s, transform .2s; }
.home-course-card:hover { background: #f8f6f2; transform: translateY(-2px); }
.home-course-card > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.home-course-card span { color: var(--home-red); font-size: .66rem; font-weight: 900; }
.home-course-card small { color: #8a8d92; font-size: .6rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.home-course-card h4 { margin: 12px 0 0; color: var(--home-ink); font-size: 1.08rem; letter-spacing: -.025em; }
.home-course-card p { margin: 0; color: var(--home-muted); font-size: .77rem; }
.home-course-card > strong { margin-top: 9px; color: var(--home-red-dark); font-size: .72rem; }
.home-course-card > strong b { font-size: .82rem; }

.home-final { padding: 88px max(28px, calc((100vw - 1280px) / 2)); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .55fr); align-items: end; gap: 70px; color: #fff; background: var(--home-red-dark); }
.home-final h2 { color: #fff; font-size: clamp(2.2rem, 4vw, 4.2rem); }
.home-final .home-kicker { color: #ffb0b2; }
.home-final-actions { display: grid; justify-items: start; gap: 18px; }
.home-final .home-button-primary { color: var(--home-red-dark); background: #fff; box-shadow: none; }
.home-text-link { color: #fff; font-size: .8rem; font-weight: 800; }

@media (max-width: 1080px) {
  .home-hero-inner { grid-template-columns: 1fr; }
  .home-hero-copy { padding-bottom: 15px; }
  .home-hero-visual { min-height: 460px; }
  .home-hero-label { left: 5%; top: 45px; }
  .home-hero-spec { right: 7%; bottom: 45px; }
  .home-paths { grid-template-columns: 1fr 1fr; }
  .home-section-heading, .home-assistance, .home-courses, .home-final { grid-template-columns: 1fr; gap: 38px; }
  .home-courses { padding-block: 0; gap: 0; }
  .home-course-feature { padding: 82px 0; }
  .home-course-feature::after { content: ""; position: absolute; inset: 0 -100vw 0 100%; background: #282b31; }
  .home-course-curriculum { padding: 82px 0; }
  .machine-card { grid-column: span 6; }
  .machine-card:last-child { grid-column: 4 / span 6; }
}

@media (max-width: 720px) {
  .home-hero-inner, .home-paths, .home-section { width: min(100% - 30px, 1280px); }
  .home-hero h1 { font-size: clamp(2.7rem, 14vw, 4.6rem); }
  .home-proof { grid-template-columns: 1fr; gap: 15px; }
  .home-hero-visual { min-height: 380px; }
  .home-hero-visual::before { width: 260px; }
  .home-hero-visual img { width: 330px; }
  .home-hero-visual .home-hero-photo { width: 100%; }
  .home-hero-label { top: 22px; left: 0; }
  .home-hero-spec { right: 0; bottom: 22px; }
  .home-paths { grid-template-columns: 1fr; }
  .home-paths a { min-height: 98px; }
  .home-section { padding: 80px 0; }
  .home-section-heading { grid-template-columns: 1fr; gap: 22px; }
  .machine-grid { display: grid; grid-template-columns: 1fr; }
  .machine-card, .machine-card:nth-child(1), .machine-card:nth-child(2), .machine-card:last-child { grid-column: auto; }
  .machine-media, .machine-card:nth-child(-n+2) .machine-media { min-height: 290px; }
  .machine-media img, .machine-card:nth-child(-n+2) .machine-media img { height: 255px; }
  .machine-card#pr1060w .machine-media img { height: 290px; }
  .home-assistance, .home-final { padding: 76px 22px; }
  .home-courses { padding-inline: 22px; }
  .home-course-feature, .home-course-curriculum { padding-block: 70px; }
  .home-course-modules { grid-template-columns: 1fr; }
  .home-assistance-facts div { grid-template-columns: 1fr; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
