 :root {
  --bg: #0e0f18;
  --text: #f5f5fb;
  --muted: #a5a6ba;
  --purple: #a99aff;
  --blue: #7cc8ff;
  --line: rgba(255,255,255,.11);
  --glass: rgba(255,255,255,.055);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(ellipse at 50% -20%, #27213f 0%, transparent 54%), #0e0f18; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.ambient { position: absolute; z-index: -1; border-radius: 50%; filter: blur(100px); opacity: .25; pointer-events: none; }
.ambient-one { width: 370px; height: 370px; top: 190px; left: -190px; background: #6551d9; }
.ambient-two { width: 450px; height: 450px; top: 500px; right: -250px; background: #2968a5; }
.ambient-three { width: 350px; height: 350px; top: 1600px; left: 25%; background: #6a3d8c; opacity: .12; }
.navbar { width: min(1180px, calc(100% - 48px)); height: 84px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: 'Space Grotesk', sans-serif; font-size: 15px; letter-spacing: -.3px; white-space: nowrap; }
.brand b { font-weight: 500; color: #c7c4d9; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid rgba(185,172,255,.55); border-radius: 12px; background: linear-gradient(145deg, rgba(166,145,255,.25), rgba(95,115,255,.07)); box-shadow: 0 0 25px #8e7aff20; font-weight: 700; font-size: 12px; }
.nav-links { display: flex; gap: 32px; margin-left: auto; margin-right: 15px; }
.nav-links a, .back-top { color: #b3b3c5; font-size: 13px; transition: color .2s; }
.nav-links a:hover, .back-top:hover { color: white; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid transparent; border-radius: 13px; padding: 14px 19px; font-size: 13px; font-weight: 700; transition: transform .22s, box-shadow .22s, background .22s; cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button-small { padding: 11px 15px; border-radius: 11px; }
.button-glass, .button-secondary { border-color: var(--line); background: rgba(255,255,255,.045); color: #eeeefa; backdrop-filter: blur(16px); }
.button-glass:hover, .button-secondary:hover { background: rgba(255,255,255,.09); }
.button-primary { background: linear-gradient(110deg, #b2a1ff, #8c9dff); color: #111221; box-shadow: 0 8px 32px #988aff25; }
.button-primary:hover { box-shadow: 0 10px 38px #988aff4b; }
.button-primary svg { width: 17px; height: 17px; fill: currentColor; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: white; margin: 5px; border-radius: 2px; }
.hero { width: min(1180px, calc(100% - 48px)); min-height: 650px; margin: 0 auto; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 30px; padding: 40px 0 80px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #aaa8c5; font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.status-dot, .stat-dot, .tiny-glow { width: 7px; height: 7px; border-radius: 50%; background: #8be5bf; box-shadow: 0 0 12px #8be5bf8a; }
h1, h2, h3, p { margin-top: 0; }
h1, .section-heading h2, .projects-copy h2, .join-section h2 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -2.8px; }
h1 { font-size: clamp(50px, 6vw, 77px); line-height: .99; font-weight: 600; margin: 26px 0 24px; }
h1 span, .section-heading h2 span, .projects-copy h2 span, .join-section h2 span { color: #a99aff; background: linear-gradient(100deg, #c2aaff 0%, #91b9ff 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-description { color: var(--muted); max-width: 465px; font-size: 15px; line-height: 1.9; margin-bottom: 29px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 36px; color: #85869d; font-size: 11px; }
.mini-avatars { display: flex; padding-left: 3px; }
.mini-avatars i { width: 25px; height: 25px; margin-left: -4px; border: 2px solid var(--bg); border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-style: normal; font-weight: 700; color: #191829; background: linear-gradient(135deg,#c2b4ff,#87d7f8); }
.mini-avatars i:nth-child(2) { background: linear-gradient(135deg,#f2b6da,#b7a4ff); }
.mini-avatars i:nth-child(3) { background: #29283b; color: #d9d4ff; }
.hero-visual { min-height: 480px; display: grid; place-items: center; position: relative; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, #8c7aff22, #4f76b80a 55%, transparent 70%); z-index: -1; }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-large { width: 340px; height: 340px; right: 1%; top: 15%; border: 1px solid #c2b3ff16; box-shadow: inset 0 0 70px #b7a7ff0a, 0 0 80px #8b83ff0a; }
.orb-small { width: 12px; height: 12px; right: 12%; top: 17%; background: #a99aff; box-shadow: 0 0 30px 10px #a99aff45; }
.glass-panel { background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025)); border: 1px solid rgba(255,255,255,.13); box-shadow: 0 30px 80px #0003, inset 0 1px 0 #ffffff0b; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.discord-card { position: relative; width: min(340px, 80%); padding: 21px; border-radius: 25px; transform: rotate(-2deg); z-index: 2; }
.card-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 5px; height: 5px; background: #77758c; border-radius: 50%; }
.window-dots i:first-child { background: #f3a9c2; }.window-dots i:nth-child(2) { background: #f6d18e; }.window-dots i:nth-child(3) { background: #9ce2bd; }
.live-pill { display: flex; align-items: center; gap: 6px; font-size: 8px; letter-spacing: 1.3px; color: #a7a6bc; }
.live-pill b { width: 5px; height: 5px; background: #91e9bd; border-radius: 50%; }
.server-icon { width: 70px; height: 70px; border-radius: 23px; display: grid; place-items: center; position: relative; margin: 0 auto 15px; font: 700 24px 'Space Grotesk'; background: linear-gradient(135deg,#b6a4ff,#7e9aff 70%,#84d6f2); color: #171526; box-shadow: 0 10px 35px #9e91ff40; }
.server-icon span { position: absolute; right: -5px; top: -5px; color: #fff; font-size: 15px; text-shadow: 0 0 10px #fff; }
.discord-card h2 { font: 600 22px 'Space Grotesk'; letter-spacing: -.8px; text-align: center; margin-bottom: 6px; }
.server-subtitle { text-align: center; font-size: 11px; color: #9c9bb3; margin-bottom: 21px; }
.server-divider { height: 1px; background: var(--line); margin-bottom: 17px; }
.server-stat-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.server-stat-row div:first-child { display: grid; grid-template-columns: 9px 1fr; column-gap: 7px; align-items: center; }
.stat-dot { width: 6px; height: 6px; grid-row: span 2; }
.server-stat-row strong { font-size: 10px; font-weight: 600; }
.server-stat-row small { grid-column: 2; color: #8989a3; font-size: 9px; margin-top: 4px; }
.stat-symbol { color: #aaa0ff; font-size: 21px; }
.channel-list { display: grid; gap: 5px; margin-bottom: 18px; }
.channel { border-radius: 8px; padding: 10px; font-size: 10px; color: #9a99b0; background: #ffffff04; }
.channel span { font-size: 14px; margin-right: 7px; color: #77768f; }
.channel.active { background: #a99aff17; color: #e5e0ff; }
.channel.active span { color: #b7aaff; }
.channel b { float: right; color: #a99aff; font-size: 7px; margin-top: 4px; }
.card-join { width: 100%; padding: 12px; border-radius: 10px; font-size: 11px; justify-content: space-between; }
.floating-chip { display: flex; align-items: center; gap: 10px; position: absolute; padding: 12px 16px 12px 12px; background: #1b1b2ae8; border: 1px solid #ffffff18; border-radius: 14px; box-shadow: 0 15px 40px #0004; backdrop-filter: blur(18px); z-index: 3; }
.chip-top { right: -2%; top: 17%; animation: float 5s ease-in-out infinite; }.chip-bottom { left: -4%; bottom: 13%; animation: float 6s ease-in-out infinite reverse; }
.chip-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: #a8d9ff; background: #7bc5ff18; font-size: 17px; }
.chip-icon.purple { color: #c3afff; background: #a99aff1c; }
.floating-chip b, .floating-chip small { display: block; }.floating-chip b { font-size: 10px; font-weight: 600; }.floating-chip small { color: #9291a8; font-size: 9px; margin-top: 4px; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ticker { overflow: hidden; white-space: nowrap; border-top: 1px solid #ffffff0b; border-bottom: 1px solid #ffffff0b; background: #ffffff03; padding: 17px 0; color: #8f8ea8; font-size: 10px; font-weight: 700; letter-spacing: 2.4px; }
.ticker div { width: max-content; animation: ticker 38s linear infinite; }.ticker span { color: #b9a7ff; }.ticker i { color: #7770a8; font-style: normal; margin: 0 22px; }
@keyframes ticker { to { transform: translateX(-35%); } }
.section, .feature-grid { width: min(1050px, calc(100% - 48px)); margin: auto; }
.about-section { display: grid; grid-template-columns: 1fr .85fr; gap: 60px; padding: 125px 0 45px; align-items: end; }
.section-heading h2, .projects-copy h2, .join-section h2 { font-size: clamp(35px, 4vw, 49px); line-height: 1.12; letter-spacing: -2px; margin: 20px 0 0; }
.section-intro { color: var(--muted); font-size: 13px; line-height: 1.95; margin-bottom: 3px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; padding: 20px 0 125px; }
.feature-card { min-height: 255px; padding: 25px; border-radius: 19px; position: relative; transition: transform .25s, border-color .25s; }
.feature-card:hover { transform: translateY(-5px); border-color: #b4a6ff55; }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; font-size: 20px; margin-bottom: 24px; }
.icon-blue { color: #8ed5ff; background: #8ed5ff16; }.icon-purple { color: #c1a9ff; background: #b59aff18; }.icon-pink { color: #f4addb; background: #f4addb15; }
.feature-number, .project-type { display: block; color: #8e8da7; font-size: 9px; letter-spacing: 1.5px; font-weight: 700; margin-bottom: 10px; }
.feature-card h3 { font: 600 18px 'Space Grotesk'; letter-spacing: -.5px; margin-bottom: 11px; }
.feature-card p { font-size: 12px; line-height: 1.8; color: #9998af; margin-bottom: 0; }
.card-arrow { position: absolute; right: 23px; top: 23px; color: #77758f; }
.projects-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; padding: 70px 0 130px; align-items: center; }
.projects-copy h2 { margin: 20px 0; }.projects-copy p { max-width: 360px; color: var(--muted); font-size: 13px; line-height: 1.9; margin-bottom: 23px; }
.text-link { color: #c1b4ff; font-size: 12px; font-weight: 700; }.text-link span { margin-left: 8px; }
.project-stack { display: grid; gap: 12px; }
.project-card { min-height: 105px; display: flex; align-items: center; gap: 16px; padding: 19px; border-radius: 16px; transition: transform .2s, border-color .2s; }
a.project-card:hover { transform: translateX(4px); border-color: #a99aff55; }
.project-logo { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; flex-shrink: 0; font: 700 18px 'Space Grotesk'; }
.kp-logo { color: #d2c7ff; background: linear-gradient(145deg,#6b59a7,#292a4c); }.kp-logo span { color: #90d5ff; }
.trg-logo { color: #f5dfc4; background: linear-gradient(145deg,#715e4c,#2b282e); font-size: 14px; }.trg-logo span { color: #d4a878; }
.project-card .project-type { font-size: 8px; margin-bottom: 5px; }.project-card h3 { font: 600 16px 'Space Grotesk'; margin: 0 0 4px; }.project-card p { font-size: 11px; color: #9392aa; margin: 0; }
.project-arrow { margin-left: auto; color: #a29abf; font-size: 18px; }
.project-footnote { display: flex; align-items: center; gap: 9px; color: #85849a; font-size: 10px; padding: 5px 2px; }.tiny-glow { width: 5px; height: 5px; background: #b6a4ff; box-shadow: 0 0 10px #b6a4ff; }
.join-section { position: relative; overflow: hidden; margin: 0 auto 70px; width: min(1180px, calc(100% - 48px)); padding: 75px 25px; text-align: center; border: 1px solid #ffffff12; border-radius: 28px; background: linear-gradient(135deg, #ffffff08, #a99aff09 50%, #7cc8ff05); }
.join-glow { position: absolute; width: 350px; height: 200px; top: -140px; left: calc(50% - 175px); background: #9b8aff; filter: blur(100px); opacity: .24; pointer-events: none; }
.join-section .eyebrow { justify-content: center; }.join-section h2 { position: relative; margin: 20px 0 15px; }.join-section p { color: var(--muted); font-size: 13px; margin-bottom: 24px; }.button-large { padding: 16px 23px; }
.join-caption { color: #77768f; font-size: 10px; margin-top: 17px; }
.footer { width: min(1180px, calc(100% - 48px)); margin: auto; padding: 25px 0 32px; border-top: 1px solid #ffffff10; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer > span { color: #77768c; font-size: 10px; }.footer .brand { font-size: 12px; }.footer .brand-mark { width: 29px; height: 29px; border-radius: 9px; font-size: 10px; }
@media (min-width: 1400px) { .hero { min-height: 720px; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 8px; min-height: 590px; }
  h1 { font-size: clamp(48px, 6vw, 64px); }
  .hero-visual { transform: scale(.9); }
  .chip-top { right: -7%; }.chip-bottom { left: -7%; }
  .about-section { gap: 35px; }
  .projects-section { gap: 45px; }
}
@media (max-width: 700px) {
  .navbar { width: calc(100% - 34px); height: 72px; gap: 10px; }
  .navbar > .button { display: none; }
  .menu-toggle { display: block; cursor: pointer; }
  .nav-links { display: none; position: absolute; top: 62px; left: 0; right: 0; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #171725f5; backdrop-filter: blur(18px); margin: 0; flex-direction: column; gap: 0; }
  .nav-links.open { display: flex; }.nav-links a { padding: 12px 8px; }
  .hero { width: calc(100% - 38px); grid-template-columns: 1fr; padding: 55px 0 45px; gap: 0; }
  h1 { font-size: clamp(53px, 12vw, 72px); margin-top: 23px; }
  .hero-description { font-size: 14px; }
  .hero-visual { min-height: 445px; margin-top: 20px; transform: none; }
  .discord-card { width: min(330px, 84%); }
  .orb-large { right: 6%; width: 300px; height: 300px; }
  .chip-top { right: 0; top: 10%; }.chip-bottom { left: 0; bottom: 8%; }
  .ticker { font-size: 9px; }
  .section, .feature-grid { width: calc(100% - 38px); }
  .about-section { grid-template-columns: 1fr; gap: 25px; padding: 85px 0 25px; }
  .section-heading h2, .projects-copy h2, .join-section h2 { font-size: 39px; }
  .feature-grid { grid-template-columns: 1fr; padding: 20px 0 80px; }
  .feature-card { min-height: 220px; }
  .projects-section { grid-template-columns: 1fr; gap: 35px; padding: 20px 0 90px; }
  .join-section { width: calc(100% - 30px); padding: 65px 17px; margin-bottom: 40px; }
  .join-section .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
  .footer { width: calc(100% - 38px); flex-wrap: wrap; }
  .footer > span { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Live Discord server statistics */
.server-stats {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 14px;
  padding: 17px 14px;
  margin: 2px 0 9px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(135deg, rgba(169,154,255,.10), rgba(124,200,255,.035));
}
.server-stat { min-width: 0; }
.stat-label { display: flex; align-items: center; gap: 6px; color: #a7a6bc; font-size: 9px; }
.stat-label .stat-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; }
.stat-dot.live { background: #83d9ff; box-shadow: 0 0 10px #83d9ff8a; }
.server-stat strong { display: block; margin: 7px 0 3px; font: 600 25px 'Space Grotesk', sans-serif; letter-spacing: -.8px; color: #f4f1ff; }
.server-stat small { display: block; color: #85849e; font-size: 9px; }
.stats-divider { height: 43px; background: rgba(255,255,255,.11); }
.stats-footer { min-height: 27px; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 1px 11px; }
.stats-status { display: inline-flex; align-items: center; gap: 7px; color: #9291a8; font-size: 9px; }
.status-pulse { width: 5px; height: 5px; border-radius: 50%; background: #a99aff; box-shadow: 0 0 9px #a99aff8a; }
.stats-status.is-live .status-pulse { background: #8be5bf; box-shadow: 0 0 9px #8be5bf8a; }
.stats-status.is-error .status-pulse { background: #f0b18d; box-shadow: 0 0 9px #f0b18d8a; }
.refresh-stats { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.045); color: #c6baff; cursor: pointer; font-size: 17px; transition: transform .25s, background .2s; }
.refresh-stats:hover { background: rgba(169,154,255,.13); transform: rotate(35deg); }
.refresh-stats:disabled { opacity: .5; cursor: wait; }
.refresh-stats.loading { animation: spin-refresh .8s linear infinite; }
@keyframes spin-refresh { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .server-stats { padding: 15px 12px; }
  .server-stat strong { font-size: 23px; }
}


/* Mobile overflow guard: keep the page inside the viewport */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
main, header, footer, section, nav, .hero, .hero-copy, .hero-visual,
.section, .feature-grid, .projects-section, .project-stack, .join-section {
  min-width: 0;
}
img, video, canvas, svg {
  max-width: 100%;
}
.ticker {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.ticker > div {
  width: max-content;
  max-width: none;
}
.project-card > div:nth-child(2) {
  min-width: 0;
}
.project-card h3,
.project-card p {
  overflow-wrap: anywhere;
}
.ambient {
  max-width: 100vw;
}
.button i,
.text-link i,
.back-top i,
.card-arrow i,
.project-arrow i {
  line-height: 1;
}
.feature-icon i {
  font-size: 21px;
}
.stat-symbol i {
  font-size: 18px;
}
.refresh-stats i {
  font-size: 13px;
}
@media (max-width: 480px) {
  .navbar {
    width: calc(100% - 28px);
  }
  .brand {
    gap: 8px;
    font-size: 13px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
  .hero {
    width: calc(100% - 30px);
    overflow: clip;
  }
  h1 {
    font-size: clamp(42px, 11.8vw, 56px);
    letter-spacing: -2px;
    overflow-wrap: anywhere;
  }
  .hero-actions .button {
    width: 100%;
    max-width: 100%;
  }
  .hero-visual {
    width: 100%;
    min-width: 0;
    min-height: 400px;
    overflow: clip;
  }
  .discord-card {
    width: min(330px, calc(100% - 28px));
    padding-left: 17px;
    padding-right: 17px;
  }
  .floating-chip {
    max-width: 72%;
  }
  .chip-top {
    right: 0;
  }
  .chip-bottom {
    left: 0;
  }
  .section, .feature-grid {
    width: calc(100% - 30px);
  }
  .section-heading h2, .projects-copy h2, .join-section h2 {
    font-size: clamp(31px, 8.5vw, 38px);
    letter-spacing: -1.8px;
    overflow-wrap: anywhere;
  }
  .join-section {
    width: calc(100% - 24px);
    padding-left: 15px;
    padding-right: 15px;
  }
  .footer {
    width: calc(100% - 30px);
    gap: 15px;
  }
  .footer .brand {
    white-space: normal;
  }
}
