
:root{
  --bg:#050b13;
  --panel:#07111e;
  --panel2:#0a1524;
  --line:#172b42;
  --line2:#203a58;
  --text:#f4f7ff;
  --muted:#9fb3d2;
  --blue:#1b8cff;
  --blue2:#2f4cff;
  --purple:#6c2fff;
  --green:#20e6ae;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(circle at 70% 0%,rgba(24,75,183,.12),transparent 25%),
    linear-gradient(180deg,#050b13,#06101a 50%,#050a11);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  min-height:100vh;
}
body.low-glow{--blue:#4a80b9;--blue2:#4053a8;--purple:#655599}
a{color:inherit;text-decoration:none}
button,textarea{font:inherit}
button{color:inherit}
img{display:block;max-width:100%}
.background-grid{
  position:fixed;inset:0;pointer-events:none;z-index:-10;opacity:.18;
  background-image:linear-gradient(rgba(39,93,148,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(39,93,148,.08) 1px,transparent 1px);
  background-size:40px 40px;
}
.top-nav{
  height:86px;
  position:sticky;top:0;z-index:80;
  display:grid;grid-template-columns:330px 1fr 330px;
  align-items:center;
  padding:0 38px;
  border-bottom:1px solid #15283c;
  background:rgba(4,10,18,.93);
  backdrop-filter:blur(18px);
}
.brand{display:flex;align-items:center;gap:16px}
.brand img{width:88px;height:58px;object-fit:cover;object-position:center;border-radius:12px}
.brand-copy strong{display:block;font-size:30px;line-height:.9;letter-spacing:-.05em}
.brand-copy strong span,.profile-card h2 span,.hero h1 span{color:#6a35ff}
.brand-copy small{display:block;margin-top:8px;color:#a8b8cf;font-size:11px}
.top-links{display:flex;justify-content:center;gap:10px}
.top-links a{padding:13px 28px;border-radius:16px;font-weight:700;font-size:15px;color:#e2e9f7}
.top-links a:hover,.top-links a.active{background:linear-gradient(135deg,#2734b5,#4d26ff);box-shadow:0 0 25px rgba(57,59,255,.25)}
.top-actions{display:flex;justify-content:flex-end;align-items:center;gap:14px}
.discord-btn,.primary-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  background:linear-gradient(135deg,#2457ff,#3922ff);
  border:1px solid #3a66ff;
  border-radius:14px;
  min-height:48px;padding:0 22px;
  font-weight:800;
  box-shadow:0 0 26px rgba(34,79,255,.2);
}
.discord-btn{min-width:190px}
.discord-glyph{font-size:20px}
.theme-btn,.menu-btn{
  width:48px;height:48px;border-radius:50%;border:1px solid #152b42;background:#08121f;cursor:pointer
}
.menu-btn{display:none;border-radius:13px}
.mobile-nav{display:none}
.app-shell{display:grid;grid-template-columns:240px minmax(0,1fr)}
.sidebar{
  min-height:calc(100vh - 86px);
  border-right:1px solid #14283c;
  padding:30px 16px;
  background:rgba(5,12,21,.76);
}
.side-nav{display:grid;gap:9px}
.side-nav a{
  display:flex;align-items:center;gap:17px;
  padding:16px 14px;border-radius:13px;color:#bfcae0;font-size:15px
}
.side-nav a span{width:30px;font-size:25px;color:#9db7ee;text-align:center}
.side-nav a:hover,.side-nav a.active{
  background:linear-gradient(90deg,rgba(27,70,255,.72),rgba(64,32,186,.52));
  color:white;box-shadow:inset 0 0 0 1px #2e65ff,0 0 22px rgba(25,73,255,.18)
}
.profile-card{
  margin-top:47px;border:1px solid #182c42;border-radius:18px;padding:28px 25px 25px;
  background:linear-gradient(180deg,#07111e,#06101b);
}
.profile-card>img{width:145px;height:105px;object-fit:cover;border-radius:13px;margin:0 auto}
.profile-card h2{font-size:28px;letter-spacing:-.05em;margin:13px 0 8px}
.profile-card p{font-size:17px;line-height:1.5;color:#d7e1f5;margin:0}
.socials{display:flex;gap:17px;margin:35px 0}
.socials a{font-size:18px;color:white}
.profile-motto{font-size:16px;line-height:1.45;color:#6996d0;letter-spacing:.04em}
.profile-motto i,.hero-right-copy i{display:block;width:36px;height:4px;background:#118bff;margin-top:13px}
.content{min-width:0}
.hero{
  position:relative;height:410px;overflow:hidden;border-bottom:1px solid #17304a;
}
.hero-banner{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-shade{
  position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(4,10,18,.44),rgba(4,10,18,.12) 48%,rgba(4,10,18,.36)),
             linear-gradient(180deg,rgba(3,8,15,.1),rgba(3,8,15,.42));
}
.hero-center{
  position:relative;z-index:2;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:12px 220px 10px;
  text-align:center
}
.hero-logo{width:145px;height:88px;object-fit:cover;border-radius:16px;margin-bottom:4px}
.hero h1{font-size:70px;line-height:.9;letter-spacing:-.065em;margin:0;text-shadow:0 2px 16px #000}
.hero h2{font-size:25px;margin:12px 0 4px;color:#c8d6ef}
.hero-center>p{font-size:16px;color:#b4c5e1;margin:5px 0 18px}
.hero-values{display:flex;gap:58px;margin-bottom:20px}
.hero-values div{display:grid;gap:3px;place-items:center}.hero-values b{font-size:28px;color:#168cff}.hero-values span{font-size:14px;font-weight:800}
.hero-actions{display:flex;gap:20px}
.primary-btn,.outline-btn{min-height:48px;padding:0 28px;border-radius:13px;font-weight:800;display:inline-flex;align-items:center;justify-content:center}
.outline-btn{border:1px solid #3272ff;background:rgba(4,10,20,.72)}
.hero-right-copy{
  position:absolute;right:37px;top:33px;z-index:3;color:white;font-size:14px;line-height:1.55;text-align:left
}
.ai-card{
  margin:18px 18px 0;border:1px solid #1a3552;border-radius:18px;background:linear-gradient(180deg,#081421,#06101b);
  box-shadow:0 15px 50px rgba(0,0,0,.18);padding:0 20px 18px;
}
.ai-header{min-height:84px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #1a314b}
.ai-title{display:flex;align-items:center;gap:18px}
.ai-avatar{position:relative;width:60px;height:60px;border-radius:50%;overflow:hidden;border:1px solid #4d62ff;background:#050b14;flex:none}
.ai-avatar.big{width:68px;height:68px}.ai-avatar img{width:100%;height:100%;object-fit:cover}
.ai-avatar.big span{position:absolute;right:2px;bottom:4px;width:14px;height:14px;border-radius:50%;background:var(--green);border:3px solid #081421}
.ai-title h2{font-size:28px;margin:0 0 3px;letter-spacing:-.04em}.ai-title p{margin:0;color:#b4c6e0}
.online-pill{display:flex;align-items:center;gap:10px;border:1px solid #26405e;border-radius:999px;padding:11px 20px;color:#d3def0}
.online-pill span{width:13px;height:13px;border-radius:50%;background:var(--green);box-shadow:0 0 14px var(--green)}
.ai-chat{min-height:130px;padding:23px 5px 13px}
.chat-row{display:flex;gap:17px;align-items:flex-start}
.chat-row.user{justify-content:flex-end}.chat-row.user .ai-avatar{display:none}
.bubble{
  max-width:min(700px,80%);border:1px solid #243b74;border-radius:14px;padding:14px 18px;background:linear-gradient(135deg,#132347,#172758);
  color:#f6f8ff;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5
}
.bubble strong{display:block;font-size:16px}.bubble small{display:block;margin-top:5px;color:#c6d5ee}
.chat-row.user .bubble{background:linear-gradient(135deg,#154f9d,#3426a7)}
.chat-row.loading .bubble{opacity:.75}
.quick-prompts{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin:4px 0 12px}
.quick-prompts button{
  min-height:51px;border:1px solid #1f3955;border-radius:12px;background:#081523;cursor:pointer;color:#d5e2f6;
  font-size:14px;display:flex;align-items:center;justify-content:center;gap:12px
}
.quick-prompts button:hover{border-color:#2e6ce6;background:#0a1b30}
.quick-prompts b{font-size:23px;color:#168cff}
.mode-strip{display:flex;gap:7px;overflow-x:auto;margin-bottom:10px;padding-bottom:1px}
.mode-strip button{
  white-space:nowrap;border:1px solid #1a324d;background:#07121f;color:#758cae;border-radius:999px;padding:7px 12px;cursor:pointer;font-size:11px
}
.mode-strip button.active{color:#dbe7ff;border-color:#2e64d1;background:#0b2345}
.composer{
  display:grid;grid-template-columns:58px 1fr 68px;gap:0;border:1px solid #1c3a59;border-radius:14px;background:#0a1728;min-height:70px;overflow:hidden
}
.attach-btn{border:0;border-right:1px solid #18344f;background:#0c1b2e;font-size:25px;color:#c4d8f5}
.composer textarea{resize:none;border:0;outline:0;background:transparent;color:white;padding:21px 20px;line-height:1.4;font-size:16px;max-height:180px}
.composer textarea::placeholder{color:#9cb0ce}
.send-btn{margin:8px;border:0;border-radius:14px;background:linear-gradient(135deg,#2465ff,#3524ff);font-size:25px;cursor:pointer}
.send-btn:disabled{opacity:.45;cursor:not-allowed}
.feature-row{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;padding:16px 18px 19px}
.feature-row article{
  border:1px solid #1b344f;border-radius:13px;min-height:67px;background:#081421;padding:10px 17px;display:flex;align-items:center;gap:15px
}
.feature-symbol{font-size:27px}.feature-row h3{font-size:13px;margin:0 0 5px}.feature-row p{font-size:11px;color:#9db0cc;margin:0}
.section-block{margin:0 18px 22px;border:1px solid #162f48;border-radius:18px;background:#07121f;padding:45px}
.section-heading span,.community-copy>span,.about-block div>span{color:#338eff;font-size:11px;font-weight:900;letter-spacing:.14em}
.section-heading h2,.community-copy h2,.about-block h2{font-size:39px;letter-spacing:-.045em;margin:10px 0}
.section-heading p,.community-copy p,.about-block p{color:#99aecb;line-height:1.75;max-width:760px}
.project-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-top:28px}
.project-grid article,.resource-grid article{
  border:1px solid #183653;border-radius:14px;background:linear-gradient(180deg,#0a1828,#081421);padding:22px
}
.project-grid b{color:#367dff;font:900 12px ui-monospace,monospace}.project-grid h3{font-size:18px;margin:18px 0 10px}
.project-grid p,.resource-grid p{color:#92a6c2;line-height:1.65;font-size:13px}
.project-grid span{color:#5f83b4;font-size:10px}
.community-block{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.community-copy .primary-btn{margin-top:15px}
.community-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.community-stats div{border:1px solid #1b3856;border-radius:13px;padding:22px;background:#081523}
.community-stats strong{display:block;font-size:27px;color:#2b85ff}.community-stats span{display:block;margin-top:5px;color:#99adca;font-size:12px}
.resource-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-top:28px}.resource-grid h3{margin:0 0 10px;font-size:16px}
.about-block{display:grid;grid-template-columns:180px 1fr;align-items:center;gap:35px}
.about-block>img{width:160px;height:120px;border-radius:20px;object-fit:cover;border:1px solid #234b72}
footer{
  min-height:62px;border-top:1px solid #132b42;padding:0 42px;display:flex;justify-content:space-between;align-items:center;color:#91a7c7;font-size:11px
}
footer div{display:flex;align-items:center;gap:28px}footer strong{color:#5477ad;letter-spacing:.09em}
@media(max-width:1150px){
  .top-nav{grid-template-columns:260px 1fr 240px;padding-inline:20px}.top-links a{padding-inline:16px}.discord-btn{min-width:155px}
  .app-shell{grid-template-columns:200px}.profile-card{padding-inline:15px}.profile-card>img{width:130px}
  .hero-center{padding-inline:100px}.hero h1{font-size:58px}.quick-prompts{grid-template-columns:repeat(3,1fr)}
  .project-grid,.resource-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:850px){
  .top-nav{grid-template-columns:1fr auto;height:72px;padding:0 14px}.top-links,.theme-btn{display:none}.top-actions{gap:8px}.menu-btn{display:block}.discord-btn{min-width:0;padding-inline:14px}.brand img{width:58px;height:42px}.brand-copy strong{font-size:23px}.brand-copy small{font-size:8px}
  .mobile-nav{position:fixed;top:72px;left:0;right:0;z-index:79;background:#06111d;border-bottom:1px solid #18314b;padding:10px 14px;display:none;grid-template-columns:1fr 1fr;gap:7px}.mobile-nav.open{display:grid}.mobile-nav a{padding:12px;border-radius:10px;background:#091725;color:#b9c9e1}
  .app-shell{display:block}.sidebar{display:none}.hero{height:500px}.hero-center{padding-inline:20px}.hero-right-copy{display:none}
  .hero-logo{width:115px}.hero h1{font-size:54px}.hero h2{font-size:20px}.hero-values{gap:30px}.hero-actions{width:100%;justify-content:center;flex-wrap:wrap}
  .ai-card{margin:12px}.feature-row{grid-template-columns:1fr 1fr;padding-inline:12px;gap:10px}.section-block{margin-inline:12px;padding:28px 20px}
  .community-block{grid-template-columns:1fr}.about-block{grid-template-columns:1fr}.about-block>img{width:125px;height:95px}
  footer{padding:20px;gap:16px;flex-direction:column;text-align:center}footer div{flex-wrap:wrap;justify-content:center}
}
@media(max-width:560px){
  .discord-btn{font-size:0;width:48px;height:44px;padding:0}.discord-btn .discord-glyph{font-size:20px}
  .brand-copy small{display:none}.hero{height:470px}.hero h1{font-size:47px}.hero h2{font-size:17px}.hero-center>p{font-size:13px}
  .hero-values{gap:18px}.hero-values b{font-size:22px}.hero-values span{font-size:11px}
  .primary-btn,.outline-btn{width:100%}.ai-card{padding-inline:12px}.ai-header{align-items:flex-start;padding:14px 0}.ai-title h2{font-size:22px}.ai-title p{font-size:11px}.ai-avatar.big{width:55px;height:55px}.online-pill{padding:8px 10px;font-size:11px}
  .quick-prompts{grid-template-columns:1fr 1fr;gap:7px}.quick-prompts button{font-size:11px;padding:8px}.quick-prompts b{font-size:18px}
  .composer{grid-template-columns:42px 1fr 52px;min-height:62px}.composer textarea{font-size:13px;padding:18px 10px}.send-btn{font-size:19px}.attach-btn{font-size:19px}
  .feature-row{grid-template-columns:1fr}.project-grid,.resource-grid,.community-stats{grid-template-columns:1fr}
  .section-heading h2,.community-copy h2,.about-block h2{font-size:31px}
}
