:root{
  --bg:#071018;
  --bg2:#0c1622;
  --card:rgba(13,22,35,.7);
  --line:rgba(255,255,255,.08);
  --text:#eaf2ff;
  --muted:#9ab0c9;
  --accent:#6ec6ff;
  --accent2:#8b7dff;
  --good:#4dd4a8;
  --shadow:0 24px 80px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,sans-serif;
  background:radial-gradient(circle at top,#102237 0%,var(--bg) 45%,#05090f 100%);
  color:var(--text);
  overflow-x:hidden
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.wrap{width:min(1180px,calc(100% - 32px));margin:0 auto}

.nav{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(18px);
  background:rgba(5,9,15,.55);
  border-bottom:1px solid var(--line)
}
.navin{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:76px;
  gap:16px
}
.logo{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase
}
.mark{
  width:38px;
  height:38px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  box-shadow:0 12px 30px rgba(110,198,255,.25)
}
.menu{
  display:flex;
  gap:22px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:14px
}
.menu a:hover{color:var(--text)}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 20px;
  border-radius:999px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
  box-shadow:var(--shadow);
  transition:.25s;
  cursor:pointer
}
.btn:hover{
  transform:translateY(-2px);
  border-color:rgba(110,198,255,.4)
}
.btn.primary{
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#04101c;
  font-weight:800;
  border:none
}

.hero{
  padding:92px 0 42px;
  position:relative
}
.hero::before{
  content:"";
  position:absolute;
  inset:-120px 0 auto;
  height:560px;
  background:
    radial-gradient(circle at 20% 20%,rgba(110,198,255,.18),transparent 35%),
    radial-gradient(circle at 80% 10%,rgba(139,125,255,.18),transparent 30%);
  pointer-events:none
}
.hero-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:28px;
  align-items:center;
  position:relative
}
.eyebrow{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  background:rgba(255,255,255,.03);
  font-size:13px
}
.dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--good);
  box-shadow:0 0 0 6px rgba(77,212,168,.12)
}
h1{
  font-size:clamp(42px,7vw,82px);
  line-height:.96;
  margin:18px 0 18px;
  letter-spacing:-.05em
}
.lead{
  font-size:clamp(16px,2vw,19px);
  line-height:1.7;
  color:var(--muted);
  max-width:62ch
}
.actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:28px
}
.stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:34px
}
.stat{
  padding:18px;
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(255,255,255,.03)
}
.stat b{display:block;font-size:30px}
.stat span{color:var(--muted);font-size:13px}

.panel{
  padding:22px;
  border-radius:28px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.02));
  box-shadow:var(--shadow)
}
.video{
  min-height:520px;
  position:relative;
  overflow:hidden
}
.video .frame{
  position:absolute;
  inset:18px;
  border-radius:22px;
  background:
    linear-gradient(180deg,rgba(10,18,28,.2),rgba(10,18,28,.8)),
    url('https://images.unsplash.com/photo-1524863479829-916d8e77f114?auto=format&fit=crop&w=1200&q=80') center/cover;
  filter:saturate(1.05);
  border:1px solid rgba(255,255,255,.08)
}
.glass{
  position:absolute;
  left:22px;
  right:22px;
  bottom:22px;
  padding:18px 18px 16px;
  border-radius:18px;
  background:rgba(7,16,24,.68);
  backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.08)
}
.chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px
}
.chip{
  padding:8px 12px;
  border-radius:999px;
  background:rgba(110,198,255,.1);
  border:1px solid rgba(110,198,255,.18);
  font-size:12px;
  color:#cdeaff
}

section{padding:28px 0}
.section-title{
  font-size:clamp(28px,4vw,46px);
  margin:0 0 10px;
  letter-spacing:-.04em
}
.sub{
  color:var(--muted);
  line-height:1.7;
  max-width:70ch
}
.grid{display:grid;gap:16px}
.cards{grid-template-columns:repeat(3,1fr)}
.card{
  padding:22px;
  border-radius:24px;
  border:1px solid var(--line);
  background:var(--card);
  min-height:170px
}
.card h3{margin:6px 0 10px}
.card p{
  color:var(--muted);
  line-height:1.7;
  margin:0
}

.steps{grid-template-columns:repeat(6,1fr)}
.step{
  padding:18px;
  border-radius:20px;
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  min-height:132px
}
.num{
  font-size:12px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#bcd4ee
}

.portfolio{grid-template-columns:repeat(2,1fr)}
.proj{overflow:hidden;position:relative}
.proj .thumb{
  height:220px;
  border-radius:18px;
  background:
    linear-gradient(135deg,rgba(110,198,255,.22),rgba(139,125,255,.2)),
    url('https://images.unsplash.com/photo-1485846234645-a62644f84728?auto=format&fit=crop&w=1200&q=80') center/cover;
  margin-bottom:16px
}
.proj:nth-child(2) .thumb{
  background-image:
    linear-gradient(135deg,rgba(110,198,255,.22),rgba(139,125,255,.2)),
    url('https://images.unsplash.com/photo-1501386761578-eac5c94b800a?auto=format&fit=crop&w=1200&q=80')
}

.auth{
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:16px;
  align-items:stretch
}
.login,.vault{min-height:320px}
.field{
  display:grid;
  gap:8px;
  margin-bottom:14px
}
.field input{
  width:100%;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  outline:none
}
.field input::placeholder{color:#6f849c}
.login-form{
  display:grid;
  gap:10px
}
.hint{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.5
}

.vault-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px
}
.vault-status{
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#ffb3b3;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,90,90,.08);
  border:1px solid rgba(255,90,90,.16)
}
.vault-lock{
  margin-top:18px;
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.03);
  border:1px dashed rgba(255,255,255,.12);
  color:var(--muted);
  transition:opacity .35s ease, transform .35s ease, max-height .35s ease;
  max-height:220px;
  overflow:hidden
}
.vault-lock.hidden{
  opacity:0;
  transform:translateY(-8px);
  max-height:0
}
.vaultlist{
  display:grid;
  gap:12px;
  margin-top:16px;
  animation:vaultReveal .55s ease both
}
.file{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line)
}
.tag{font-size:12px;color:#cfe8ff}
.hidden{display:none}

footer{
  padding:40px 0 60px;
  color:var(--muted)
}

.reveal{
  opacity:0;
  transform:translateY(22px);
  transition:.6s ease
}
.reveal.in{
  opacity:1;
  transform:none
}
.burger{
  display:none;
  background:none;
  border:0;
  color:var(--text);
  font-size:28px
}

/* cinematic auth overlay */
.auth-overlay{
  position:fixed;
  inset:0;
  z-index:200;
  display:grid;
  place-items:center;
  background:rgba(2,6,12,.88);
  backdrop-filter:blur(10px);
  transition:opacity .3s ease, visibility .3s ease
}
.auth-overlay.hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none
}
.auth-modal{
  width:min(420px,calc(100% - 32px));
  padding:28px;
  border-radius:26px;
  background:linear-gradient(180deg,rgba(14,22,34,.96),rgba(9,14,22,.96));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 30px 100px rgba(0,0,0,.5);
  text-align:center
}
.lock-anim{
  width:96px;
  height:118px;
  margin:0 auto 18px;
  position:relative;
  animation:lockFloat 1.8s ease-in-out infinite
}
.lock-body{
  position:absolute;
  bottom:0;
  width:96px;
  height:78px;
  border-radius:18px;
  background:linear-gradient(135deg,#6ec6ff,#8b7dff);
  box-shadow:0 0 30px rgba(110,198,255,.22)
}
.lock-shackle{
  position:absolute;
  left:22px;
  top:0;
  width:52px;
  height:54px;
  border:10px solid rgba(234,242,255,.95);
  border-bottom:0;
  border-radius:32px 32px 0 0;
  transform-origin:center bottom;
  animation:shackleOpen 2.2s ease-in-out infinite
}
.lock-keyhole{
  position:absolute;
  left:50%;
  bottom:22px;
  width:14px;
  height:24px;
  transform:translateX(-50%);
  border-radius:10px;
  background:#04101c
}
.auth-text{
  display:grid;
  gap:8px
}
.auth-step{
  font-size:20px;
  font-weight:800;
  letter-spacing:-.03em;
  color:var(--text)
}
.auth-sub{
  color:var(--muted);
  font-size:14px
}
.auth-progress{
  height:4px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.08);
  margin-top:20px
}
.auth-progress-bar{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  transition:width .4s ease
}

@keyframes lockFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
}
@keyframes shackleOpen{
  0%,20%{transform:rotate(0deg) translateY(0)}
  45%{transform:rotate(-18deg) translateY(2px)}
  65%{transform:rotate(0deg) translateY(0)}
  100%{transform:rotate(0deg) translateY(0)}
}
@keyframes vaultReveal{
  from{
    opacity:0;
    transform:translateY(18px) scale(.98);
    filter:blur(4px)
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
    filter:blur(0)
  }
}

@media (max-width:960px){
  .hero-grid,.cards,.auth{grid-template-columns:1fr}
  .steps{grid-template-columns:repeat(2,1fr)}
  .portfolio{grid-template-columns:1fr}
  .menu{display:none}
  .burger{display:block}
  .stats{grid-template-columns:1fr}
  .video{min-height:420px}
}
@media (max-width:640px){
  .steps{grid-template-columns:1fr}
  .navin{min-height:68px}
  .hero{padding-top:62px}
  h1{font-size:clamp(36px,14vw,58px)}
  .btn{width:100%}
  .actions{flex-direction:column}
  .card,.step,.panel{border-radius:20px}
  .vault-head{flex-direction:column;align-items:flex-start}
  .file{flex-direction:column}
}

.mobile-menu{
  display:none;
  position:fixed;
  inset:76px 16px auto 16px;
  background:rgba(7,16,24,.96);
  border:1px solid var(--line);
  border-radius:22px;
  padding:16px;
  z-index:60
}
.mobile-menu a{
  display:block;
  padding:14px 10px;
  color:var(--muted);
  border-bottom:1px solid rgba(255,255,255,.06)
}
.mobile-menu a:last-child{border-bottom:0}
.mobile-menu.open{display:block}
