:root{
  --bg:#040814;
  --bg-soft:#0b1222;
  --panel:rgba(255,255,255,.06);
  --panel-border:rgba(255,255,255,.12);
  --text:#eef3ff;
  --muted:#aab6d3;
  --primary:#61e8ff;
  --secondary:#7b6dff;
  --shadow:0 20px 50px rgba(0,0,0,.35);
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:"Plus Jakarta Sans", system-ui, sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 15% 8%, rgba(84,239,255,.20), transparent 25%),
    radial-gradient(circle at 75% 0%, rgba(122,109,255,.18), transparent 25%),
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.06), transparent 22%),
    linear-gradient(180deg, #07101d 0%, #040814 50%, #02050d 100%);
  min-height:100vh;
}

body.light{
  --bg:#eef6ff;
  --bg-soft:#ffffff;
  --panel:rgba(255,255,255,.75);
  --panel-border:rgba(0,0,0,.08);
  --text:#101828;
  --muted:#52607a;
  background:
    radial-gradient(circle at 15% 8%, rgba(84,239,255,.18), transparent 25%),
    radial-gradient(circle at 75% 0%, rgba(122,109,255,.12), transparent 25%),
    linear-gradient(180deg, #eef6ff 0%, #dfeaff 100%);
}

a{
  color:inherit;
  text-decoration:none;
}

.topbar{
  max-width:1280px;
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(8px);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 14px;
  border:1px solid #7dc7ff;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  box-shadow:0 0 0 2px rgba(125,199,255,.18) inset;
  font-weight:800;
}

.dot{
  width:14px;
  height:14px;
  border-radius:50%;
  background:linear-gradient(135deg, #aaf8ff, #51a8ff);
  box-shadow:0 0 16px rgba(97,232,255,.7);
}

.nav{
  display:flex;
  align-items:center;
  gap:28px;
  padding:12px 24px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:var(--shadow);
}

.nav a{
  font-weight:700;
  color:rgba(255,255,255,.9);
}

body.light .nav a{
  color:#22304a;
}

main{
  max-width:1280px;
  margin:0 auto;
  padding:0 18px 80px;
}

.hero{
  position:relative;
  padding:56px 0 20px;
}

.hero-bg{
  position:absolute;
  inset:0;
  pointer-events:none;
}

.hero-content{
  position:relative;
  max-width:1100px;
}

.badge{
  display:inline-block;
  padding:12px 18px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.86);
  font-weight:700;
  box-shadow:var(--shadow);
}

body.light .badge{
  color:#334155;
}

h1{
  margin:18px 0 18px;
  font-size:92px;
  line-height:.95;
  letter-spacing:-2px;
  font-weight:800;
}

.glow{
  background:linear-gradient(90deg, var(--primary), #5ea7ff 52%, var(--secondary));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 0 30px rgba(97,232,255,.15);
}

.sub{
  max-width:1050px;
  font-size:22px;
  line-height:1.6;
  color:var(--muted);
  margin:0 0 28px;
}

.actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:22px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:56px;
  padding:0 22px;
  border:none;
  border-radius:999px;
  font-weight:800;
  font-size:20px;
  cursor:pointer;
  background:linear-gradient(90deg, var(--primary), var(--secondary));
  color:#08111b;
  box-shadow:0 10px 28px rgba(97,232,255,.18);
}

.btn.ghost{
  background:rgba(255,255,255,.05);
  color:var(--text);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:none;
}

.btn.small{
  min-height:46px;
  padding:0 18px;
  font-size:17px;
}

.mini-cards{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-top:22px;
}

.card,
.tile,
.linkcard,
.ph{
  background:var(--panel);
  border:1px solid var(--panel-border);
  box-shadow:var(--shadow);
  backdrop-filter:blur(14px);
}

.card{
  border-radius:26px;
  overflow:hidden;
}

.card-title{
  padding:22px 22px 0;
  font-size:20px;
  font-weight:800;
}

.card-body{
  padding:18px 22px 22px;
}

.row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-bottom:14px;
  margin-bottom:14px;
  border-bottom:1px dashed rgba(255,255,255,.12);
}

.muted{
  color:var(--muted);
}

.hint{
  color:var(--muted);
  line-height:1.6;
  margin:10px 0 0;
}

.list{
  margin:0;
  padding-left:18px;
  color:var(--text);
  line-height:1.9;
}

.section{
  padding-top:70px;
}

.section-head h2{
  font-size:56px;
  line-height:1;
  margin:0 0 12px;
}

.section-head p{
  margin:0 0 26px;
  font-size:20px;
  line-height:1.6;
}

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

.tile{
  border-radius:24px;
  padding:24px;
  min-height:220px;
}

.tile h3{
  margin:0 0 14px;
  font-size:28px;
}

.tile p{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.7;
  font-size:18px;
}

.tag{
  display:inline-flex;
  align-items:center;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  font-size:14px;
  font-weight:700;
}

.gallery{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
}

.ph{
  min-height:180px;
  border-radius:20px;
  position:relative;
  overflow:hidden;
}

.ph::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(135deg, rgba(97,232,255,.12), rgba(123,109,255,.10)),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.04),
      rgba(255,255,255,.04) 12px,
      rgba(255,255,255,.02) 12px,
      rgba(255,255,255,.02) 24px
    );
}

.ph::after{
  content:attr(data-label);
  position:absolute;
  left:18px;
  bottom:16px;
  font-weight:800;
  color:rgba(255,255,255,.85);
}

.links{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:18px;
}

.linkcard{
  border-radius:20px;
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.lc-title{
  font-weight:800;
  font-size:20px;
}

.lc-sub{
  color:var(--muted);
}

.contact{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.mono{
  font-family:ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size:18px;
}

.footer{
  margin-top:70px;
  padding:24px 0 12px;
  border-top:1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}

.toTop{
  position:fixed;
  right:18px;
  bottom:18px;
  width:48px;
  height:48px;
  border:none;
  border-radius:12px;
  cursor:pointer;
  background:rgba(255,255,255,.08);
  color:var(--text);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:var(--shadow);
}

@media (max-width: 1100px){
  h1{font-size:74px}
  .sub{font-size:20px}
  .grid{grid-template-columns:1fr}
  .gallery{grid-template-columns:1fr 1fr}
  .links{grid-template-columns:1fr 1fr}
  .contact{grid-template-columns:1fr}
}

@media (max-width: 820px){
  .topbar{
    flex-direction:column;
    align-items:stretch;
  }
  .nav{
    justify-content:center;
    flex-wrap:wrap;
    gap:16px;
  }
  h1{font-size:54px}
  .sub{font-size:18px}
  .mini-cards{grid-template-columns:1fr}
  .gallery{grid-template-columns:1fr}
  .links{grid-template-columns:1fr}
  .section-head h2{font-size:40px}
}