/* KELDRAN - home v4, based on Facu's sketch (2026-11-17) */

/* Header: logo + contact only */
.home .nav-shell{gap:20px}
.home .nav-shell>.brand{order:0}
.home .nav-shell>.header-actions{order:1}
.home .header-actions{display:flex;align-items:center;gap:18px;margin-left:auto}
.home .header-actions .language-switcher{order:0}
.home .nav-cta{display:inline-flex;align-items:center;color:#d7e5df;background:rgba(15,26,35,.45);border:1px solid var(--line-strong);padding:11px 18px;font-weight:700;font-size:13px;border-radius:3px;transition:border-color .2s,background .2s,color .2s}
.home .nav-cta:hover{color:var(--cream);border-color:var(--mint);background:rgba(197,242,224,.08)}
.ico-arrow path{stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* Hero */
.home-hero{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:min(720px,calc(100vh - 94px));padding:70px 0 50px}
.home-hero h1{font-size:clamp(46px,6.4vw,98px);line-height:1.02;letter-spacing:-.065em;margin:0 0 44px;max-width:none;text-wrap:balance}
.home-hero h1 .aqua{color:var(--mint)}
.hero-pills{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:0;padding:0;list-style:none}
.hero-pills a{display:inline-flex;align-items:center;min-height:42px;padding:9px 20px;border:1px solid var(--line-strong);border-radius:999px;color:#d7e5df;font-size:14px;font-weight:520;background:rgba(15,26,35,.5);transition:border-color .2s,color .2s,background .2s,transform .25s cubic-bezier(.2,.75,.2,1)}
.hero-pills a:hover{border-color:var(--mint);color:var(--cream);background:rgba(196,242,223,.07);transform:translateY(-3px)}
.scroll-cue{display:grid;place-items:center;width:48px;height:48px;margin-top:64px;border-radius:50%;color:var(--mint);transition:transform .25s}
.scroll-cue svg{width:26px;height:26px}
.scroll-cue:hover{transform:translateY(4px)}
@media (prefers-reduced-motion:no-preference){
  .scroll-cue svg{animation:cue-bob 2.4s ease-in-out infinite}
  @keyframes cue-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(5px)}}
}

/* Stacked product cards */
.stack-section{position:relative;z-index:1;padding:40px 0 120px}
.stack{display:flex;flex-direction:column;gap:56px;margin:0;padding:0;list-style:none}
.stack{--step:96px}
.stack::after{content:"";display:block;height:var(--hold,38vh)}
.stack-card{position:sticky;top:calc(84px + var(--i) * var(--step));transform-origin:50% 0}
.stack-card-inner{position:relative;isolation:isolate;display:flex;min-height:min(480px,calc(100vh - 84px - 2 * var(--step) - 32px));padding:44px 46px;border:1px solid var(--line-strong);border-radius:22px;background:linear-gradient(165deg,#14212a 0%,#0f1922 70%);box-shadow:0 -14px 40px rgba(0,0,0,.35);overflow:hidden}
.stack-copy{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;width:min(100%,560px)}
.stack-copy h2{font-size:clamp(36px,4vw,58px);line-height:1.04;letter-spacing:-.055em;font-weight:620;margin:0 0 22px}
.stack-copy p{max-width:44ch;color:#a9b9c0;font-size:16px;line-height:1.7;margin:0 0 26px}
.model-pills{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 26px;padding:0;list-style:none}
.model-pills a,.model-pills span.model{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:7px 16px;border-radius:999px;border:1px solid rgba(196,242,223,.4);color:var(--mint);font-size:13px;font-weight:700;letter-spacing:.06em;transition:background .2s,border-color .2s}
.model-pills a:hover{background:rgba(196,242,223,.1);border-color:var(--mint)}
.model-pills small{font-size:11px;font-weight:500;letter-spacing:0;color:#8ea4ad}
.model-pills .is-soon{border-style:dashed;border-color:rgba(196,242,223,.28);color:#c4d6d8}
.learn-more{margin-top:auto;display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:650;color:var(--cream);padding:6px 0;border-bottom:1px solid transparent;transition:border-color .2s,color .2s}
.learn-more .ico-arrow{width:16px;height:16px;color:var(--mint);transition:transform .2s}
.learn-more:hover{color:var(--mint);border-bottom-color:currentColor}
.learn-more:hover .ico-arrow{transform:translate(2px,-2px)}
/* Animation slot = full card background. Drop each product's animation inside .stack-visual */
.stack-visual{position:absolute;inset:0;z-index:0;border-radius:inherit;overflow:hidden;pointer-events:none;
  background:radial-gradient(ellipse 60% 75% at 78% 55%,rgba(var(--acc-rgb),.16),transparent 70%)}
.stack-visual>*{position:absolute;inset:0;width:100%;height:100%}
/* keeps the copy readable over any animation */
.stack-card-inner::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;border-radius:inherit;
  background:linear-gradient(90deg,rgba(15,25,34,.92) 0%,rgba(15,25,34,.7) 34%,rgba(15,25,34,0) 62%)}

/* 3. Product colors (same tokens as the product pages) */
.stack-cybersecurity{--acc:var(--c-hugh);--acc-rgb:156,200,255}
.stack-cybersecurity .stack-visual{background:radial-gradient(ellipse 45% 70% at 68% 50%,rgba(156,200,255,.15),transparent 70%),radial-gradient(ellipse 45% 70% at 88% 60%,rgba(255,156,138,.13),transparent 70%)}
.stack-indi{--acc:var(--c-indi);--acc-rgb:184,244,222}
.stack-custom-ai{--acc:var(--c-custom);--acc-rgb:201,182,255}
.stack-card .learn-more .ico-arrow{color:var(--acc)}
.stack-card .learn-more:hover{color:var(--acc)}
.model-pills .m-hugh{--m:var(--c-hugh);--m-rgb:156,200,255}
.model-pills .m-george{--m:var(--c-george);--m-rgb:255,156,138}
.model-pills .m-logan{--m:var(--c-logan);--m-rgb:231,169,224}
.model-pills li>[class*="m-"]{color:var(--m);border-color:rgba(var(--m-rgb),.42)}
.model-pills a[class*="m-"]:hover{background:rgba(var(--m-rgb),.1);border-color:var(--m)}
.model-pills li>.is-soon[class*="m-"]{border-color:rgba(var(--m-rgb),.32);cursor:default}
.model-pills a .ico-arrow{width:12px;height:12px;margin-left:-2px;transition:transform .2s}
.model-pills a:hover .ico-arrow{transform:translate(2px,-2px)}

/* Nothing fits */
.nothing-fits{position:relative;z-index:1;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:center;min-height:100vh;min-height:100svh;text-align:center;padding:130px 0;background:#070b11;color:#fff}
.nothing-fits h2{font-size:clamp(40px,5vw,72px);line-height:1.05;letter-spacing:-.06em;font-weight:620;margin:0 0 18px;color:#fff}
.nothing-fits p{max-width:52ch;margin:0 auto 34px;font-size:17px;line-height:1.65;color:#fff}
.nothing-fits .learn-more{margin-top:0;color:#fff}
.nothing-fits .learn-more:hover{color:#fff;border-bottom-color:#fff}
/* CursorGrid background (cursor-grid.js) */
.nothing-fits>.container{position:relative;z-index:1}
.cursor-grid__canvas{position:absolute;inset:0;z-index:0;display:block;width:100%;height:100%;pointer-events:none}

/* Contact */
.home-contact{position:relative;z-index:1;padding:120px 0}
.home-contact-head{display:flex;align-items:center;justify-content:space-between;gap:40px;flex-wrap:wrap}
.home-contact-head h2{font-size:clamp(46px,6vw,86px);line-height:1.02;letter-spacing:-.065em;font-weight:620;margin:0}
.home-contact-head h2 span{display:block}
.email-btn{min-width:190px;justify-content:center}
.email-btn .ico-arrow{width:16px;height:16px;transition:transform .25s}
.email-btn[aria-expanded="true"] .ico-arrow{transform:rotate(90deg)}
.contact-reveal{display:grid;grid-template-rows:0fr;transition:grid-template-rows .45s cubic-bezier(.2,.75,.2,1)}
.contact-reveal.is-open{grid-template-rows:1fr}
.contact-reveal>div{overflow:hidden}
.contact-reveal .contact-panel{max-width:760px;margin:56px 0 0 auto}

/* Small footer */
.home-footer{background:#070b11;border-top:1px solid var(--line)}
.home-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;padding:26px 0 30px}
.home-footer .brand-icon{width:30px;height:30px}
.home-footer .brand-text>span{font-size:15px}
.home-footer .brand-text>small{display:none}
.footer-links{display:flex;align-items:center;flex-wrap:wrap;gap:8px 26px;margin:0;padding:0;list-style:none;font-size:13px;color:#8a9ea6}
.footer-links a,.footer-links button{color:#c3d1d1;background:none;border:0;padding:4px 0;font-size:13px;transition:color .2s}
.footer-links a:hover,.footer-links button:hover{color:var(--mint)}
.footer-links .social{display:flex;gap:14px}
.footer-links .social svg{width:17px;height:17px;display:block}

/* FAQ / process dialogs */
.home-dialog{width:min(720px,calc(100% - 32px));max-height:min(80vh,760px);padding:0;border:1px solid var(--line-strong);border-radius:18px;background:#0f1922;color:var(--cream)}
.home-dialog::backdrop{background:rgba(4,8,12,.72);backdrop-filter:blur(4px)}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 30px 10px}
.dialog-head h2{font-size:32px;letter-spacing:-.04em;font-weight:620;margin:0}
.dialog-close{width:40px;height:40px;border-radius:50%;border:1px solid var(--line-strong);background:transparent;color:var(--cream);font-size:20px;line-height:1}
.dialog-close:hover{border-color:var(--mint);color:var(--mint)}
.dialog-body{padding:6px 30px 30px}
.home-dialog .faq-items summary{font-size:15px}
.process-steps{margin:10px 0 0;padding:0;list-style:none;counter-reset:step}
.process-steps li{display:grid;grid-template-columns:44px 1fr;gap:4px 14px;padding:20px 0;border-top:1px solid var(--line)}
.process-steps li::before{counter-increment:step;content:counter(step);grid-row:span 2;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1px solid rgba(196,242,223,.4);color:var(--mint);font-size:14px;font-weight:700}
.process-steps strong{font-size:16px;font-weight:650}
.process-steps p{margin:0;color:#a9b9c0;font-size:14px;line-height:1.6}

/* Responsive */
@media (max-width:980px){
  .stack-card-inner{padding:34px 30px;min-height:min(440px,calc(100vh - 84px - 2 * var(--step) - 32px))}
  .stack-card-inner::after{background:linear-gradient(180deg,rgba(15,25,34,.9) 0%,rgba(15,25,34,.55) 55%,rgba(15,25,34,.2) 100%)}
  .contact-reveal .contact-panel{margin-left:0}
}
@media (max-width:700px){
  .home .brand-text>small{display:none}
  .home .header-actions{gap:10px}
  .home .nav-cta{padding:10px 14px;font-size:12px}
  .home-hero{padding:56px 0 30px;min-height:calc(100svh - 73px)}
  .home-hero h1{margin-bottom:34px;font-size:clamp(28px,9vw,46px)} /* keeps the two lines on phones */
  .hero-pills a{font-size:13px;padding:8px 15px;min-height:40px}
  .scroll-cue{margin-top:40px}
  .stack-section{padding:20px 0 80px}
  .stack{gap:32px}
  .stack{--step:70px}
  .stack-card{top:calc(80px + var(--i) * var(--step))}
  .stack-copy h2{font-size:34px;margin-bottom:18px}
  .stack-card-inner{padding:22px 22px 26px;border-radius:18px;min-height:min(420px,calc(100svh - 80px - 2 * var(--step) - 24px))}
  .stack-copy p{font-size:15px}
  .nothing-fits{padding:90px 0}
  .nothing-fits p{font-size:15px}
  .home-contact{padding:84px 0}
  .email-btn{width:100%}
  .home-footer-inner{flex-direction:column;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){
  .stack-card{position:relative;top:auto}
  .stack::after{display:none}
}
