:root{
--bg:#08111f;
--bg-soft:#0f1b33;
--panel:#12233f;
--panel-strong:#0d1730;
--text:#ecf3ff;
--muted:#9fb2d1;
--line:rgba(159,178,209,.18);
--accent:#2dd4bf;
--accent-strong:#14b8a6;
--shadow:0 18px 45px rgba(2,6,23,.35);
}

*{
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body{
margin:0;
font-family:"Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
background:
radial-gradient(circle at top,rgba(45,212,191,.15),transparent 28%),
linear-gradient(180deg,#06101c 0%,#08111f 100%);
color:var(--text);
line-height:1.6;
}

img{
max-width:100%;
display:block;
}

a{
color:inherit;
}

nav{
display:flex;
justify-content:space-between;
align-items:center;
gap:24px;
padding:18px 8%;
background:rgba(6,16,28,.88);
backdrop-filter:blur(14px);
border-bottom:1px solid var(--line);
position:sticky;
top:0;
z-index:20;
}

.logo{
font-weight:700;
letter-spacing:.04em;
text-decoration:none;
}

.nav-links{
display:flex;
flex-wrap:wrap;
justify-content:flex-end;
gap:18px;
}

.nav-links a{
text-decoration:none;
color:var(--muted);
transition:color .2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible{
color:var(--text);
}

section{
padding:88px 8%;
scroll-margin-top:120px;
}

.hero{
position:relative;
padding-top:112px;
padding-bottom:96px;
text-align:center;
overflow:hidden;
}

.hero-bg{
position:absolute;
inset:0;
background:
radial-gradient(circle at 20% 20%,rgba(45,212,191,.12),transparent 30%),
radial-gradient(circle at 80% 0,rgba(96,165,250,.16),transparent 26%);
z-index:-1;
}

.profile{
width:160px;
height:160px;
object-fit:cover;
border-radius:50%;
margin:0 auto 24px;
border:4px solid rgba(236,243,255,.08);
box-shadow:var(--shadow);
}

.eyebrow,
.section-kicker,
.project-type,
.highlight-label{
text-transform:uppercase;
letter-spacing:.14em;
font-size:.78rem;
color:var(--accent);
}

.hero h1{
max-width:860px;
margin:0 auto 18px;
font-size:clamp(2.3rem,5vw,4.6rem);
line-height:1.08;
}

.hero-copy{
max-width:760px;
margin:0 auto;
font-size:1.08rem;
color:var(--muted);
}

.hero-buttons{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:14px;
margin-top:28px;
}

.btn{
display:inline-flex;
align-items:center;
justify-content:center;
padding:13px 22px;
border-radius:999px;
border:1px solid transparent;
background:var(--accent);
color:#04131a;
font-weight:700;
text-decoration:none;
transition:transform .2s ease,background .2s ease,border-color .2s ease;
}

.btn:hover,
.btn:focus-visible{
transform:translateY(-1px);
background:#5eead4;
}

.btn.secondary{
background:transparent;
border-color:var(--line);
color:var(--text);
}

.btn.secondary:hover,
.btn.secondary:focus-visible{
border-color:rgba(236,243,255,.3);
background:rgba(255,255,255,.03);
}

.hero-highlights{
display:grid;
grid-template-columns:repeat(3,minmax(0,1fr));
gap:16px;
max-width:980px;
margin:44px auto 0;
}

.highlight-card,
.card,
.project,
.arch-card,
.faq-item,
.chatbot-card{
background:linear-gradient(180deg,rgba(18,35,63,.95),rgba(10,23,43,.95));
border:1px solid var(--line);
box-shadow:var(--shadow);
}

.highlight-card{
padding:18px 20px;
border-radius:18px;
text-align:left;
}

.highlight-card strong{
display:block;
margin-top:8px;
font-size:1rem;
}

.section-heading{
max-width:760px;
margin-bottom:28px;
}

.section-heading h2{
margin:8px 0 0;
font-size:clamp(1.8rem,3vw,2.8rem);
line-height:1.15;
}

.section-heading p{
margin:0;
}

.two-column{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:24px;
max-width:1100px;
}

.two-column p,
.contact-copy{
margin:0;
color:var(--muted);
font-size:1.02rem;
}

.grid{
display:grid;
gap:18px;
}

.feature-grid{
grid-template-columns:repeat(4,minmax(0,1fr));
}

.stack-grid{
grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
}

.card{
padding:18px;
border-radius:18px;
text-align:center;
font-weight:600;
}

.detail-card{
text-align:left;
font-weight:400;
}

.detail-card h3,
.project h3,
.arch-card h3,
.faq-item h3{
margin:0 0 10px;
font-size:1.15rem;
}

.detail-card p,
.project p,
.arch-card p,
.faq-item p{
margin:0;
color:var(--muted);
}

.project-grid{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:20px;
}

.project{
padding:24px;
border-radius:20px;
}

.project-type{
margin:0 0 8px;
}

.project ul{
margin:18px 0 0;
padding-left:18px;
color:var(--text);
}

.project li + li{
margin-top:8px;
}

.project-tags{
display:flex;
flex-wrap:wrap;
gap:8px;
margin-top:16px;
}

.project-tag{
font-size:.74rem;
padding:5px 11px;
border-radius:999px;
background:rgba(45,212,191,.1);
border:1px solid rgba(45,212,191,.25);
color:var(--accent);
}

.project-status{
margin-top:10px;
font-size:.82rem;
color:var(--muted);
}

.project-status::before{
content:"●";
color:var(--accent);
margin-right:6px;
font-size:.7rem;
}

.project-link{
display:inline-flex;
align-items:center;
gap:6px;
margin-top:16px;
padding:9px 18px;
border-radius:999px;
border:1px solid var(--line);
color:var(--text);
text-decoration:none;
font-size:.88rem;
font-weight:600;
transition:border-color .2s ease,background .2s ease;
}

.project-link:hover,
.project-link:focus-visible{
border-color:rgba(45,212,191,.5);
background:rgba(45,212,191,.06);
}

.project-link svg{
width:15px;
height:15px;
}

.architecture-layout{
display:grid;
grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);
gap:24px;
align-items:start;
}

.architecture-copy > p{
color:var(--muted);
margin:0 0 18px;
}

.architecture-points{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:16px;
}

.arch-card{
padding:18px;
border-radius:18px;
}

#architecture-diagram{
height:430px;
border-radius:22px;
background:rgba(8,17,31,.8);
border:1px solid var(--line);
box-shadow:var(--shadow);
overflow:hidden;
}

.flow-diagram svg{
width:100%;
height:100%;
display:block;
}

.flow-diagram--compact{
height:190px;
border-radius:16px;
background:rgba(8,17,31,.8);
border:1px solid var(--line);
overflow:hidden;
margin-top:18px;
}

.flow-node rect{
fill:var(--panel);
stroke:var(--line);
stroke-width:1.5;
}

.flow-node-badge{
fill:var(--accent);
}

.flow-node-num{
font-size:11px;
font-weight:700;
fill:var(--bg);
text-anchor:middle;
dominant-baseline:middle;
}

.flow-node-label{
font-size:15px;
font-weight:600;
fill:var(--text);
text-anchor:middle;
}

.flow-node-sub{
font-size:11px;
fill:var(--muted);
text-anchor:middle;
}

.flow-path-static{
fill:none;
stroke:rgba(159,178,209,.35);
stroke-width:2;
stroke-linejoin:round;
}

.flow-path-return{
fill:none;
stroke:var(--muted);
stroke-width:1.5;
stroke-dasharray:5 5;
opacity:.6;
}

.flow-seg-label{
font-size:10.5px;
fill:var(--muted);
text-anchor:middle;
letter-spacing:.02em;
}

.flow-pulse{
fill:var(--accent);
filter:drop-shadow(0 0 6px var(--accent));
}

.flow-pulse-delayed{
opacity:.55;
}

#flow-svg.motion-reduced .flow-pulse{
display:none;
}

@media (prefers-reduced-motion: reduce){
.flow-pulse{
display:none;
}
}

.faq-grid{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:20px;
}

.faq-item{
padding:22px;
border-radius:20px;
}

footer{
text-align:center;
padding:28px 16px 96px;
border-top:1px solid var(--line);
color:var(--muted);
}

.chatbot-shell{
position:fixed;
right:20px;
bottom:20px;
z-index:25;
display:flex;
flex-direction:column;
align-items:flex-end;
gap:12px;
}

.chat-toggle{
border:none;
cursor:pointer;
padding:14px 18px;
border-radius:999px;
background:var(--accent);
color:#04131a;
font-weight:700;
box-shadow:var(--shadow);
}

.chat-toggle:hover,
.chat-toggle:focus-visible{
background:#5eead4;
}

#chatbot{
width:min(600px,calc(100vw - 24px));
max-height:min(95vh,940px);
}

#chatbot[hidden]{
display:none;
}

.chatbot-card{
border-radius:22px;
padding:18px;
max-height:min(95vh,940px);
display:flex;
flex-direction:column;
}

.chat-header-row{
display:flex;
justify-content:space-between;
align-items:flex-start;
gap:12px;
}

.chat-close{
border:1px solid var(--line);
background:rgba(255,255,255,.03);
color:var(--text);
border-radius:999px;
padding:8px 12px;
cursor:pointer;
}

.chat-close:hover,
.chat-close:focus-visible{
background:rgba(255,255,255,.08);
}

#chat-header strong{
font-size:1rem;
}

#chat-header p{
margin:8px 0 0;
color:var(--muted);
font-size:.92rem;
}

#chat-messages{
min-height:140px;
height:500px;
overflow:auto;
display:flex;
flex-direction:column;
gap:10px;
margin:18px 0 14px;
padding-right:4px;
}

.chat-message{
padding:10px 12px;
border-radius:14px;
font-size:.94rem;
line-height:1.45;
}

.chat-message.user{
align-self:flex-end;
background:rgba(45,212,191,.16);
border:1px solid rgba(45,212,191,.18);
}

.chat-message.bot{
align-self:flex-start;
background:rgba(255,255,255,.04);
border:1px solid var(--line);
}

.chat-suggestions{
display:flex;
flex-wrap:wrap;
gap:8px;
margin-bottom:12px;
}

.chat-followups{
display:flex;
flex-wrap:wrap;
gap:8px;
margin:4px 0 6px;
}

.chat-chip,
#chat-send{
border:none;
cursor:pointer;
}

.chat-chip{
padding:8px 12px;
border-radius:999px;
background:rgba(255,255,255,.05);
color:var(--text);
border:1px solid var(--line);
transition:background .2s ease,border-color .2s ease;
}

.chat-chip:hover,
.chat-chip:focus-visible{
background:rgba(255,255,255,.08);
border-color:rgba(236,243,255,.28);
}

.chat-input-row{
display:grid;
grid-template-columns:minmax(0,1fr) auto;
gap:10px;
}

#chat-input{
width:100%;
padding:12px 14px;
border-radius:14px;
border:1px solid var(--line);
background:rgba(255,255,255,.03);
color:var(--text);
outline:none;
}

#chat-input::placeholder{
color:rgba(236,243,255,.45);
}

#chat-input:focus{
border-color:rgba(45,212,191,.45);
box-shadow:0 0 0 3px rgba(45,212,191,.12);
}

#chat-send{
padding:12px 16px;
border-radius:14px;
background:var(--accent);
color:#04131a;
font-weight:700;
}

#chat-send:hover,
#chat-send:focus-visible{
background:#5eead4;
}

@media (max-width:980px){
.hero-highlights,
.feature-grid,
.project-grid,
.faq-grid,
.architecture-layout,
.two-column{
grid-template-columns:1fr;
}

.architecture-points{
grid-template-columns:1fr 1fr;
}
}

@media (max-width:720px){
nav{
padding:16px 20px;
align-items:flex-start;
}

section{
padding:72px 20px;
}

.hero{
padding-top:88px;
}

.profile{
width:132px;
height:132px;
}

.hero-buttons{
justify-content:flex-start;
}

.hero,
.section-heading{
text-align:left;
}

.hero-copy{
margin-left:0;
}

.architecture-points{
grid-template-columns:1fr;
}

.chatbot-shell{
right:12px;
bottom:12px;
}

#chat-messages{
height:180px;
}

#chatbot{
width:min(340px,calc(100vw - 24px));
}
}