:root{
  --bg:#0b1220;
  --text:#eaf0ff;
  --muted:rgba(234,240,255,.75);
  --line:rgba(234,240,255,.12);
  --accent:#2f6fff;    /* Primary accent */
  --accent2:#0ea5e9;   /* Secondary accent (special use) */
  --radius:18px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 700px at 20% 10%, rgba(47,111,255,.22), transparent 60%),
              radial-gradient(900px 600px at 80% 30%, rgba(14,165,233,.18), transparent 55%),
              var(--bg);
  color:var(--text);
}
.container{width:min(1080px, 92%); margin:0 auto;}
a{color:var(--text)}
code{color:rgba(234,240,255,.9)}
.header{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.6);
  border-bottom: 1px solid var(--line);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:16px;}
.brand{display:flex; align-items:center; gap:12px; min-width:260px; text-decoration:none;}
.logo{width:42px; height:42px; border-radius:12px; object-fit:cover; border:1px solid var(--line); background:#fff;}
.logo-sm{width:34px; height:34px; border-radius:12px; object-fit:cover; border:1px solid var(--line); background:#fff;}
.brand-name{font-weight:800; letter-spacing:.06em; font-size:13px;}
.brand-tag{font-size:12px; color:var(--muted); margin-top:2px;}

.nav{display:flex; gap:18px; flex-wrap:wrap;}
.nav a{color:var(--muted); text-decoration:none; font-size:13px;}
.nav a:hover{color:var(--text);}

.lang{display:flex; gap:8px;}
.lang-btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  padding:8px 10px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
}
.lang-btn[aria-pressed="true"]{color:var(--text); border-color: rgba(47,111,255,.55);}

.hero{padding:64px 0 26px;}
.hero-grid{display:grid; grid-template-columns:1.2fr .8fr; gap:26px; align-items:start;}
h1{font-size:44px; line-height:1.05; margin:0 0 14px;}
.lead{font-size:16px; color:var(--muted); max-width:56ch; margin:0 0 18px;}
.hero-cta{display:flex; align-items:center; gap:14px; flex-wrap:wrap;}
.micro{font-size:12px; color:var(--muted); margin:0;}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:14px; padding:12px 14px;
  text-decoration:none; color:#0b1220;
  background: linear-gradient(135deg, rgba(47,111,255,1), rgba(14,165,233,1));
  font-weight:800; border:0;
}
.btn:hover{filter: brightness(1.07);}
.btn-full{width:100%; cursor:pointer;}

.stats{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:18px;}
.stat{border:1px solid var(--line); background: rgba(255,255,255,.03); border-radius:16px; padding:12px;}
.stat-num{font-weight:900; font-size:20px;}
.stat-label{font-size:12px; color:var(--muted); margin-top:6px;}

.card{border:1px solid var(--line); background: rgba(255,255,255,.03); border-radius:var(--radius); padding:18px;}
.card h2{margin:0 0 10px; font-size:16px;}
.list{margin:0; padding-left:18px; color:var(--muted);}
.list li{margin:8px 0;}
.divider{height:1px; background:var(--line); margin:14px 0;}

.section{padding:34px 0;}
.section h2{margin:0 0 10px; font-size:22px;}
.muted{color:var(--muted);}

.steps{display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; margin-top:16px;}
.step{border:1px solid var(--line); background: rgba(255,255,255,.03); border-radius:var(--radius); padding:16px;}
.badge{width:28px; height:28px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-weight:900;
  background: rgba(47,111,255,.18); border: 1px solid rgba(47,111,255,.35); margin-bottom:10px;}
.step h3{margin:0 0 6px; font-size:14px;}
.step p{margin:0; font-size:12.5px; line-height:1.5;}

.palette-grid{display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; margin-top:16px;}
.swatch{border:1px solid var(--line); background: rgba(255,255,255,.03); border-radius: var(--radius); padding:12px; display:flex; gap:12px; align-items:center;}
.chip{width:44px; height:44px; border-radius:14px; border:1px solid rgba(234,240,255,.14);}
.chip-bg{background:#0B1220;}
.chip-text{background:#EAF0FF;}
.chip-accent{background:#2F6FFF;}
.chip-accent2{background:#0EA5E9;}
.swatch-name{font-weight:800; font-size:12px;}
.swatch-meta code{font-size:12px; opacity:.9;}

.rule{border:1px dashed rgba(234,240,255,.18); border-radius:16px; padding:12px; background: rgba(255,255,255,.02); margin-top:14px;}
.rule-title{font-weight:900; font-size:12px; margin-bottom:6px;}
.rule-list{margin:0; padding-left:18px; color:var(--muted);}
.rule-list li{margin:6px 0; font-size:12.5px; line-height:1.5;}

.assessment{display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:start;}
.note{border:1px dashed rgba(234,240,255,.18); border-radius:16px; padding:12px; background: rgba(255,255,255,.02); margin-top:14px;}
.note-title{font-weight:900; font-size:12px; margin-bottom:6px;}
.note-body{font-size:12px; color:var(--muted); line-height:1.5;}

.form{border:1px solid var(--line); background: rgba(255,255,255,.03); border-radius:var(--radius); padding:16px;}
label{display:block; margin-bottom:10px;}
label span{display:block; font-size:12px; color:var(--muted); margin-bottom:6px; font-weight:700;}
input, textarea, select{
  width:100%; border: 1px solid rgba(234,240,255,.14);
  background: rgba(0,0,0,.18); color: var(--text);
  border-radius:14px; padding:11px 12px; outline:none;
}
input:focus, textarea:focus, select:focus{border-color: rgba(47,111,255,.55); box-shadow: 0 0 0 3px rgba(47,111,255,.12);}
.hidden{display:none}

.contact-card{border:1px solid var(--line); background: rgba(255,255,255,.03); border-radius:16px; padding:12px; margin-top:14px;}
.contact-title{font-weight:900; font-size:12px; margin-bottom:6px;}
.contact-email{display:inline-block; font-weight:900; text-decoration:none;}
.contact-email:hover{text-decoration:underline;}
.contact-email-lg{display:inline-block; font-weight:900; font-size:16px; text-decoration:none; margin-top:6px;}
.contact-email-lg:hover{text-decoration:underline;}

.footer{border-top:1px solid var(--line); padding:18px 0 28px; background: rgba(11,18,32,.6);}
.footer-inner{display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;}
.footer-brand{display:flex; align-items:center; gap:10px;}

/* Chat widget */
.chat-fab{
  position:fixed;
  right:18px;
  bottom:18px;
  width:52px;
  height:52px;
  border-radius:18px;
  border:1px solid rgba(234,240,255,.18);
  background: linear-gradient(135deg, rgba(47,111,255,1), rgba(14,165,233,1));
  color:#0b1220;
  font-weight:900;
  font-size:18px;
  cursor:pointer;
  z-index:30;
}
.chat{
  position:fixed;
  right:18px;
  bottom:82px;
  width:min(380px, calc(100vw - 36px));
  height:520px;
  max-height: calc(100vh - 120px);
  border:1px solid rgba(234,240,255,.18);
  background: rgba(15,26,46,.92);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  overflow:hidden;
  z-index:30;
  display:none;
}
.chat[aria-hidden="false"]{display:block;}
.chat-header{
  padding:12px 12px 10px;
  border-bottom:1px solid rgba(234,240,255,.12);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.chat-title{font-weight:900; font-size:12px; display:flex; flex-direction:column;}
.chat-sub{font-weight:700; color:var(--muted); font-size:12px; margin-top:2px;}
.chat-close{
  width:34px;height:34px;border-radius:12px;
  border:1px solid rgba(234,240,255,.16);
  background: rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  font-size:18px;
}
.chat-body{
  padding:12px;
  height: calc(100% - 120px);
  overflow:auto;
}
.msg{
  display:flex;
  gap:10px;
  margin-bottom:10px;
}
.bubble{
  padding:10px 12px;
  border-radius: 16px;
  border:1px solid rgba(234,240,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-size:12.5px;
  line-height:1.45;
  max-width: 88%;
}
.msg.user{justify-content:flex-end;}
.msg.user .bubble{
  background: rgba(47,111,255,.18);
  border-color: rgba(47,111,255,.35);
}
.chat-input{
  padding:10px 12px;
  border-top:1px solid rgba(234,240,255,.12);
  display:flex;
  gap:10px;
  align-items:center;
}
#chat-text{
  flex:1;
  border: 1px solid rgba(234,240,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  outline:none;
}
.chat-send{
  border-radius: 14px;
  padding: 10px 12px;
  border: 0;
  cursor:pointer;
  font-weight:900;
  color:#0b1220;
  background: linear-gradient(135deg, rgba(47,111,255,1), rgba(14,165,233,1));
}
.chat-foot{padding:0 12px 12px;}

@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr;}
  .assessment{grid-template-columns: 1fr;}
  .steps{grid-template-columns: 1fr;}
  .palette-grid{grid-template-columns: 1fr 1fr;}
  h1{font-size:36px;}
}
