:root {
  --bg: #050b18;
  --bg2: #071a33;
  --blue: #2f7dff;
  --cyan: #4fd6ff;
  --panel: rgba(10, 25, 54, .78);
  --panel2: rgba(7, 16, 35, .92);
  --line: rgba(104, 180, 255, .22);
  --text: #f7fbff;
  --muted: #a9bdd8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a { text-decoration: none; }

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 12%, rgba(47, 125, 255, .36), transparent 28%),
    radial-gradient(circle at 88% 24%, rgba(79, 214, 255, .24), transparent 26%),
    linear-gradient(135deg, #030712 0%, #071a33 52%, #02040a 100%);
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: gridMove 18s linear infinite;
  opacity: .45;
}

.blob {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(35px);
  opacity: .42;
  z-index: -1;
  animation: floatBlob 11s ease-in-out infinite alternate;
}
.blob-1 { top: 110px; left: -130px; background: var(--blue); }
.blob-2 { right: -150px; top: 240px; background: var(--cyan); animation-duration: 14s; }
.blob-3 { bottom: -170px; left: 45%; background: #2952ff; animation-duration: 17s; }

.nav-glass {
  background: rgba(3, 8, 20, .82) !important;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 45px rgba(0,0,0,.28);
}

.brand-box {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 28px rgba(47, 125, 255, .6);
}

.text-gradient {
  background: linear-gradient(90deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-soft { color: var(--muted) !important; }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 70px;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: .97;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(47, 125, 255, .1);
  font-weight: 700;
  font-size: .92rem;
}

.btn-blue {
  --bs-btn-color: #fff;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: #fff;
  position: relative;
  overflow: hidden;
  border: 0 !important;
  background: linear-gradient(135deg, var(--blue), var(--cyan)) !important;
  box-shadow: 0 15px 38px rgba(47, 125, 255, .38);
  font-weight: 800;
}
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(47, 125, 255, .48); }
.btn-blue::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  animation: shine 2.8s ease-in-out infinite;
}

.glass-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 85px rgba(0,0,0,.38);
}

.preview-card { overflow: hidden; animation: floatCard 5s ease-in-out infinite; }
.browser-bar {
  height: 52px;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.24);
}
.browser-bar span { width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); opacity: .95; }
.browser-bar span:nth-child(2) { opacity: .55; }
.browser-bar span:nth-child(3) { opacity: .3; }

.scan-panel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
}
.scan-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: scan 2.4s ease-in-out infinite;
}
.progress { background: rgba(255,255,255,.12); }
.progress-bar { background-color: var(--blue); }

.code-list { display: grid; gap: .7rem; }
.code-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem;
  border-radius: 14px;
  color: #dceaff;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.06);
}
.code-list span { color: var(--cyan); }

.section { padding: 90px 0; }
.feature-card {
  height: 100%;
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel2);
  transition: transform .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-8px); border-color: rgba(79,214,255,.65); }
.icon-circle {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 1.5rem;
  background: rgba(47, 125, 255, .16);
  border: 1px solid var(--line);
  animation: pulse 2.5s ease-in-out infinite;
}

.tool-page { padding: 130px 0 80px; min-height: 100vh; }
.form-control, .form-select {
  color: white !important;
  background-color: rgba(2, 7, 19, .72) !important;
  border-color: var(--line) !important;
}
.form-control::placeholder { color: rgba(169,189,216,.64); }
.form-control:focus, .form-select:focus {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 .25rem rgba(47,125,255,.22) !important;
}
.form-select option { color: #111; }

.footer { border-top: 1px solid var(--line); background: rgba(3,8,20,.82); }

.reveal { animation: revealUp .75s ease both; }
.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .24s; }
.delay-3 { animation-delay: .36s; }

@keyframes revealUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatCard { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(.4deg); } }
@keyframes floatBlob { from { transform: translate(0,0) scale(1); } to { transform: translate(70px,45px) scale(1.16); } }
@keyframes gridMove { from { background-position: 0 0; } to { background-position: 112px 112px; } }
@keyframes scan { from { transform: translateY(0); opacity: .1; } 20% { opacity: 1; } to { transform: translateY(150px); opacity: 0; } }
@keyframes shine { 0% { left: -70%; } 45%,100% { left: 130%; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(47,125,255,.34); } 50% { box-shadow: 0 0 0 14px rgba(47,125,255,0); } }

@media (max-width: 991.98px) {
  .hero { min-height: auto; padding-top: 105px; }
  .preview-card { animation: none; }
}

.progress-lg { height: 26px; border-radius: 999px; overflow: hidden; }
#statusPanel { transition: all .25s ease; }
#downloadButton { box-shadow: 0 14px 40px rgba(25, 135, 84, .28); }
