:root{
  --bg:#070A12;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.09);
  --border: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --muted2: rgba(255,255,255,0.55);

  --a1:#6EE7FF;     /* cyan */
  --a2:#A78BFA;     /* purple */
  --a3:#34D399;     /* green */

  --radius: 22px;
  --shadow: 0 18px 60px rgba(0,0,0,0.55);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(1100px 650px at 18% 8%, rgba(110,231,255,0.20), transparent 62%),
    radial-gradient(900px 520px at 86% 14%, rgba(167,139,250,0.20), transparent 60%),
    radial-gradient(900px 700px at 50% 105%, rgba(52,211,153,0.12), transparent 60%),
    var(--bg);
}

a{ color:inherit; text-decoration:none; }
.wrap{ max-width: 1120px; margin:0 auto; padding: 26px 18px 70px; }

/* Premium top nav */
.nav{
  position: sticky;
  top: 12px;
  z-index: 40;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
  border-radius: calc(var(--radius) + 8px);
  backdrop-filter: blur(10px);
  padding: 14px 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 260px;
}

.logo{
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  overflow:hidden;
  display:grid; place-items:center;
}

/* Fill the entire rounded square */
.logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  display: block;
}

.brandName{ font-weight: 900; letter-spacing: 0.2px; font-size: 16px; line-height: 1.1; }
.brandTag{ margin-top: 3px; font-size: 12px; color: var(--muted2); font-weight: 700; }

.tabs{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content:center;
}
.tab{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 13px;
  cursor:pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .06s ease;
  user-select:none;
  white-space: nowrap;
}
.tab:hover{ background: rgba(255,255,255,0.07); color: var(--text); }
.tab:active{ transform: translateY(1px); }
.tab.active{
  background: linear-gradient(90deg, rgba(110,231,255,0.22), rgba(167,139,250,0.18));
  border-color: rgba(110,231,255,0.30);
  color: var(--text);
}

.navRight{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 10px;
  min-width: 260px;
  flex-wrap: wrap;
}

.btn{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  transition: background .2s ease, border-color .2s ease, transform .06s ease;
  white-space: nowrap;
}
.btn:hover{ background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18); }
.btn:active{ transform: translateY(1px); }
.btn.primary{
  background: linear-gradient(90deg, rgba(110,231,255,0.22), rgba(167,139,250,0.18));
  border-color: rgba(110,231,255,0.30);
}

/* Hero */
.hero{
  margin-top: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border-radius: calc(var(--radius) + 10px);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  overflow:hidden;
  position:relative;
}
.hero:before{
  content:"";
  position:absolute; inset:-1px;
  background:
    radial-gradient(600px 260px at 20% 15%, rgba(110,231,255,0.20), transparent 65%),
    radial-gradient(650px 280px at 80% 15%, rgba(167,139,250,0.18), transparent 65%);
  pointer-events:none;
}
.hero > *{ position:relative; z-index:1; }

.heroGrid{
  display:grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  align-items:start;
}

h1{
  margin: 0 0 10px;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.9px;
  font-weight: 950;
}
.lead{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 64ch;
  margin-bottom: 18px;
}

.badges{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 10px;
}
.badge{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}

.card{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 16px;
}
.card h3{
  margin:0 0 10px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2px;
}
.card p{
  margin:0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.statGrid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
}
.stat{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 12px;
}
.stat .n{ font-weight: 950; font-size: 18px; letter-spacing: -0.3px; }
.stat .l{ margin-top: 4px; color: var(--muted2); font-weight: 800; font-size: 12px; }

/* Section shell */
.section{
  margin-top: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  border-radius: calc(var(--radius) + 10px);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.sectionHead{
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.sectionHead .title{ font-weight: 950; letter-spacing: 0.2px; }
.sectionHead .hint{ font-weight: 800; font-size: 12px; color: var(--muted2); }
.sectionBody{ padding: 18px; }

.pane{ display:none; }
.pane.active{ display:block; }

.cols{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap: 10px;
}
.item{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 12px;
}
.itemTop{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.pill{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 900;
  color: var(--muted);
  white-space: nowrap;
}
.itemDesc{ color: var(--muted); font-size: 13px; line-height: 1.65; }

.ctaRow{
  margin-top: 14px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

label{
  display:block;
  margin: 10px 0 6px;
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.2px;
}
input, textarea{
  width:100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.20);
  color: var(--text);
  padding: 12px;
  outline:none;
}
textarea{ min-height: 130px; resize: vertical; }

.fine{
  margin-top: 10px;
  color: var(--muted2);
  font-weight: 750;
  font-size: 12px;
  line-height: 1.5;
}

footer{
  margin-top: 18px;
  padding: 14px 0;
  text-align:center;
  color: var(--muted2);
  font-weight: 800;
  font-size: 12px;
}

@media (max-width: 980px){
  .heroGrid{ grid-template-columns: 1fr; }
  .cols{ grid-template-columns: 1fr; }
  .nav{ position: relative; top: 0; }
  .brand, .navRight{ min-width: unset; }
}

/* Portfolio hover preview */
.previewPane{ display:none; }
.previewPane.active{ display:block; }

.previewGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.previewGrid img{
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  transition: transform .15s ease, filter .15s ease;
}

.previewGrid img:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
}

@media (max-width: 980px){
  .previewGrid{ grid-template-columns: 1fr; }
  .previewGrid img{ height: 200px; }
}
