:root {
  --network-bar-height: 40px;
  --network-bar-height: 40px;
}
/* ============================================
   S256 - Digital Platinum Stylesheet
   Modern, Minimalist Design
   ============================================ */

/* CSS Variables */
:root {
  --network-bar-height: 40px;
  --primary: #a300ff;
  --secondary: #ffd700;
  --accent: #00d4ff;
  --dark: #0b0f14;
  --light: #f5f7fb;
  --text: #1f2430;
  --text-light: #6b7280;
  --white: #ffffff;
  --bg-main: #f5f7fb;
  --bg-card: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --gradient: linear-gradient(135deg, #a300ff 0%, #00d4ff 100%);
  --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --dark: #f5f7fb;
  --light: #1a1f2e;
  --text: #e9eef9;
  --text-light: #9ca3af;
  --white: #0b0f14;
  --bg-main: #0b0f14;
  --bg-card: #1a1f2e;
  --nav-bg: rgba(10, 12, 16, 0.95);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: calc(var(--network-bar-height) + 70px);
  font-family:
    "Segoe UI",
    "Roboto",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg-main);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.navbar {
  position: fixed;
  top: var(--network-bar-height, 0);
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 0.75rem 0;
  transition: all 0.4s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: 2rem;
}

.logo {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.4rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.25rem 0.2rem;
  border-radius: 9rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(163, 0, 255, 0.05);
}

[data-theme="dark"] .nav-links a:hover {
  background: rgba(163, 0, 255, 0.15);
}

.nav-links a.active {
  color: var(--primary);
}

.btn-explorer {
  background: var(--gradient);
  color: white !important;
  padding: 0.6rem 1.25rem !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(163, 0, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin-left: 0.5rem;
}

.btn-explorer:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(163, 0, 255, 0.3);
  filter: brightness(1.1);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
  transform: translateX(-50%) translateY(-10px);
  z-index: 1001;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--light);
  color: var(--primary);
}

.exchange-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.dropdown-menu a:hover .exchange-logo {
  transform: scale(1.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.hamburger {
  width: 28px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.3rem;
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.theme-toggle:active {
  transform: rotate(20deg) scale(0.95);
}

.theme-icon {
  transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  top: var(--network-bar-height, 0);
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(163, 0, 255, 0.1) 0%,
    rgba(0, 212, 255, 0.1) 100%
  );
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--text-light);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.hero-stats {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.8s ease 0.8s backwards;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    background-color 0.3s;
}

.hero-stats:hover {
  transform: translateY(-5px);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.15),
    0 0 30px rgba(192, 192, 192, 0.5),
    0 0 60px rgba(192, 192, 192, 0.2);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.stat {
  text-align: center;
  padding: 0;
  transition: transform 0.2s;
  position: relative;
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--text-light),
    transparent
  );
  opacity: 0.2;
}

.stat:hover {
  transform: scale(1.05);
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  display: inline-block;
  white-space: nowrap;
  min-width: fit-content;
  overflow: visible;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  display: block;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .stat:nth-child(2n)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat::after {
    display: none;
  }
}

/* Sections */
section {
  padding: 80px 20px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
}

/* Philosophy Section */
.philosophy {
  background: var(--bg-main);
  transition: background-color 0.3s ease;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.philosophy-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.philosophy-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.15),
    0 0 25px rgba(192, 192, 192, 0.4),
    0 0 50px rgba(192, 192, 192, 0.15);
}

.philosophy-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.philosophy-card h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.philosophy-card p {
  color: var(--text-light);
}

/* Features Section */
.features {
  background: var(--bg-main);
  transition: background-color 0.3s ease;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .nav-brand {
    margin-right: 2rem;
  }

  .nav-links {
    pointer-events: none;
    gap: 1rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    background-color 0.3s;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.15),
    0 0 25px rgba(192, 192, 192, 0.4),
    0 0 50px rgba(192, 192, 192, 0.15);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.feature-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.feature-comparison {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  margin-top: auto;
}

.feature-comparison span {
  font-weight: 600;
}

.feature-comparison .btc {
  color: var(--text-light);
}

.feature-comparison .s256 {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Specifications Section */
.specifications {
  background: var(--bg-main);
  transition: background-color 0.3s ease;
}

.specs-table {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: background-color 0.3s ease;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--gradient);
  color: var(--white);
}

th {
  padding: 1.5rem;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--light);
}

tbody tr:hover {
  background: var(--light);
}

.highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Downloads Section */
.downloads {
  background: var(--bg-main);
  transition: background-color 0.3s ease;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.download-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.download-options .btn-download {
  margin: 0;
}

.release-notice {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--primary);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.release-notice a {
  color: var(--accent);
}

.download-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    background-color 0.3s;
}

.download-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.15),
    0 0 25px rgba(192, 192, 192, 0.4),
    0 0 50px rgba(192, 192, 192, 0.15);
}

.download-card.featured {
  border: 3px solid var(--primary);
}

.download-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.download-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.file-size {
  color: var(--text-light);
  margin: 1rem 0;
}

.btn-download {
  background: var(--gradient);
  color: var(--white);
  margin: 1.5rem 0;
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.download-includes {
  text-align: left;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--light);
}

.download-includes p {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.download-includes ul {
  list-style: none;
  color: var(--text-light);
}

.download-includes li:before {
  content: "✓ ";
  color: var(--primary);
  font-weight: bold;
}

/* Getting Started Section */
.getting-started {
  background: var(--bg-main);
  transition: background-color 0.3s ease;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg-card);
}

.step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: var(--gradient);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.step h3 {
  margin-bottom: 1rem;
}

.step p {
  color: var(--text-light);
}

/* ─────────────────────────────────────────────────────────────
   Footer  —  sha256coin.eu
   ───────────────────────────────────────────────────────────── */

.footer {
  background: rgba(5, 5, 15, 0.97);
  border-top: 3px solid;
  border-image: linear-gradient(
      90deg,
      #002b7f 33.33%,
      #fcd116 33.33% 66.66%,
      #ce1126 66.66%
    )
    1;
  padding: 3rem 0 0;
}

/* ── 4-column grid ── */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* ── Brand column ── */
.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand .nav-brand-link {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1;
}

.footer-tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.65);
  margin: 0.35rem 0 1.3rem;
  font-weight: 600;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  width: fit-content;
  transition: color 0.2s ease;
}
.footer-email:hover {
  color: rgba(119, 92, 216, 0.95);
}

/* ── Link columns ── */
.footer-col-title {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 0.9rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.2s ease;
}
.footer-col ul a:hover {
  color: rgba(39, 43, 236, 0.95);
}

.social-icon {
  font-size: 0.9rem;
  opacity: 0.8;
  min-width: unset;
}

/* ── Network specs ── */
.network-specs {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
}

.network-specs > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.network-specs dt {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
}

.network-specs dd {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.76);
  font-family: "Courier New", Courier, monospace;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.02em;
}

/* ── Footer bottom bar ── */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0 1.4rem;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-top: none;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.footer-origin {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

.footer-bottom-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-bottom-links a:hover {
  color: rgba(39, 43, 236, 0.95);
}

.footer-bottom {
  padding: 0.8rem 0 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.52);
}

.footer-bottom strong {
  color: rgba(255, 255, 255, 0.72);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-brand {
    margin-right: 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: calc(20px + var(--network-bar-height));
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 0.4s ease,
      opacity 0.3s ease;
  }

  .nav-links.active {
    max-height: calc(100vh - 370px - var(--network-bar-height));
    overflow-y: auto;
    opacity: 1;
    padding: 1rem 0;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--light);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a,
  .dropdown-toggle {
    display: block;
    padding: 0.75rem 1rem;
    width: 100%;
    font-size: 0.95rem;
  }

  .btn-explorer {
    display: inline-block;
    width: auto;
    margin: 0.5rem auto;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
  }

  .theme-toggle {
    margin: 0.5rem auto;
    transform: scale(0.9);
  }

  .pi-symbol {
    font-size: 1.2rem;
    padding: 0.5rem;
  }

  .dropdown {
    position: relative;
  }

  .dropdown-menu {
    width: 100%;
    position: relative;
    left: 0;
    transform: none !important;
    margin-top: var(--network-bar-height, 0);
    box-shadow: none;
    border: none;
    background: var(--light);
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease;
  }

  .dropdown:hover .dropdown-menu {
    max-height: 0;
  }

  .dropdown.active .dropdown-menu {
    max-height: 300px;
  }

  .dropdown-arrow {
    display: inline-block;
  }

  .dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
  }

  .dropdown-menu a {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .exchange-logo {
    width: 20px;
    height: 20px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .features-grid,
  .philosophy-grid,
  .download-cards,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 0.9rem;
  }

  th,
  td {
    padding: 0.8rem;
  }
}

/* ============================================
   Pi Symbol Easter Egg & Matrix Terminal
   ============================================ */

/* Pi Symbol Easter Egg */
.pi-symbol {
  position: relative;
  font-size: 1.6rem;
  color: var(--primary);
  opacity: 0.35;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
  user-select: none;
  font-family: "Times New Roman", serif;
  font-weight: 600;
}

.pi-symbol:hover {
  opacity: 1;
  text-shadow:
    0 0 10px var(--primary),
    0 0 20px var(--primary);
  transform: scale(1.3);
}

/* Matrix Terminal Overlay */
.matrix-terminal {
  position: fixed;
  top: var(--network-bar-height, 0);
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  animation: fadeIn 0.5s ease;
  overflow: hidden;
}

.matrix-terminal.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.terminal-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 90%;
  margin: 2.5% auto;
  background: #000;
  border: 2px solid #00ff00;
  border-radius: 8px;
  box-shadow:
    0 0 50px rgba(0, 255, 0, 0.5),
    inset 0 0 100px rgba(0, 255, 0, 0.1);
  overflow: hidden;
  font-family: "Courier New", monospace;
}

/* CRT Scanline Effect */
.terminal-container::before {
  content: "";
  position: absolute;
  top: var(--network-bar-height, 0);
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 2;
  pointer-events: none;
  animation: scanline 8s linear infinite;
}

@keyframes scanline {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 100%;
  }
}

/* CRT Flicker */
.terminal-container::after {
  content: "";
  position: absolute;
  top: var(--network-bar-height, 0);
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 16, 16, 0.1);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}

@keyframes flicker {
  0% {
    opacity: 0.27861;
  }
  5% {
    opacity: 0.34769;
  }
  10% {
    opacity: 0.23604;
  }
  15% {
    opacity: 0.90626;
  }
  20% {
    opacity: 0.18128;
  }
  25% {
    opacity: 0.83891;
  }
  30% {
    opacity: 0.65583;
  }
  35% {
    opacity: 0.67807;
  }
  40% {
    opacity: 0.26559;
  }
  45% {
    opacity: 0.84693;
  }
  50% {
    opacity: 0.96019;
  }
  55% {
    opacity: 0.08594;
  }
  60% {
    opacity: 0.20313;
  }
  65% {
    opacity: 0.71988;
  }
  70% {
    opacity: 0.53455;
  }
  75% {
    opacity: 0.37288;
  }
  80% {
    opacity: 0.71428;
  }
  85% {
    opacity: 0.70419;
  }
  90% {
    opacity: 0.7003;
  }
  95% {
    opacity: 0.36108;
  }
  100% {
    opacity: 0.24387;
  }
}

.terminal-header {
  background: #001100;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #00ff00;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 3;
}

.terminal-title {
  color: #00ff00;
  font-size: 0.9rem;
  text-shadow: 0 0 5px #00ff00;
}

.terminal-close {
  background: transparent;
  border: 1px solid #00ff00;
  color: #00ff00;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  font-family: "Courier New", monospace;
  transition: all 0.3s ease;
}

.terminal-close:hover {
  background: #00ff00;
  color: #000;
  box-shadow: 0 0 10px #00ff00;
}

.terminal-content {
  padding: 1.5rem;
  height: calc(100% - 50px);
  overflow-y: auto;
  color: #00ff00;
  font-size: 0.9rem;
  line-height: 1.4;
  text-shadow: 0 0 2px #00ff00;
  position: relative;
  z-index: 3;
}

.terminal-content::-webkit-scrollbar {
  width: 10px;
}

.terminal-content::-webkit-scrollbar-track {
  background: #001100;
}

.terminal-content::-webkit-scrollbar-thumb {
  background: #00ff00;
  box-shadow: 0 0 5px #00ff00;
}

.terminal-line {
  opacity: 0;
  animation: terminalFadeIn 0.1s ease forwards;
  white-space: pre;
  overflow-x: auto;
}

@keyframes terminalFadeIn {
  to {
    opacity: 1;
  }
}

.terminal-cursor {
  display: inline-block;
  width: 10px;
  height: 1em;
  background: #00ff00;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Matrix Rain Background Effect */
.matrix-rain {
  position: absolute;
  top: var(--network-bar-height, 0);
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.1;
}

.partner-feature-card {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {

  .partner-feature-card {
    flex-direction: column;
    text-align: center;
  }

  /* Default for all partner logos */
  .partner-feature-card img {
    display: block;
    margin: 0 auto;
  }

  /* SVG logos: scale by height */
  .partner-feature-card img[src$=".svg"] {
    height: 80px;
    width: auto;
  }

  /* PNG/JPG logos: scale by width */
  .partner-feature-card img[src$=".png"],
  .partner-feature-card img[src$=".jpg"],
  .partner-feature-card img[src$=".jpeg"] {
    max-width: 400px;
    height: auto;
  }

  .logo-container {
    padding-right: 0 !important;
  }
}

/* Network Bar */
.network-bar {
  height: 34px;
  display: flex;
  align-items: center;
  background: #0b0f14;
  color: white;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(163, 0, 255, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  overflow: hidden; /* Hide overflow for scrolling */
}

.network-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.network-stats-group {
  display: flex;
  width: max-content;
  align-items: center;
  position: absolute;
  left: 0;
  will-change: transform;
}

.marquee-set {
  display: flex;
  gap: 0.8rem;
  padding-right: 4rem;
}

.network-bar .network-bar-stat {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  line-height: 1; /* Ensure consistent height */
}

.network-bar .network-bar-label {
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.85px;
  font-size: 0.85rem;
}

.network-bar .network-bar-text {
  color: var(--text-light);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.85px;
  font-size: 0.85rem;
}

.network-bar .network-bar-value {
  color: var(--accent);
  font-weight: 600;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 1px; /* Fine-tune vertical position of mono font */
}

.network-link {
  color: var(--text-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.85px;
  font-size: 0.85rem;
}

.network-link a {
  color: inherit; /* Inherits the color of your text */
  text-decoration: none; /* Removes the underline if you don't want it */
}

/* Adjust navbar for sticky network bar */
.navbar {
  top: var(--network-bar-height); /* Adjust based on network bar height */
}

@media (max-width: 768px) {
  .network-stats-group {
    gap: 0.75rem;
  }
  .navbar {
    top: var(--network-bar-height);
  }
}

/* Ecosystem Hub */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.ecosystem-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(163, 0, 255, 0.1);
  text-align: center;
}

.ecosystem-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.eco-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.ecosystem-card h3 {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.5rem;
}

.ecosystem-card p {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.eco-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.2s;
}

.eco-link:hover {
  color: var(--accent);
}

/* Adjust navbar for sticky network bar */
.navbar {
  top: 34px;
}

@media (max-width: 768px) {
  .network-stats-group {
    gap: 1.5rem;
  }
  body {
    padding-top: 120px !important;
  }
}

/* Platinum Ecosystem Card Redesign */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.ecosystem-card {
  background: linear-gradient(145deg, #1e2433, #111621) !important;
  border: 1px solid rgba(163, 0, 255, 0.1) !important;
  padding: 3rem 2rem !important;
  border-radius: 20px !important;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(163, 0, 255, 0.05) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: relative;
  overflow: hidden;
}

.ecosystem-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(163, 0, 255, 0.03),
    transparent
  );
  transform: translateX(-100%);
  transition: 0.6s;
}

.ecosystem-card:hover::before {
  transform: translateX(100%);
}

.ecosystem-card:hover {
  transform: translateY(-12px) scale(1.02) !important;
  border-color: #a300ff !important;
  box-shadow: 0 20px 40px rgba(163, 0, 255, 0.25) !important;
}

.eco-icon {
  font-size: 3.5rem !important;
  margin-bottom: 2rem !important;
  display: inline-block;
  filter: drop-shadow(0 0 12px rgba(163, 0, 255, 0.4)) !important;
}

.ecosystem-card h3 {
  color: #fff !important;
  font-size: 1.6rem !important;
  letter-spacing: 0.5px;
}

.ecosystem-card p {
  color: #9ca3af !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

.eco-link {
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem !important;
}
