/* ===== RESET & VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

:root {
  --navy: #050c1a;
  --slate: #0d1a2e;
  --panel: #0f2040;
  --cyan: #00d9ff;
  --red: #ff2255;
  --green: #00ff88;
  --text: #c8d8e8;
  --muted: #5a7a99;
  --mono: 'Share Tech Mono', monospace;
  --head: 'Barlow Condensed', sans-serif;
  --body: 'Barlow', sans-serif;
  --scrollbar-width: calc(100vw - 100%);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden
}

body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--body)
}

#main-wrap {
  will-change: transform;
  transition: transform .15s ease-out;
  transform-origin: center top;
  position: relative;
  z-index: 2;
  overflow-x: hidden
}

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--cyan));
  z-index: 200;
  transition: width .05s linear;
  box-shadow: 0 0 10px rgba(0, 217, 255, .5)
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px calc(60px + var(--scrollbar-width)) 16px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 12, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 217, 255, 0.08);
  transition: padding .3s
}

nav.scrolled {
  padding: 10px calc(60px + var(--scrollbar-width)) 10px 60px;
  background: rgba(5, 12, 26, 0.95)
}

.logo {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--cyan);
  letter-spacing: 2px;
  cursor: pointer
}

.logo span {
  color: var(--text)
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color .3s, text-shadow .3s;
  position: relative
}

nav a:hover {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 217, 255, .4)
}

nav a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px
}

nav ul a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width .3s
}

nav ul a:hover::after {
  width: 100%
}

.nav-cta {
  font-family: var(--head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--navy);
  background: var(--cyan);
  border: none;
  padding: 10px 24px;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow .2s;
  display: inline-block;
  text-decoration: none;
  text-align: center
}

.nav-cta:hover {
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.5)
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  transition: all .3s
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 60px 80px
}

canvas#net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .35
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center
}

.hero-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 3px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px
}

.hero-tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--cyan)
}

h1 {
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(52px, 8vw, 100px);
  line-height: .95;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 28px;
  color: #fff;
  position: relative;
  text-align: center
}

h1 .accent {
  color: var(--cyan);
  display: block
}

h1 .threat {
  color: var(--red)
}

.hero-sub {
  font-size: 18px;
  color: var(--text);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 48px;
  font-weight: 400;
  animation: fadeUp .8s .6s both;
  text-align: center
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp .8s .9s both
}

.btn-primary {
  font-family: var(--head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--cyan);
  color: var(--navy);
  border: none;
  padding: 16px 36px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all .3s;
  display: inline-block;
  text-decoration: none;
  text-align: center
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(0, 217, 255, 0.6);
  transform: translateY(-2px)
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, .2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .4s, height .4s
}

.btn-primary:active::after {
  width: 300px;
  height: 300px
}

.btn-outline {
  font-family: var(--head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0, 217, 255, 0.4);
  padding: 16px 36px;
  cursor: pointer;
  transition: all .3s;
  display: inline-block;
  text-decoration: none;
  text-align: center
}

.btn-outline:hover {
  border-color: var(--cyan);
  background: rgba(0, 217, 255, 0.06);
  transform: translateY(-2px)
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 60px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  animation: bob 2s infinite
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--muted)
}

/* Glitch headline — mouse-triggered */
.glitch {
  position: relative;
  display: inline;
  cursor: default
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .1s
}

.glitch.active::before {
  color: var(--cyan);
  opacity: 1;
  animation: glitch1 .3s steps(2) forwards;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%)
}

.glitch.active::after {
  color: var(--red);
  opacity: 1;
  animation: glitch2 .3s steps(2) forwards;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%)
}

/* ===== SECTIONS COMMON ===== */
section {
  padding: 120px 60px;
  position: relative;
  text-align: center
}

.section-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px
}

.section-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cyan)
}

h2 {
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  margin-bottom: 24px;
  text-align: center
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--cyan);
  margin: 0 auto 40px auto
}

/* ===== ABOUT ===== */
#about {
  background: var(--slate);
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center
}

.about-text {
  text-align: center
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px
}

.about-text p strong {
  color: var(--cyan);
  font-weight: 500
}

.about-metrics {
  margin-top: 36px;
  display: flex;
  gap: 32px;
  justify-content: center
}

.metric-val {
  font-family: var(--mono);
  font-size: 28px;
  color: var(--cyan)
}

.metric-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px
}

.terminal-viz {
  background: #050c1a;
  border: 1px solid rgba(0, 217, 255, 0.2);
  padding: 24px;
  font-family: var(--mono);
  font-size: 13px;
  position: relative;
  overflow: hidden
}

.terminal-viz::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 217, 255, .015) 2px, rgba(0, 217, 255, .015) 4px);
  pointer-events: none
}

.term-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  align-items: center
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%
}

.d-r {
  background: #ff5f57
}

.d-y {
  background: #febc2e
}

.d-g {
  background: #28c840
}

.term-line {
  color: var(--green);
  margin-bottom: 6px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .4s, transform .4s
}

.term-line.visible {
  opacity: 1;
  transform: translateX(0)
}

.term-line.dim {
  color: var(--muted)
}

.term-line.warn {
  color: var(--red)
}

.term-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--cyan);
  animation: blink 1s infinite;
  vertical-align: middle;
  margin-left: 4px
}

/* ===== ARSENAL ===== */
#arsenal {
  background: var(--navy)
}

.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 60px;
  justify-content: center
}

.feat-card {
  background: var(--slate);
  padding: 40px 32px;
  border-top: 2px solid transparent;
  transition: all .4s cubic-bezier(.25, .8, .25, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
  opacity: 0;
  transform: translateY(40px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 300px;
  max-width: 480px
}

.feat-card.visible {
  opacity: 1;
  transform: translateY(0)
}

.feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.04), transparent);
  opacity: 0;
  transition: opacity .3s
}

.feat-card:hover {
  border-top-color: var(--cyan);
  transform: translateY(-6px)
}

.feat-card:hover::before {
  opacity: 1
}

.feat-card:hover .card-icon svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(0, 217, 255, .4))
}

.card-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  margin-bottom: 20px
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center
}

.card-icon svg {
  width: 100%;
  height: 100%;
  transition: transform .3s, filter .3s
}

.card-title {
  font-family: var(--head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px
}

.card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted)
}

.card-badge {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 4px 10px;
  display: inline-block;
  letter-spacing: 1px
}

/* 5th module gets a wider max-width when it's the last odd item */
@media(min-width: 769px) {
  .feat-card:nth-last-child(1):nth-child(odd) {
    max-width: 600px;
  }
}


/* ===== COMPARISON ===== */
#compare {
  background: var(--navy)
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 60px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto
}

.compare-col {
  padding: 40px;
  text-align: center
}

.compare-col.bad {
  background: rgba(255, 34, 85, 0.05);
  border: 1px solid rgba(255, 34, 85, 0.15)
}

.compare-col.good {
  background: rgba(0, 255, 136, 0.04);
  border: 1px solid rgba(0, 255, 136, 0.15)
}

.col-head {
  font-family: var(--head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  text-align: center
}

.col-head.bad {
  color: var(--red)
}

.col-head.good {
  color: var(--green)
}

.compare-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity .5s, transform .5s
}

.compare-item.visible {
  opacity: 1;
  transform: translateX(0)
}

.compare-item::before {
  content: '';
  flex-shrink: 0;
  margin-top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%
}

.bad .compare-item::before {
  background: var(--red)
}

.good .compare-item::before {
  background: var(--green)
}

/* ===== INSTALL ===== */
#install {
  background: var(--slate);
  position: relative;
  overflow: hidden
}

#install::before {
  content: '';
  position: absolute;
  right: -100px;
  top: 50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 217, 255, .04) 0%, transparent 70%);
  transform: translateY(-50%);
  pointer-events: none
}

/* Dreamwalker4u full-page background */
#dw-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  mix-blend-mode: screen
}

#dw-bg-img {
  width: 65vmin;
  height: auto;
  opacity: 0.06;
  filter: brightness(1.2) drop-shadow(0 0 30px rgba(0, 217, 255, 0.2));
  transition: opacity .3s, transform .1s linear;
  mix-blend-mode: screen
}

#dw-glow-lines {
  position: absolute;
  inset: 0;
  pointer-events: none
}

.glow-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(0, 217, 255, .25) 30%, rgba(0, 217, 255, .4) 50%, rgba(0, 217, 255, .25) 70%, transparent 95%);
  opacity: 0;
  transition: opacity .4s, top .05s linear;
  box-shadow: 0 0 20px 4px rgba(0, 217, 255, .15), 0 0 60px 8px rgba(0, 217, 255, .08)
}

.glow-line.gl-2 {
  background: linear-gradient(90deg, transparent 10%, rgba(0, 255, 136, .2) 40%, rgba(0, 255, 136, .3) 50%, rgba(0, 255, 136, .2) 60%, transparent 90%);
  box-shadow: 0 0 20px 4px rgba(0, 255, 136, .1)
}

.glow-line.gl-3 {
  background: linear-gradient(90deg, transparent 15%, rgba(255, 34, 85, .15) 35%, rgba(255, 34, 85, .25) 50%, rgba(255, 34, 85, .15) 65%, transparent 85%);
  box-shadow: 0 0 20px 4px rgba(255, 34, 85, .1)
}


.install-requirement {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  margin-bottom: 40px;
  background: linear-gradient(135deg, rgba(255, 34, 85, 0.05), rgba(255, 34, 85, 0.02));
  border: 1.5px solid rgba(255, 34, 85, 0.3);
  border-radius: 8px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto
}

.requirement-icon {
  font-size: 24px;
  flex-shrink: 0
}

.requirement-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text)
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 60px;
  max-width: 800px;
  margin: 60px auto 0 auto;
  text-align: left
}

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  position: relative;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .6s, transform .6s
}

.step.visible {
  opacity: 1;
  transform: translateX(0)
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 29px;
  top: 52px;
  width: 2px;
  bottom: -20px;
  background: linear-gradient(180deg, var(--cyan), rgba(0, 217, 255, 0.05));
  opacity: .3
}

.step-num {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(0, 217, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--cyan);
  flex-shrink: 0;
  margin-bottom: 40px;
  transition: all .4s;
  position: relative
}

.step-num::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(0, 217, 255, .08);
  opacity: 0;
  transition: opacity .3s
}

.step:hover .step-num {
  background: rgba(0, 217, 255, .1);
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 217, 255, .2)
}

.step:hover .step-num::after {
  opacity: 1
}

.step-content {
  padding-bottom: 40px
}

.step-label {
  font-family: var(--head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
  transition: color .3s
}

.code-block {
  background: #030810;
  border: 1px solid rgba(0, 217, 255, 0.12);
  padding: 18px 24px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s
}

.code-block:hover {
  border-color: rgba(0, 217, 255, .3);
  box-shadow: 0 0 20px rgba(0, 217, 255, .06)
}

.code-block::before {
  content: '>';
  color: var(--cyan);
  margin-right: 8px;
  opacity: .6
}

.code-block::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .15
}

.copy-btn {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  background: rgba(0, 217, 255, .05);
  border: 1px solid rgba(0, 217, 255, .15);
  padding: 6px 14px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all .25s;
  white-space: nowrap
}

.copy-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 217, 255, .1);
  box-shadow: 0 0 12px rgba(0, 217, 255, .15)
}

.step-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6
}

/* ===== TRUST ===== */
#trust {
  background: var(--navy)
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px
}

.trust-item {
  background: var(--slate);
  padding: 48px 36px;
  border-bottom: 2px solid transparent;
  transition: all .4s;
  text-align: center
}

.trust-item:hover {
  border-bottom-color: var(--cyan);
  transform: translateY(-4px)
}

.trust-item:hover .trust-icon-wrap svg {
  transform: rotate(360deg)
}

.trust-icon-wrap {
  margin-bottom: 20px
}

.trust-icon-wrap svg {
  transition: transform .6s cubic-bezier(.25, .8, .25, 1)
}

.trust-title {
  font-family: var(--head);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px
}

.trust-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted)
}

.trust-bar {
  width: 0;
  height: 2px;
  background: var(--cyan);
  margin: 20px auto 0;
  transition: width .8s
}

.trust-item:hover .trust-bar {
  width: 60px
}





/* ===== CTA FINAL ===== */
#cta {
  background: var(--navy);
  text-align: center;
  padding: 140px 60px;
  position: relative
}

#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 217, 255, .04) 0%, transparent 70%);
  pointer-events: none
}

#cta h2 {
  font-size: clamp(48px, 7vw, 88px);
  margin-bottom: 16px
}

#cta p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 56px
}

.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap
}

.cta-btns .btn-primary {
  animation: ctaPulse 2.5s infinite
}

.cta-btns .btn-outline {
  animation: ctaPulse 2.5s .5s infinite
}

/* ===== FOOTER ===== */
footer {
  background: var(--slate);
  padding: 0 60px;
  border-top: 1px solid rgba(0, 217, 255, 0.08);
  position: relative;
  z-index: 3;
  will-change: transform;
  transition: transform .15s ease-out
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0 24px;
  flex-wrap: wrap;
  gap: 20px
}

.footer-logo {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--cyan);
  letter-spacing: 2px
}

.footer-links {
  display: flex;
  gap: 24px
}

.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color .2s
}

.footer-links a:hover {
  color: var(--cyan)
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(0, 217, 255, .05);
  flex-wrap: wrap;
  gap: 12px
}

.footer-bottom p {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px
}

.made-by {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px
}

.dreamwalker {
  color: var(--cyan);
  font-weight: 700;
  position: relative;
  padding: 0 2px
}

.dreamwalker::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  opacity: .6
}

/* ===== ANIMATIONS ===== */
@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .6;
    transform: scale(1.08)
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 34, 85, .3)
  }

  50% {
    box-shadow: 0 0 20px 4px rgba(255, 34, 85, .15)
  }
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(6px)
  }
}

@keyframes ctaPulse {

  0%,
  100% {
    box-shadow: none
  }

  50% {
    box-shadow: 0 0 30px rgba(0, 217, 255, .25)
  }
}

@keyframes glitch1 {
  0% {
    transform: translate(0)
  }

  10% {
    transform: translate(-3px, 2px)
  }

  20% {
    transform: translate(3px, -2px)
  }

  30% {
    transform: translate(-2px, -1px)
  }

  40% {
    transform: translate(2px, 3px)
  }

  50% {
    transform: translate(-1px, -3px)
  }

  60% {
    transform: translate(3px, 1px)
  }

  70% {
    transform: translate(-3px, 2px)
  }

  80% {
    transform: translate(1px, -2px)
  }

  90% {
    transform: translate(-2px, 3px)
  }

  100% {
    transform: translate(0)
  }
}

@keyframes glitch2 {
  0% {
    transform: translate(0)
  }

  10% {
    transform: translate(2px, -3px)
  }

  20% {
    transform: translate(-3px, 1px)
  }

  30% {
    transform: translate(3px, 2px)
  }

  40% {
    transform: translate(-1px, -2px)
  }

  50% {
    transform: translate(2px, 3px)
  }

  60% {
    transform: translate(-2px, -1px)
  }

  70% {
    transform: translate(1px, -3px)
  }

  80% {
    transform: translate(-3px, 2px)
  }

  90% {
    transform: translate(2px, -1px)
  }

  100% {
    transform: translate(0)
  }
}

@keyframes typewriter {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes scanMove {
  0% {
    transform: translateY(-100%)
  }

  100% {
    transform: translateY(100%)
  }
}

/* Reveal variants — start hidden, animate to visible */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1)
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0)
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1)
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0)
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1)
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0)
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1)
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1)
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.4s infinite;
  display: inline-block
}

/* Smooth parallax-like section separators */
.section-glow {
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, .15), transparent)
}

/* ===== REDUCED MOTION ===== */
@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important
  }
}

/* ===== MOBILE ===== */
@media(max-width:768px) {
  nav ul {
    display: none
  }

  .hamburger {
    display: flex
  }

  nav ul.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 12, 26, .97);
    padding: 24px 40px;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 217, 255, .1)
  }

  #hero {
    padding: 80px 20px 40px
  }

  h1 {
    font-size: clamp(36px, 10vw, 60px)
  }

  .hero-sub {
    font-size: 16px;
    line-height: 1.6
  }

  .scroll-hint {
    display: none
  }

  section {
    padding: 60px 20px
  }

  #about {
    display: flex;
    flex-direction: column;
    gap: 40px
  }

  .cards-grid {
    grid-template-columns: 1fr
  }

  .compare-grid {
    grid-template-columns: 1fr
  }

  .trust-grid {
    grid-template-columns: 1fr
  }

  .sub-form {
    flex-direction: column
  }

  .sub-input {
    border-right: 1px solid rgba(0, 217, 255, 0.25)
  }

  .cta-btns {
    flex-direction: column;
    align-items: center
  }

  footer {
    padding: 0 20px
  }
}
