/* Page-local styles for the redesigned home page. Shared controls, typography and final CTA live in site.css. */
.home-page{
  --home-meta-size:11px;
  --home-caption-size:12px;
  --home-support-size:13px;
  overflow:hidden;
  background:
    radial-gradient(ellipse 72rem 46rem at -12% -8%,rgba(96,165,250,.24),transparent 58%),
    radial-gradient(ellipse 64rem 42rem at 108% 8%,rgba(94,234,212,.15),transparent 58%),
    linear-gradient(145deg,#050b14 0%,#08172a 42%,#071321 68%,#050b14 100%);
}
.home-page,.home-page *{box-sizing:border-box}
.home-page a{color:inherit;text-decoration:none}
.home-page img,.home-page svg{display:block;max-width:100%}
.home-page h1,.home-page h2,.home-page h3,.home-page p{margin-top:0}
.home-page .section{position:relative;padding:clamp(72px,7vw,104px) 0}
.home-page .section::before{content:"";position:absolute;top:0;right:0;left:0;height:1px;background:linear-gradient(90deg,transparent 4%,rgba(94,234,212,.2),rgba(96,165,250,.14),transparent 96%)}

/* Hero */
.home-hero{position:relative;isolation:isolate;padding:clamp(48px,6vw,78px) 0 clamp(58px,7vw,88px);background:radial-gradient(circle at 82% 18%,rgba(64,150,255,.15),transparent 35%)}
.home-hero::before{content:"";position:absolute;inset:0;z-index:-2;background-image:linear-gradient(rgba(125,211,252,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(125,211,252,.025) 1px,transparent 1px);background-size:52px 52px;mask-image:linear-gradient(to bottom,black,transparent 88%)}
.home-hero::after{content:"";position:absolute;z-index:-1;top:3%;right:-10%;width:min(680px,52vw);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(94,234,212,.13),rgba(96,165,250,.06) 42%,transparent 70%);filter:blur(10px)}
.home-hero__grid{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(460px,.97fr);gap:clamp(38px,5vw,72px);align-items:center}
.home-hero__copy{min-width:0;padding:12px 0}
.home-hero h1{max-width:760px;margin:17px 0 24px;color:var(--sf-text);font-size:clamp(48px,5.2vw,74px);font-weight:720;line-height:.98;letter-spacing:-.057em}
.home-hero h1 span{display:block;margin-top:7px;background:linear-gradient(135deg,#93f6e5 0%,#7dd3fc 54%,#93c5fd 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.home-hero__lead{max-width:650px;margin-bottom:0;color:#bdc9db;font-size:18px;line-height:1.68}
.home-hero__actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.home-hero__facts{display:flex;flex-wrap:wrap;gap:9px;margin-top:28px}
.home-hero__facts span{display:inline-flex;min-height:38px;align-items:center;gap:6px;padding:8px 12px;border:1px solid rgba(191,211,235,.14);border-radius:999px;background:rgba(255,255,255,.026);color:#9fb0c4;font-size:12.5px;line-height:1.35}
.home-hero__facts strong{color:#eaf7ff;font-weight:850}
.home-hero__media{position:relative;min-width:0}
.home-video-card{position:relative;isolation:isolate;overflow:hidden;aspect-ratio:4 / 3;border:1px solid rgba(191,211,235,.18);border-radius:28px;background:#07111f;box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 34px 90px rgba(0,0,0,.34)}
.home-video-card::before{content:"";position:absolute;inset:-18px;z-index:-1;background:url('/assets/img/hero/hero-machine-poster.webp') center 39% / cover no-repeat;filter:blur(24px) saturate(.78);opacity:.42;transform:scale(1.08)}
.home-video-card::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit;background:linear-gradient(180deg,rgba(4,10,18,.08),rgba(4,10,18,.03) 48%,rgba(4,10,18,.66));pointer-events:none}
.home-video-card .hero-video{display:block;width:100%;height:100%;object-fit:cover;object-position:center 39%;filter:saturate(.78) contrast(1.04)}
.home-video-card__shade{position:absolute;inset:0;z-index:2;background:linear-gradient(90deg,rgba(4,12,22,.16),transparent 28%,transparent 72%,rgba(4,12,22,.13));pointer-events:none}
.home-video-card__label{position:absolute;z-index:3;top:18px;left:18px;display:inline-flex;min-height:34px;align-items:center;gap:9px;padding:8px 12px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(4,12,22,.68);color:#dfeaf5;font-size:12.5px;font-weight:780;line-height:1.25;backdrop-filter:blur(12px)}
.home-video-card__status{width:8px;height:8px;border-radius:50%;background:var(--sf-cyan);box-shadow:0 0 0 5px rgba(94,234,212,.11)}
body.page-public .home-video-card__action{position:absolute;z-index:4;right:18px;bottom:18px;display:flex;min-height:60px;align-items:center;gap:12px;padding:10px 15px 10px 10px;border:1px solid rgba(255,255,255,.18);border-radius:17px;background:rgba(4,12,22,.84);color:var(--sf-text);box-shadow:0 16px 38px rgba(0,0,0,.24);backdrop-filter:blur(14px)}
.home-video-card__action>span:last-child{display:grid;gap:2px;text-align:left}
.home-video-card__action strong{font-size:14px;line-height:1.2}
.home-video-card__action small{color:#a4b5c8;font-size:12px;line-height:1.25}
.home-video-card__play{position:relative;display:grid;width:40px;height:40px;place-items:center;border-radius:13px;background:linear-gradient(135deg,var(--sf-cyan),var(--sf-blue));box-shadow:0 10px 26px rgba(24,199,220,.18)}
.home-video-card__play::before{content:"";margin-left:3px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:9px solid #06111f}

/* Product showcase */
.home-directions{background:linear-gradient(180deg,rgba(7,19,33,.76),rgba(5,14,25,.96))}
.home-showcase{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:18px;align-items:stretch}
.home-showcase-card{min-width:0;overflow:hidden;border:1px solid rgba(191,211,235,.16);border-radius:24px;background:linear-gradient(145deg,rgba(255,255,255,.05),rgba(255,255,255,.018));box-shadow:var(--ui-shadow-card-rest);transition:border-color var(--ui-motion-fast) var(--ui-ease-release),box-shadow var(--ui-motion-fast) var(--ui-ease-release)}
.home-showcase-card:hover{border-color:rgba(94,234,212,.24);box-shadow:var(--ui-shadow-card-hover)}
.home-showcase-card--staples{display:grid;grid-template-columns:minmax(250px,.9fr) minmax(0,1.1fr);min-height:430px}
.home-showcase-card__visual{position:relative;display:block;min-height:430px;overflow:hidden;border-right:1px solid rgba(191,211,235,.12);background:linear-gradient(145deg,#c6cbd0,#dde1e5)}
.home-showcase-card__visual::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 46%,transparent 48%,rgba(7,15,24,.12) 100%),linear-gradient(180deg,rgba(5,12,20,.03),rgba(5,12,20,.16));box-shadow:inset 0 0 42px rgba(5,12,20,.1);pointer-events:none}
.home-showcase-card__visual picture,.home-showcase-card__visual img{display:block;width:100%;height:100%}
.home-showcase-card__visual img{object-fit:cover;object-position:center;filter:saturate(.72) contrast(1.09) brightness(.94);transition:transform .5s var(--sf-ease-standard),filter .5s var(--sf-ease-standard)}
.home-showcase-card:hover .home-showcase-card__visual img{transform:scale(1.012);filter:saturate(.78) contrast(1.1) brightness(.95)}
.home-showcase-card__body{display:flex;min-width:0;flex-direction:column;padding:31px 30px}
.home-showcase-card__eyebrow{display:block;margin-bottom:13px;color:var(--sf-cyan);font-size:var(--home-meta-size);font-weight:900;line-height:1.35;letter-spacing:.105em;text-transform:uppercase}
.home-showcase-card h3{margin:0 0 13px;color:var(--sf-text);font-size:clamp(27px,2.55vw,36px);line-height:1.08;letter-spacing:-.037em}
.home-showcase-card p{margin:0;color:#aebed0;font-size:14px;line-height:1.62}
.home-showcase-card__link{display:inline-flex;align-items:center;gap:8px;width:max-content;margin-top:auto;padding-top:23px;color:var(--sf-cyan);font-size:15px;font-weight:850;line-height:1.35}
.home-showcase-card__link::after{content:"→";transition:transform var(--ui-motion-fast) var(--ui-ease-release)}
.home-showcase-card:hover .home-showcase-card__link::after{transform:translateX(4px)}
.home-showcase-card--custom{display:flex;min-height:430px;flex-direction:column;padding:28px}
.home-showcase-card__custom-head h3{max-width:15ch;font-size:clamp(25px,2.2vw,32px)}
.home-showcase-card__custom-head p{max-width:48ch;font-size:13px;line-height:1.55}
.home-custom-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:22px}
.home-custom-gallery figure{min-width:0;overflow:hidden;margin:0;border:1px solid rgba(191,211,235,.14);border-radius:15px;background:rgba(255,255,255,.025)}
.home-custom-gallery picture{display:block;overflow:hidden;aspect-ratio:4 / 5;background:#d9dcdf}
.home-custom-gallery img{width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.7) contrast(1.02);transition:transform .48s var(--sf-ease-standard)}
.home-showcase-card:hover .home-custom-gallery img{transform:scale(1.015)}
.home-custom-gallery figcaption{display:flex;min-height:46px;align-items:center;padding:9px 10px;color:#d0dbe6;font-size:var(--home-caption-size);font-weight:760;line-height:1.35}
.home-showcase-card__custom-foot{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:end;margin-top:auto;padding-top:18px}
.home-showcase-card__custom-foot p{color:#97aabd;font-size:var(--home-support-size);line-height:1.5}
.home-showcase-card__custom-foot .home-showcase-card__link{margin-top:0;padding-top:0;white-space:nowrap}
.home-showcase-proof{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden;margin-top:18px;border:1px solid rgba(94,234,212,.16);border-radius:18px;background:rgba(94,234,212,.04)}
.home-showcase-proof span{position:relative;display:flex;min-height:60px;align-items:center;padding:14px 18px 14px 42px;border-left:1px solid rgba(191,211,235,.1);color:#c5d2df;font-size:var(--home-support-size);font-weight:750;line-height:1.4}
.home-showcase-proof span:first-child{border-left:0}
.home-showcase-proof span::before{content:"✓";position:absolute;left:17px;display:grid;width:17px;height:17px;place-items:center;border-radius:6px;background:rgba(94,234,212,.11);color:var(--sf-cyan);font-size:10px;font-weight:900}

/* Parameters */
.home-parameters{background:radial-gradient(circle at 86% 20%,rgba(96,165,250,.07),transparent 32%),linear-gradient(180deg,rgba(5,14,25,.98),rgba(8,23,40,.94))}
.home-parameters__panel{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden;border:1px solid rgba(191,211,235,.16);border-radius:22px;background:linear-gradient(145deg,rgba(255,255,255,.047),rgba(255,255,255,.016));box-shadow:var(--ui-shadow-card-rest)}
.home-parameters__panel article{display:grid;grid-template-columns:54px minmax(0,1fr);gap:14px;align-items:start;min-height:152px;padding:24px 22px;border-left:1px solid rgba(191,211,235,.11)}
.home-parameters__panel article:first-child{border-left:0}
.home-parameter__mark{display:grid;width:54px;height:38px;place-items:center;border:1px solid rgba(94,234,212,.22);border-radius:11px;background:rgba(94,234,212,.06);color:var(--sf-cyan);font-size:15px;font-weight:900;line-height:1}
.home-parameter__mark--wide{font-size:12px;letter-spacing:.03em}
.home-parameters__panel strong{display:block;margin:2px 0 7px;color:var(--sf-text);font-size:18px;line-height:1.3}
.home-parameters__panel p{margin:0;color:#9fb0c4;font-size:13px;line-height:1.52}
.home-calculation-note{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:30px;align-items:center;margin-top:18px;padding:23px 24px;border:1px solid rgba(94,234,212,.19);border-radius:20px;background:radial-gradient(circle at 0 0,rgba(94,234,212,.08),transparent 36%),linear-gradient(145deg,rgba(12,31,52,.94),rgba(4,13,24,.98));box-shadow:var(--ui-shadow-card-rest)}
.home-calculation-note span{display:block;margin-bottom:6px;color:var(--sf-cyan);font-size:var(--home-meta-size);font-weight:900;line-height:1.35;letter-spacing:.1em;text-transform:uppercase}
.home-calculation-note strong{display:block;color:var(--sf-text);font-size:17px;line-height:1.35}
.home-calculation-note p{margin:5px 0 0;color:#95a8bd;font-size:13px;line-height:1.5}
.home-calculation-note .btn{white-space:nowrap}

/* Process */
.home-process{background:linear-gradient(158deg,#07111f,#0c1d32 58%,#050b14)}
.home-process__panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden;border:1px solid rgba(191,211,235,.15);border-radius:22px;background:linear-gradient(145deg,rgba(255,255,255,.042),rgba(255,255,255,.017));box-shadow:var(--ui-shadow-card-rest)}
.home-process__panel article{display:grid;grid-template-columns:48px minmax(0,1fr);gap:15px;align-items:start;min-height:190px;padding:27px 25px;border-left:1px solid rgba(191,211,235,.12)}
.home-process__panel article:first-child{border-left:0}
.home-process__panel article>span{display:grid;width:48px;height:34px;place-items:center;border:1px solid rgba(94,234,212,.22);border-radius:10px;background:rgba(94,234,212,.065);color:var(--sf-cyan);font-size:12px;font-weight:900;letter-spacing:.04em}
.home-process__panel h3{margin:2px 0 9px;color:var(--sf-text);font-size:21px;line-height:1.2;letter-spacing:-.025em}
.home-process__panel p{max-width:340px;margin:0;color:#aebed0;font-size:14px;line-height:1.58}
.home-process__result{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:center;margin-top:18px;padding:18px 20px;border:1px solid rgba(94,234,212,.16);border-radius:18px;background:rgba(94,234,212,.045)}
.home-process__check{display:grid;width:36px;height:36px;place-items:center;border-radius:11px;background:rgba(94,234,212,.12);color:var(--sf-cyan);font-size:18px;font-weight:900}
.home-process__result p{margin:0;color:#aebed0;font-size:14px;line-height:1.5}
.home-process__result strong{color:var(--sf-text)}

/* Final CTA and modal */
.home-final{padding-top:clamp(64px,6vw,84px)!important;padding-bottom:clamp(72px,7vw,98px)!important;background:#050b14}
.home-final .final-shell{grid-template-columns:minmax(0,1fr) auto;gap:34px;padding:clamp(34px,4vw,48px)}
.home-final .final-shell h2{max-width:800px}
.home-final__actions{display:grid;gap:10px;justify-items:stretch;margin:0}
.home-final__actions .btn{justify-content:center;white-space:nowrap}
.video-modal-box{max-width:min(620px,calc(100vw - 32px));padding:24px}
.video-modal-head{padding-right:42px}
.video-modal-head h2{margin:10px 0 8px;color:var(--sf-text);font-size:clamp(25px,4vw,35px);line-height:1.08;letter-spacing:-.03em}
.video-modal-head p{margin:0 0 18px;color:var(--sf-text-muted)}
.video-modal-frame{overflow:hidden;border:1px solid rgba(255,255,255,.14);border-radius:20px;background:#050914;box-shadow:0 18px 50px rgba(0,0,0,.28)}
.video-modal-frame video{display:block;width:100%;max-height:min(74vh,760px);background:#050914}

@media (max-width:1100px){
  .home-hero__grid{grid-template-columns:minmax(0,1fr) minmax(390px,.9fr);gap:34px}
  .home-hero__facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .home-hero__facts span{min-height:36px;justify-content:center;padding:7px 8px;font-size:11.5px;white-space:nowrap}
  .home-hero h1{font-size:clamp(45px,5.2vw,62px)}
  .home-parameters__panel{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-parameters__panel article:nth-child(3){border-left:0;border-top:1px solid rgba(191,211,235,.11)}
  .home-parameters__panel article:nth-child(4){border-top:1px solid rgba(191,211,235,.11)}
}

@media (max-width:900px){
  .home-hero{padding-top:36px}
  .home-hero__grid{grid-template-columns:1fr;gap:32px}
  .home-hero__copy{max-width:760px;padding:4px 0 0}
  .home-hero h1{font-size:clamp(44px,7vw,62px)}
  .home-hero__lead{max-width:720px}
  .home-hero__media{width:min(100%,760px)}
  .home-video-card{aspect-ratio:16 / 9}
  .home-video-card .hero-video{object-position:center 37%}
  .home-showcase{grid-template-columns:1fr}
  .home-showcase-card--staples{grid-template-columns:minmax(280px,.86fr) minmax(0,1.14fr);min-height:390px}
  .home-showcase-card__visual{min-height:390px}
  .home-showcase-card--custom{min-height:0}
  .home-process__panel{grid-template-columns:1fr}
  .home-process__panel article,.home-process__panel article:first-child{min-height:0;border-top:1px solid rgba(191,211,235,.12);border-left:0}
  .home-process__panel article:first-child{border-top:0}
  .home-final .final-shell{grid-template-columns:1fr}
  .home-final__actions{display:flex;flex-wrap:wrap;justify-content:flex-start}
}

@media (min-width:701px){
  body.page-home:has(.cookie-banner.is-visible) .home-hero__copy,
  body.page-home:has(.cookie-banner.active) .home-hero__copy{margin-top:-24px}
}

@media (max-width:700px){
  .home-page .section{padding:64px 0}
  .home-hero{padding:28px 0 58px}
  .home-hero h1{margin-top:14px;font-size:clamp(38px,10.4vw,52px);line-height:1.01}
  .home-hero__lead{font-size:16px;line-height:1.62}
  .home-hero__actions{display:grid;grid-template-columns:1fr;margin-top:25px}
  .home-hero__actions .btn{justify-content:center}
  .home-hero__facts{display:grid;grid-template-columns:repeat(2,max-content);gap:7px;margin-top:22px;justify-content:start}
  .home-hero__facts span{width:max-content;justify-content:flex-start;border-radius:999px;font-size:12.5px;white-space:nowrap}
  .home-hero__facts span:nth-child(3){grid-column:1 / -1}
  body.page-home:has(.cookie-banner.is-visible) .home-hero__copy,
  body.page-home:has(.cookie-banner.active) .home-hero__copy{margin-top:-30px}
  body.page-home:has(.cookie-banner.is-visible) .home-hero__media,
  body.page-home:has(.cookie-banner.active) .home-hero__media{margin-top:104px}
  .home-video-card{aspect-ratio:4 / 3;border-radius:22px}
  .home-video-card .hero-video{object-position:center 39%}
  .home-video-card__label{top:13px;left:13px}
  .home-video-card__action{right:13px;bottom:13px;min-height:54px}
  .home-showcase-card{border-radius:20px}
  .home-showcase-card--staples{grid-template-columns:1fr;min-height:0}
  .home-showcase-card__visual{min-height:0;aspect-ratio:4 / 3;border-right:0;border-bottom:1px solid rgba(191,211,235,.12)}
  .home-showcase-card__visual img{object-fit:contain;object-position:center}
  .home-showcase-card__body{padding:24px 22px 25px}
  .home-showcase-card h3{font-size:28px}
  .home-showcase-card--custom{padding:24px 22px}
  .home-showcase-card__custom-head h3{max-width:none}
  .home-custom-gallery{gap:7px}
  .home-custom-gallery figcaption{min-height:50px;padding:9px 8px;font-size:11.5px;line-height:1.35}
  .home-showcase-card__custom-foot{grid-template-columns:1fr;align-items:start}
  .home-showcase-card__custom-foot .home-showcase-card__link{margin-top:2px}
  .home-showcase-proof{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-showcase-proof span:nth-child(3){border-top:1px solid rgba(191,211,235,.1);border-left:0}
  .home-showcase-proof span:nth-child(4){border-top:1px solid rgba(191,211,235,.1)}
  .home-parameters__panel{grid-template-columns:1fr}
  .home-parameters__panel article,.home-parameters__panel article:nth-child(3),.home-parameters__panel article:nth-child(4){min-height:0;border-top:1px solid rgba(191,211,235,.11);border-left:0}
  .home-parameters__panel article:first-child{border-top:0}
  .home-calculation-note{grid-template-columns:1fr;padding:21px}
  .home-calculation-note .btn{width:100%;justify-content:center}
  .home-process__panel article{padding:22px 20px}
  .home-process__result{padding:17px}
  .home-final .final-shell{padding:29px 22px}
  .home-final__actions{display:grid;grid-template-columns:1fr}
  .home-final__actions .btn{width:100%}
}

@media (max-width:420px){
  .home-video-card__label{max-width:calc(100% - 26px);font-size:11.5px}
  .home-video-card__action{left:13px;right:13px;justify-content:center}
  .home-custom-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .home-custom-gallery figure{display:block}
  .home-custom-gallery figure:nth-child(3){grid-column:1 / -1;display:grid;grid-template-columns:104px minmax(0,1fr);align-items:center}
  .home-custom-gallery picture{aspect-ratio:1 / 1}
  .home-custom-gallery figcaption{min-height:44px;padding:10px;font-size:11.5px;line-height:1.35}
  .home-custom-gallery figure:nth-child(3) figcaption{min-height:104px;padding:14px}
  .home-process__panel article{grid-template-columns:44px minmax(0,1fr);gap:13px}
  .home-process__panel article>span{width:44px}
}
