:root{
  --bg:#070A12;
  --bg2:#0B1030;
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.68);
  --line:rgba(255,255,255,.12);
  --card:rgba(255,255,255,.07);
  --card2:rgba(255,255,255,.10);
  --a:#7C3AED;
  --b:#22C55E;
  --c:#06B6D4;
  --r:18px;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --max:1120px;
  --ease:cubic-bezier(.2,.8,.2,1);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x:hidden;
}

.bg{position:fixed; inset:0; z-index:-2; overflow:hidden;}
.grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(closest-side at 50% 30%, rgba(0,0,0,.85), transparent 72%);
  opacity:.22;
}

.bg::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(1200px 700px at 50% 25%, transparent 40%, rgba(0,0,0,.55) 100%);
  pointer-events:none;
}
.bg::before{
  content:"";
  position:absolute; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  opacity:.06;
  mix-blend-mode: overlay;
  pointer-events:none;
}

.orb{
  position:absolute;
  width:520px; height:520px;
  border-radius:999px;
  opacity:.30;
  pointer-events:none;
  will-change: transform;
  transform: translate3d(0,0,0);
  filter:none;
  background:transparent;
  mix-blend-mode: normal;
}
.orb::before{
  content:"";
  position:absolute;
  inset:-160px;
  border-radius:999px;
  filter: blur(74px);
  transform: translate3d(0,0,0);
  will-change: transform;
}
.orb-a{left:-200px; top:-220px;}
.orb-a::before{ background: radial-gradient(circle at 30% 30%, rgba(124,58,237,.95), transparent 60%); }
.orb-b{right:-220px; top:20px;}
.orb-b::before{ background: radial-gradient(circle at 30% 30%, rgba(6,182,212,.95), transparent 60%); }
.orb-c{left:10%; bottom:-260px;}
.orb-c::before{ background: radial-gradient(circle at 30% 30%, rgba(34,197,94,.9), transparent 60%); }

#particles{position:absolute; inset:0; width:100%; height:100%; opacity:.75;}

.wrap{max-width:var(--max); margin:0 auto; padding:0 18px;}
.section{padding:84px 0;}
.muted{color:var(--muted)}
.mono{font-family:var(--mono)}
.small{font-size:13px}

.topbar{
  position:sticky; top:0; z-index:30;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7,10,18,.78), rgba(7,10,18,.42));
  border-bottom:1px solid rgba(255,255,255,.08);
}
.bar{display:flex; align-items:center; justify-content:space-between; padding:12px 0; gap:14px;}
.brand{
  display:flex; align-items:center; gap:10px;
  color:var(--text); text-decoration:none;
  font-weight:750; letter-spacing:.2px;
}
.mark{
  width:34px; height:34px; border-radius:12px;
  background: conic-gradient(from 220deg, var(--a), var(--c), var(--b), var(--a));
  box-shadow: 0 10px 35px rgba(124,58,237,.25);
}
.nav{display:flex; align-items:center; gap:6px; flex-wrap:wrap;}
.navlink{
  color:var(--muted);
  text-decoration:none;
  font-size:14px;
  padding:10px 10px;
  border-radius:10px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.navlink:hover{background:rgba(255,255,255,.06); color:var(--text)}
.navlink.active{color:var(--text); background:rgba(255,255,255,.08)}

.btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width: fit-content;
  white-space: nowrap;
  padding:11px 16px;
  min-height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
  font-weight:750;
  text-decoration:none;
  cursor:pointer;
  user-select:none;
  overflow:hidden;
  isolation:isolate;
  --mx:0px;
  --my:0px;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform .22s var(--ease), background .22s var(--ease), filter .22s var(--ease);
}
.btn:hover{ background: rgba(255,255,255,.08); filter:saturate(1.05); }
.btn:focus{ outline:none; box-shadow: 0 0 0 4px rgba(124,58,237,.25); }

.btn.primary{
  border:none;
  background:
    radial-gradient(120% 160% at 15% 20%, rgba(255,255,255,.22), transparent 55%),
    linear-gradient(120deg, rgba(124,58,237,.98), rgba(79,70,229,.78), rgba(6,182,212,.62));
  box-shadow: 0 18px 50px rgba(124,58,237,.28);
}

.btn.primary::after{
  content:"";
  position:absolute;
  inset:-60px auto -60px -80px;
  width:200px;
  transform: translateX(-180px) rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  opacity:0;
  pointer-events:none;
  z-index:0;
}
.btn.primary:hover::after{
  opacity:.95;
  animation: btnShine 1.1s var(--ease) 1;
}
@keyframes btnShine{
  from{ transform: translateX(-200px) rotate(20deg); }
  to{ transform: translateX(540px) rotate(20deg); }
}
.btn > *{ position:relative; z-index:1; }

.btn.ghost{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16);
  font-weight:700;
}
.btn.ghost:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
}

.btn.mini{padding:9px 12px; min-height:38px; border-radius:12px; font-size:14px; font-weight:650;}

.arrow{
  margin-left:2px;
  opacity:.9;
  transform: translateX(0);
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.btn.primary:hover .arrow{ transform: translateX(3px); opacity:1; }

.hero{padding:68px 0 28px;}
.heroGrid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  align-items:stretch;
}
@media (max-width: 980px){.heroGrid{grid-template-columns:1fr;}}

.pill{
  display:inline-flex; gap:10px; align-items:center;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.04);
  backdrop-filter: blur(10px);
  font-family:var(--mono);
  font-size:12px;
}
.dot{
  width:9px; height:9px; border-radius:50%;
  background: conic-gradient(from 0deg, var(--a), var(--c), var(--b), var(--a));
  box-shadow: 0 0 20px rgba(124,58,237,.6);
}
h1{
  margin:14px 0 12px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height:1.02;
  letter-spacing:-.8px;
}
.grad{
  background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.78) 30%, rgba(255,255,255,.96));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.type{border-bottom:1px dashed rgba(255,255,255,.22)}
.lead{max-width:64ch; color:var(--muted); line-height:1.6; margin:0 0 18px;}

.ctaRow{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:22px;
}

.stats{display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; margin-top:10px;}
@media (max-width: 820px){.stats{grid-template-columns:1fr;}}
.stat{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12);
  border-radius: var(--r);
  padding:14px;
  box-shadow: var(--shadow);
}
.num{font-size:26px; font-weight:820; letter-spacing:-.3px;}
.lbl{color:var(--muted); font-size:13px; margin-top:6px;}

.glassCard{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.cardTop{
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 14px 0;
}
.chips{display:flex; flex-wrap:wrap; gap:8px;}
.chip{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  font-size:13px;
  color:rgba(255,255,255,.82);
}
.miniPulse{
  width:14px; height:14px; border-radius:50%;
  background: rgba(34,197,94,.9);
}
.miniPulse span{
  display:block; width:100%; height:100%;
  border-radius:50%;
  animation: pulse 1.6s var(--ease) infinite;
}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(34,197,94,.28)}
  100%{box-shadow:0 0 0 16px rgba(34,197,94,0)}
}

.codeBox{
  position:relative;
  margin:14px;
  background:rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:14px;
  overflow:hidden;
  font-family:var(--mono);
  color:rgba(255,255,255,.72);
}
.codeBox pre{margin:0; white-space:pre; overflow:auto; padding-bottom:6px;}
.k{color:rgba(255,255,255,.92)}
.s{color:#a5b4fc}
.glowMouse{
  position:absolute; inset:0;
  background: radial-gradient(600px 240px at var(--mx, 30%) var(--my, 30%), rgba(255,255,255,.14), transparent 55%);
  opacity:.7;
  pointer-events:none;
}
.cardBottom{
  display:flex; align-items:center; gap:10px;
  padding:0 14px 14px;
}

.head{display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin-bottom:16px; flex-wrap:wrap;}
h2{margin:0; font-size: clamp(22px, 2.5vw, 30px); letter-spacing:-.4px;}
.cards{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 980px){.cards{grid-template-columns:1fr;}}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding:16px;
  min-height: 160px;
  transition: transform .25s var(--ease);
  transform-style:preserve-3d;
}
.card:hover{transform: translateY(-6px);}
.ico{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(120deg, rgba(124,58,237,.95), rgba(34,197,94,.65));
  box-shadow: 0 14px 40px rgba(124,58,237,.18);
  margin-bottom:12px;
}
.card h3{margin:0 0 6px; font-size:16px}
.card p{margin:0; color:var(--muted); line-height:1.55; font-size:14px}
.more{display:inline-flex; gap:8px; align-items:center; margin-top:12px; color:rgba(255,255,255,.85); text-decoration:none; font-size:14px; opacity:.9;}
.more:hover{opacity:1}

.projects{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 980px){.projects{grid-template-columns:1fr;}}
.proj{
  text-decoration:none;
  color:var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow:hidden;
  transition: transform .25s var(--ease);
}
.proj:hover{transform: translateY(-6px);}
.thumb{height:160px; background: rgba(255,255,255,.05); border-bottom:1px solid rgba(255,255,255,.10);}
.t1{background: radial-gradient(600px 240px at 20% 20%, rgba(6,182,212,.30), transparent 55%), radial-gradient(700px 260px at 70% 60%, rgba(124,58,237,.22), transparent 60%);}
.t2{background: radial-gradient(600px 240px at 25% 20%, rgba(34,197,94,.28), transparent 55%), radial-gradient(700px 260px at 70% 60%, rgba(6,182,212,.20), transparent 60%);}
.t3{background: radial-gradient(600px 240px at 25% 20%, rgba(124,58,237,.28), transparent 55%), radial-gradient(700px 260px at 70% 60%, rgba(34,197,94,.18), transparent 60%);}
.pbody{padding:14px;}
.ptitle{font-weight:750; letter-spacing:-.2px;}
.pmeta{color:var(--muted); font-size:13px; margin-top:6px;}

.steps{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px;}
@media (max-width: 980px){.steps{grid-template-columns:1fr;}}
.step{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding:16px;
  display:flex; gap:12px;
}
.badge{
  width:34px; height:34px; border-radius:12px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  font-weight:800;
}

.contact{text-align:center}
.form{
  max-width: 820px;
  margin: 18px auto 0;
  padding:16px;
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  text-align:left;
}
.row{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
@media (max-width: 720px){.row{grid-template-columns:1fr;}}
input, textarea, select{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  color: var(--text);
  outline:none;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
  font-family: var(--sans);
}
textarea{resize:vertical}
input:focus, textarea:focus, select:focus{
  border-color: rgba(124,58,237,.55);
  box-shadow: 0 0 0 4px rgba(124,58,237,.2);
}
label{display:block; color:var(--muted); font-size:13px; margin-bottom:10px}
select{cursor:pointer}

.footer{padding:24px 0 44px;}
.foot{display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap;}

.marqueeWrap{
  position:relative;
  margin-top:34px;
  overflow:hidden;
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.marquee{
  display:flex; gap:30px; padding:14px 0;
  white-space:nowrap;
  animation: marquee 22s linear infinite;
  opacity:.75;
}
.marquee span{
  font-family: var(--mono);
  font-size:12px;
  letter-spacing:.35em;
  color: rgba(255,255,255,.72);
}
.m2{animation-direction: reverse; opacity:.45}
@keyframes marquee{
  from{transform: translateX(0)}
  to{transform: translateX(-50%)}
}

.reveal{opacity:0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease);}
.reveal.show{opacity:1; transform: translateY(0);}

.modal{position:fixed; inset:0; display:none; z-index:60;}
.modal.show{display:block;}
.modalBack{position:absolute; inset:0; background: rgba(0,0,0,.55); backdrop-filter: blur(8px);}
.modalCard{
  position:relative;
  width:min(560px, calc(100% - 24px));
  margin: 8vh auto 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border:1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
  padding:16px;
}
.modalHead{display:flex; justify-content:space-between; align-items:center; gap:10px;}
.modalHead h3{margin:0; letter-spacing:-.2px}
.x{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:var(--text);
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
}
.modalForm{display:grid; gap:12px; margin-top:12px;}
.modalForm textarea{min-height:120px}

@media (prefers-reduced-motion: reduce){
  *{animation:none!important; transition:none!important}
}
.thumb{
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 16px;
}

.thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(0.95);
}

.form{
  padding:24px;
}

.form > * + *{
  margin-top:18px;
}

.row{
  gap:18px;
  margin-bottom:18px;
}

.form textarea{
  margin-top:6px;
}

.form button{
  margin-top:22px;
}
select{
  color: #fff;
  background-color: #0f0f14;
}

select option{
  color: #111;
  background-color: #fff;
}
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active{
  display: flex;
}

.modal-box{
  background: rgba(25,25,25,0.95);
  color: #fff;
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  border-radius: 20px;
  padding: 30px;
  position: relative;
  overflow-y: auto;
}

.modal-close{
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
}

#privacyContent{
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.28) transparent;
}

#privacyContent::-webkit-scrollbar{
  width: 10px;
}

#privacyContent::-webkit-scrollbar-track{
  background: transparent;
}

#privacyContent::-webkit-scrollbar-thumb{
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.22),
      rgba(255,255,255,.12)
    );
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

#privacyContent::-webkit-scrollbar-thumb:hover{
  background:
    linear-gradient(
      180deg,
      rgba(124,58,237,.75),
      rgba(6,182,212,.65)
    );
}

#privacyContent{
  overscroll-behavior: contain;
}
