/* ═══════════════════════════════════════════════════════
   SENTINEL dVPN — Landing Page Stylesheet
   Adapted from Global Stylesheet for Web
═══════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-0:   #060810;
  --bg-1:   #0c1020;
  --bg-2:   #111827;
  --bg-3:   #1a2235;
  --border: #1e2d45;

  --cyan:   #00e5ff;
  --green:  #00ff9f;
  --purple: #a855f7;
  --pink:   #ec4899;
  --orange: #f97316;
  --red:    #ef4444;
  --yellow: #facc15;

  --text-1: #e2e8f0;
  --text-2: #94a3b8;
  --text-3: #475569;

  --font-mono: 'JetBrains Mono', 'Share Tech Mono', 'Courier New', monospace;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;

  --glow-green:  0 0 8px #00ff9f80, 0 0 20px #00ff9f30;
  --glow-cyan:   0 0 8px #00e5ff80, 0 0 20px #00e5ff30;
  --glow-purple: 0 0 8px #a855f780, 0 0 20px #a855f730;
  --glow-red:    0 0 8px #ef444480, 0 0 20px #ef444430;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-0); color: var(--text-1);
  font-family: var(--font-mono); font-size: 14px;
  line-height: 1.6;
  letter-spacing: .02em; -webkit-font-smoothing: antialiased;
  min-height: 100vh; overflow-x: hidden;
}

/* ── Scanlines overlay ─────────────────────────────── */
.app-shell::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,255,159,.01) 2px, rgba(0,255,159,.01) 4px
  );
  animation: scanline-flicker 0.1s infinite;
}
@keyframes scanline-flicker {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.9; }
}

/* ── Background Grid ──────────────────────────────── */
.background-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(rgba(0,229,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ── TitleBar / Header ────────────────────────────── */
.titlebar {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; padding: 0 5%;
  background: rgba(12, 16, 32, 0.8); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
}
.titlebar-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  animation: pulse-logo 3s ease-in-out infinite;
}
@keyframes pulse-logo { 0%,100%{filter:brightness(1)}50%{filter:brightness(1.4) drop-shadow(0 0 6px var(--green))} }
.logo-text { font-size: 16px; font-weight: 700; letter-spacing: .15em; color: var(--green); text-shadow: var(--glow-green); }
.logo-sub  { font-size: 10px; color: var(--text-3); letter-spacing: .2em; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { color: var(--text-2); text-decoration: none; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; transition: color 0.2s; }
.nav-link:hover { color: var(--cyan); }

/* ── Hamburger Menu ──────────────────────────────── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--cyan);
  transition: all 0.3s ease;
  box-shadow: var(--glow-cyan);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Content Area ────────────────────────────────── */
.hero {
  padding: 100px 5% 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  max-width: 1400px; margin: 0 auto; min-height: 80vh;
}

.hero-content { flex: 1; max-width: 600px; }
.hero-content h1 { font-size: 64px; margin-bottom: 24px; color: var(--cyan); text-shadow: var(--glow-cyan); }
.hero-sub { font-size: 18px; color: var(--text-2); margin-bottom: 40px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-platform-tags { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; align-items: center; }
.tag {
  background: rgba(0, 229, 255, 0.05); border: 1px solid rgba(0, 229, 255, 0.2); color: var(--cyan);
  padding: 4px 12px; border-radius: var(--radius-sm); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.1em; transition: all 0.2s; font-weight: 700;
}
.tag.feature { border-color: var(--purple); color: var(--purple); background: rgba(168, 85, 247, 0.05); }
.tag:hover { transform: translateY(-2px); box-shadow: var(--glow-cyan); border-color: var(--cyan); }
.tag.feature:hover { box-shadow: var(--glow-purple); border-color: var(--purple); }

.hero-preview { flex: 1; display: flex; justify-content: center; position: relative; }

.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}
.hero-image-container:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}
.hero-screenshot {
  width: 100%;
  height: auto;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  box-shadow: var(--glow-cyan), 0 20px 50px rgba(0,0,0,0.8);
}

/* ── Protocol Info ─────────────────────────────── */
.protocol-info {
  padding: 100px 5%;
  max-width: 1400px;
  margin: 40px auto;
  background: linear-gradient(90deg, rgba(0,255,159,0.02), rgba(168,85,247,0.02));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.protocol-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
}
.protocol-text { flex: 2.5; text-align: left; }
.protocol-list {
  list-style: none;
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.protocol-list li {
  font-size: 14px;
  color: var(--text-2);
  position: relative;
  padding-left: 28px;
}
.protocol-list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--green);
  font-size: 12px;
  text-shadow: var(--glow-green);
}
.protocol-list li strong {
  display: block;
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.protocol-list strong { color: var(--text-1); }

.protocol-visual {
  flex: 0.5;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 160px;
}
.stat-box {
  background: var(--bg-1);
  border: 1px solid var(--green);
  padding: 16px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--glow-green);
}
.stat-box.cyan {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}
.stat-val {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.1em;
}
.stat-lab {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 8px;
}

/* ── Interface Gallery ────────────────────────────── */
.interface-gallery { padding: 100px 5%; max-width: 1400px; margin: 0 auto; text-align: center; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.gallery-item {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}
.gallery-item:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: scale(1.02);
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.gallery-item:hover img { opacity: 1; }
.gallery-caption {
  padding: 15px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Network Overview ────────────────────────────── */
.network-overview {
  padding: 100px 5%; max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; gap: 80px;
}
.network-content { flex: 1; text-align: left; }
.section-desc { color: var(--text-3); font-size: 16px; margin-bottom: 40px; }
.network-features { display: flex; flex-direction: column; gap: 30px; }
.net-feat { display: flex; gap: 20px; align-items: flex-start; }
.feat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: var(--glow-cyan); margin-top: 6px; flex-shrink: 0; }
.net-feat h4 { color: var(--text-1); font-size: 14px; margin-bottom: 4px; }
.net-feat p { color: var(--text-3); font-size: 12px; }

.network-visuals {
  flex: 1.2;
  position: relative;
  height: 500px;
}
.net-screenshot {
  position: absolute;
  width: 80%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transition: all 0.4s ease;
}
.net-screenshot.top { top: 0; right: 0; z-index: 2; border-color: var(--purple); }
.net-screenshot.bottom { bottom: 0; left: 0; z-index: 1; border-color: var(--cyan); }
.network-visuals:hover .net-screenshot.top { transform: translateY(-20px) translateX(20px); box-shadow: var(--glow-purple); }
.network-visuals:hover .net-screenshot.bottom { transform: translateY(20px) translateX(-20px); box-shadow: var(--glow-cyan); }

/* ── Features ────────────────────────────────────── */
.features { padding: 100px 5%; max-width: 1400px; margin: 0 auto; text-align: center; }
.section-title { font-size: 32px; color: var(--green); margin-bottom: 20px; text-shadow: var(--glow-green); }
.section-subtitle { font-size: 14px; color: var(--text-3); margin-bottom: 60px; text-transform: uppercase; letter-spacing: 0.2em; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.feature-card {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; transition: all 0.3s ease; text-align: left;
}
.feature-card:hover { border-color: var(--cyan); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.feature-icon { font-size: 40px; margin-bottom: 24px; }
.feature-card h3 { color: var(--cyan); margin-bottom: 16px; font-size: 18px; }
.feature-card p { color: var(--text-2); font-size: 14px; }

/* ── Comparison Table ──────────────────────────────── */
.comparison-section { padding: 100px 5%; max-width: 1000px; margin: 0 auto; }
.comparison-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.comp-head { background: var(--bg-3); padding: 24px; text-align: center; font-weight: 700; color: var(--text-1); letter-spacing: 0.1em; }
.comp-head.highlight { color: var(--cyan); text-shadow: var(--glow-cyan); }
.comp-cell { background: var(--bg-1); padding: 20px; font-size: 13px; color: var(--text-2); border-top: 1px solid var(--border); }
.comp-label { grid-column: span 2; background: var(--bg-2); padding: 10px 20px; font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; }

/* ── Validator Section ────────────────────────────── */
.validator-section { padding: 100px 5%; max-width: 1400px; margin: 0 auto; }
.validator-card {
  display: flex; align-items: center; gap: 48px; background: linear-gradient(135deg, var(--bg-1), var(--bg-0));
  border: 1px solid var(--purple); border-radius: var(--radius-lg); padding: 60px;
  box-shadow: var(--glow-purple);
}
.validator-avatar-container { position: relative; flex-shrink: 0; }
.validator-avatar {
  width: 200px; height: 200px; border-radius: var(--radius); border: 2px solid var(--purple);
  object-fit: cover; box-shadow: 0 0 20px rgba(168,85,247,0.3);
}
.validator-avatar-container::after {
  content: 'VALIDATOR'; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  background: var(--purple); color: var(--bg-0); padding: 4px 12px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; border-radius: var(--radius-sm);
}
.validator-info { flex: 1; }
.validator-name { font-size: 32px; color: var(--purple); text-shadow: var(--glow-purple); margin-bottom: 16px; }
.validator-desc { font-size: 16px; color: var(--text-2); margin-bottom: 32px; line-height: 1.8; }
.validator-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.donation-box {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
  margin-top: 32px; display: flex; align-items: center; gap: 16px;
}
.donation-addr { font-size: 11px; color: var(--text-3); font-family: monospace; overflow: hidden; text-overflow: ellipsis; flex: 1; }

/* ── Community Section ────────────────────────────── */
.community-section { padding: 100px 5% 150px; display: flex; justify-content: center; }
.setup-card {
  background: var(--bg-1); border: 1px solid var(--border);
  border-top: 2px solid var(--cyan); border-radius: var(--radius-lg);
  padding: 60px 40px; width: 900px; position: relative;
  box-shadow: 0 0 40px rgba(0,229,255,.05), 0 20px 60px rgba(0,0,0,.5);
}
.setup-card::before {
  content: ''; position: absolute;
  top: -2px; left: 20%; right: 20%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 12px var(--cyan);
}
.setup-header { text-align: center; margin-bottom: 48px; }
.setup-header .icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 20px;
}
.setup-header h1 { font-size: 28px; color: var(--cyan); text-shadow: var(--glow-cyan); margin-bottom: 12px; }
.setup-header p  { color: var(--text-2); font-size: 16px; max-width: 600px; margin: 0 auto; }

.promotion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.promo-item {
  background: var(--bg-0); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px;
  text-align: center; display: flex; flex-direction: column; gap: 16px; transition: border-color .2s;
  justify-content: space-between; /* This keeps the button at the bottom */
}
.promo-item:hover { border-color: var(--text-3); }
.promo-icon { font-size: 32px; margin-bottom: 8px; }
.promo-item h3 { font-size: 14px; color: var(--text-1); letter-spacing: 0.1em; }
.promo-item p { font-size: 12px; color: var(--text-3); line-height: 1.6; flex: 1; }

.community-note { text-align: center; color: var(--text-2); font-size: 13px; line-height: 1.8; max-width: 600px; margin: 0 auto; }
.community-note strong { color: var(--green); }

/* ── Buttons (Consistent with App) ────────────────── */
.btn-cyan { 
  background: rgba(0, 229, 255, 0.1) !important; 
  border: 1px solid #00e5ff !important; 
  color: #00e5ff !important; 
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5) !important; 
}
.btn-cyan:hover { 
  background: rgba(0, 229, 255, 0.2) !important; 
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4) !important; 
  transform: translateY(-2px); 
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 14px 28px; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  transition: all .15s; border: 1px solid transparent; white-space: nowrap;
  position: relative; overflow: hidden; text-decoration: none;
}
.btn-primary  { background: linear-gradient(135deg,#00ff9f15,#00e5ff15); border-color: var(--green); color: var(--green); text-shadow: 0 0 8px var(--green); }
.btn-primary:hover { 
  background: linear-gradient(135deg,#00ff9f25,#00e5ff20); 
  box-shadow: var(--glow-green), inset 0 0 15px rgba(0,255,159,0.2);
  transform: translateY(-2px);
}
.btn-secondary { background: var(--bg-2); border-color: var(--border); color: var(--text-2); }
.btn-secondary:hover { background: var(--bg-3); border-color: var(--text-3); color: var(--text-1); }
.btn-purple  { background: transparent; border-color: var(--purple); color: var(--purple); text-shadow: 0 0 8px var(--purple); }
.btn-purple:hover { background: rgba(168,85,247,.1); box-shadow: var(--glow-purple); transform: translateY(-2px); }
.btn-lg { padding: 18px 40px; font-size: 14px; }
.btn-sm { padding: 8px 16px; font-size: 10px; }
.btn-full { width: 100%; }

/* ── Divider ───────────────────────────────────────── */
.divider { display: flex; align-items: center; gap: 20px; margin: 40px 0; color: var(--text-3); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.divider::before,.divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Form Labels ───────────────────────────────────── */
.form-label { display: block; font-size: 10px; color: var(--text-3); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 12px; text-align: center; }

/* ── Footer ────────────────────────────────────────── */
.bottom-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px 5%; background: var(--bg-1);
  border-top: 1px solid var(--border);
}
.footer-info { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--text-3); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.active { background: var(--green); box-shadow: var(--glow-green); }
.footer-links { font-size: 11px; color: var(--text-3); }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { padding: 80px 5%; gap: 30px; }
  .hero-content h1 { font-size: 48px; }
}

@media (max-width: 900px) {
  .titlebar {
    height: 70px;
    padding: 0 5%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--bg-1);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    border-bottom: 0px solid var(--border);
    backdrop-filter: blur(10px);
    z-index: 1000;
    gap: 0;
  }

  .nav-links.active {
    height: auto;
    padding: 30px 0;
    border-bottom-width: 1px;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 20px;
    font-size: 16px;
    border-bottom: 1px solid rgba(30, 45, 69, 0.3);
  }
  
  .nav-links .btn {
    margin-top: 20px;
    width: 80%;
  }
  
  .hero { 
    flex-direction: column; 
    text-align: center; 
    padding-top: 60px; 
    min-height: auto;
  }
  .hero-content { max-width: 100%; }
  .hero-content h1 { font-size: 42px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { justify-content: center; }
  .hero-platform-tags { justify-content: center; }
  
  .hero-image-container {
    transform: none;
    max-width: 80%;
  }
  .hero-image-container:hover { transform: scale(1.02); }

  .protocol-grid { flex-direction: column; text-align: center; }
  .protocol-text { order: 1; }
  .protocol-visual { 
    order: 2; 
    flex-direction: row; 
    justify-content: center; 
    width: 100%;
    margin-top: 30px;
  }

  .validator-card {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
    align-items: center;
  }
  .validator-info { width: 100%; }
  .validator-actions { justify-content: center; }
  .donation-box { flex-direction: column; gap: 10px; }
  .donation-addr { width: 100%; word-break: break-all; }

  .setup-card { width: 100%; padding: 40px 20px; }
  .promotion-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-content h1 { font-size: 32px; }
  .section-title { font-size: 26px; }
  
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  
  .comparison-grid { grid-template-columns: 1fr; }
  .comp-head, .comp-cell { padding: 15px; font-size: 12px; }
  
  .hero-actions .btn { width: 100%; }
  
  .bottom-bar {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .protocol-visual { flex-direction: column; }
}

/* ── Glitch Text Effect ───────────────────────────── */
.glitch-text { position: relative; }
.glitch-text::before, .glitch-text::after {
  content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.glitch-text::before { left: 2px; text-shadow: -2px 0 var(--pink); clip: rect(44px, 450px, 56px, 0); animation: glitch-anim 5s infinite linear alternate-reverse; }
.glitch-text::after { left: -2px; text-shadow: -2px 0 var(--cyan); clip: rect(44px, 450px, 56px, 0); animation: glitch-anim2 5s infinite linear alternate-reverse; }

@keyframes glitch-anim {
  0% { clip: rect(31px, 9999px, 94px, 0); }
  20% { clip: rect(62px, 9999px, 42px, 0); }
  /* ... more frames can be added ... */
  100% { clip: rect(67px, 9999px, 26px, 0); }
}
@keyframes glitch-anim2 {
  0% { clip: rect(65px, 9999px, 100px, 0); }
  20% { clip: rect(50px, 9999px, 30px, 0); }
  100% { clip: rect(15px, 9999px, 13px, 0); }
}
