:root {
  --bg: #071126;
  --bg-2: #0b1a3d;
  --text: #f4f8ff;
  --muted: #b9c7e6;
  --soft: #8ea2cc;
  --cyan: #42e8f4;
  --green: #56f2ad;
  --blue: #5a9cff;
  --violet: #a575ff;
  --pink: #ff6fd6;
  --yellow: #ffd166;
  --danger: #ff7373;
  --glass: rgba(14, 30, 70, 0.72);
  --glass-2: rgba(18, 39, 92, 0.86);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #183d77 0%, transparent 28%), linear-gradient(180deg, var(--bg), #050a18 68%, #040713);
  overflow-x: hidden;
}

a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  max-width: 100%;
  display: block;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.26;
}
.noise {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 4px 4px;
}
.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.25;
  z-index: -2;
  animation: drift 14s ease-in-out infinite alternate;
}
.orb-one {
  width: 360px;
  height: 360px;
  background: var(--cyan);
  left: -120px;
  top: 180px;
}
.orb-two {
  width: 420px;
  height: 420px;
  background: var(--violet);
  right: -140px;
  bottom: 20px;
  animation-delay: -4s;
}
@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(40px, -40px, 0) scale(1.08);
  }
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.section-pad {
  padding: 86px 0;
}
.section-pad.compact {
  padding: 62px 0;
}
.section-pad.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(5, 10, 25, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo {
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 0 20px var(--cyan);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.nav-links a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}
.menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 1.1rem;
}

.glass,
.card,
.scope-pill,
.step,
.demo-note {
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding-top: 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 900;
  font-size: 0.82rem;
}
.eyebrow.mini {
  font-size: 0.75rem;
}
h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}
.hero-title-line {
  color: #d8e6ff;
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  font-weight: 800;
  margin: 16px 0 18px;
}
.hero-text,
.section-head p,
.card p,
.step p,
.method-card p,
.demo-note,
.status,
.muted,
.small-muted {
  color: var(--muted);
  line-height: 1.8;
}
.hero-text {
  font-size: 1.08rem;
  max-width: 760px;
}
.hero-info {
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 8px;
  margin: 24px 0;
  color: #dce7ff;
}
.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
  text-decoration: none !important;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn.primary {
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #041126;
  box-shadow: 0 18px 42px rgba(66, 232, 244, 0.22);
}
.btn.outline {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.btn.success {
  background: linear-gradient(135deg, #9aff7f, #37d3a1);
  color: #061226;
}
.btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}
.btn.full {
  width: 100%;
}
.btn.small-btn {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.hero-visual {
  border-radius: 32px;
  padding: 24px;
}
.device {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  overflow: hidden;
}
.device-top {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.07);
}
.device-top span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}
.live-pipeline {
  padding: 22px;
  display: grid;
  gap: 14px;
}
.pipe-card {
  border-radius: 20px;
  min-height: 82px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.12rem;
}
.pipe-card.cover {
  background: linear-gradient(135deg, #34d399, #38bdf8);
}
.pipe-card.cipher {
  background: linear-gradient(135deg, #6366f1, #a855f7);
}
.pipe-card.stego {
  background: linear-gradient(135deg, #ec4899, #f97316);
}
.pipe-arrow {
  text-align: center;
  color: var(--green);
  font-size: 2rem;
  font-weight: 900;
}
.moving-bits {
  display: flex;
  gap: 10px;
  overflow: hidden;
  color: #9ffff7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
}
.moving-bits span {
  animation: bitmove 5s linear infinite;
}
.moving-bits.reverse span {
  animation-direction: reverse;
}
@keyframes bitmove {
  from {
    transform: translateX(-28px);
  }
  to {
    transform: translateX(28px);
  }
}
.caption {
  color: var(--soft);
  text-align: center;
  margin-bottom: 0;
}

.section-head {
  margin-bottom: 28px;
  max-width: 910px;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.cards {
  display: grid;
  gap: 18px;
}
.cards.four {
  grid-template-columns: repeat(4, 1fr);
}
.cards.three,
.result-grid {
  grid-template-columns: repeat(3, 1fr);
  display: grid;
  gap: 18px;
}
.card {
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 {
  margin: 0 0 10px;
}
.icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}
.problem-box {
  border-radius: var(--radius);
  padding: 28px;
}
.big-quote {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 900;
  color: var(--green);
  margin: 16px 0;
}
ul {
  padding-left: 20px;
}
li {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.75;
}
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.scope-pill {
  border-radius: 999px;
  padding: 14px 18px;
  text-align: center;
  color: #eaf2ff;
  font-weight: 800;
}
.timeline {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}
.step {
  flex: 1 1 150px;
  min-width: 150px;
  border-radius: 22px;
  padding: 18px;
}
.step span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #061226;
  font-weight: 900;
  margin-bottom: 12px;
}
.step h3 {
  margin: 0 0 8px;
}
.step p {
  margin: 0;
  font-size: 0.94rem;
}
.arrow {
  align-self: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--green);
}
.method-panels,
.demo-layout,
.canvas-grid,
.image-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.method-card,
.demo-panel,
.canvas-card,
.image-panel,
.pixel-lab,
.references {
  border-radius: var(--radius);
  padding: 22px;
}
.method-card img,
.image-panel img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #fff;
}
.demo-note {
  border-radius: 22px;
  padding: 18px;
  color: #fff3bf;
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.25);
}
.demo-panel label {
  display: block;
  margin: 15px 0 8px;
  font-weight: 800;
  color: #edf4ff;
}
textarea,
input[type="text"] {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  padding: 14px 15px;
  font: inherit;
  outline: none;
}
textarea {
  resize: vertical;
  min-height: 120px;
}
.status {
  min-height: 26px;
}
.info-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.info-box code {
  display: block;
  margin-top: 8px;
  color: #90fff5;
  word-break: break-all;
  white-space: pre-wrap;
}
.info-box textarea {
  margin-top: 10px;
}
.canvas-card canvas {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #071126;
}
.pixel-lab {
  margin-top: 24px;
}
.pixel-lab-head {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.pixel-lab h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}
.lsb-live-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.lsb-card {
  min-height: 136px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 8px;
}
.lsb-card span {
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lsb-card strong {
  font-size: 1.16rem;
  line-height: 1.35;
}
.lsb-card code {
  color: #8efff6;
  word-break: break-word;
}
.lsb-card.accent {
  background: linear-gradient(135deg, rgba(86, 242, 173, 0.16), rgba(90, 156, 255, 0.12));
}
.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.video-frame iframe {
  width: 100%;
  min-height: 560px;
  display: block;
}
.image-showcase {
  grid-template-columns: repeat(3, 1fr);
}
.mt-24 {
  margin-top: 24px;
}
.literature-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.literature-strip span {
  padding: 12px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #eef5ff;
  font-weight: 800;
}
.references ol {
  margin: 0;
  padding-left: 24px;
}
.references li {
  font-size: 0.95rem;
}
.footer {
  padding: 40px 0 56px;
  text-align: center;
  color: var(--soft);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 {
  transition-delay: 0.08s;
}
.delay-2 {
  transition-delay: 0.16s;
}
.delay-3 {
  transition-delay: 0.24s;
}

@media (max-width: 1040px) {
  .hero-grid,
  .split,
  .method-panels,
  .demo-layout,
  .canvas-grid,
  .image-showcase,
  .cards.four,
  .cards.three,
  .result-grid,
  .scope-grid {
    grid-template-columns: 1fr;
  }
  .arrow {
    display: none;
  }
  .video-frame iframe {
    min-height: 380px;
  }
  .lsb-live-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .section-pad {
    padding: 62px 0;
  }
  .hero {
    min-height: auto;
    padding-top: 52px;
  }
  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px 0;
  }
  .menu-btn {
    display: inline-flex;
    margin-left: auto;
  }
  .nav-links {
    display: none;
    width: 100%;
    padding: 10px 0 4px;
    flex-direction: column;
  }
  .nav-links.open {
    display: flex;
  }
  h1 {
    font-size: clamp(2.7rem, 14vw, 4.8rem);
  }
  .lsb-live-grid {
    grid-template-columns: 1fr;
  }
  .video-frame iframe {
    min-height: 260px;
  }
}

input[type="file"] {
  width: 100%;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  padding: 14px 15px;
  font: inherit;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #041126;
  font-weight: 900;
  padding: 10px 14px;
  margin-right: 12px;
  cursor: pointer;
}
