/* =========================================
   QUELLO — LANDING PAGE REDESIGN
   Visual layer only: existing tools and scripts remain intact.
   ========================================= */
:root { --quello-glow: rgba(126, 66, 255, .22); }
.container { max-width: 1240px; padding-top: 58px; }
.hero-redesign { position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(360px,.92fr); align-items:center; gap:clamp(24px,5vw,70px); min-height:440px; padding:30px 0 44px; text-align:left; isolation:isolate; }
.hero-redesign::before { content:""; position:absolute; z-index:-2; width:620px; height:500px; right:-70px; top:-10px; pointer-events:none; background:radial-gradient(ellipse,rgba(111,52,255,.19),rgba(88,101,242,.07) 38%,transparent 72%); filter:blur(8px); }
.hero-copy { min-width:0; }
.hero-kicker { display:inline-flex; align-items:center; gap:9px; padding:9px 13px; border:1px solid rgba(145,105,255,.32); border-radius:999px; background:rgba(103,62,204,.12); color:var(--text-2); font-size:11px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.status-dot,.caption-pulse { width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#7ce0a4;box-shadow:0 0 13px rgba(124,224,164,.6); }
.hero-kicker-divider { color:var(--text-4); }
.hero-redesign h1 { margin:20px 0 0; font-size:clamp(68px,9vw,112px); line-height:.94; letter-spacing:-.075em; font-weight:900; }
.hero-period { color:#9a6bff; text-shadow:0 0 35px rgba(142,82,255,.55); }
.hero-tagline { max-width:560px; margin:17px 0 12px; color:var(--text-strong); font-size:clamp(24px,3.3vw,39px); line-height:1.12; font-weight:850; letter-spacing:-.045em; }
.hero-redesign .subtitle { max-width:550px; margin:0; color:var(--text-3); font-size:15px; line-height:1.8; }
.hero-buttons { justify-content:flex-start; margin-top:25px; gap:11px; }
.hero-redesign .button { min-height:49px; padding:13px 19px; border-radius:13px; font-size:13px; box-shadow:0 8px 25px rgba(93,48,220,.18); }
.hero-primary { gap:13px; background:linear-gradient(110deg,#7944f5,#5e39d8); }
.hero-secondary { border:1px solid var(--line-strong)!important; background:var(--surface)!important; color:var(--text-strong)!important; box-shadow:none!important; }
.hero-proof { display:flex; align-items:flex-start; gap:10px; max-width:520px; margin-top:28px; color:var(--text-4); font-size:11px; line-height:1.65; }
.hero-proof-icon { color:#a782ff; font-size:16px; }
.hero-visual { position:relative; min-width:0; min-height:390px; display:grid; place-items:center; perspective:1000px; }
.hero-orbit { position:absolute; width:94%; height:65%; border:1px solid rgba(144,93,255,.38); border-radius:50%; transform:rotate(-23deg); box-shadow:0 0 30px rgba(117,61,255,.08),inset 0 0 22px rgba(117,61,255,.05); }
.hero-orbit-one { top:14%; right:-2%; }
.hero-orbit-two { width:78%;height:82%;top:7%;right:10%;transform:rotate(38deg);border-color:rgba(95,83,238,.2); }
.hero-bot-glow { position:absolute; right:5%; top:0; width:116px; height:116px; display:grid;place-items:center;border-radius:34px;background:linear-gradient(145deg,rgba(150,105,255,.24),rgba(83,55,174,.08));border:1px solid rgba(161,126,255,.35);box-shadow:0 0 55px rgba(111,56,255,.28);transform:rotate(8deg); }
.hero-bot-avatar { width:88px;height:88px;object-fit:cover;border-radius:25px; }
.qotd-floating-card { position:relative; z-index:2; width:min(100%,390px); box-sizing:border-box; padding:20px; border:1px solid rgba(157,128,255,.43); border-radius:20px; background:linear-gradient(145deg,rgba(31,27,54,.97),rgba(15,14,29,.97)); box-shadow:0 28px 70px rgba(0,0,0,.32),0 0 50px rgba(110,57,255,.19); transform:rotate(-4deg) translateY(15px); }
.qotd-card-top { display:flex;align-items:center;gap:11px;padding-bottom:16px;border-bottom:1px solid rgba(255,255,255,.08); }
.qotd-mini-avatar { width:40px;height:40px;object-fit:cover;border-radius:13px; }
.qotd-author { display:grid;grid-template-columns:auto auto;align-items:center;justify-content:start;gap:4px 7px; }
.qotd-author strong { font-size:14px;color:#f4f0ff; }
.app-pill { padding:2px 5px;border-radius:5px;background:#5865f2;color:white;font-size:9px;font-weight:900; }
.qotd-author small { grid-column:1/-1;color:#a8a0c2;font-size:10px; }
.qotd-menu { margin-left:auto;color:#a8a0c2;letter-spacing:2px; }
.qotd-card-body { padding:20px 1px 17px; }
.qotd-number { color:#ad8cff;font-size:10px;font-weight:850;letter-spacing:.13em; }
.qotd-number b { color:#d8caff; }
.qotd-card-body h2 { margin:12px 0 8px;color:#fff;font-size:clamp(20px,2.5vw,27px);line-height:1.25;letter-spacing:-.035em; }
.qotd-card-body p { margin:0;color:#a8a0bd;font-size:12px;line-height:1.6; }
.qotd-card-footer { display:flex;justify-content:space-between;gap:10px;padding-top:14px;border-top:1px solid rgba(255,255,255,.08);color:#bcb3d7;font-size:10px; }
.qotd-reaction { padding:6px 9px;border:1px solid rgba(159,123,255,.25);border-radius:8px;background:rgba(125,81,255,.13); }
.qotd-reaction b { font-weight:650; }
.hero-spark { position:absolute;color:#c3a7ff;text-shadow:0 0 15px #8b5cff; }
.hero-spark-one { top:19%;left:7%;font-size:20px; }.hero-spark-two{top:55%;right:0;font-size:27px}.hero-spark-three{bottom:11%;left:16%;font-size:15px}
.hero-visual-caption { position:absolute;bottom:0;display:flex;align-items:center;gap:9px;color:var(--text-4);font-size:10px;letter-spacing:.03em; }
.hero-feature-strip { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:8px 0 74px; }
.hero-feature { min-width:0;display:flex;align-items:center;gap:12px;padding:17px 15px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,var(--surface),var(--surface-sunken));transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.hero-feature:hover { transform:translateY(-3px);border-color:rgba(145,105,255,.48);box-shadow:0 12px 32px rgba(70,39,150,.12); }
.hero-feature-icon { width:38px;height:38px;display:grid;place-items:center;flex:0 0 38px;border:1px solid rgba(145,105,255,.23);border-radius:12px;background:rgba(117,69,255,.13);color:#b99bff;font-size:20px; }
.hero-feature span:nth-child(2) { min-width:0;display:grid;gap:4px; }
.hero-feature strong { color:var(--text-strong);font-size:12px;line-height:1.3; }
.hero-feature small { color:var(--text-4);font-size:10px;line-height:1.4; }
.hero-feature>b { margin-left:auto;color:var(--text-4);font-size:15px; }
.hero-embed { max-width:1000px;margin-bottom:54px;border-radius:16px;box-shadow:0 18px 55px rgba(0,0,0,.08); }
.discord-embed,.quick-start { border-radius:14px; }
@media(min-width:1000px){.hero-redesign{padding-top:35px}.hero-feature-strip{margin-top:0}}
@media(max-width:850px){.hero-redesign{grid-template-columns:minmax(0,1fr) minmax(280px,.85fr);gap:22px}.hero-visual{min-height:340px}.hero-bot-glow{width:88px;height:88px;right:0}.hero-bot-avatar{width:66px;height:66px}.qotd-floating-card{padding:16px}.hero-feature-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.container{padding:34px 16px}.hero-redesign{grid-template-columns:1fr;gap:18px;padding:22px 0 30px}.hero-redesign h1{font-size:clamp(64px,18vw,90px)}.hero-tagline{font-size:29px}.hero-redesign .subtitle{font-size:14px;line-height:1.7}.hero-buttons{display:grid;grid-template-columns:1fr 1fr;align-items:stretch}.hero-redesign .button{padding:12px 10px;font-size:12px}.hero-proof{margin-top:20px}.hero-visual{min-height:310px;margin:0 4px}.qotd-floating-card{width:min(90%,370px);transform:rotate(-2deg) translateY(8px)}.hero-bot-glow{top:0;right:5%;width:75px;height:75px;border-radius:23px}.hero-bot-avatar{width:56px;height:56px;border-radius:17px}.hero-visual-caption{bottom:0}.hero-feature-strip{gap:9px;margin-bottom:48px}.hero-feature{padding:12px 10px;gap:9px}.hero-feature-icon{width:32px;height:32px;flex-basis:32px;font-size:17px}.hero-feature strong{font-size:11px}.hero-feature small{font-size:9px}.hero-feature>b{display:none}}
@media(prefers-reduced-motion:reduce){.hero-feature,.hero-feature:hover,.hero-redesign .button{transition:none;transform:none}}


/* Live hero preview: subtle motion, rotating sample questions, and ambient glow. */
.hero-redesign { overflow: visible; }
.hero-gradient-text {
  background: linear-gradient(105deg, var(--text-strong) 8%, #c6a7ff 48%, #8c7cff 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}
.hero-visual::before {
  width: 68%; height: 68%; right: 10%; top: 12%;
  background: radial-gradient(circle, rgba(118,66,255,.20), rgba(91,63,220,.07) 45%, transparent 72%);
  filter: blur(18px);
  animation: heroGlowBreathe 7s ease-in-out infinite;
}
.hero-visual::after {
  width: 5px; height: 5px; top: 20%; left: 18%;
  background: #d7c5ff; box-shadow: 0 0 14px 3px rgba(168,124,255,.6), 225px 205px 0 1px rgba(190,160,255,.9), 250px 35px 0 0 rgba(190,160,255,.75), 75px 270px 0 0 rgba(190,160,255,.75);
  animation: heroParticles 9s ease-in-out infinite alternate;
}
.hero-orbit-one { animation: heroOrbitDrift 16s ease-in-out infinite alternate; }
.hero-orbit-two { animation: heroOrbitDriftTwo 19s ease-in-out infinite alternate; }
.hero-bot-glow { animation: heroBotFloat 5s ease-in-out infinite; }
.qotd-floating-card {
  transform-origin: 55% 45%;
  animation: heroCardFloat 6s ease-in-out infinite;
  transition: border-color .35s ease, box-shadow .35s ease;
  will-change: transform;
}
.qotd-floating-card.is-changing { border-color: rgba(194,164,255,.82); box-shadow: 0 28px 70px rgba(0,0,0,.32), 0 0 62px rgba(128,76,255,.30); }
.qotd-card-body h2, .qotd-card-body p { transition: opacity .18s ease, transform .18s ease; }
.qotd-card-body.is-changing h2, .qotd-card-body.is-changing p { opacity: .15; transform: translateY(5px); }
.qotd-card-actions { display:flex; align-items:center; gap:7px; }
.qotd-next {
  display:inline-grid; place-items:center; width:30px; height:30px; padding:0;
  border:1px solid rgba(159,123,255,.30); border-radius:9px;
  background:rgba(125,81,255,.14); color:#d4c3ff; font-size:17px; cursor:pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.qotd-next:hover { transform:rotate(35deg); background:rgba(125,81,255,.28); border-color:rgba(185,151,255,.7); }
.qotd-next:focus-visible { outline:2px solid #c5a8ff; outline-offset:3px; }
.hero-preview-hint { opacity:.7; }
@keyframes heroGlowBreathe { 0%,100%{opacity:.65;transform:scale(.94)} 50%{opacity:1;transform:scale(1.06)} }
@keyframes heroParticles { from{transform:translate3d(0,0,0);opacity:.55} to{transform:translate3d(-7px,12px,0);opacity:1} }
@keyframes heroOrbitDrift { from{transform:rotate(-25deg) translateY(-3px)} to{transform:rotate(-18deg) translateY(7px)} }
@keyframes heroOrbitDriftTwo { from{transform:rotate(35deg) translateX(-4px)} to{transform:rotate(42deg) translateX(5px)} }
@keyframes heroBotFloat { 0%,100%{translate:0 0;rotate:7deg} 50%{translate:0 -8px;rotate:10deg} }
@keyframes heroCardFloat { 0%,100%{transform:rotate(-4deg) translateY(13px)} 50%{transform:rotate(-2.5deg) translateY(3px)} }
@media (max-width:640px) {
  .hero-preview-hint { display:none; }
  .qotd-floating-card { animation-duration:7s; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual::before, .hero-visual::after, .hero-orbit-one, .hero-orbit-two,
  .hero-bot-glow, .qotd-floating-card { animation:none !important; }
  .qotd-card-body h2, .qotd-card-body p, .qotd-next { transition:none !important; }
}


/* Mobile overflow guard + tighter responsive composition (v3). */
html, body { width:100%; max-width:100%; overflow-x:clip; }
@supports not (overflow:clip) { html, body { overflow-x:hidden; } }
*, *::before, *::after { box-sizing:border-box; }
img, svg, video, canvas { max-width:100%; }
.hero-redesign, .hero-copy, .hero-visual, .hero-feature-strip { min-width:0; }
.hero-redesign::before { max-width:100vw; }
@media (max-width:640px) {
  .container { width:100%; max-width:100%; padding-left:18px; padding-right:18px; }
  .hero-redesign { width:100%; gap:16px; padding-top:18px; }
  .hero-kicker { max-width:100%; flex-wrap:wrap; row-gap:5px; font-size:9px; letter-spacing:.065em; }
  .hero-redesign h1 { font-size:clamp(60px,17vw,82px); overflow-wrap:anywhere; }
  .hero-tagline { max-width:100%; font-size:clamp(25px,7.2vw,30px); }
  .hero-buttons { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .hero-redesign .button { min-width:0; width:100%; white-space:normal; text-align:center; padding:12px 8px; }
  .hero-proof { max-width:100%; }
  .hero-visual { width:100%; min-height:350px; margin:0; padding:18px 0 24px; overflow:visible; }
  .qotd-floating-card { width:calc(100% - 36px); max-width:370px; padding:17px; animation:heroCardFloatMobile 7.5s cubic-bezier(.45,0,.55,1) infinite; }
  .qotd-card-body h2 { overflow-wrap:anywhere; }
  .hero-bot-glow { right:5%; z-index:1; }
  .hero-orbit-one { right:2%; width:90%; }
  .hero-orbit-two { right:11%; width:75%; }
  .hero-feature-strip { width:100%; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hero-feature { overflow:hidden; }
}


/* Animation/card edge fix v4: never clip the tilted card inside its own stage. */
.hero-visual { overflow: visible; }
.hero-orbit { pointer-events:none; }
.qotd-floating-card { backface-visibility:hidden; transform-style:preserve-3d; }
@keyframes heroCardFloatMobile {
  0%,100% { transform:translate3d(0,5px,0) rotate(-1.6deg) scale(1); }
  50% { transform:translate3d(0,-5px,0) rotate(-.7deg) scale(1.006); }
}
@keyframes heroBotFloat {
  0%,100% { translate:0 0; rotate:7deg; }
  50% { translate:0 -9px; rotate:9deg; }
}
@keyframes heroOrbitDrift {
  0% { transform:rotate(-25deg) translate3d(0,-3px,0); opacity:.68; }
  100% { transform:rotate(-18deg) translate3d(0,7px,0); opacity:1; }
}
@keyframes heroOrbitDriftTwo {
  0% { transform:rotate(35deg) translate3d(-4px,0,0); }
  100% { transform:rotate(42deg) translate3d(5px,0,0); }
}
@media (min-width:641px) {
  .qotd-floating-card { animation:heroCardFloat 7s cubic-bezier(.45,0,.55,1) infinite; }
}
@media (max-width:640px) {
  .hero-visual { min-height:350px; padding-top:24px; padding-bottom:30px; }
  .hero-visual-caption { bottom:2px; }
  .hero-orbit-one { width:86%; right:4%; }
  .hero-orbit-two { width:72%; right:12%; }
}
@media (prefers-reduced-motion:reduce) {
  .hero-visual::before,.hero-visual::after,.hero-orbit-one,.hero-orbit-two,
  .hero-bot-glow,.qotd-floating-card { animation:none !important; }
}

/* Celestial orbit upgrade: layered elliptical rings, luminous nodes and gentle parallax-like drift. */
.hero-visual { isolation:isolate; }
.hero-orbit {
  z-index:0;
  overflow:visible;
  will-change:transform,opacity;
  filter:drop-shadow(0 0 5px rgba(147,102,255,.13));
}
.hero-orbit-one {
  width:106%; height:67%; top:14%; right:-3%;
  border-color:rgba(169,125,255,.52);
  box-shadow:0 0 18px rgba(123,72,255,.13),inset 0 0 20px rgba(123,72,255,.06);
  animation:quelloOrbitA 18s ease-in-out infinite alternate;
}
.hero-orbit-two {
  width:81%; height:92%; top:2%; right:7%;
  border-color:rgba(111,122,255,.32);
  box-shadow:0 0 20px rgba(103,91,255,.12),inset 0 0 22px rgba(103,91,255,.04);
  animation:quelloOrbitB 22s ease-in-out infinite alternate;
}
.hero-orbit-three {
  width:113%; height:44%; top:29%; right:-7%;
  transform:rotate(24deg);
  border-color:rgba(210,157,255,.25);
  border-style:dashed;
  border-width:1px;
  animation:quelloOrbitC 27s linear infinite;
}
.hero-orbit-four {
  width:67%; height:105%; top:-3%; right:16%;
  transform:rotate(-42deg);
  border-color:rgba(105,151,255,.23);
  box-shadow:0 0 26px rgba(94,126,255,.08);
  animation:quelloOrbitD 24s ease-in-out infinite alternate;
}
.hero-orbit-five {
  width:95%; height:82%; top:8%; right:0%;
  transform:rotate(53deg);
  border-color:rgba(190,112,255,.19);
  border-style:dotted;
  animation:quelloOrbitE 32s linear infinite;
}
.hero-orbit-six {
  width:75%; height:56%; top:23%; right:10%;
  transform:rotate(-9deg);
  border-color:rgba(130,189,255,.21);
  box-shadow:0 0 25px rgba(103,143,255,.08),inset 0 0 20px rgba(125,91,255,.04);
  animation:quelloOrbitF 15s ease-in-out infinite alternate;
}
/* Small light points make the rings feel like a designed celestial system, not flat outlines. */
.hero-orbit::before,.hero-orbit::after {
  content:""; position:absolute; display:block; width:5px; height:5px; border-radius:50%;
  background:#e4d4ff; box-shadow:0 0 7px 2px rgba(169,125,255,.72),0 0 18px 4px rgba(119,76,255,.35);
}
.hero-orbit::before { top:12%; left:18%; }
.hero-orbit::after { right:13%; bottom:15%; width:4px; height:4px; background:#b9d4ff; box-shadow:0 0 8px 2px rgba(129,163,255,.65),0 0 18px 4px rgba(100,119,255,.25); }
.hero-orbit-three::before { top:48%; left:7%; width:3px; height:3px; }
.hero-orbit-three::after { right:8%; bottom:28%; }
.hero-orbit-five::before { top:8%; left:43%; width:3px; height:3px; }
.hero-orbit-five::after { right:28%; bottom:7%; width:3px; height:3px; }
.hero-visual::before {
  width:78%; height:78%; right:7%; top:7%;
  background:radial-gradient(ellipse,rgba(121,74,255,.24),rgba(92,75,226,.09) 40%,rgba(71,109,255,.04) 58%,transparent 74%);
  filter:blur(23px);
  animation:heroGlowBreathe 8s ease-in-out infinite;
}
.hero-visual::after {
  width:4px;height:4px;top:16%;left:13%;
  box-shadow:0 0 12px 3px rgba(190,160,255,.8), 230px 45px 0 1px rgba(169,151,255,.9), 255px 215px 0 0 rgba(190,160,255,.8), 65px 285px 0 0 rgba(137,170,255,.8), 300px 120px 0 0 rgba(205,170,255,.8), 135px 20px 0 0 rgba(150,170,255,.7);
  animation:heroParticles 8s ease-in-out infinite alternate;
}
@keyframes quelloOrbitA { 0%{transform:rotate(-28deg) translate3d(-3px,-3px,0);opacity:.62} 100%{transform:rotate(-17deg) translate3d(4px,7px,0);opacity:1} }
@keyframes quelloOrbitB { 0%{transform:rotate(31deg) translate3d(4px,0,0);opacity:.56} 100%{transform:rotate(44deg) translate3d(-5px,4px,0);opacity:.9} }
@keyframes quelloOrbitC { from{transform:rotate(24deg)} to{transform:rotate(384deg)} }
@keyframes quelloOrbitD { 0%{transform:rotate(-47deg) scale(.98);opacity:.45} 100%{transform:rotate(-36deg) scale(1.025);opacity:.8} }
@keyframes quelloOrbitE { from{transform:rotate(53deg)} to{transform:rotate(-307deg)} }
@keyframes quelloOrbitF { 0%{transform:rotate(-13deg) translateY(4px);opacity:.45} 100%{transform:rotate(-3deg) translateY(-5px);opacity:.82} }
@media(max-width:640px) {
  .hero-visual { overflow:visible; }
  .hero-orbit-one { width:104%; right:-2%; }
  .hero-orbit-two { width:82%; right:8%; }
  .hero-orbit-three { width:112%; right:-6%; }
  .hero-orbit-four { width:73%; right:13%; }
  .hero-orbit-five { width:100%; right:-2%; }
  .hero-orbit-six { width:86%; right:7%; }
  .hero-orbit::before,.hero-orbit::after { width:3px;height:3px; }
}
@media(prefers-reduced-motion:reduce) {
  .hero-orbit-three,.hero-orbit-four,.hero-orbit-five,.hero-orbit-six,
  .hero-orbit-one,.hero-orbit-two { animation:none !important; }
}
