/* =================================
GLOBAL
================================= */

body{
margin:0;
font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
background:#020617;
color:#e2e8f0;
line-height:1.6;
}

a{
text-decoration:none;
color:inherit;
}

.container{
max-width:1100px;
margin:auto;
padding:60px 24px;
}

.section-label{
font-size:12px;
letter-spacing:1.5px;
text-transform:uppercase;
color:#94a3b8;
margin-bottom:10px;
}

.lead{
font-size:18px;
color:#94a3b8;
max-width:700px;
}


/* =================================
NAVIGATION
================================= */

.nav{
background:#020617;
border-bottom:1px solid rgba(255,255,255,0.08);
position:sticky;
top:0;
z-index:100;
}

.nav-container{
max-width:1100px;
margin:auto;
display:flex;
justify-content:space-between;
align-items:center;
padding:16px 24px;
}

.logo{
font-weight:600;
font-size:18px;
}

.nav nav a{
margin-left:24px;
color:#94a3b8;
font-size:14px;
}

.nav nav a:hover{
color:#ffffff;
}


/* =================================
HERO
================================= */

.hero{
padding:80px 24px;
text-align:center;
}

.hero-content{
max-width:720px;
margin:auto;
}

.hero h1{
font-size:40px;
margin:10px 0 20px;
}

.hero p{
color:#94a3b8;
font-size:18px;
}


/* =================================
ARCHITECTURE GRID
================================= */

.arch-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:24px;
margin-top:40px;
}

.arch-card{
background:#0f172a;
padding:28px;
border-radius:12px;
border:1px solid rgba(255,255,255,0.06);
transition:all .2s ease;
}

.arch-card:hover{
border-color:#38bdf8;
transform:translateY(-3px);
}

.arch-card h3{
margin-top:0;
font-size:20px;
}

.arch-card p{
color:#94a3b8;
font-size:15px;
}

.arch-card-meta{
font-size:13px;
color:#60a5fa;
margin-top:8px;
display:block;
}


/* =================================
ARCHITECTURE OVERVIEW
================================= */

.arch-overview-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
gap:20px;
margin-top:40px;
}

.arch-overview-card{
background:#0f172a;
padding:24px;
border-radius:12px;
border:1px solid rgba(255,255,255,0.06);
transition:all .2s ease;
}

.arch-overview-card:hover{
border-color:#38bdf8;
transform:translateY(-3px);
}

.arch-overview-card h3{
margin:0 0 8px 0;
font-size:18px;
}

.arch-overview-card p{
margin:0;
font-size:15px;
color:#cbd5f5;
}

.arch-card-meta{
margin-top:10px;
font-size:13px;
color:#94a3b8;
display:block;
}


/* =================================
BLUEPRINT PANEL
================================= */

.blueprint-panel{
background:#0f172a;
border-radius:14px;
padding:40px;
border:1px solid rgba(255,255,255,0.06);
}

.blueprint-panel h2{
margin-top:10px;
}

.blueprint-panel ul{
margin-top:20px;
padding-left:18px;
}

.blueprint-panel li{
margin-bottom:8px;
}


/* =================================
BUTTONS
================================= */

.primary-button{
display:inline-block;
margin-top:20px;
background:#2563eb;
color:white;
padding:12px 20px;
border-radius:8px;
font-size:15px;
}

.primary-button:hover{
background:#1d4ed8;
}


/* =================================
FOOTER
================================= */

.footer{
border-top:1px solid rgba(255,255,255,0.06);
padding:40px 24px;
text-align:center;
color:#94a3b8;
}


/* =================================
CHAT GUIDE
================================= */

#cx-guide-launcher{
position:fixed;
bottom:26px;
right:26px;
background:#2563eb;
color:white;
border:none;
padding:14px 18px;
border-radius:40px;
cursor:pointer;
display:flex;
align-items:center;
gap:10px;
box-shadow:0 8px 30px rgba(0,0,0,0.35);
z-index:1000;
}

#cx-guide-launcher.is-hidden{
display:none;
}

.cx-guide-launcher-icon{
font-size:18px;
}

.cx-guide-launcher-title{
font-weight:600;
display:block;
}

.cx-guide-launcher-subtitle{
font-size:12px;
opacity:.8;
}


/* =================================
CHAT PANEL
================================= */

#cx-guide-panel{
position:fixed;
bottom:26px;
right:26px;
width:360px;
height:500px;
background:#020617;
border-radius:14px;
border:1px solid rgba(255,255,255,0.08);
box-shadow:0 10px 40px rgba(0,0,0,.6);
display:none;
flex-direction:column;
overflow:hidden;
z-index:1000;
}

#cx-guide-panel.is-open{
display:flex;
}

.cx-guide-header{
display:flex;
justify-content:space-between;
align-items:center;
padding:14px 18px;
border-bottom:1px solid rgba(255,255,255,0.08);
}

.cx-guide-header-title{
font-weight:600;
}

#cx-guide-close{
background:none;
border:none;
color:white;
font-size:18px;
cursor:pointer;
}

.cx-guide-body{
flex:1;
overflow:auto;
padding:18px;
}

.cx-guide-message{
margin-bottom:14px;
font-size:14px;
line-height:1.4;
}

.cx-guide-message.user{
text-align:right;
color:#93c5fd;
}

.cx-guide-message.assistant{
color:#e2e8f0;
}

.cx-guide-links{
margin-bottom:12px;
display:flex;
flex-direction:column;
gap:8px;
}

.cx-guide-link-item{
line-height:1.4;
}

.cx-guide-link{
display:block;
font-size:13px;
color:#60a5fa;
margin-bottom:0;
}

.cx-guide-link-item a{
color:#60a5fa;
text-decoration:none;
font-weight:500;
}

.cx-guide-link-item a:hover{
text-decoration:underline;
}

.cx-guide-input{
display:flex;
border-top:1px solid rgba(255,255,255,0.08);
}

.cx-guide-input input{
flex:1;
border:none;
padding:12px;
background:#020617;
color:white;
}

.cx-guide-input button{
background:#2563eb;
border:none;
padding:12px 16px;
color:white;
cursor:pointer;
}


/* =================================
QUICK ACTION CHIPS
================================= */

.cx-guide-quick-actions{
display:flex;
flex-wrap:wrap;
gap:8px;
margin-top:14px;
}

.cx-guide-chip{
background:#1e293b;
color:#e2e8f0;
border:1px solid rgba(255,255,255,0.08);
border-radius:20px;
padding:8px 12px;
font-size:13px;
cursor:pointer;
transition:all .15s ease;
}

.cx-guide-chip:hover{
background:#2563eb;
color:white;
border-color:#2563eb;
}


/* =================================
CONTACT FORM
================================= */

.contact-form{
display:flex;
flex-direction:column;
gap:14px;
margin-top:20px;
}

.contact-form input,
.contact-form textarea{
padding:12px;
border-radius:8px;
border:1px solid rgba(255,255,255,0.12);
background:#020617;
color:#f8fafc;
}

.contact-form textarea{
resize:vertical;
}

#contact-status{
margin-top:10px;
color:#60a5fa;
font-size:14px;
}


/* =================================
RESPONSIVE
================================= */

@media (max-width:700px){

.hero h1{
font-size:30px;
}

#cx-guide-panel{
width:92%;
right:4%;
bottom:20px;
height:70vh;
}

.nav nav a{
margin-left:12px;
}

}


/* ===== CX GUIDE VISIBILITY HARD FIX ===== */

#cx-guide-launcher{
  position: fixed !important;
  right: 26px !important;
  bottom: 26px !important;
  z-index: 99998 !important;
}

#cx-guide-launcher.is-hidden{
  display: none !important;
}

#cx-guide-panel{
  position: fixed !important;
  right: 26px !important;
  bottom: 26px !important;
  width: 360px !important;
  height: 500px !important;
  display: none;
  flex-direction: column;
  background: #020617 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,.6) !important;
  overflow: hidden !important;
  z-index: 99999 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

#cx-guide-panel.is-open{
  display: flex !important;
}

@media (max-width:700px){
  #cx-guide-launcher{
    right: 16px !important;
    bottom: 16px !important;
  }

  #cx-guide-panel{
    right: 16px !important;
    bottom: 16px !important;
    width: calc(100vw - 32px) !important;
    height: 70vh !important;
  }
}