:root {
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --bg: 13 13 16;
  --panel: 23 23 28;
  --panel2: 33 33 40;
  --line: 46 46 55;
  --fg: 244 244 247;
  --muted: 156 156 170;
  --accent: 228 23 58;
  --accent-fg: 255 255 255;
  --ok: 38 201 120;
  --info: 70 140 255;
  --discord: 88 101 242;
  --shadow-card: 0 1px 2px rgb(0 0 0 / .25);
  --shadow-pop: 0 8px 20px -8px rgb(0 0 0 / .5);
  --shadow-deep: 0 1px 2px rgb(0 0 0 / .3), 0 10px 24px -14px rgb(0 0 0 / .55);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: 245 245 248;
  --panel: 255 255 255;
  --panel2: 240 240 244;
  --line: 222 222 230;
  --fg: 20 20 26;
  --muted: 100 100 116;
  --accent: 215 13 48;
  --ok: 18 160 90;
  --info: 40 110 230;
  --shadow-card: 0 1px 2px rgb(20 20 40 / .06);
  --shadow-pop: 0 8px 20px -10px rgb(20 20 40 / .22);
  --shadow-deep: 0 1px 2px rgb(20 20 40 / .06), 0 10px 24px -16px rgb(20 20 40 / .25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-sans); color: rgb(var(--fg)); background: rgb(var(--bg));
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .35s, color .35s;
}
::selection { background: rgb(var(--accent) / 0.35); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 3px; border-radius: 8px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgb(var(--line)); border-radius: 10px; border: 2px solid rgb(var(--bg)); }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; transform-origin: 0 50%; transform: scaleX(0); background: rgb(var(--accent)); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.9rem; padding: 0 1.4rem; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform .2s, filter .2s, background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: wait; pointer-events: none; }
.btn-primary { background: rgb(var(--accent)); color: rgb(var(--accent-fg)); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { background: rgb(var(--panel)); border-color: rgb(var(--line)); }
.btn-secondary:hover { border-color: rgb(var(--muted) / .6); }
.btn-discord { background: rgb(var(--discord)); color: #fff; }
.btn-discord:hover { filter: brightness(1.1); }
.btn-sm { height: 2.3rem; padding: 0 1rem; font-size: .93rem; border-radius: 10px; }

.header { position: sticky; top: 14px; z-index: 50; margin-top: 14px; }
.header .container { position: relative; }
.bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; height: 3.7rem; padding: 0 .55rem 0 1.15rem; border-radius: 999px;
  background: rgb(var(--panel)); border: 1px solid rgb(var(--line));
  box-shadow: var(--shadow-card);
  transition: background-color .3s, box-shadow .3s, transform .3s;
}
.header.scrolled .bar { box-shadow: var(--shadow-pop); }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.brand img { width: 2rem; height: 2rem; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.nav { display: flex; gap: .3rem; justify-self: center; }
.nav a { position: relative; padding: .5rem .95rem; color: rgb(var(--muted)); font-weight: 600; font-size: .93rem; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 50%; bottom: .1rem; width: 0; height: 2px; border-radius: 2px; background: rgb(var(--accent)); transform: translateX(-50%); transition: width .25s; }
.nav a:hover { color: rgb(var(--fg)); }
.nav a:hover::after { width: .8rem; }
.nav a.active { color: rgb(var(--fg)); }
.nav a.active::after { width: 1.2rem; }
.tools { display: flex; align-items: center; gap: .5rem; justify-self: end; }
.discord-link { display: inline-flex; align-items: center; gap: .5rem; height: 2.5rem; padding: 0 1rem; border-radius: 999px; background: rgb(var(--discord)); color: #fff; font-weight: 700; font-size: .9rem; transition: filter .2s; }
.discord-link:hover { filter: brightness(1.12); }
.discord-link .icon { width: 1.15em; height: 1.15em; }

.icon-btn { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; cursor: pointer; background: rgb(var(--panel2) / .7); border: 1px solid rgb(var(--line)); border-radius: 999px; color: rgb(var(--muted)); transition: color .2s, border-color .2s, transform .2s; }
.icon-btn:hover { color: rgb(var(--fg)); border-color: rgb(var(--muted) / .6); }
.theme-btn .i-sun, .theme-btn .i-moon { grid-area: 1 / 1; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .3s; }
:root[data-theme="dark"] .theme-btn .i-sun { transform: rotate(-90deg) scale(.4); opacity: 0; }
:root[data-theme="light"] .theme-btn .i-moon { transform: rotate(90deg) scale(.4); opacity: 0; }
.burger { display: none; }

.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: .5rem; height: 2.5rem; padding: 0 .75rem 0 .65rem; cursor: pointer; background: rgb(var(--panel2) / .7); border: 1px solid rgb(var(--line)); border-radius: 999px; font-weight: 700; font-size: .85rem; letter-spacing: .04em; transition: border-color .2s; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: rgb(var(--accent) / .6); }
.lang-btn .chev { width: .9em; height: .9em; color: rgb(var(--muted)); transition: transform .25s; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.flag { width: 1.4rem; height: .95rem; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgb(0 0 0 / .18); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; min-width: 8.6rem; margin: 0; padding: .4rem; list-style: none;
  background: rgb(var(--panel)); border: 1px solid rgb(var(--line)); border-radius: 16px; box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97); transform-origin: 100% 0; transition: opacity .18s, transform .18s, visibility .18s;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: none; }
.lang-menu li { display: flex; align-items: center; gap: .65rem; padding: .5rem .65rem; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: .85rem; letter-spacing: .04em; color: rgb(var(--muted)); transition: background-color .15s, color .15s; }
.lang-menu li:hover, .lang-menu li.focus { background: rgb(var(--panel2)); color: rgb(var(--fg)); }
.lang-menu li[aria-selected="true"] { color: rgb(var(--accent)); background: rgb(var(--accent) / .1); }
.lang-menu li .tick { margin-left: auto; width: .9em; height: .9em; opacity: 0; }
.lang-menu li[aria-selected="true"] .tick { opacity: 1; }

section { padding: 6rem 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--accent)); }
.eyebrow::before { content: ""; width: 1.4rem; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); line-height: 1.15; letter-spacing: -.025em; margin: .8rem 0 1rem; font-weight: 800; }
.section-head p { color: rgb(var(--muted)); font-size: 1.1rem; }

.hero { position: relative; display: flex; align-items: center; min-height: calc(100vh - 5.4rem); min-height: calc(100svh - 5.4rem); padding: 3rem 0 6.5rem; }
.hero > .container { width: min(1120px, 100% - 40px); }
.hero .container { display: block; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; margin: 0 0 1.6rem; max-width: 15em; }
.hero h1 .accent { color: rgb(var(--accent)); }
.hero p.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: rgb(var(--muted)); max-width: 40rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.6rem; }
.hero .btn { height: 3.2rem; padding: 0 1.7rem; }
.hero-in > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) backwards; }
.hero-in > :nth-child(2) { animation-delay: .1s; }
.hero-in > :nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.scroll-down { position: absolute; transition: color .2s, opacity .3s, visibility .3s; left: 50%; bottom: 1.6rem; transform: translateX(-50%); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; color: rgb(var(--muted)); }
.scroll-down .icon { width: 1.7rem; height: 1.7rem; stroke-width: 2.2; animation: bob 1.9s ease-in-out infinite; }
.scroll-down:hover { color: rgb(var(--accent)); }
.scroll-down.hide { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes bob { 0%, 100% { transform: translateY(-3px); opacity: .55; } 50% { transform: translateY(6px); opacity: 1; } }

.logo { display: grid; place-items: center; border-radius: 14px; background: rgb(var(--accent) / .12); color: rgb(var(--accent)); border: 1px solid rgb(var(--accent) / .28); }
.logo svg { width: 56%; height: 56%; }

.logo.img { background: rgb(var(--panel2)); border-color: rgb(var(--line)); overflow: hidden; }
.logo.img img { width: 72%; height: 72%; object-fit: contain; }

.card { position: relative; border: 1px solid rgb(var(--line)); background: rgb(var(--panel)); border-radius: 20px; box-shadow: var(--shadow-card); }
.project, .pillar, .member { transition: border-color .25s, box-shadow .3s; }
.project:hover, .pillar:hover, .member:hover { box-shadow: var(--shadow-pop); border-color: rgb(var(--muted) / .4); }

.grid-projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.project { display: flex; flex-direction: column; padding: 1.9rem; overflow: hidden; box-shadow: var(--shadow-deep); }
.banner { position: relative; height: 8.2rem; margin: -1.9rem -1.9rem 1.5rem; overflow: hidden; border-bottom: 1px solid rgb(var(--line)); background: rgb(var(--accent) / .09); }
.banner .wm { position: absolute; right: 1.6rem; bottom: -1.8rem; width: 9.5rem; height: 9.5rem; color: rgb(var(--accent)); opacity: .55; }
.banner img.wm { object-fit: contain; opacity: .9; }
.project-top { display: flex; align-items: flex-end; gap: 1rem; margin: -3.9rem 0 1.2rem; position: relative; }
.project .logo { width: 3.7rem; height: 3.7rem; border-radius: 16px; background: rgb(var(--panel)); box-shadow: 0 0 0 5px rgb(var(--panel)); }
.project .logo.img { background: rgb(var(--panel2)); }
.project h3 { font-size: 1.5rem; letter-spacing: -.02em; font-weight: 800; }
.project p { color: rgb(var(--muted)); }
.features { list-style: none; margin: 1.3rem 0 1.8rem; padding: 1rem 1.1rem; display: grid; gap: .6rem; border: 1px solid rgb(var(--line) / .8); border-radius: 14px; background: rgb(var(--bg) / .5); }
.features li { display: flex; align-items: flex-start; gap: .6rem; font-size: .96rem; }
.features .icon { color: rgb(var(--ok)); margin-top: .22rem; width: 1.05em; height: 1.05em; }
.project .btn { margin-top: auto; align-self: flex-start; }

.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pillar { padding: 1.8rem; }
.icon-box { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: rgb(var(--accent) / .12); color: rgb(var(--accent)); border: 1px solid rgb(var(--accent) / .22); flex: none; }
.pillar .icon-box { margin-bottom: 1.1rem; }
.icon-box .icon { width: 1.4rem; height: 1.4rem; }
.pillar h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .45rem; }
.pillar p { color: rgb(var(--muted)); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 340px)); gap: 1.4rem; }
.member { padding: 2.1rem; text-align: center; }
.avatar { display: block; width: 7rem; height: 7rem; margin: 0 auto 1.2rem; border-radius: 50%; object-fit: cover; border: 2px solid rgb(var(--line)); }
.member h3 { font-size: 1.25rem; font-weight: 800; }
.member .role { color: rgb(var(--accent)); font-weight: 600; font-size: .92rem; margin-top: .15rem; }
.member .links { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.4rem; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .95rem; border: 1px solid rgb(var(--line)); border-radius: 999px; background: rgb(var(--panel2) / .8); font-size: .9rem; font-weight: 500; transition: .2s; position: relative; z-index: 1; }
.chip:hover { border-color: rgb(var(--accent) / .6); color: rgb(var(--accent)); }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.5rem; align-items: start; }
.channels { display: grid; gap: 1rem; }
.channel { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem; }
.channel .icon-box { background: rgb(var(--panel2)); border-color: rgb(var(--line)); }
.channel.is-discord .icon-box { background: rgb(var(--discord) / .15); border-color: rgb(var(--discord) / .35); color: rgb(var(--discord)); }
.channel b { display: block; font-size: 1rem; }
.channel span { color: rgb(var(--muted)); font-size: .92rem; overflow-wrap: anywhere; }
a.channel { transition: transform .25s, box-shadow .25s; }
a.channel:hover { box-shadow: var(--shadow-pop); }
.channel.disabled { opacity: .72; }
.soon { margin-left: auto; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: rgb(var(--panel2)); color: rgb(var(--muted)) !important; border: 1px solid rgb(var(--line)); white-space: nowrap; }
form { padding: 2rem; display: grid; gap: 1.1rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label { display: grid; gap: .4rem; font-size: .88rem; font-weight: 600; }
.input { width: 100%; height: 2.9rem; padding: 0 .9rem; border-radius: 12px; border: 1px solid rgb(var(--line)); background: rgb(var(--panel2) / .7); font-size: 1rem; font-weight: 400; transition: .2s; }
textarea.input { height: auto; min-height: 9rem; padding: .8rem .9rem; resize: vertical; }
.input::placeholder { color: rgb(var(--muted) / .7); }
.input:hover { border-color: rgb(var(--muted) / .5); }
.input:focus { outline: none; border-color: rgb(var(--accent)); box-shadow: 0 0 0 4px rgb(var(--accent) / .18); background: rgb(var(--panel)); }
.input:user-invalid { border-color: rgb(var(--accent)); }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-note { font-size: .85rem; color: rgb(var(--muted)); }
.form-status { font-size: .92rem; font-weight: 600; }
.form-status.ok { color: rgb(var(--ok)); }
.form-status.err { color: rgb(var(--accent)); }

.discord-band { padding: 1rem 0 6rem; }
.discord-card { display: flex; align-items: center; gap: 2rem; padding: 2.4rem 2.6rem; border-radius: 26px; border: 1px solid rgb(var(--discord) / .4); background: rgb(var(--discord) / .1); }
.discord-card .big { display: grid; place-items: center; width: 4.2rem; height: 4.2rem; border-radius: 20px; background: rgb(var(--discord)); color: #fff; flex: none; }
.discord-card .big .icon { width: 2.2rem; height: 2.2rem; }
.discord-card h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.02em; font-weight: 800; }
.discord-card p { color: rgb(var(--muted)); margin-top: .3rem; }
.discord-card .btn { margin-left: auto; }

footer { border-top: 1px solid rgb(var(--line)); padding: 3rem 0 2.2rem; color: rgb(var(--muted)); font-size: .92rem; background: rgb(var(--panel) / .5); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot-brand .brand { color: rgb(var(--fg)); margin-bottom: .8rem; }
.foot-brand p { max-width: 22rem; }
footer h4 { margin: 0 0 .8rem; color: rgb(var(--fg)); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
footer a:not(.btn):hover { color: rgb(var(--accent)); }
.foot-bottom { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgb(var(--line) / .7); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }

.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: rise .6s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: var(--d, 0ms); }
.no-js .reveal { opacity: 1; }

@media (max-width: 960px) {
  .hero .container, .contact-grid { grid-template-columns: 1fr; }
  .about-grid, .foot-grid { grid-template-columns: 1fr; }
  .discord-card { flex-wrap: wrap; }
  .discord-card .btn { margin-left: 0; }
}
@media (max-width: 860px) {
  .bar { display: flex; }
  .burger { display: grid; }
  .icon-btn, .lang-btn, .discord-link { height: 2.75rem; }
  .icon-btn { width: 2.75rem; }
  .icon-btn .icon { width: 1.35rem; height: 1.35rem; }
  .discord-link { min-width: 2.75rem; }
  .bar { height: 4rem; }
  .nav {
    position: absolute; top: calc(100% + 12px); left: 0; right: 0; justify-self: stretch; flex-direction: column; gap: .35rem; margin: 0; padding: .75rem; border-radius: 26px;
    background: rgb(var(--panel)); border: 1px solid rgb(var(--line)); box-shadow: var(--shadow-pop);
    transform: translateY(-8px) scale(.98); opacity: 0; visibility: hidden; transition: .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { display: flex; align-items: center; justify-content: space-between; min-height: 3.6rem; padding: 0 1.2rem; border-radius: 18px; font-size: 1.2rem; font-weight: 700; color: rgb(var(--fg)); background: rgb(var(--panel2) / .55); }
  .nav a::after { position: static; width: .6rem; height: .6rem; border-radius: 0; background: none; border: solid rgb(var(--muted)); border-width: 2px 2px 0 0; transform: rotate(45deg); transition: none; }
  .nav a:hover::after, .nav a.active::after { width: .6rem; border-color: rgb(var(--accent)); background: none; }
  .nav a.active { color: rgb(var(--accent)); background: rgb(var(--accent) / .12); }
  .lang-menu li { padding: .8rem .9rem; font-size: 1rem; }
  .flag { width: 1.6rem; height: 1.07rem; }
  .tools { margin-left: auto; }
}
@media (max-width: 680px) {
  section { padding: 4rem 0; }
  .hero { padding: 2rem 0 6rem; }
  .grid-projects, .row2 { grid-template-columns: 1fr; }
  form { padding: 1.4rem; }
  .header .brand span, .discord-link span { display: none; }
  .discord-link { padding: 0; width: 2.5rem; justify-content: center; }
  .discord-card { padding: 1.8rem 1.5rem; }
  .bar { padding-left: .9rem; gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; }
}
