:root{
  --bg: #0b1020;
  --bg2:#0a0f1e;
  --panel:#111a33;
  --panel2:#0f1730;
  --text:#e7ecff;
  --muted:#9aa6c1;
  --border:#263055;
  --accent:#39c5bb;
  --accent2:#4ea3ff;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius: 16px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "PingFang SC","Hiragino Sans GB","Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1200px 600px at 18% 0%, rgba(78,163,255,.22), rgba(0,0,0,0) 55%),
    radial-gradient(900px 520px at 80% 15%, rgba(57,197,187,.18), rgba(0,0,0,0) 50%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  line-height:1.6;
}

a{color:inherit; text-decoration:none}
a:hover{color:var(--accent)}

.container{max-width:1120px; margin:0 auto; padding:0 18px}

.skip-link{
  position:absolute; left:-9999px; top:10px;
  background:var(--panel); color:var(--text);
  border:1px solid var(--border);
  padding:10px 12px; border-radius:12px; z-index:9999;
}
.skip-link:focus{left:12px}

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(11,16,32,.65);
  border-bottom: 1px solid rgba(38,48,85,.7);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; height:64px; gap:14px}
.brand{display:flex; align-items:center; gap:10px; min-width:0}
.brand-mark{
  width:12px; height:12px; border-radius:99px;
  background: radial-gradient(circle at 30% 30%, #aefcff 0%, var(--accent) 40%, rgba(57,197,187,.1) 70%);
  box-shadow: 0 0 24px rgba(57,197,187,.45);
}
.brand-text{font-weight:700; letter-spacing:.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.site-nav{display:flex; align-items:center; gap:16px}
.site-nav a{
  font-size:14px;
  color:rgba(231,236,255,.85);
  padding:8px 10px;
  border-radius:10px;
}
.site-nav a:hover{background:rgba(255,255,255,.06)}

.nav-toggle{
  display:none;
  width:42px; height:36px;
  border-radius:12px;
  border:1px solid rgba(38,48,85,.9);
  background:rgba(255,255,255,.04);
  color:var(--text);
}
.nav-toggle span{
  display:block;
  width:18px; height:2px;
  background:rgba(231,236,255,.9);
  margin:4px auto;
  border-radius:4px;
}

/* Hero */
.hero{padding:64px 0 26px}
.hero-inner{display:grid; grid-template-columns: 1.2fr .8fr; gap:28px; align-items:center}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  color:rgba(231,236,255,.82);
  font-size:13px;
  padding:6px 10px;
  border:1px solid rgba(38,48,85,.9);
  border-radius:999px;
  background:rgba(255,255,255,.03);
}
.hero h1{margin:12px 0 10px; line-height:1.18; font-size:38px; letter-spacing:-.2px}
.headline-accent{color:rgba(231,236,255,.92)}
.lead{color:rgba(154,166,193,.95); font-size:16px; max-width:52ch; margin:0 0 18px}
.cta-row{display:flex; gap:12px; flex-wrap:wrap; margin:18px 0 12px}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  border-radius:12px;
  padding:10px 14px;
  border:1px solid rgba(38,48,85,.95);
  background:rgba(255,255,255,.03);
  color:rgba(231,236,255,.92);
  font-weight:600;
  transition:transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
  cursor:pointer;
}
.btn:hover{transform:translateY(-1px); border-color:rgba(78,163,255,.65); box-shadow:0 10px 26px rgba(0,0,0,.25)}
.btn.primary{
  border-color:rgba(57,197,187,.55);
  background: linear-gradient(180deg, rgba(57,197,187,.22), rgba(57,197,187,.08));
}
.btn.primary:hover{border-color:rgba(57,197,187,.85)}
.btn.ghost{background:transparent}
.btn.small{padding:8px 10px; border-radius:11px; font-size:13px}
.btn.full{width:100%}

.metrics{display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; margin-top:18px}
.metric{
  border:1px solid rgba(38,48,85,.9);
  background:rgba(255,255,255,.03);
  border-radius:14px;
  padding:12px 12px;
}
.metric-k{font-weight:800; font-size:18px}
.metric-v{color:var(--muted); font-size:13px}

/* Visual */
.hero-visual{position:relative; min-height:320px; border-radius:var(--radius); overflow:hidden; border:1px solid rgba(38,48,85,.85); background:rgba(255,255,255,.02)}
.grid-surface{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(78,163,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,163,255,.12) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity:.55;
}
.glow{
  position:absolute; width:280px; height:280px; border-radius:50%;
  filter: blur(18px);
  opacity:.9;
}
.orb-1{left:-60px; top:-70px; background: radial-gradient(circle at 30% 30%, rgba(78,163,255,.7), rgba(78,163,255,0) 60%)}
.orb-2{right:-80px; bottom:-90px; background: radial-gradient(circle at 30% 30%, rgba(57,197,187,.7), rgba(57,197,187,0) 60%)}
.card-float{
  position:absolute; left:18px; bottom:18px; right:18px;
  border:1px solid rgba(38,48,85,.9);
  background: rgba(11,16,32,.55);
  backdrop-filter: blur(8px);
  border-radius:14px;
  padding:12px 12px;
  box-shadow: var(--shadow);
}
.card-float-title{font-weight:800; margin-bottom:8px}
.card-float-body{display:flex; flex-wrap:wrap; gap:8px}
.chip{
  font-size:12px;
  color:rgba(231,236,255,.9);
  border:1px solid rgba(38,48,85,.9);
  background: rgba(255,255,255,.04);
  padding:6px 10px;
  border-radius:999px;
}

/* Sections */
.section{padding:56px 0}
.section-head{margin-bottom:18px}
.section h2{margin:0 0 6px; font-size:26px}
.subtitle{margin:0; color:var(--muted)}

.cards{display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:18px}
.card{
  border:1px solid rgba(38,48,85,.9);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius:var(--radius);
  padding:16px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}
.card h3{margin:0 0 8px; font-size:18px}
.card p{margin:0 0 10px; color:rgba(154,166,193,.98)}
.bullets{margin:0; padding-left:18px; color:rgba(154,166,193,.98)}
.bullets li{margin:6px 0}

/* Projects */
.project-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; margin-top:18px}
.project-card{
  border:1px solid rgba(38,48,85,.9);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius:var(--radius);
  padding:16px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:260px;
}
.project-top{display:flex; flex-direction:column; gap:10px}
.project-top h3{margin:0; font-size:18px}
.tags{display:flex; flex-wrap:wrap; gap:8px}
.tag{
  font-size:12px;
  color:rgba(231,236,255,.9);
  border:1px solid rgba(38,48,85,.9);
  background:rgba(255,255,255,.03);
  padding:4px 8px;
  border-radius:999px;
}
.project-desc{margin:0; color:rgba(154,166,193,.98)}
.project-actions{margin-top:auto; display:flex; gap:10px; flex-wrap:wrap}

/* Steps */
.steps{
  list-style:none;
  padding:0;
  margin:18px 0 0;
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.steps li{
  display:flex;
  gap:12px;
  padding:14px 14px;
  border:1px solid rgba(38,48,85,.9);
  border-radius:var(--radius);
  background:rgba(255,255,255,.03);
}
.step-no{
  min-width:52px;
  height:52px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:rgba(231,236,255,.92);
  border:1px solid rgba(57,197,187,.35);
  background: linear-gradient(180deg, rgba(57,197,187,.18), rgba(57,197,187,.04));
}
.step-body h3{margin:0 0 6px; font-size:16px}
.step-body p{margin:0; color:rgba(154,166,193,.98)}

/* Contact */
.contact{display:grid; grid-template-columns: 1.2fr .8fr; gap:14px; margin-top:18px; align-items:start}
.contact-card, .aside-card{
  border:1px solid rgba(38,48,85,.9);
  border-radius:var(--radius);
  background:rgba(255,255,255,.03);
  padding:16px 16px;
}
.contact-row{display:grid; grid-template-columns: 110px 1fr; gap:12px; padding:10px 0; border-bottom:1px dashed rgba(38,48,85,.7)}
.contact-row:last-child{border-bottom:0}
.contact-label{color:rgba(231,236,255,.85); font-weight:700}
.contact-value{color:rgba(231,236,255,.92)}
.muted{color:var(--muted)}

.aside-card h3{margin:0 0 10px}

/* Footer */
.site-footer{
  border-top:1px solid rgba(38,48,85,.8);
  background:rgba(0,0,0,.12);
  padding:18px 0;
}
.footer-inner{display:flex; align-items:flex-start; justify-content:space-between; gap:14px; flex-wrap:wrap}
.footer-title{font-weight:800}
.footer-sub{color:var(--muted); margin-top:4px}
.footer-right{color:rgba(231,236,255,.85)}

/* Modal */
.modal{position:fixed; inset:0; display:none; z-index:80}
.modal[aria-hidden="false"]{display:block}
.modal-backdrop{position:absolute; inset:0; background:rgba(0,0,0,.55)}
.modal-panel{
  position:relative;
  max-width:860px;
  margin:8vh auto 0;
  border-radius:18px;
  border:1px solid rgba(38,48,85,.9);
  background:rgba(11,16,32,.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal-close{
  position:absolute; top:10px; right:10px;
  width:38px; height:38px;
  border-radius:12px;
  border:1px solid rgba(38,48,85,.9);
  background:rgba(255,255,255,.04);
  color:rgba(231,236,255,.92);
  font-size:20px;
  cursor:pointer;
}
.modal-content{padding:18px 18px}
.modal-content h3{margin:0 0 8px}
.modal-content p{margin:0 0 10px; color:rgba(154,166,193,.98)}
.modal-content .kv{display:grid; grid-template-columns: 120px 1fr; gap:10px; padding:10px 0; border-bottom:1px dashed rgba(38,48,85,.7)}
.modal-content .kv:last-child{border-bottom:0}
.modal-content .k{color:rgba(231,236,255,.86); font-weight:700}
.modal-content .v{color:rgba(231,236,255,.92)}
.modal-content ul{margin:0; padding-left:18px; color:rgba(154,166,193,.98)}

/* Responsive */
@media (max-width: 980px){
  .hero-inner{grid-template-columns:1fr; gap:16px}
  .hero h1{font-size:34px}
  .hero-visual{min-height:280px}
  .cards{grid-template-columns:1fr}
  .project-grid{grid-template-columns:1fr}
  .contact{grid-template-columns:1fr}
  .steps li{align-items:flex-start}
}
@media (max-width: 720px){
  .site-nav{
    position:absolute; right:18px; top:64px;
    flex-direction:column; align-items:stretch;
    gap:6px;
    padding:10px;
    border:1px solid rgba(38,48,85,.9);
    border-radius:14px;
    background:rgba(11,16,32,.92);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    display:none;
    width:min(320px, calc(100vw - 36px));
  }
  .site-nav.is-open{display:flex}
  .nav-toggle{display:inline-flex; align-items:center; justify-content:center}
  .metrics{grid-template-columns:1fr}
  .modal-panel{margin:10vh 12px 0}
}

