/* 
 * Zelton: The Onion Networking Platform - Main Stylesheet
 * Custom Colorful Gruvbox Palette with Dark/Light Support, Premium Typography,
 * Square Diagram Containers, and SVG Icon Micro-Animations
 */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&family=Fira+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,900;1,400;1,700&display=swap');

:root {
  /* Gruvbox Dark (Default) Colors */
  --bg-hard: #07071a;
  --bg-medium: rgba(255, 255, 255, 0.045);
  --bg-soft: rgba(255, 255, 255, 0.065);
  --bg-element: rgba(255, 255, 255, 0.085);
  --bg-hover: rgba(255, 255, 255, 0.14);
  
  --fg0: #fbf1c7;
  --fg1: #ebdbb2;
  --fg2: #d5c4a1;
  --fg3: #bdae93;
  --muted: #928374;
  
  --red: #e93d6d;
  --green: #6bb074;
  --yellow: #fdd835;
  --blue: #3b82f6;
  --purple: #8e5dc1;
  --aqua: #6bb074;
  --orange: #e86d3a;

  --border-color: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(233, 61, 109, 0.55);
  --shadow-color: rgba(0, 0, 0, 0.5);
  --glass-bg: rgba(7, 7, 26, 0.88);
  --glass-border: rgba(255, 255, 255, 0.07);
  
  /* Intense Glowing Backdrops */
  --hero-glow-1: rgba(250, 189, 47, 0.18);
  --hero-glow-2: rgba(131, 165, 152, 0.16);
  --hero-glow-3: rgba(211, 134, 155, 0.15);

  --color-bg1: rgb(7, 7, 26);
  --color-bg2: rgb(13, 10, 36);
  --color1: 18, 113, 255;
  --color2: 221, 74, 255;
  --color3: 100, 220, 255;
  --color4: 200, 50, 50;
  --color5: 180, 180, 50;
  --color-interactive: 140, 100, 255;
  --circle-size: 80%;
  --blending: hard-light;

  --font-sans: 'Fira Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Fira Code', 'SF Mono', Consolas, Monaco, monospace;
  
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --max: 1200px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  /* Gruvbox Light Colors */
  --bg-hard: #fbf1c7;
  --bg-medium: #f2e5bc;
  --bg-soft: #ebdbb2;
  --bg-element: #d5c4a1;
  --bg-hover: #bdae93;
  
  --fg0: #282828;
  --fg1: #3c3836;
  --fg2: #504945;
  --fg3: #665c54;
  --muted: #7c6f64;
  
  --red: #9d0006;
  --green: #79740e;
  --yellow: #b57614;
  --blue: #076678;
  --purple: #8f3f71;
  --aqua: #427b58;
  --orange: #af3a03;

  --border-color: rgba(40, 40, 40, 0.15);
  --border-hover: rgba(181, 118, 20, 0.6);
  --shadow-color: rgba(40, 40, 40, 0.22);
  --glass-bg: rgba(242, 229, 188, 0.88);
  --glass-border: rgba(40, 40, 40, 0.18);
  
  --hero-glow-1: rgba(181, 118, 20, 0.14);
  --hero-glow-2: rgba(7, 102, 120, 0.12);
  --hero-glow-3: rgba(143, 63, 113, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-hard);
  color: var(--fg1);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition), color var(--transition);
}

@keyframes moveInCircle {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

@keyframes moveVertical {
  0% { transform: translateY(-50%); }
  50% { transform: translateY(50%); }
  100% { transform: translateY(-50%); }
}

@keyframes moveHorizontal {
  0% { transform: translateX(-50%) translateY(-10%); }
  50% { transform: translateX(50%) translateY(10%); }
  100% { transform: translateX(-50%) translateY(-10%); }
}

.gradient-bg {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  background: linear-gradient(40deg, #050510, #0b0b1f 52%, #07071a);
  z-index: 0;
  pointer-events: none;
}

.gradient-bg svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.gradient-bg .gradients-container {
  width: 100%;
  height: 100%;
  filter: url(#goo) blur(40px);
  opacity: 0.28;
}

.gradient-bg .g1 {
  position: absolute;
  width: 80%;
  height: 80%;
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  transform-origin: center center;
  animation: moveVertical 30s ease infinite;
  opacity: 1;
}

.gradient-bg .g2 {
  position: absolute;
  width: 80%;
  height: 80%;
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  transform-origin: calc(50% - 400px);
  animation: moveInCircle 20s reverse infinite;
  opacity: 1;
}

.gradient-bg .g3 {
  position: absolute;
  width: 80%;
  height: 80%;
  top: calc(50% - var(--circle-size) / 2 + 200px);
  left: calc(50% - var(--circle-size) / 2 - 500px);
  background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  transform-origin: calc(50% + 400px);
  animation: moveInCircle 40s linear infinite;
  opacity: 1;
}

.gradient-bg .g4 {
  position: absolute;
  width: 80%;
  height: 80%;
  top: calc(50% - var(--circle-size) / 2);
  left: calc(50% - var(--circle-size) / 2);
  background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  transform-origin: calc(50% - 200px);
  animation: moveHorizontal 40s ease infinite;
  opacity: 0.7;
}

.gradient-bg .g5 {
  position: absolute;
  width: 160%;
  height: 160%;
  top: calc(50% - var(--circle-size));
  left: calc(50% - var(--circle-size));
  background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  transform-origin: calc(50% - 800px) calc(50% + 200px);
  animation: moveInCircle 20s ease infinite;
  opacity: 1;
}

.gradient-bg .interactive {
  position: absolute;
  width: 100%;
  height: 100%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.8) 0, rgba(var(--color-interactive), 0) 50%) no-repeat;
  mix-blend-mode: var(--blending);
  opacity: 0.7;
}

/* Noise overlay */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: 9999;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-hard);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-hard);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* Layout Utilities */
.shell {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

/* Colorful Section Glowing Backdrops */
.section::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

#what::before { background: var(--orange); left: 10%; top: 20%; }
#how::before { background: var(--green); right: 10%; bottom: 20%; }
#features::before { background: var(--blue); left: 20%; bottom: 10%; }
#aina::before { background: var(--purple); right: 20%; top: 10%; }
#vega::before { background: var(--aqua); left: 8%; bottom: 12%; }
#screenshots::before { background: var(--yellow); right: 8%; top: 18%; }
#download::before { background: var(--aqua); left: 10%; bottom: 15%; }

.section:last-of-type {
  border-bottom: none;
}

.section-head {
  margin-bottom: 50px;
  max-width: 800px;
  position: relative;
}

.section-head::after {
  content: "";
  display: block;
  width: min(420px, 72vw);
  height: 3px;
  margin-top: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--yellow), var(--green), var(--blue), var(--purple));
  box-shadow: 0 0 22px rgba(250, 189, 47, 0.16);
}

.kicker {
  display: inline-block;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 900;
  margin-bottom: 12px;
  text-shadow: 0 0 18px rgba(250, 189, 47, 0.26);
}

h1, h2, h3, h4 {
  color: var(--fg0);
  font-weight: 800;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  background: linear-gradient(120deg, var(--fg0) 8%, var(--yellow) 34%, var(--aqua) 62%, var(--purple) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 34px rgba(250, 189, 47, 0.1);
}

h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--fg0) 20%, var(--yellow) 60%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(250, 189, 47, 0.15);
}

.hero-headline {
  letter-spacing: -0.03em;
}

.hero-word {
  display: inline-block;
  margin-right: 0.14em;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 42px rgba(253, 216, 53, 0.16);
}

.word-zelton {
  background-image: linear-gradient(135deg, #fbf1c7, #e93d6d, #fdd835);
  text-shadow: 0 0 48px rgba(233, 61, 109, 0.2);
}

.word-private {
  background-image: linear-gradient(135deg, #e93d6d, #e86d3a);
}

.word-onion {
  background-image: linear-gradient(135deg, #fdd835, #6bb074);
}

.word-networking {
  background-image: linear-gradient(135deg, #3b82f6, #64dcff);
}

.word-for {
  background-image: linear-gradient(135deg, #fbf1c7, #fdd835);
}

.word-everyone {
  background-image: linear-gradient(135deg, #8e5dc1, #dd4aff, #e93d6d);
}

.lead {
  font-size: 1.25rem;
  color: var(--fg1);
  line-height: 1.65;
  margin-bottom: 32px;
  text-shadow: 0 0 22px rgba(142, 192, 124, 0.08);
}

.section-copy {
  font-size: 1.1rem;
  color: var(--fg2);
  margin-top: 10px;
}

/* Grid Systems */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 36px;
  align-items: center;
}

/* Navigation Bar with Boxed Header Links */
.nav {
  position: relative;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--shadow-color);
  transition: background-color var(--transition), border-color var(--transition);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--fg0);
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px; /* Close spacing for boxed layouts */
  margin-left: auto;
}

/* Boxed Header Navigation Links */
.nav-links a {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fg2);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: rgba(251, 241, 199, 0.02);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--yellow);
  background: var(--bg-hover);
  border-color: rgba(250, 189, 47, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

[data-theme="light"] .nav-links a {
  background: rgba(40, 40, 40, 0.02);
}

[data-theme="light"] .nav-links a:hover {
  border-color: rgba(181, 118, 20, 0.25);
}

/* Nav Actions Container */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Buttons with glowing shadows */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-element);
  color: var(--fg1);
  box-shadow: 0 6px 16px var(--shadow-color);
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  color: var(--fg0);
  background: var(--bg-hover);
}

.btn-primary {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--bg-hard);
  border: none;
  box-shadow: 0 6px 20px rgba(254, 128, 25, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: var(--bg-hard);
  box-shadow: 0 8px 24px rgba(254, 128, 25, 0.45);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(250, 189, 47, 0.35);
  color: var(--yellow);
}

.btn-ghost:hover {
  background: rgba(250, 189, 47, 0.06);
  border-color: var(--yellow);
}

[data-theme="light"] .btn-ghost {
  border-color: rgba(181, 118, 20, 0.4);
  color: var(--yellow);
}

[data-theme="light"] .btn-ghost:hover {
  background: rgba(181, 118, 20, 0.06);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  padding: 80px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-lg);
  background: var(--bg-element);
  border: 1px solid var(--border-color);
  color: var(--yellow);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(184, 187, 38, 0.75);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 187, 38, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(184, 187, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 187, 38, 0); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

/* 
 * Colorful Cards & Glassmorphism with Micro-Animations on Hover
 */
.card {
  position: relative;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--card-accent, var(--yellow)) 8%, transparent), transparent 48%),
    var(--bg-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 12px 36px var(--shadow-color);
  transition: var(--transition);
  overflow: hidden;
  z-index: 1;
}

/* Accent bindings for cards */
.card-orange { --card-accent: var(--orange); }
.card-yellow { --card-accent: var(--yellow); }
.card-green  { --card-accent: var(--green); }
.card-red    { --card-accent: var(--red); }
.card-blue   { --card-accent: var(--blue); }
.card-purple { --card-accent: var(--purple); }
.card-aqua   { --card-accent: var(--aqua); }

/* Apply colorful top borders to cards */
.card-orange, .card-yellow, .card-green, .card-red, .card-blue, .card-purple, .card-aqua {
  border-top: 4px solid var(--card-accent);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--card-accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2), 0 0 25px rgba(var(--card-accent), 0.1);
}

.card h3 {
  color: var(--card-accent, var(--fg0));
  text-shadow: 0 0 18px color-mix(in srgb, var(--card-accent, var(--yellow)) 22%, transparent);
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-accent) 0%, transparent 70%);
  opacity: 0.08;
  transition: var(--transition);
  pointer-events: none;
}

.card:hover::after {
  opacity: 0.18;
  transform: scale(1.35);
}

/* Card Icons with custom backgrounds */
.icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(251, 241, 199, 0.03);
  border: 1px solid var(--border-color);
  color: var(--fg2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

/* Colorful Icon overrides */
.card-orange .icon { background: rgba(254, 128, 25, 0.12); border-color: rgba(254, 128, 25, 0.25); color: var(--orange); }
.card-yellow .icon { background: rgba(250, 189, 47, 0.12); border-color: rgba(250, 189, 47, 0.25); color: var(--yellow); }
.card-green .icon  { background: rgba(184, 187, 38, 0.12); border-color: rgba(184, 187, 38, 0.25); color: var(--green); }
.card-red .icon    { background: rgba(251, 73, 52, 0.12); border-color: rgba(251, 73, 52, 0.25); color: var(--red); }
.card-blue .icon   { background: rgba(131, 165, 152, 0.12); border-color: rgba(131, 165, 152, 0.25); color: var(--blue); }
.card-purple .icon { background: rgba(211, 134, 155, 0.12); border-color: rgba(211, 134, 155, 0.25); color: var(--purple); }
.card-aqua .icon   { background: rgba(142, 192, 124, 0.12); border-color: rgba(142, 192, 124, 0.25); color: var(--aqua); }

.card:hover .icon {
  background: var(--card-accent);
  color: var(--bg-hard) !important;
  transform: scale(1.08);
  box-shadow: 0 0 15px var(--card-accent);
}

.icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.2;
  fill: none;
}

/* 
 * Micro-Animations for Card Icons on Hover
 */
/* 1. CLI Command Arrow slide */
.card-orange:hover .icon svg path {
  animation: cliSlide 0.6s ease-in-out infinite alternate;
}
@keyframes cliSlide {
  to { transform: translateX(3px); }
}

/* 2. Playground GUI grid spin/pulse */
.card-yellow:hover .icon svg rect {
  animation: guiPulse 1s ease-in-out infinite alternate;
}
@keyframes guiPulse {
  to { opacity: 0.6; filter: brightness(1.2); }
}

/* 3. Shield check animation */
.card-green:hover .icon svg path:nth-child(2) {
  animation: checkDraw 0.5s ease-in-out forwards;
}
@keyframes checkDraw {
  0% { stroke-dasharray: 20; stroke-dashoffset: 20; }
  100% { stroke-dasharray: 20; stroke-dashoffset: 0; }
}

/* 4. Document sheet lines slide */
.card-red:hover .icon svg path:nth-child(3),
.card-red:hover .icon svg path:nth-child(4) {
  animation: docSlide 0.8s ease-in-out infinite alternate;
}
@keyframes docSlide {
  to { transform: translateX(2px); }
}

/* 5. API microservice box hover scale */
.card-blue:hover .icon svg rect {
  animation: apiScale 0.6s ease-in-out infinite alternate;
}
@keyframes apiScale {
  to { transform: scale(1.05); }
}

/* 6. Vault key shackle unlock */
.card-purple:hover .icon svg path {
  animation: vaultUnlock 0.8s ease-in-out infinite alternate;
}
@keyframes vaultUnlock {
  to { transform: translateY(-2px) rotate(-5deg); }
}

/* 7. Telemetry chart growth */
.card-aqua:hover .icon svg path:nth-child(2) {
  animation: telemetryPulse 1s ease-in-out infinite alternate;
}
@keyframes telemetryPulse {
  to { stroke-width: 3.2; filter: drop-shadow(0 0 2px var(--aqua)); }
}

/* Feature pills */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(250, 189, 47, 0.04), rgba(142, 192, 124, 0.03)),
    var(--bg-soft);
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
}

.pill:hover {
  border-color: var(--border-hover);
  background: var(--bg-element);
  transform: translateY(-1px);
}

.pill svg {
  width: 16px;
  height: 16px;
  stroke: var(--green);
  stroke-width: 2.8;
  fill: none;
  flex: none;
}

/* Steps Sequence */
.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  display: flex;
  gap: 20px;
  padding: 24px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--step-color, var(--yellow)) 9%, transparent), transparent 58%),
    var(--bg-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
}

/* Colors for individual steps */
.step-orange { --step-color: var(--orange); }
.step-yellow { --step-color: var(--yellow); }
.step-aqua   { --step-color: var(--aqua); }
.step-green  { --step-color: var(--green); }

.step:hover {
  border-color: var(--step-color);
  transform: translateX(6px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.step-num {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--bg-hard);
  background: var(--step-color);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 0 10px var(--step-color);
}

.step-content h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--step-color);
}

.step-content p {
  color: var(--fg2);
  font-size: 0.95rem;
}

/* Quote Layout */
.quote {
  padding: 48px;
  border-radius: var(--radius-xl);
  background: var(--bg-medium);
  border: 1px solid var(--border-color);
  position: relative;
  text-align: center;
  box-shadow: 0 15px 40px var(--shadow-color);
}

.quote-colorful {
  background: linear-gradient(135deg, rgba(211, 134, 155, 0.08), rgba(254, 128, 25, 0.03)), var(--bg-medium);
  border-color: rgba(211, 134, 155, 0.25);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2), 0 0 30px rgba(211, 134, 155, 0.05);
}

.quote::before {
  content: "“";
  position: absolute;
  top: 10px;
  left: 30px;
  font-size: 8rem;
  color: var(--purple);
  opacity: 0.25;
  font-family: serif;
}

.quote p {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.45;
  background: linear-gradient(120deg, var(--fg0), var(--yellow), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

.quote-sub {
  font-size: 1.05rem;
  color: var(--fg2);
  max-width: 700px;
  margin: 0 auto;
}


/* 
 * Perfect Square Container for the Hero SVG Graphic
 */
.onion-visual-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  aspect-ratio: 1 / 1; /* Force perfect square ratio */
  display: flex;
  align-items: center;
  justify-content: center;
}

.onion-visual {
  width: 100%;
  height: 100%;
  background: var(--bg-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px var(--shadow-color);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onion-visual svg {
  width: 92%;
  height: 92%;
}

.zelton-hero-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 28% 20%, rgba(233, 61, 109, 0.26), transparent 32%),
    radial-gradient(circle at 75% 30%, rgba(59, 130, 246, 0.28), transparent 34%),
    radial-gradient(circle at 50% 82%, rgba(253, 216, 53, 0.18), transparent 36%),
    rgba(7, 7, 26, 0.72);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), inset 0 0 80px rgba(255, 255, 255, 0.035);
}

.zelton-hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, #e93d6d, #e86d3a, #fdd835, #6bb074, #3b82f6, #8e5dc1, #e93d6d);
  opacity: 0.18;
  animation: zeltonSpin 16s linear infinite;
}

.zelton-hero-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-xl) - 1px);
  background: radial-gradient(circle at center, rgba(7, 7, 26, 0.22), rgba(7, 7, 26, 0.78) 68%);
  pointer-events: none;
}

.zelton-orb {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.62;
  z-index: 1;
  animation: zeltonFloat 8s ease-in-out infinite alternate;
}

.orb-red {
  left: -48px;
  top: 38px;
  background: #e93d6d;
}

.orb-blue {
  right: -58px;
  top: 120px;
  background: #3b82f6;
  animation-delay: -2s;
}

.orb-yellow {
  bottom: -70px;
  left: 34%;
  background: #fdd835;
  animation-delay: -4s;
}

.zelton-brand-mark,
.zelton-brand-word,
.zelton-brand-subtitle,
.zelton-signal-grid,
.zelton-status-row {
  position: relative;
  z-index: 2;
}

.zelton-brand-mark {
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  animation: none;
}

.zelton-brand-mark img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.zelton-brand-word {
  font-size: clamp(3.5rem, 7vw, 6.2rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  background: linear-gradient(135deg, #fbf1c7, #e93d6d, #fdd835, #6bb074);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 58px rgba(233, 61, 109, 0.2);
  animation: zeltonWordDrift 5s ease-in-out infinite alternate;
}

.zelton-brand-subtitle {
  color: rgba(251, 241, 199, 0.76);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
}

.zelton-signal-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  width: min(320px, 78%);
  margin: 10px 0;
}

.zelton-signal-grid span {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e93d6d, #fdd835, #3b82f6);
  opacity: 0.78;
  animation: none;
}

.zelton-signal-grid span:nth-child(2) { animation-delay: 0.12s; }
.zelton-signal-grid span:nth-child(3) { animation-delay: 0.24s; }
.zelton-signal-grid span:nth-child(4) { animation-delay: 0.36s; }
.zelton-signal-grid span:nth-child(5) { animation-delay: 0.48s; }
.zelton-signal-grid span:nth-child(6) { animation-delay: 0.6s; }

.zelton-status-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 22px;
}

.zelton-status-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--fg1);
  font-size: 0.8rem;
  font-weight: 800;
}

.zelton-status-row i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6bb074;
  box-shadow: none;
}

@keyframes zeltonSpin {
  to { transform: rotate(360deg); }
}

@keyframes zeltonFloat {
  to { transform: translate(22px, -24px) scale(1.1); }
}

@keyframes zeltonPulseGlow {
  50% { box-shadow: 0 18px 58px rgba(0, 0, 0, 0.42), 0 0 46px rgba(253, 216, 53, 0.32); }
}

@keyframes signalBlink {
  50% { opacity: 1; transform: translateY(-2px); }
}

@keyframes zeltonWordDrift {
  0% {
    background-position: 0% 50%;
    transform: translateY(0);
  }
  100% {
    background-position: 100% 50%;
    transform: translateY(-6px);
  }
}

.orbit {
  fill: none;
  stroke: var(--bg-hover);
  stroke-width: 1.2;
  stroke-dasharray: 4 6;
}

.orbit-active {
  stroke: var(--yellow);
  opacity: 0.2;
  stroke-width: 1;
}

/* Smooth Native CSS Rotations for SVG beams */
.spin-clockwise {
  transform-origin: 250px 250px;
  animation: rotateCW 18s linear infinite;
}

.spin-counter-clockwise {
  transform-origin: 250px 250px;
  animation: rotateCCW 24s linear infinite;
}

@keyframes rotateCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateCCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Pulsing rings for onion visual */
.pulse-ring {
  transform-origin: center;
  animation: svgPulse 3s ease-out infinite;
}

@keyframes svgPulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Nodes floating animation */
.node-group {
  cursor: pointer;
}

.node-group:hover .node-bg {
  fill: var(--bg-hover) !important;
  stroke: var(--fg0) !important;
}

.node-group:hover text {
  filter: brightness(1.2);
}

.floating-node-0 { animation: floatNode0 6s ease-in-out infinite; }
.floating-node-1 { animation: floatNode1 7s ease-in-out infinite; }
.floating-node-2 { animation: floatNode2 6.5s ease-in-out infinite; }
.floating-node-3 { animation: floatNode3 7.5s ease-in-out infinite; }

@keyframes floatNode0 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-3px, -6px); } }
@keyframes floatNode1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4px, -4px); } }
@keyframes floatNode2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-4px, 4px); } }
@keyframes floatNode3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(3px, 5px); } }

/* Embedded pixel map */
.map-pixel-section {
  padding: 28px 0 100px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.map-pixel-section::before {
  content: "";
  position: absolute;
  right: 12%;
  top: 18%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--aqua);
  filter: blur(120px);
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

.map-pixel-shell {
  display: block;
}

.map-pixel-copy h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.map-pixel-frame {
  margin-top: 32px;
  min-height: 380px;
  aspect-ratio: 16 / 9;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.map-pixel-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: transparent;
}


/* 
 * Terminal Card Styling & Color Coding
 */
.terminal-card {
  background: #141617; /* Extra dark base for contrast */
  border: 1px solid rgba(250, 189, 47, 0.22);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 55px var(--shadow-color), 0 0 30px rgba(250, 189, 47, 0.03);
  font-family: var(--font-mono);
  margin-top: 36px;
  transition: var(--transition);
}

.terminal-card:hover {
  box-shadow: 0 25px 70px rgba(250, 189, 47, 0.1), 0 0 35px rgba(250, 189, 47, 0.05);
  border-color: rgba(250, 189, 47, 0.4);
}

.terminal-header {
  background: #1d2021;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bg-hover);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

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

.terminal-dot.red { background: var(--red); box-shadow: 0 0 6px var(--red); }
.terminal-dot.yellow { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.terminal-dot.green { background: var(--green); box-shadow: 0 0 6px var(--green); }

.terminal-title {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-copy {
  cursor: pointer;
  color: var(--muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.terminal-copy:hover {
  color: var(--yellow);
}

.terminal-copy svg {
  width: 16px;
  height: 16px;
}

.terminal-body {
  padding: 24px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--fg2);
  min-height: 250px;
  overflow-y: auto;
  position: relative;
}

.terminal-body pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.terminal-prompt {
  color: var(--green);
  user-select: none;
  margin-right: 8px;
  font-weight: 800;
}

.terminal-cmd-line {
  margin-bottom: 12px;
}

.terminal-input {
  color: var(--fg0);
  font-weight: 700;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--yellow);
  margin-left: 2px;
  animation: cursorBlink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes cursorBlink {
  from, to { background-color: transparent }
  50% { background-color: var(--yellow) }
}

.terminal-output {
  color: var(--fg2);
  margin-bottom: 16px;
  margin-top: 6px;
  opacity: 0;
  display: none;
  animation: lineReveal 0.2s forwards ease;
}

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

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

/* Colorful outputs */
.term-success { color: var(--green); font-weight: 700; }
.term-warning { color: var(--orange); font-weight: 700; }
.term-info { color: var(--yellow); font-weight: 700; }
.term-muted { color: var(--muted); }
.term-aqua { color: var(--aqua); font-weight: 700; }

/* Quick suggestion triggers below terminal */
.terminal-triggers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.terminal-trigger {
  padding: 8px 16px;
  background: var(--bg-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg2);
  cursor: pointer;
  transition: var(--transition);
}

.terminal-trigger:hover {
  background: var(--bg-hover);
  color: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


/* 
 * Playground GUI Cockpit Redesign with Colorful Widgets and bubbles
 */
.playground-showcase {
  background: var(--bg-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px var(--shadow-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  min-width: 0;
}

.play-header {
  background: var(--bg-soft);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 12px;
}

.play-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--fg0);
}

.play-status {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--bg-element);
  border: 1px solid var(--border-color);
}

.status-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.status-badge.vault-badge .badge-dot {
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}

.play-container {
  display: grid;
  grid-template-columns: minmax(150px, 180px) minmax(0, 1fr);
  flex: 1;
  background: var(--bg-hard);
  min-width: 0;
}

.play-sidebar {
  background: var(--bg-soft);
  border-right: 1px solid var(--border-color);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.play-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--fg3);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  background: transparent;
}

.play-tab:hover {
  background: var(--bg-element);
  color: var(--fg1);
}

.play-tab.active {
  background: var(--bg-element);
  color: var(--yellow);
  border-color: rgba(250, 189, 47, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.play-tab svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
  fill: none;
}

.play-content-area {
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.play-content {
  padding: 22px;
  display: none;
  height: 100%;
  min-width: 0;
}

.play-content.active {
  display: block;
  animation: contentFade 0.3s ease-in-out forwards;
}

@keyframes contentFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 
 * Colorful Dashboard Widget boxes
 */
.dash-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.widget-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  min-width: 0;
}

/* Colors for widgets */
.widget-green {
  background: rgba(184, 187, 38, 0.1);
  border-color: rgba(184, 187, 38, 0.25);
  color: var(--green);
}
.widget-green h4 { color: var(--green); }

.widget-blue {
  background: rgba(131, 165, 152, 0.1);
  border-color: rgba(131, 165, 152, 0.25);
  color: var(--blue);
}
.widget-blue h4 { color: var(--blue); }

.widget-orange {
  background: rgba(254, 128, 25, 0.1);
  border-color: rgba(254, 128, 25, 0.25);
  color: var(--orange);
}
.widget-orange h4 { color: var(--orange); }

.widget-card span {
  display: block;
  font-size: 0.78rem;
  color: var(--fg3);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.widget-card h4 {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  margin-bottom: 4px;
}

.widget-card p {
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.chart-box {
  background: var(--bg-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.chart-canvas {
  height: 150px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 10px;
}

.chart-bar-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 12%;
}

.chart-bar {
  width: 100%;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  min-height: 5px;
  transition: var(--transition);
}

/* Colorful gradient bars with individual colors */
.bar-green  { background: linear-gradient(to top, rgba(184, 187, 38, 0.2), var(--green)); box-shadow: 0 0 8px rgba(184, 187, 38, 0.2); }
.bar-yellow { background: linear-gradient(to top, rgba(250, 189, 47, 0.2), var(--yellow)); box-shadow: 0 0 8px rgba(250, 189, 47, 0.2); }
.bar-aqua   { background: linear-gradient(to top, rgba(142, 192, 124, 0.2), var(--aqua)); box-shadow: 0 0 8px rgba(142, 192, 124, 0.2); }
.bar-blue   { background: linear-gradient(to top, rgba(131, 165, 152, 0.2), var(--blue)); box-shadow: 0 0 8px rgba(131, 165, 152, 0.2); }
.bar-orange { background: linear-gradient(to top, rgba(254, 128, 25, 0.2), var(--orange)); box-shadow: 0 0 8px rgba(254, 128, 25, 0.2); }
.bar-purple { background: linear-gradient(to top, rgba(211, 134, 155, 0.2), var(--purple)); box-shadow: 0 0 8px rgba(211, 134, 155, 0.2); }

.chart-bar-container:hover .chart-bar {
  filter: brightness(1.2) saturate(1.2);
  transform: translateY(-2px);
}

.chart-bar-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 700;
}

/* Vault / Key manager screen components with colorful rows */
.vault-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vault-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-medium);
  transition: var(--transition);
}

.vault-info-row:hover {
  transform: translateX(4px);
}

.info-green { border-left: 4px solid var(--green); }
.info-red { border-left: 4px solid var(--red); }

.info-green:hover { border-color: var(--green); }
.info-red:hover { border-color: var(--red); }

.vault-key-info h4 {
  font-size: 0.95rem;
  color: var(--fg0);
  margin-bottom: 2px;
}

.vault-key-info span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--aqua);
}

.vault-status {
  padding: 6px 12px;
  background: rgba(184, 187, 38, 0.15);
  border: 1px solid var(--green);
  color: var(--green);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
}

.status-rotating {
  background: rgba(251, 73, 52, 0.15) !important;
  border-color: var(--red) !important;
  color: var(--red) !important;
  animation: pulseRotate 2s infinite;
}

@keyframes pulseRotate {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* Scan / Security screen components */
.security-console {
  background: var(--bg-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.sec-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.sec-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 8px solid var(--green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--fg0);
  font-weight: 900;
  font-size: 1.3rem;
  box-shadow: 0 0 20px rgba(184, 187, 38, 0.2);
}

.sec-circle span {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 800;
}

.sec-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sec-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.sec-detail-row .sec-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.sec-detail-row .sec-status {
  font-weight: 800;
  color: var(--green);
}

/* 
 * Colorful Chat Bubbles in Aina AI Section
 */
.aina-chat-container {
  display: flex;
  flex-direction: column;
  height: 380px;
  background: var(--bg-medium);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.aina-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-bubble {
  max-width: 82%;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Colorful gradient bubbles for Aina chat */
.chat-bubble.aina {
  background: linear-gradient(135deg, var(--bg-soft), #252829);
  border: 1px solid rgba(211, 134, 155, 0.25);
  color: var(--fg1);
  align-self: flex-start;
  border-bottom-left-radius: 0;
  box-shadow: 0 4px 12px var(--shadow-color);
}

.chat-bubble.user {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--bg-hard);
  align-self: flex-end;
  border-bottom-right-radius: 0;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(254, 128, 25, 0.25);
}

.aina-chat-input {
  display: flex;
  border-top: 1px solid var(--border-color);
  background: var(--bg-soft);
  padding: 12px;
  gap: 12px;
}

.aina-chat-input input {
  flex: 1;
  border: 1px solid var(--border-color);
  background: var(--bg-medium);
  color: var(--fg0);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.aina-chat-input input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 8px rgba(250, 189, 47, 0.2);
}

.aina-chat-input button {
  padding: 0 18px;
  border-radius: var(--radius-md);
  background: var(--yellow);
  color: var(--bg-hard);
  border: none;
  cursor: pointer;
  font-weight: 800;
  transition: var(--transition);
}

.aina-chat-input button:hover {
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
}

/* Vega browser section */
.vega-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.vega-card p {
  color: var(--fg2);
  margin-bottom: 28px;
}

.vega-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

/* Screenshot gallery */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.screenshot-tile {
  position: relative;
  display: block;
  min-height: 220px;
  aspect-ratio: 2536 / 2124;
  background: var(--bg-medium);
  border: 4px solid #3c3836;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 42px var(--shadow-color);
  transition: var(--transition);
  cursor: zoom-in;
}

.screenshot-tile:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28), 0 0 26px rgba(250, 189, 47, 0.08);
}

.screenshot-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.screenshot-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.screenshot-tile:hover img {
  transform: scale(1.025);
  filter: saturate(1.08) contrast(1.04);
}

.screenshot-tile span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(250, 189, 47, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(29, 32, 33, 0.78);
  color: var(--fg0);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

[data-theme="light"] .screenshot-tile span {
  background: rgba(251, 241, 199, 0.84);
  border-color: rgba(181, 118, 20, 0.32);
}

.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(29, 32, 33, 0.92);
  backdrop-filter: blur(16px);
}

.screenshot-lightbox.is-open {
  display: flex;
}

.screenshot-lightbox img {
  max-width: min(94vw, 1600px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  border: 6px solid #3c3836;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.65), 0 0 42px rgba(250, 189, 47, 0.12);
  cursor: zoom-out;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(250, 189, 47, 0.28);
  border-radius: var(--radius-md);
  background: var(--bg-medium);
  color: var(--fg0);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.lightbox-close:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9000;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 189, 47, 0.35);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--bg-hard);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 0 24px rgba(250, 189, 47, 0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), 0 0 30px rgba(254, 128, 25, 0.28);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* Download Cards Grid styling */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.download-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.download-card .icon {
  background: rgba(131, 165, 152, 0.08);
  border-color: rgba(131, 165, 152, 0.15);
  color: var(--blue);
}

.download-card:hover .icon {
  background: var(--blue);
  color: var(--bg-hard);
}

.download-card.primary-download .icon {
  background: rgba(250, 189, 47, 0.08);
  border-color: rgba(250, 189, 47, 0.15);
  color: var(--yellow);
}

.download-card.primary-download:hover .icon {
  background: var(--yellow);
  color: var(--bg-hard);
}

.checksum {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 8px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  color: var(--aqua);
  border-radius: var(--radius-sm);
  margin: 16px 0 24px;
  word-break: break-all;
}

.download-card .btn {
  margin-top: auto;
}


/* Footer styling with gradient top border */
.footer {
  padding: 60px 0;
  border-top: 3px solid transparent;
  border-image: linear-gradient(to right, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple)) 1;
  margin-top: 100px;
  background: linear-gradient(to bottom, transparent, rgba(40,40,40,0.4));
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand {
  max-width: 450px;
}

.footer-brand h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-credits {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
}

.footer-credits p {
  color: var(--fg3);
}

.footer-credits strong {
  color: var(--yellow);
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1180px) {
  .nav-links a {
    padding: 8px 10px;
    font-size: 0.95rem;
  }

  .nav-actions {
    gap: 12px;
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding: 60px 0;
  }
  
  .eyebrow {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .onion-visual-container {
    max-width: 480px;
    margin: 0 auto;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .map-pixel-shell {
    display: block;
  }

  .map-pixel-frame {
    min-height: 320px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Simplification for mobile */
  }
  
  .nav-inner {
    padding: 12px 16px;
  }
  
  .section {
    padding: 70px 0;
  }

  .map-pixel-section {
    padding: 24px 0 70px;
  }

  .map-pixel-frame {
    min-height: 240px;
  }
  
  .play-container {
    grid-template-columns: 1fr;
  }
  
  .play-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
  }
  
  .play-tab {
    padding: 8px 14px;
    white-space: nowrap;
  }
  
  .dash-widgets {
    grid-template-columns: 1fr;
  }

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

  .screenshot-featured {
    grid-column: auto;
    grid-row: auto;
  }

  .screenshot-tile {
    min-height: 0;
  }
  
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
  
  .footer-credits {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  .spin-clockwise, .spin-counter-clockwise, .pulse-ring, .floating-node-0, .floating-node-1, .floating-node-2, .floating-node-3 {
    animation: none !important;
  }
}
