/* =========================================================
   EVO AI PRO — home.css (v17.3)  ·  index.html only
   Hero with the airplane-mode demo, privacy panel, feature groups,
   device cards. Tokens, glass, type and the font live in style.css.
   ========================================================= */

/* ---------- Section rhythm: headings sit on the left, like a page in the app ---------- */
.home-sec{padding:112px 0}
.sec-head{max-width:760px;margin:0 0 44px}
.sec-head h2{margin:0}
.sec-sub{font-size:1.1rem;max-width:560px;margin-top:18px}

/* ---------- HERO ---------- */
.home-hero{
  max-width:1200px;margin:0 auto;padding:150px 24px 88px;
  display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:48px;align-items:center;
  min-height:min(100vh,940px);
}
.hh-copy{position:relative;z-index:2}
.hh-title{
  margin:26px 0 26px;font-size:clamp(3.1rem,7vw,5.9rem);
  font-weight:640;font-stretch:76%;letter-spacing:-.035em;word-spacing:.08em;line-height:.93;
}
.hh-sub{font-size:1.2rem;line-height:1.55;max-width:31ch;color:var(--text-mute)}
.hh-cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:34px}
.hh-note{margin-top:18px;font-size:.9rem;color:var(--text-dim)}

.hh-stage{margin:0;display:flex;flex-direction:column;align-items:center;gap:22px}
.hh-device{width:300px;aspect-ratio:auto;filter:drop-shadow(0 36px 48px rgba(21,32,58,.26)) drop-shadow(0 6px 12px rgba(21,32,58,.12))}
.hh-cap{display:inline-flex;align-items:center;gap:8px;font-size:.92rem;font-weight:500;color:var(--text-mute)}
.hh-cap svg{width:16px;height:16px;transform:rotate(90deg);color:var(--text)}

/* ---------- The demo, laid over the real "New Chat" screenshot ----------
   All sizes are in cqw (percent of the screen's width), so it matches the
   screenshot at every phone size. Positions come from the screenshot itself. */
.hh-device .device-frame{height:auto}
/* the screen itself has the screenshot's exact shape, so the overlay lines up with it at every size */
.hh-screen{container-type:inline-size;height:auto;aspect-ratio:1206/2622}
.demo{
  position:absolute;inset:0;pointer-events:none;border-radius:inherit;overflow:hidden;
  font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;text-align:left;
}
/* status bar: the airplane glyph replaces signal and Wi-Fi, the battery stays */
.demo-status{
  position:absolute;left:69.2%;width:14.6%;top:2.1%;height:3.4%;background:#eef2f5;
  display:flex;align-items:center;justify-content:flex-end;padding-right:1.2cqw;
}
.demo-status svg{width:4.6cqw;height:4.6cqw;color:#0c0c0e;transform:rotate(90deg)}
/* hides the empty "How can I help?" state once the chat starts (same gradient as the app) */
.demo-cover{
  position:absolute;left:0;right:0;top:15%;height:30%;
  background:linear-gradient(180deg,#eef7ff 0%,#edf6fe 17%,#e9f4ff 50%,#e5f2ff 83%,#e3f1ff 100%);
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 12%,#000 88%,transparent);
  mask-image:linear-gradient(180deg,transparent,#000 12%,#000 88%,transparent);
}
.demo-chat{position:absolute;left:3.7%;right:4.2%;top:15.4%;display:flex;flex-direction:column;gap:3.4cqw}
.dm{font-size:3.7cqw;line-height:1.32;letter-spacing:-.01em}
.dm-user{
  align-self:flex-end;max-width:74%;padding:2.5cqw 3.9cqw;border-radius:5.4cqw;
  background:#2385f6;color:#fff;box-shadow:0 1.4cqw 3.4cqw rgba(35,133,246,.32);
}
.dm-row{display:flex;align-items:flex-end;gap:2.3cqw}
.dm-avatar{
  flex:none;width:8.3cqw;height:8.3cqw;border-radius:50%;display:grid;place-items:center;
  background:#f2f4f2;box-shadow:0 0 0 .3cqw #c0d9e3,0 .8cqw 2cqw rgba(30,80,140,.14);
}
/* .demo prefix beats style.css's `.device-screen.shot img` (which stretches every image in the screen) */
.demo .dm-avatar img{width:48%;height:48%;object-fit:contain;border-radius:0}
.dm-ai{
  max-width:66cqw;padding:3.4cqw 4cqw;border-radius:4.4cqw;color:#111827;
  background:#f1f9ff;box-shadow:0 1cqw 3.4cqw rgba(30,80,140,.17),inset 0 0 0 .25cqw rgba(255,255,255,.9);
}
.dm-dots{display:none;gap:1.2cqw;padding:.6cqw 0}
.dm-dots i{width:1.7cqw;height:1.7cqw;border-radius:50%;background:#7f95ad;animation:dmDot 1.2s infinite ease-in-out both}
.dm-dots i:nth-child(2){animation-delay:.16s}
.dm-dots i:nth-child(3){animation-delay:.32s}
@keyframes dmDot{0%,80%,100%{transform:scale(.6);opacity:.45}40%{transform:scale(1);opacity:1}}

/* Without JavaScript the finished conversation simply shows. With it, hero-demo.js plays it once:
   question → typing dots → the answer streaming in. */
.demo.js .demo-cover,.demo.js .dm-user,.demo.js .dm-row{opacity:0}
.demo.js .dm-user{transform:translateY(2cqw) scale(.92);transform-origin:100% 100%}
.demo.js .dm-row{transform:translateY(2cqw)}
.demo.js .demo-cover{transition:opacity .6s ease}
.demo.js .dm-user,.demo.js .dm-row{transition:opacity .35s ease,transform .55s cubic-bezier(.2,1.3,.4,1)}
.demo.js.s1 .demo-cover,.demo.js.s1 .dm-user{opacity:1;transform:none}
.demo.js.s2 .dm-row{opacity:1;transform:none}
.demo.js.s2:not(.s3) .dm-dots{display:inline-flex}
.demo.js.s2:not(.s3) .dm-text{display:none}

/* ---------- PRIVACY: one panel, one sentence, four facts ---------- */
.privacy-panel{
  display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:56px;
  padding:52px 52px 48px;border-radius:34px;align-items:start;
}
.pp-lead{
  font-size:clamp(1.9rem,3.4vw,2.8rem);line-height:1.04;color:var(--text);
  font-weight:620;font-stretch:80%;letter-spacing:-.03em;
}
.pp-list{display:grid;grid-template-columns:1fr 1fr;gap:30px 36px}
.pp-list li{display:grid;grid-template-columns:26px 1fr;gap:14px;align-items:start}
.pp-ico{color:var(--brand);padding-top:1px}
.pp-ico svg{width:24px;height:24px;display:block}
.pp-list h3{font-size:1.06rem;margin-bottom:5px}
.pp-list p{font-size:.95rem;line-height:1.55}

/* ---------- CONVERSATIONS row ---------- */
.feature-row .feature-grid{gap:72px}
.feature-text h2{margin:0 0 22px}
.feature-list li::before{left:0;top:calc(.8em - 1px);width:10px;height:2px;border-radius:2px;background:var(--brand)}

/* ---------- Phone screens: while a screenshot downloads, show the app's own light background
   (never a black or navy block) ---------- */
.device-screen.shot{background:linear-gradient(180deg,#eef2f5 0 13.3%,#eef7ff 13.3%,#d4eaff 100%)}
#evo-showcase .phone img:not(.pb){background:linear-gradient(180deg,#eef2f5 0 13.3%,#eef7ff 13.3%,#d4eaff 100%)}

/* ---------- SHOWCASE: heading spacing only, behaviour untouched ---------- */
#evo-showcase .section-head{margin-bottom:24px}

/* ---------- FEATURES: three groups ---------- */
.feat-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.feat-group{padding:34px 30px 32px;border-radius:30px}
.fg-title{font-size:1.6rem;font-weight:620;font-stretch:82%;letter-spacing:-.025em;margin-bottom:24px}
.fg-list{display:flex;flex-direction:column}
.fg-list li{display:grid;grid-template-columns:24px 1fr;gap:14px;padding:20px 0;border-top:1px solid var(--border)}
.fg-list li:first-child{border-top:0;padding-top:0}
.fg-list li:last-child{padding-bottom:0}
.fg-ico{color:var(--brand);padding-top:1px}
.fg-ico svg{width:22px;height:22px;display:block}
.fg-list h4{font-size:1.02rem;font-weight:600;letter-spacing:-.005em;color:var(--text);margin-bottom:4px}
.fg-list p{font-size:.94rem;line-height:1.55}

/* ---------- ABOUT + CTA: same cards, quieter type ---------- */
.creator-card h2,.cta-card h2{font-stretch:82%}
.creator-card .btn-primary{gap:0}

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  /* phones and tablets: headings and the hero sit in the centre, like before; panel contents stay left */
  .home-hero{grid-template-columns:1fr;gap:56px;padding:128px 24px 72px;min-height:0;text-align:center}
  .hh-copy{display:flex;flex-direction:column;align-items:center}
  .hh-sub{max-width:36ch;margin-left:auto;margin-right:auto}
  .hh-cta{justify-content:center}
  .sec-head{text-align:center;margin-left:auto;margin-right:auto}
  .sec-sub{margin-left:auto;margin-right:auto}
  .privacy-panel{grid-template-columns:1fr;gap:36px}
  .pp-lead{margin:0;text-align:left}  /* lines up with the list under it */
  .feature-row .feature-grid{gap:48px}
  .feat-groups{grid-template-columns:1fr;max-width:640px;margin:0 auto}
}
@media (max-width:768px){
  .home-sec{padding:80px 0}
  .sec-head{margin-bottom:32px}
  .home-hero{padding:112px 20px 56px;gap:44px}
  .hh-cta{flex-direction:column;align-items:stretch;width:100%;max-width:340px}
  .hh-device{width:262px}
  .privacy-panel{padding:30px 24px 28px;border-radius:26px}
  .pp-list{grid-template-columns:1fr;gap:22px}
  .feat-group{padding:28px 22px 26px;border-radius:26px}
  .fg-title{font-size:1.45rem}
}
@media (max-width:480px){
  .hh-title{font-size:clamp(2.9rem,14.5vw,3.6rem)}
  .hh-sub{font-size:1.08rem}
}

/* Reduced motion: hero-demo.js shows the finished conversation at once */
@media (prefers-reduced-motion:reduce){
  .dm-dots i{animation:none}
}
