:root{
  --bg:#0b1220;
  --card:#0f1b33;
  --text:#eaf0ff;
  --muted:#b8c2dd;
  --accent:#2aa3ff;
  --line:rgba(234,240,255,.14);
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1080px;
}

html{ scrollbar-gutter: stable; }

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:linear-gradient(180deg,#071022, #0b1220);
  color:var(--text);
  line-height:1.5;
}

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

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
}

header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.75);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
}

.brand{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.brand b{ letter-spacing:.5px; }

.brand small{
  color:var(--muted);
  font-size:12px;
}

.menu{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

.menu a{
  color:var(--muted);
  font-size:14px;
  padding:8px 10px;
  border-radius:12px;
}

.menu a:hover{
  color:var(--text);
  background:rgba(234,240,255,.06);
}

.btn{
  background:var(--accent);
  color:#06122a;
  font-weight:700;
  border-radius:14px;
  padding:10px 14px;
}

.btn:hover{ filter:brightness(1.05); }

section{
  padding:54px 0;
  border-bottom:1px solid var(--line);
}

h1{
  font-size:42px;
  line-height:1.1;
  margin:0 0 12px;
}

h2{
  font-size:26px;
  margin:0 0 10px;
}

p{
  margin:10px 0;
  color:var(--muted);
}

.hero{
  padding:80px 0;
}

.hero p{
  max-width:600px;
}

.grid{ display:grid; gap:16px; }

.cols{ grid-template-columns:1fr 1fr; }

@media (max-width:900px){
  .cols{ grid-template-columns:1fr; }
  h1{ font-size:36px; }
}

.card{
  background: linear-gradient(180deg, rgba(42,163,255,.08), rgba(15,27,51,.9));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}

ul{
  margin:10px 0 0 18px;
  color:var(--muted);
}

footer{
  padding:30px 0;
  color:var(--muted);
  font-size:13px;
}
.references{
  grid-template-columns:repeat(3,1fr);
}

@media (max-width:900px){
  .references{grid-template-columns:1fr 1fr;}
}

@media (max-width:560px){
  .references{grid-template-columns:1fr;}
}

.work{
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  background:rgba(234,240,255,.04);
  cursor:pointer;
}

.work img{
  width:100%;
  height:200px;
  object-fit:cover;
  display:block;
  filter:grayscale(100%) contrast(1.05);
}

.work .body{
  padding:12px;
}

.work b{
  display:block;
}

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

.modal{
  position:fixed;
  inset:0;
  display:none;
  place-items:center;
  background:rgba(0,0,0,.55);
  z-index:200;
}

.modal.open{
  display:grid;
}

.modal-card{
  width:min(920px,92vw);
  max-height:88vh;
  overflow:auto;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:20px;
}
.btn{
  background:var(--accent);
  color:#06122a;
  font-weight:700;
  border-radius:14px;
  padding:10px 14px;
  display:inline-block;
}

.modal-card button{
  margin-top:16px;
  background:rgba(234,240,255,.08);
  border:1px solid var(--line);
  color:var(--text);
  border-radius:12px;
  padding:10px 14px;
  cursor:pointer;
}
.detail{
  grid-template-columns:1fr 1fr;
}

@media (max-width:900px){
  .detail{grid-template-columns:1fr;}
}

.step{
  padding:22px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(234,240,255,.04);
}

.step-num{
  color:var(--accent);
  font-weight:700;
  font-size:20px;
}
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}