:root{
  --bg: #050A18;
  --bg2: #070F25;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --line: rgba(255,255,255,.10);

  --primary: #25B7FF;
  --primary2: #1B6BFF;
  --shadow: 0 16px 50px rgba(0,0,0,.45);

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --header-offset: 92px;
}

*{ box-sizing:border-box; }
html{
  scroll-behavior:smooth;
  scroll-padding-top: var(--header-offset);
}
[id]{ scroll-margin-top: var(--header-offset); }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% -10%, rgba(37,183,255,.18), transparent 60%),
              radial-gradient(900px 500px at 90% 20%, rgba(27,107,255,.16), transparent 65%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  overflow-x: hidden;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{
  width:min(1100px, calc(100% - 32px));
  margin-inline:auto;
}

.glow{
  position:fixed;
  inset:-200px -200px auto -200px;
  height:420px;
  background: radial-gradient(circle at 30% 40%, rgba(37,183,255,.25), transparent 65%);
  filter: blur(20px);
  pointer-events:none;
  z-index:0;
}

.header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(5,10,24,.55);
  border-bottom:1px solid var(--line);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.brand{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.brand__mark{ width:34px; height:34px; border-radius:10px; }
.brand__name{ font-weight:800; letter-spacing:.6px; }

.nav{
  display:flex;
  align-items:center;
  gap:4px;
  padding:6px;
  border-radius: 16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  white-space: nowrap;
}
.nav a{
  color:var(--muted);
  font-weight:700;
  font-size:15px;
  line-height:1;
  padding:10px 12px;
  border-radius: 12px;
  white-space: nowrap;
  transition: background .12s ease, color .12s ease;
}
.nav a:hover{
  color:var(--text);
  background: rgba(255,255,255,.07);
}

.header__cta{ display:flex; align-items:center; gap:10px; }
.header__cta .btn{
  padding:10px 12px;
  border-radius: 12px;
  line-height:1;
  white-space: nowrap;
}
.burger{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.burger span{ display:block; height:2px; margin:7px 10px; background: rgba(255,255,255,.85); border-radius:99px; }

.mobile-nav{
  display:none;
  padding:10px 16px 16px;
  border-top:1px solid var(--line);
}
.mobile-nav a{
  display:block;
  padding:12px 12px;
  border-radius:14px;
  color:var(--muted);
  border:1px solid transparent;
}
.mobile-nav a:hover{
  color:var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.04);
}
.mobile-nav__actions{
  display:grid;
  gap:10px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--line);
}
.mobile-nav__actions .btn{
  width:100%;
}

.hero{ padding:64px 0 28px; position:relative; z-index:1; }
.hero__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  align-items:stretch;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--muted);
  font-weight:700;
  font-size:14px;
}
.hero__content .pill{
  display:flex;
  width: fit-content;
  margin-inline:auto;
}

h1{
  margin:14px 0 10px;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height:1.08;
  letter-spacing:-.02em;
}
.hero__content h1{ text-align:center; }
.hero__content .lead{ text-align:center; }
.lead{ color:var(--muted); font-size:18px; line-height:1.5; margin:0 0 18px; }

.hero__actions{ display:flex; gap:12px; flex-wrap:wrap; margin:14px 0 14px; }

.hero__badges{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.badge{
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--muted);
  font-weight:700;
  font-size:13px;
}

.section{ padding:56px 0; position:relative; z-index:1; }
.section__head{ margin-bottom:18px; }
.section__head h2{
  margin:0 0 8px;
  font-size: clamp(24px, 2.2vw, 34px);
  letter-spacing:-.02em;
}
.section__head p{ margin:0; color:var(--muted); }

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}

.card{
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature{ padding:18px; }
.icon{
  width:44px; height:44px;
  display:grid; place-items:center;
  border-radius: 16px;
  background: rgba(37,183,255,.10);
  border:1px solid rgba(37,183,255,.20);
  margin-bottom:12px;
  font-size:20px;
}
.feature h3{ margin:0 0 8px; }
.feature p{ margin:0; color:var(--muted); line-height:1.55; }

.hero__visual{ padding:18px; display:flex; flex-direction:column; justify-content:space-between; gap:12px; }
.hero__logo{ border-radius: 18px; border:1px solid var(--line); background: rgba(0,0,0,.15); padding:10px; }
.hero__stats{ display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; }
.stat{
  border-radius: 16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  padding:12px;
}
.stat__k{ display:block; font-weight:900; font-size:18px; }
.stat__t{ display:block; color:var(--muted); font-size:12px; margin-top:4px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius: 16px;
  border:1px solid var(--line);
  font-weight:800;
  letter-spacing:.2px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); }
.btn--primary{
  border-color: rgba(37,183,255,.35);
  background: linear-gradient(135deg, rgba(37,183,255,.95), rgba(27,107,255,.90));
  color: #071025;
}
.btn--ghost{
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.btn:disabled,
.btn.is-disabled{
  opacity:.6;
  cursor:not-allowed;
  pointer-events:none;
  transform:none;
}

.filters{ display:flex; gap:10px; flex-wrap:wrap; margin: 10px 0 16px; }
.chip{
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-weight:800;
  cursor:pointer;
}
.chip.is-active{
  color:#071025;
  border-color: rgba(37,183,255,.35);
  background: linear-gradient(135deg, rgba(37,183,255,.95), rgba(27,107,255,.90));
}

.project{ padding:18px; }
.project__top{ display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.project h3{ margin:0; }
.project .muted{
  margin: 12px auto 0;
  max-width: 34ch;
  text-align: center;
  line-height: 1.45;
}
.tag{
  padding:8px 10px;
  border-radius: 999px;
  border:1px solid rgba(37,183,255,.25);
  background: rgba(37,183,255,.10);
  color: rgba(255,255,255,.85);
  font-weight:800;
  font-size:12px;
}
.muted{ color:var(--muted); }
.small{ font-size:12px; }
.stack{ display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.stack span{
  padding:8px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-weight:800;
  font-size:12px;
}

.project__gallery{
  margin-top:12px;
  position:relative;
  overflow:hidden;
  width: clamp(160px, 22vw, 210px);
  aspect-ratio: 9 / 19.5;
  min-height: unset;
  margin-inline:auto;
  border-radius: 24px;
  padding: 6px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
}

.project__gallery img{
  width:100%;
  height:100%;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.2);
}

.project__gallery--slider img{
  position:absolute;
  inset:0;
  opacity:0;
  transition: opacity .35s ease;
}

.project__gallery--slider img.is-visible{
  opacity:1;
}

.project__media{
  margin-top:12px;
  border-radius: var(--r-md);
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.project__media img{
  width:100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.slider-arrow{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:32px;
  height:32px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(5,10,24,.75);
  color: var(--text);
  display:grid;
  place-items:center;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  z-index:2;
}

.slider-arrow:hover{
  background: rgba(27,107,255,.45);
}

.slider-arrow--prev{ left:10px; }
.slider-arrow--next{ right:10px; }

.cta-row{ display:flex; gap:12px; flex-wrap:wrap; margin-top:16px; }

.about{ padding:18px; display:grid; grid-template-columns: 1.2fr .8fr; gap:16px; }
.about__list{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.about__item{
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-weight:800;
  font-size:13px;
}
.about__side{ padding:18px; background: rgba(255,255,255,.05); }

.link{
  display:inline-flex;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight:800;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.social{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }

.form{ padding:18px; }
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
label{ color: var(--muted); font-weight:800; font-size:13px; }
input, textarea{
  background: rgba(255,255,255,.04);
  border:1px solid var(--line);
  border-radius: 16px;
  padding:12px 12px;
  color: var(--text);
  outline:none;
}
input:focus, textarea:focus{
  border-color: rgba(37,183,255,.35);
  box-shadow: 0 0 0 4px rgba(37,183,255,.10);
}
.hidden{ display:none; }

.contact-card{ padding:18px; }
.contact-lines{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.divider{ height:1px; background: var(--line); margin:16px 0; }

.footer{
  padding:26px 0 40px;
  border-top:1px solid var(--line);
  background: rgba(0,0,0,.12);
}
.footer__inner{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.footer__brand{ display:flex; align-items:center; gap:12px; }
.footer__brand img{ width:34px; height:34px; border-radius:10px; }
.to-top{
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-weight:900;
}

.legal-card{
  padding:18px;
  display:grid;
  gap:14px;
}

@media (max-width: 980px){
  .header__inner{ gap:10px; }
  .header__cta{ margin-left:auto; }
  .header__cta > .btn{ display:none; }
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__stats{ grid-template-columns: repeat(3,1fr); }
  .grid3{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .about{ grid-template-columns: 1fr; }
  .nav{ display:none; }
  .burger{ display:inline-block; }
  .mobile-nav.is-open{ display:block; }
  .section{ padding:46px 0; }
  .project__gallery{ width: clamp(150px, 45vw, 190px); }
}

@media (max-width: 1220px){
  .brand__name{ font-size:15px; }
  .nav a{ font-size:14px; padding:9px 10px; }
  .header__btn--donation{ display:none; }
}

@media (max-width: 1080px){
  .header__btn--github{ display:none; }
}

  .download{ padding:18px; }
  .download h3{ margin:0 0 10px; }
  .download .muted{ margin:0; line-height:1.5; }

@media (max-width: 640px){
  .container{ width:min(1100px, calc(100% - 24px)); }
  .brand__name{ font-size:14px; letter-spacing:.35px; }
  .hero{ padding:42px 0 20px; }
  h1{ font-size: clamp(26px, 9vw, 34px); line-height:1.15; }
  .lead{ font-size:16px; }
  .pill{ font-size:13px; }
  .hero__actions .btn,
  .cta-row .btn,
  .social .btn{
    width:100%;
  }
  .hero__badges{ gap:8px; }
  .badge{ font-size:12px; }
  .project{ padding:14px; }
  .project__top{ flex-direction:column; align-items:flex-start; }
  .project .muted{ max-width:none; text-align:left; }
  .project__gallery{ width: clamp(150px, 58vw, 210px); }
  .download{ padding:14px; }
  .slider-arrow{ width:28px; height:28px; font-size:20px; }
  .contact-lines .link{ width:100%; }
  .footer__inner{ flex-direction:column; align-items:flex-start; }
  .to-top{ width:100%; text-align:center; justify-content:center; }
}
