/* Gorilliam Fusion-style homepage refinement */
:root{
  --fusion-bg:#050609;
  --fusion-panel:#090b11;
  --fusion-panel-2:#0d1018;
  --fusion-line:rgba(255,255,255,.105);
  --fusion-line-hot:rgba(89,214,255,.42);
  --fusion-purple:#9a7cff;
  --fusion-cyan:#57d9ff;
  --fusion-green:#69f0ac;
}

.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

body{
  background:
    radial-gradient(60rem 34rem at 50% -8rem,rgba(91,109,255,.14),transparent 64%),
    radial-gradient(42rem 30rem at 92% 14rem,rgba(80,219,255,.08),transparent 68%),
    linear-gradient(180deg,#050609 0%,#070910 45%,#05070b 100%);
}

/* Floating glass header */
.site-header{
  top:0;
  padding:12px 0 0;
  background:transparent;
  border:0;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  pointer-events:none;
}
.site-header.scrolled{
  background:transparent;
  box-shadow:none;
}
.site-header .nav{
  position:relative;
  isolation:isolate;
  height:64px;
  padding:0 18px;
  pointer-events:auto;
  border:1px solid transparent;
  border-radius:20px;
  background:
    linear-gradient(rgba(9,11,17,.72),rgba(7,9,14,.78)) padding-box,
    linear-gradient(120deg,rgba(86,216,255,.28),rgba(255,255,255,.07) 38%,rgba(154,124,255,.28)) border-box;
  backdrop-filter:blur(24px) saturate(145%);
  -webkit-backdrop-filter:blur(24px) saturate(145%);
  box-shadow:0 16px 55px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.05);
}
.site-header .nav::before{
  content:"";
  position:absolute;
  inset:-1px;
  z-index:-1;
  border-radius:inherit;
  background:conic-gradient(from 0deg,transparent 0 20%,rgba(84,218,255,.42),transparent 36% 62%,rgba(158,119,255,.38),transparent 78% 100%);
  filter:blur(8px);
  opacity:.32;
  animation:fusion-border-spin 9s linear infinite;
}
.site-header.scrolled .nav{
  background:
    linear-gradient(rgba(6,8,13,.88),rgba(6,8,13,.9)) padding-box,
    linear-gradient(120deg,rgba(86,216,255,.32),rgba(255,255,255,.07) 38%,rgba(154,124,255,.32)) border-box;
  box-shadow:0 18px 60px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.055);
}
.nav-cta{
  border-radius:999px;
  border-color:rgba(87,217,255,.3);
  background:rgba(87,217,255,.075);
}

/* Fusion hero */
.fusion-hero{
  padding:96px 0 106px;
  overflow:visible;
}
.fusion-hero::after{
  width:54rem;
  height:54rem;
  right:50%;
  top:-30rem;
  transform:translateX(78%);
  border-color:rgba(95,113,255,.07);
  box-shadow:0 0 0 8rem rgba(87,217,255,.008),0 0 0 16rem rgba(154,124,255,.007);
}
.fusion-hero-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:58px;
}
.fusion-hero-copy{
  position:relative;
  z-index:2;
  width:min(100%,980px);
  text-align:center;
}
.fusion-hero-copy h1{
  max-width:980px;
  margin-inline:auto;
  font-size:clamp(3.35rem,7vw,6.7rem);
  line-height:.98;
  letter-spacing:-.055em;
}
.fusion-hero-copy .gradient-text{
  background:
    radial-gradient(circle at 50% 0%,#fff 0,#f4f7ff 32%,#bdeeff 62%,#c4b4ff 100%);
  color:transparent;
  background-clip:text;
  -webkit-background-clip:text;
}
.fusion-hero-copy .lead{
  margin:24px auto 0;
  max-width:760px;
  color:#aeb8c7;
}
.fusion-hero-copy .hero-actions,
.fusion-hero-copy .hero-note{
  justify-content:center;
}
.fusion-hero-copy .hero-note{
  width:max-content;
  max-width:100%;
  margin-inline:auto;
}

/* Interactive service console */
.service-console{
  --glow-x:50%;
  --glow-y:50%;
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  width:100%;
  min-height:570px;
  overflow:hidden;
  border:1px solid transparent;
  border-radius:30px;
  background:
    linear-gradient(160deg,rgba(8,10,15,.97),rgba(5,7,11,.98)) padding-box,
    linear-gradient(120deg,rgba(87,217,255,.28),rgba(255,255,255,.07) 30%,rgba(154,124,255,.25) 70%,rgba(87,217,255,.15)) border-box;
  box-shadow:
    0 48px 120px rgba(0,0,0,.5),
    0 0 90px rgba(76,173,255,.055),
    inset 0 1px 0 rgba(255,255,255,.035);
}
.service-console::before{
  content:"";
  position:absolute;
  inset:-2px;
  z-index:-2;
  border-radius:32px;
  background:
    radial-gradient(420px circle at var(--glow-x) var(--glow-y),rgba(83,220,255,.48),transparent 46%),
    conic-gradient(from 0deg,transparent,rgba(78,217,255,.42),transparent 30%,rgba(155,119,255,.4),transparent 66%,rgba(82,215,255,.3),transparent);
  filter:blur(14px);
  opacity:.42;
  animation:fusion-border-spin 11s linear infinite;
}
.service-console::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(650px circle at var(--glow-x) var(--glow-y),rgba(77,208,255,.065),transparent 46%),
    linear-gradient(rgba(255,255,255,.012) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px);
  background-size:auto,44px 44px,44px 44px;
  mask-image:linear-gradient(to bottom,black 0 78%,transparent);
}
.service-rail{
  padding:25px 16px;
  border-right:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg,rgba(8,10,15,.92),rgba(6,8,12,.76));
}
.service-rail-brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 10px 20px;
  color:#f7f8fb;
  font-weight:820;
  letter-spacing:-.03em;
}
.service-rail-mark{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border:1px solid rgba(87,217,255,.24);
  border-radius:10px;
  background:linear-gradient(145deg,rgba(87,217,255,.12),rgba(154,124,255,.12));
  color:#dbf8ff;
  box-shadow:inset 0 0 20px rgba(87,217,255,.07);
}
.service-rail-label{
  padding:0 10px 9px;
  color:#6fe1ff;
  font-size:.68rem;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.14em;
}
.service-menu{
  display:grid;
  gap:4px;
}
.service-menu-item{
  position:relative;
  width:100%;
  padding:11px 12px;
  border:1px solid transparent;
  border-radius:12px;
  background:transparent;
  color:#8d97a7;
  text-align:left;
  cursor:pointer;
  transition:color .2s ease,background .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.service-menu-item::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:2px;
  height:0;
  border-radius:99px;
  background:linear-gradient(var(--fusion-cyan),var(--fusion-purple));
  transform:translateY(-50%);
  box-shadow:0 0 16px rgba(87,217,255,.65);
  transition:height .2s ease;
}
.service-menu-item:hover{
  color:#dce6f3;
  background:rgba(255,255,255,.03);
}
.service-menu-item.active{
  color:#f3f8ff;
  border-color:rgba(87,217,255,.14);
  background:linear-gradient(90deg,rgba(87,217,255,.075),rgba(154,124,255,.035));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.service-menu-item.active::before{height:62%}
.service-menu-item:active{transform:scale(.985)}

.service-workspace{
  min-width:0;
  padding:28px;
}
.service-console-top{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
  margin-bottom:18px;
}
.service-console-top>div{
  display:grid;
  gap:4px;
}
.service-console-eyebrow{
  color:#6d7788;
  font-size:.66rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.13em;
}
.service-console-top strong{
  color:#eff3f8;
  font-size:1.02rem;
}
.service-online{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#85efb8;
  font-size:.72rem;
  white-space:nowrap;
}
.service-online i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--fusion-green);
  box-shadow:0 0 14px rgba(105,240,172,.8);
  animation:service-pulse 2s ease-in-out infinite;
}

.service-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:470px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.105);
  border-radius:22px;
  background:
    radial-gradient(600px 300px at 30% -20%,rgba(87,217,255,.055),transparent 60%),
    radial-gradient(500px 280px at 94% 10%,rgba(154,124,255,.07),transparent 60%),
    linear-gradient(180deg,rgba(10,12,19,.96),rgba(5,7,11,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 28px 70px rgba(0,0,0,.22);
}
.service-card-aurora{
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.56;
  background:
    radial-gradient(400px 210px at 14% 0%,rgba(87,217,255,.06),transparent 70%),
    radial-gradient(420px 240px at 90% 20%,rgba(154,124,255,.07),transparent 70%);
  animation:service-aurora 8s ease-in-out infinite alternate;
}
.service-generated{
  position:relative;
  z-index:1;
  padding:32px 32px 18px;
  min-height:228px;
}
.service-generated-kicker{
  display:block;
  margin-bottom:12px;
  color:#72dcff;
  font-size:.67rem;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.14em;
}
.service-generated h2{
  max-width:780px;
  margin-bottom:14px;
  color:#f5f7fb;
  font-size:clamp(1.7rem,3vw,2.65rem);
}
.service-generated p{
  max-width:780px;
  color:#9ea8b8;
  font-size:.96rem;
}
.service-generated.is-generating h2::after,
.service-generated.is-generating p:last-child::after{
  content:"";
  display:inline-block;
  width:7px;
  height:1em;
  margin-left:5px;
  vertical-align:-.12em;
  border-radius:2px;
  background:#7ce3ff;
  box-shadow:0 0 12px rgba(87,217,255,.65);
  animation:service-caret .8s steps(1,end) infinite;
}
.service-capability-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:22px;
}
.service-capability-row span{
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:999px;
  background:rgba(255,255,255,.025);
  color:#c1cad6;
  font-size:.75rem;
}
.service-feature-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 18px;
  margin:21px 0 0;
  padding:0;
  list-style:none;
  color:#b7c1ce;
  font-size:.84rem;
}
.service-feature-list li{
  display:flex;
  gap:9px;
  align-items:flex-start;
}
.service-feature-list li::before{
  content:"";
  flex:0 0 auto;
  width:6px;
  height:6px;
  margin-top:.56em;
  border-radius:50%;
  background:linear-gradient(135deg,var(--fusion-cyan),var(--fusion-purple));
  box-shadow:0 0 10px rgba(87,217,255,.45);
}

.service-quick-prompts{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0 32px 15px;
  opacity:0;
  transform:translateY(8px);
  pointer-events:none;
  transition:opacity .25s ease,transform .25s ease;
}
.service-card.ready .service-quick-prompts{
  opacity:1;
  transform:none;
  pointer-events:auto;
}
.quick-prompt{
  padding:8px 11px;
  border:1px solid rgba(255,255,255,.095);
  border-radius:999px;
  background:rgba(255,255,255,.026);
  color:#aeb8c6;
  font-size:.74rem;
  cursor:pointer;
  transition:border-color .2s ease,color .2s ease,background .2s ease,box-shadow .2s ease;
}
.quick-prompt:hover{
  color:#eef9ff;
  border-color:rgba(87,217,255,.32);
  background:rgba(87,217,255,.055);
  box-shadow:0 0 24px rgba(87,217,255,.07);
}

.service-chat-log{
  position:relative;
  z-index:1;
  display:grid;
  gap:10px;
  max-height:190px;
  overflow:auto;
  padding:0 32px 16px;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.12) transparent;
}
.service-message{
  width:min(86%,760px);
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:15px;
  background:rgba(255,255,255,.026);
  color:#b9c4d1;
  font-size:.84rem;
  line-height:1.55;
  animation:service-message-in .3s ease both;
}
.service-message.user{
  justify-self:end;
  border-color:rgba(87,217,255,.18);
  background:linear-gradient(135deg,rgba(87,217,255,.09),rgba(154,124,255,.07));
  color:#e5f6ff;
}
.service-message.assistant{
  justify-self:start;
}
.service-message.typing{
  width:auto;
  color:#7e8999;
}
.service-typing-dots{
  display:inline-flex;
  gap:4px;
  margin-left:5px;
}
.service-typing-dots i{
  width:4px;
  height:4px;
  border-radius:50%;
  background:#91a0b3;
  animation:service-dot 1s ease-in-out infinite;
}
.service-typing-dots i:nth-child(2){animation-delay:.12s}
.service-typing-dots i:nth-child(3){animation-delay:.24s}
.service-message-cta{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:10px;
  padding:8px 12px;
  border:1px solid rgba(87,217,255,.22);
  border-radius:999px;
  background:linear-gradient(135deg,rgba(87,217,255,.14),rgba(154,124,255,.13));
  color:#ddf7ff;
  font-weight:780;
}
.service-message-cta:hover{
  border-color:rgba(87,217,255,.44);
  box-shadow:0 0 26px rgba(87,217,255,.12);
}

.service-chat-form{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  margin:auto 20px 20px;
  padding:8px;
  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
  border:1px solid rgba(255,255,255,.11);
  border-radius:17px;
  background:rgba(8,10,16,.72);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:0 14px 35px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.035);
  transition:opacity .28s ease,transform .28s ease,border-color .2s ease,box-shadow .2s ease;
}
.service-card.ready .service-chat-form{
  opacity:1;
  transform:none;
  pointer-events:auto;
}
.service-chat-form:focus-within{
  border-color:rgba(87,217,255,.35);
  box-shadow:0 0 0 3px rgba(87,217,255,.04),0 16px 40px rgba(0,0,0,.28),0 0 34px rgba(87,217,255,.07);
}
.service-chat-form input{
  min-width:0;
  border:0;
  border-radius:11px;
  background:transparent;
  box-shadow:none;
  padding:10px 11px;
  color:#eef4fb;
}
.service-chat-form input:focus{
  border:0;
  box-shadow:none;
}
.service-chat-form input::placeholder{color:#687486}
.service-chat-form button{
  border:1px solid rgba(87,217,255,.26);
  border-radius:12px;
  padding:0 15px;
  background:linear-gradient(135deg,#7ce8ff,#8da7ff);
  color:#041016;
  font-weight:850;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(87,217,255,.12);
  transition:transform .18s ease,box-shadow .18s ease;
}
.service-chat-form button:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 28px rgba(87,217,255,.2);
}
.service-chat-note{
  position:relative;
  z-index:1;
  margin:-9px 30px 15px;
  color:#505b69;
  font-size:.66rem;
}

/* Dynamic surface glow for the rest of the homepage */
.card,
.feature,
.cta-panel{
  --glow-x:50%;
  --glow-y:50%;
}
.card{
  background:
    radial-gradient(360px circle at var(--glow-x) var(--glow-y),rgba(87,217,255,.07),transparent 43%),
    linear-gradient(180deg,rgba(14,18,27,.84),rgba(8,11,17,.9));
}
.card:hover{
  border-color:rgba(87,217,255,.25);
  box-shadow:0 22px 65px rgba(0,0,0,.3),0 0 38px rgba(87,217,255,.055);
}
.feature{
  background:
    radial-gradient(540px circle at var(--glow-x) var(--glow-y),rgba(105,240,172,.055),transparent 46%),
    radial-gradient(circle at 92% 15%,rgba(154,124,255,.055),transparent 30%),
    linear-gradient(180deg,rgba(13,20,27,.94),rgba(7,11,16,.94));
}
.cta-panel{
  background:
    radial-gradient(520px circle at var(--glow-x) var(--glow-y),rgba(87,217,255,.075),transparent 44%),
    linear-gradient(120deg,rgba(87,217,255,.07),rgba(154,124,255,.075) 55%,rgba(255,255,255,.018));
}

@keyframes fusion-border-spin{to{filter:blur(8px) hue-rotate(360deg)}}
@keyframes service-pulse{50%{opacity:.55;box-shadow:0 0 7px rgba(105,240,172,.45)}}
@keyframes service-aurora{to{transform:translate3d(2.5%,-2%,0) scale(1.05);opacity:.8}}
@keyframes service-caret{50%{opacity:0}}
@keyframes service-message-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@keyframes service-dot{0%,100%{opacity:.25;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}}

@media (max-width:960px){
  .site-header{padding-top:8px}
  .site-header .nav{height:64px;border-radius:17px}
  .nav-links{
    top:72px;
    left:0;
    right:0;
    background:rgba(8,10,16,.94);
    backdrop-filter:blur(22px);
    -webkit-backdrop-filter:blur(22px);
  }
  .fusion-hero{padding-top:82px}
  .service-console{grid-template-columns:180px minmax(0,1fr)}
  .service-workspace{padding:22px}
  .service-generated{padding:27px 25px 16px}
  .service-quick-prompts,.service-chat-log{padding-left:25px;padding-right:25px}
}

@media (max-width:720px){
  .fusion-hero{padding:72px 0 74px}
  .fusion-hero-inner{gap:42px}
  .fusion-hero-copy h1{font-size:clamp(2.75rem,14vw,4.1rem)}
  .service-console{
    display:block;
    min-height:0;
    border-radius:23px;
  }
  .service-rail{
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.08);
    padding:17px 14px 14px;
  }
  .service-rail-brand{padding-bottom:13px}
  .service-rail-label{display:none}
  .service-menu{
    display:flex;
    gap:6px;
    overflow-x:auto;
    padding-bottom:2px;
    scrollbar-width:none;
  }
  .service-menu::-webkit-scrollbar{display:none}
  .service-menu-item{
    flex:0 0 auto;
    width:auto;
    padding:8px 10px;
    white-space:nowrap;
    font-size:.78rem;
  }
  .service-menu-item::before{display:none}
  .service-workspace{padding:17px}
  .service-console-top{margin-bottom:12px}
  .service-console-eyebrow{display:none}
  .service-card{min-height:500px;border-radius:17px}
  .service-generated{padding:23px 19px 14px}
  .service-generated h2{font-size:1.65rem}
  .service-feature-list{grid-template-columns:1fr}
  .service-quick-prompts,.service-chat-log{padding-left:19px;padding-right:19px}
  .service-chat-form{margin:6px 12px 15px}
  .service-chat-note{margin:-5px 19px 13px}
  .service-message{width:94%}
}

@media (max-width:480px){
  .site-header .nav{padding-inline:13px}
  .fusion-hero-copy .hero-actions{display:grid}
  .fusion-hero-copy .btn{width:100%}
  .service-console-top strong{font-size:.92rem}
  .service-online{font-size:.65rem}
  .service-chat-form{grid-template-columns:1fr}
  .service-chat-form button{min-height:42px}
}

@media (prefers-reduced-motion:reduce){
  .site-header .nav::before,
  .service-console::before,
  .service-online i,
  .service-card-aurora,
  .service-typing-dots i{
    animation:none!important;
  }
}
