:root {
  --bg-color: #0a0a0a;
  --text-color: #f8f9fa;
  --accent-color: #00ff88;
  --header-bg: rgba(10, 10, 10, 0.8);
  --btn-bg: #1a1a1a;
  --btn-hover: #2a2a2a;
  --transition: all 0.3s ease;
  --font-display: 'Rajdhani', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

#spectrogram-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  overflow: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

header a.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition);
}

header a.nav-link:hover {
  color: var(--accent-color);
}

#lang-switch {
  display: inline-block;
  background: none;
  border: 2px solid var(--text-color);
  color: var(--text-color);
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  transition: var(--transition);
}

#lang-switch:hover {
  border-color: var(--accent-color);
}

#rainbow-toggle {
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.65);
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-display);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

#rainbow-toggle:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--text-color);
}

#rainbow-toggle img {
  width: 18px;
  height: 18px;
  filter: invert(0.65);
  transition: filter var(--transition);
}

#rainbow-toggle:hover img {
  filter: invert(1);
}

#lang-switch img {
  display: block;
  border-radius: 2px;
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
}

.hero-gradient-text {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.05;
  background: linear-gradient(
    135deg,
    var(--title-color-1, #00ff88) 0%,
    var(--title-color-2, #00ccff) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 22px color-mix(in srgb, var(--title-color-1, #00ff88) 45%, transparent));
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 5rem);
  margin-bottom: 0.2rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero h1.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-acronym {
  font-size: clamp(2.2rem, 5vw, 5rem);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.hero-tagline {
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  max-width: 640px;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.28s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.28s;
}

.hero-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.42s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.42s;
}

.hero h1.visible ~ .hero-acronym,
.hero h1.visible ~ .hero-tagline,
.hero h1.visible ~ .hero-reveal {
  opacity: 1;
  transform: translateY(0);
}

.btn-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-color);
  background-color: var(--btn-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--btn-hover);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent-color) 20%, transparent);
}

.features {
  padding: 5rem 5%;
  background-color: var(--bg-color);
  position: relative;
  z-index: 10;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--btn-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent-color) 12%, transparent);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.feature-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.developer-section {
  padding: 5rem 5%;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.developer-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  text-align: center;
}

.developer-section p {
  text-align: center;
  max-width: 800px;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.terminal-mockup {
  background-color: #1e1e1e;
  border-radius: 8px;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
  overflow: hidden;
}

.terminal-header {
  background-color: #2d2d2d;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid #333;
}

.terminal-header span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-header span:nth-child(1) { background-color: #ff5f56; }
.terminal-header span:nth-child(2) { background-color: #ffbd2e; }
.terminal-header span:nth-child(3) { background-color: #27c93f; }

.terminal-body {
  padding: 1.5rem;
  overflow-x: auto;
}

.terminal-body pre {
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #d4d4d4;
}

.terminal-body code {
  font-family: inherit;
}

.terminal-body .keyword { color: #569cd6; }
.terminal-body .type { color: #4ec9b0; }
.terminal-body .function { color: #dcdcaa; }
.terminal-body .string { color: #ce9178; }
.terminal-body .number { color: #b5cea8; }

@media (max-width: 768px) {
  .hero h1,
  .hero-acronym {
    font-size: 2.2rem;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .btn {
    width: 100%;
  }
}

/* HUB PAGE NEW STYLES */
.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.brand-logo:hover {
  transform: translateY(-2px);
}

.hub-nav {
  display: flex;
  gap: 1.5rem;
  margin-right: auto;
  margin-left: 2rem;
}

.nav-toggle {
  display: none;
}

.download-nav {
  background-color: var(--accent-color);
  color: var(--bg-color) !important;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-weight: 700 !important;
}

.download-nav:hover {
  background-color: color-mix(in srgb, var(--accent-color) 80%, white);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 800px;
}

.badge {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.badge span {
  font-weight: 500;
}

.problem {
  padding: 4rem 5%;
  text-align: center;
  background-color: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.problem p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.25rem;
  color: var(--text-color);
  font-weight: 400;
  line-height: 1.7;
}

.hub-section {
  padding: 6rem 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg-color);
  position: relative;
  z-index: 10;
}

.hub-section:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

.hub-section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-color);
  text-align: center;
}

.link-more {
  display: inline-block;
  margin-top: 3rem;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
}

.link-more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  width: 100%;
}

.step-card {
  background-color: var(--btn-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.step-num {
  position: absolute;
  top: -15px;
  left: 20px;
  background-color: var(--accent-color);
  color: var(--bg-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-display);
}

.step-card h3 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  font-size: 1.3rem;
}

.step-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.security-quote {
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  text-align: center;
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--accent-color);
  padding-left: 1.5rem;
}

.security-list {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  list-style: none;
  padding: 0;
}

.security-list li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.security-list li::before {
  content: "•";
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-size: 1.5rem;
  line-height: 1;
  top: -2px;
}

.table-container {
  width: 100%;
  max-width: 1000px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.highlight-col {
  background-color: color-mix(in srgb, var(--accent-color) 5%, transparent);
  color: var(--accent-color) !important;
  font-weight: 500;
}

th.highlight-col {
  color: var(--accent-color) !important;
  background-color: color-mix(in srgb, var(--accent-color) 8%, transparent);
}

.disclaimer {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.cta-final-section h2 {
  margin-bottom: 2rem;
}

.link-faq {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
}

.link-faq:hover {
  color: var(--text-color);
}

footer {
  background-color: #050505;
  padding: 4rem 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 10;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-color);
}

/* SPOKE PAGES STYLES */
.spoke-page header {
  position: sticky; /* Or absolute, if we don't want sticky on spoke */
}

.spoke-page .nav-back {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spoke-hero {
  padding: 8rem 5% 4rem;
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-color);
}

.spoke-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.spoke-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
}

.intro-section {
  padding-top: 0;
}

.intro-text {
  max-width: 800px;
  text-align: center;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

.intro-text p {
  margin-bottom: 1.5rem;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.page-section {
  padding: 5rem 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg-color);
  position: relative;
  z-index: 10;
}

.page-section.alt-bg {
  background-color: rgba(255, 255, 255, 0.02);
}

.page-section h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--text-color);
  text-align: center;
}

/* Roles Grid */
.roles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 800px;
  width: 100%;
}

.role-card {
  flex: 1 1 300px;
  background-color: var(--btn-bg);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.role-icon {
  background-color: color-mix(in srgb, var(--accent-color) 10%, transparent);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.role-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.role-card p {
  color: rgba(255, 255, 255, 0.7);
}

.callout-note {
  margin-top: 2rem;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 800px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.callout-icon {
  font-size: 1.2rem;
}

/* Timeline Stepper */
.timeline-container {
  max-width: 600px;
  width: 100%;
  position: relative;
  padding-left: 2rem;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 0;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.1);
}

.timeline-step {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-color);
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.2rem;
  z-index: 2;
}

.timeline-content {
  background-color: var(--btn-bg);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.timeline-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.timeline-detail {
  font-size: 0.9rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
  line-height: 1.6;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 1rem;
  margin-bottom: 1.5rem !important;
}

.timeline-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.timeline-link:hover {
  text-decoration: underline;
}

/* Animated Flow SVG */
.animated-flow {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.flow-device {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.flow-waves {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.wave {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  opacity: 0.2;
  animation: pulseWave 1.5s infinite;
}

.wave2 { animation-delay: 0.2s; }
.wave3 { animation-delay: 0.4s; }

@keyframes pulseWave {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.5); opacity: 1; box-shadow: 0 0 10px var(--accent-color); }
}

.diagram-caption {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  max-width: 500px;
}

/* Modes Grid */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  width: 100%;
}

.mode-card {
  background-color: var(--btn-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mode-header {
  margin-bottom: 1rem;
}

.mode-header h3 {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.badge-small {
  display: inline-block;
  background-color: color-mix(in srgb, var(--accent-color) 10%, transparent);
  color: var(--accent-color);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mode-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* Platform Tabs */
.platform-tabs-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.tab-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: var(--bg-color);
  background-color: var(--accent-color);
}

/* Feature Blocks */
.feature-block {
  width: 100%;
  padding: 4rem 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.feature-block.alt-bg {
  background-color: rgba(255, 255, 255, 0.02);
}

.feat-text {
  max-width: 700px;
  width: 100%;
}

.feat-visual {
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-block.align-left .feat-text,
.feature-block.align-right .feat-text {
  text-align: left;
}

.feature-block.center-block {
  text-align: center;
}

.feat-icon {
  width: 48px;
  height: 48px;
  background-color: color-mix(in srgb, var(--accent-color) 10%, transparent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-block h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.feature-block p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.center-desc {
  max-width: 600px;
  margin: 0 auto;
}

/* Code Snippet Container */
.code-snippet-container {
  background-color: #121212;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
}

.code-header {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: monospace;
}

.code-snippet-container pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
}

.code-snippet-container code {
  color: #a8c7fa;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
}

/* Matrix Status Badges */
.badge-status {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-status.ok {
  background-color: color-mix(in srgb, var(--accent-color) 15%, transparent);
  color: var(--accent-color);
}

.badge-status.warn {
  background-color: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.badge-status.empty {
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .feature-block.has-visual {
    flex-direction: row;
    justify-content: center;
    gap: 4rem;
  }
  .feature-block.has-visual.align-right {
    flex-direction: row-reverse;
  }
  .feature-block.has-visual .feat-text,
  .feature-block.has-visual .feat-visual {
    flex: 1;
    margin: 0 !important;
  }
  
  .feature-block.align-left:not(.has-visual) .feat-text {
    margin-right: auto;
    margin-left: 10%;
  }
  .feature-block.align-right:not(.has-visual) .feat-text {
    margin-left: auto;
    margin-right: 10%;
  }
}

/* Sicurezza Page Styles */
.hero-quote {
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 1.5rem auto 0;
  padding: 1.5rem;
  border-left: 4px solid var(--accent-color);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 8px 8px 0;
  line-height: 1.6;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .auth-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.auth-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.auth-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
}

.auth-icon {
  width: 48px;
  height: 48px;
  background: color-mix(in srgb, var(--accent-color) 10%, transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.auth-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.auth-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.auth-note {
  margin-top: 1rem;
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.4) !important;
  font-style: italic;
}

.crypto-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 2rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .crypto-section {
    flex-direction: row;
    justify-content: space-between;
  }
  .crypto-text {
    flex: 1;
    padding-right: 3rem;
  }
  .crypto-visual {
    flex: 1;
    display: flex;
    justify-content: center;
  }
}

.crypto-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.crypto-text p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.locked-packet-diagram {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.callout-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 2.5rem;
  margin: 0 auto;
  max-width: 800px;
}

@media (min-width: 768px) {
  .callout-box {
    flex-direction: row;
    align-items: flex-start;
  }
}

.callout-box.transparency {
  border: 1px solid color-mix(in srgb, var(--accent-color) 30%, transparent);
  background: color-mix(in srgb, var(--accent-color) 2%, transparent);
}

.callout-box.transparency .callout-icon {
  color: var(--accent-color);
}

.callout-box.limits {
  border: 1px solid rgba(255, 193, 7, 0.3);
  background: rgba(255, 193, 7, 0.02);
}

.callout-box.limits .callout-icon {
  color: #ffc107;
}

.callout-icon {
  flex-shrink: 0;
  padding-top: 0.2rem;
}

.callout-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.callout-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.callout-content p:last-child {
  margin-bottom: 0;
}

.privacy-section {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.privacy-list li svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ── FAQ Accordion ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.faq-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-color);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  padding: 1.4rem 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--accent-color);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: rgba(255, 255, 255, 0.4);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-color);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-answer {
  max-height: 600px;
}

.faq-answer p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.7;
  padding-bottom: 1.4rem;
}

.faq-answer ol {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.7;
  padding-bottom: 1.4rem;
  padding-left: 1.2rem;
}

.inline-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

.inline-link:hover {
  text-decoration: underline;
}

/* ── Developer page tech bullets ── */
.tech-bullets {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tech-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s ease;
}

.tech-bullet-item:hover {
  border-color: color-mix(in srgb, var(--accent-color) 20%, transparent);
}

.tech-bullet-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.tech-bullet-item strong {
  display: block;
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 0.4rem;
}

.tech-bullet-item p {
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 0.95rem !important;
  line-height: 1.6;
  margin: 0 !important;
}

/* ── Keyboard key styling ── */
kbd {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-color);
}

@media (max-width: 768px) {
  header {
    padding: 0.75rem 4%;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
  }

  .header-controls {
    gap: 0.4rem;
    max-width: 100%;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hub-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0.5rem 6% 1rem;
    gap: 0;
    background-color: var(--bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  }

  .hub-nav.open {
    display: flex;
  }

  .hub-nav a {
    font-size: 1.05rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .hub-nav a:last-child {
    border-bottom: none;
  }

  #rainbow-toggle {
    padding: 0.35rem 0.5rem;
    font-size: 0.72rem;
  }

  #rainbow-toggle span {
    display: none;
  }

  #lang-switch {
    padding: 0.25rem 0.45rem;
  }

  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding: 7.5rem 6% 3rem;
  }

  .spoke-hero {
    padding: 7rem 6% 3rem;
    min-height: 0;
  }

  .problem,
  .hub-section,
  .page-section,
  .features,
  .developer-section,
  .feature-block {
    padding: 3rem 6%;
  }

  .features h2,
  .hub-section h2,
  .developer-section h2,
  .page-section h2 {
    font-size: 1.7rem;
    margin-bottom: 2rem;
  }

  .spoke-hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.6rem);
  }

  .crypto-text h2,
  .callout-content h2 {
    font-size: 1.4rem;
  }

  th, td {
    padding: 0.7rem 0.6rem;
    font-size: 0.9rem;
  }

  th {
    font-size: 1rem;
  }

  .role-card,
  .step-card,
  .auth-card,
  .mode-card,
  .feature-card {
    padding: 1.5rem;
  }

  .callout-box {
    padding: 1.5rem;
  }

  footer {
    padding: 2.5rem 6%;
  }

  .animated-flow {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
  }

  .feat-visual,
  .crypto-visual,
  .feature-block,
  .crypto-section,
  .locked-packet-diagram,
  .cli-usecase-visual {
    overflow-x: hidden;
    min-width: 0;
  }

  /* Mobile code & terminal containment */
  .terminal-mockup,
  .code-snippet-container,
  .wfas-cli-app,
  .wfas-lab-app {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .terminal-body,
  .code-snippet-container pre {
    max-width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
  }

  .code-snippet-container code,
  .terminal-body pre,
  .terminal-body code {
    font-size: clamp(0.7rem, 2.3vw, 0.85rem);
  }

  .badge {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 540px) {
  .header-controls .download-nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-tagline {
    max-width: 100%;
  }

  .btn-group {
    max-width: 100%;
  }

  .trust-badges {
    gap: 0.6rem;
  }

  .badge {
    font-size: 0.78rem;
  }

  .timeline-container {
    padding-left: 1.5rem;
  }

  .timeline-marker {
    width: 30px;
    height: 30px;
    font-size: 1rem;
    left: -1.5rem;
  }

  .timeline-content {
    padding: 1.25rem 1.25rem;
  }
}
