/* ==========================================================================
   TURSIOPS v2.2 — PIXEL THEME DESIGN SYSTEM & STYLESHEET
   Features:
   1. Pixel Category Fonts:
      - Headings: 'Press Start 2P' (Arcade 8-Bit)
      - Subheadings / Tags / Numbers / Matrix: 'VT323' (CRT Terminal)
      - Paragraphs / Descriptions / Body: 'Pixelify Sans' (Pixel-grid Body)
      - Accents / Microcopy: 'Silkscreen'
   2. Mojtaba Seyedi's All-But-Me Hover Blur Effect:
      - .card-list:has(li:hover) li:not(:hover) { filter: blur(4px); }
   3. Pixel Dispersion Canvas & Buttons
   4. ASCII Pixelated Dolphin Cursor Follower
   5. Dynamic Navigation Bar Highlight
   6. Untouched Authorization Modal Form IDs & Functionality
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;500;600;700&family=Press+Start+2P&family=Silkscreen:wght@400;700&family=VT323&display=swap');

:root {
  /* Color Palette - Cyberpixel Palette */
  --bg-black: #02040a;
  --bg-canvas: #050914;
  --bg-surface: #0a1124;
  --bg-surface-elevated: #0f1a36;
  --bg-card: rgba(10, 17, 36, 0.88);
  --bg-card-hover: rgba(15, 26, 54, 0.96);

  --border-subtle: rgba(0, 240, 255, 0.12);
  --border-medium: rgba(0, 240, 255, 0.28);
  --border-bright: #00f0ff;
  --border-pixel-shadow: #0284c7;

  --text-primary: #f0fdf4;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-code: #38bdf8;

  --accent-cyan: #00f0ff;
  --accent-blue: #38bdf8;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-purple: #a855f7;
  --accent-red: #ef4444;

  /* Fonts - Pixel Category */
  --font-pixel-heading: 'Press Start 2P', monospace, cursive;
  --font-pixel-subheading: 'VT323', monospace;
  --font-pixel-body: 'Pixelify Sans', cursive, sans-serif;
  --font-pixel-accent: 'Silkscreen', monospace;
  --font-pixel-mono: 'VT323', monospace;

  /* Aliases for compatibility */
  --font-doto: 'VT323', monospace;
  --font-display: 'Press Start 2P', monospace;
  --font-body: 'Pixelify Sans', cursive, sans-serif;

  /* 8-bit Pixel Borders & Shadows */
  --pixel-border: 2px solid var(--accent-cyan);
  --pixel-shadow-sm: 2px 2px 0px var(--border-pixel-shadow);
  --pixel-shadow-md: 4px 4px 0px var(--border-pixel-shadow);
  --pixel-shadow-lg: 6px 6px 0px var(--border-pixel-shadow);
  --pixel-glow-cyan: 0 0 15px rgba(0, 240, 255, 0.35);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-smooth: 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body.pixel-theme, body.dark-theme, body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-pixel-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  image-rendering: pixelated;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Backward compatibility utility */
.doto-font {
  font-family: var(--font-pixel-subheading) !important;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Ambient Glowing Backgrounds & Pixel Grid
   ========================================================================== */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  opacity: 0.45;
}

.glow-top {
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.22) 0%, rgba(56, 189, 248, 0.08) 60%, transparent 80%);
}

.glow-right {
  top: 40%;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, transparent 75%);
}

.glow-bottom {
  bottom: -150px;
  left: 20%;
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
}

/* Pixel Grid Overlay */
.cyber-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 240, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
}

/* Retro CRT Scanlines */
.pixel-scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
}

/* Global Canvas for Pixel Dispersion */
.pixel-dispersion-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
}

/* ==========================================================================
   INTERACTIVE BACKGROUND CANVAS (ADITYANDT.IN REFERENCE & BLUE ASCII TRAIL)
   Renders in the background beneath cards, content, and headers
   ========================================================================== */
.interactive-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}


/* ==========================================================================
   FLOATING PIXEL NAVIGATION BAR (Civik / Retro-Suspended)
   ========================================================================== */
.floating-header-wrapper {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.floating-nav-bar {
  background: rgba(4, 9, 22, 0.94);
  border: 2px solid var(--border-medium);
  box-shadow: var(--pixel-shadow-md), 0 0 25px rgba(0, 240, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 8px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 4px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
  padding-right: 12px;
  border-right: 2px solid var(--border-subtle);
}

.brand-glyph {
  font-size: 18px;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.8));
}

.brand-name {
  font-family: var(--font-pixel-heading);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.nav-version-badge {
  font-family: var(--font-pixel-accent);
  font-size: 9px;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--accent-cyan);
  padding: 2px 5px;
  border-radius: 2px;
}

.nav-status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
  border-radius: 50%;
  margin-left: 2px;
  animation: pixelPulse 1.4s infinite;
}

.nav-menu-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  font-family: var(--font-pixel-heading);
  font-size: 9.5px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  position: relative;
  letter-spacing: 0.04em;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--border-subtle);
}

/* Dynamic Scrollspy Highlight */
.nav-item.active {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
  text-shadow: 0 0 8px var(--accent-cyan);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
}

.nav-btn-auth {
  background: transparent;
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--pixel-shadow-sm);
  font-family: var(--font-pixel-heading);
  font-size: 9px;
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.nav-btn-auth:hover {
  background: var(--accent-cyan);
  color: var(--bg-black);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

.nav-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel-subheading);
  font-size: 15px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  padding: 4px 8px;
}

.nav-btn-signout {
  background: transparent;
  border: 1px solid var(--accent-red);
  color: #fca5a5;
  font-family: var(--font-pixel-heading);
  font-size: 8px;
  padding: 4px 6px;
  cursor: pointer;
}

.nav-btn-signout:hover {
  background: var(--accent-red);
  color: #ffffff;
}

/* ==========================================================================
   MAIN LAYOUT & TYPOGRAPHY
   ========================================================================== */
.main-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 130px 24px 80px;
  position: relative;
  z-index: 10;
}

.content-section {
  margin-bottom: 110px;
  scroll-margin-top: 100px;
}

/* Pixel Stepped Box */
.pixel-box {
  background: var(--bg-card);
  border: 2px solid var(--border-medium);
  box-shadow: var(--pixel-shadow-md);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.pixel-box:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--pixel-shadow-lg), 0 0 20px rgba(0, 240, 255, 0.25);
}

/* Section Headings & Tags */
.section-tag {
  font-family: var(--font-pixel-subheading);
  font-size: 20px;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.section-heading {
  font-family: var(--font-pixel-heading);
  font-size: 26px;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.section-subheading {
  font-family: var(--font-pixel-subheading);
  font-size: 22px;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-bottom: 32px;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 50px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.08);
  border: 2px solid var(--accent-cyan);
  box-shadow: var(--pixel-shadow-sm);
  padding: 8px 16px;
  font-family: var(--font-pixel-heading);
  font-size: 10px;
  color: var(--accent-cyan);
  margin-bottom: 28px;
  letter-spacing: 0.06em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.hero-title {
  margin-bottom: 24px;
}

.brand-hero-title {
  display: block;
  font-family: var(--font-pixel-heading);
  font-size: clamp(34px, 5.5vw, 54px);
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5), 4px 4px 0px var(--border-pixel-shadow);
  line-height: 1.15;
}

.hero-subheading-tag {
  display: block;
  font-family: var(--font-pixel-subheading);
  font-size: clamp(26px, 3.5vw, 36px);
  color: var(--accent-cyan);
  letter-spacing: 0.12em;
  margin-top: 10px;
}

.hero-subtext {
  font-family: var(--font-pixel-body);
  font-size: 21px;
  color: var(--text-secondary);
  max-width: 660px;
  line-height: 1.5;
  margin-bottom: 40px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 40px;
}

/* ==========================================================================
   HERO LINKS SHELF — Left-aligned marketplace & repo links between CTA and #how-it-works
   ========================================================================== */
.hero-links-shelf {
  width: 100%;
  max-width: 900px;
  margin-top: 10px;
  padding-top: 24px;
  border-top: 1px dashed var(--border-subtle);
  text-align: left;
}

.shelf-tag {
  font-family: var(--font-pixel-subheading);
  font-size: 16px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.shelf-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}

.shelf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  box-shadow: 2px 2px 0px var(--border-pixel-shadow);
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-pixel-heading);
  font-size: 9px;
  transition: all var(--transition-fast);
  position: relative;
  border-radius: 2px;
}

.shelf-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px var(--border-pixel-shadow);
}

.marketplace-shelf-btn {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.marketplace-shelf-btn:hover {
  background: rgba(245, 158, 11, 0.12);
  box-shadow: 4px 4px 0px rgba(180, 110, 0, 0.6);
}

.repo-shelf-btn {
  border-color: var(--border-medium);
  color: var(--text-secondary);
}

.repo-shelf-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.06);
  box-shadow: 4px 4px 0px var(--border-pixel-shadow), 0 0 12px rgba(0, 240, 255, 0.2);
}

.shelf-btn .btn-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.shelf-btn .btn-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shelf-btn .btn-title {
  font-family: var(--font-pixel-heading);
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.shelf-btn .btn-subtitle {
  font-family: var(--font-pixel-subheading);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.shelf-btn .btn-arrow {
  font-size: 14px;
  opacity: 0.5;
  margin-left: 4px;
  transition: opacity 0.15s, transform 0.15s;
}

.shelf-btn:hover .btn-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* ==========================================================================
   BUTTONS & PIXEL DISPERSION EFFECT
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-family: var(--font-pixel-heading);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
  position: relative;
  transition: all var(--transition-fast);
  user-select: none;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--border-pixel-shadow) !important;
}

.btn-primary {
  background: var(--accent-cyan);
  color: var(--bg-black);
  border: 2px solid var(--accent-cyan);
  box-shadow: var(--pixel-shadow-md), 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: var(--pixel-shadow-lg), 0 0 28px rgba(0, 240, 255, 0.7);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid var(--border-medium);
  box-shadow: var(--pixel-shadow-md);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--pixel-shadow-lg), 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-block {
  width: 100%;
}

/* Pixel dispersion source styling */
.btn-pixel-disperse {
  overflow: visible;
  position: relative;
}

/* ==========================================================================
   MOJTABA SEYEDI'S ALL-BUT-ME HOVER BLUR EFFECT
   Applies to playcards under #how-it-works and #features:
   - :has() pseudo-class: Targets .card-list to detect if any li is hovered (:has(li:hover))
   - :not() pseudo-class: Excludes the hovered card (li:not(:hover))
   - filter: blur(4px): Applies blur to non-hovered cards
   ========================================================================== */
.card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-list li.card-item {
  background: var(--bg-card);
  border: 2px solid var(--border-medium);
  box-shadow: var(--pixel-shadow-md);
  padding: 24px;
  border-radius: 2px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: filter 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  will-change: filter, transform, opacity;
}

/* Mojtaba Seyedi Effect: When container has a hovered li, blur all OTHER li items */
.card-list:has(li.card-item:hover) li.card-item:not(:hover) {
  filter: blur(4px);
  opacity: 0.35;
  transform: scale(0.975);
}

/* Hovered card stands out crisp, sharp, elevated and glowing */
.card-list li.card-item:hover {
  filter: none !important;
  opacity: 1 !important;
  transform: translateY(-5px) scale(1.025);
  z-index: 5;
  border-color: var(--accent-cyan);
  box-shadow: var(--pixel-shadow-lg), 0 0 25px rgba(0, 240, 255, 0.45);
}

/* Step Card Details */
.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-subtle);
}

.step-number {
  font-family: var(--font-pixel-heading);
  font-size: 18px;
  color: var(--accent-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.step-status-chip {
  font-family: var(--font-pixel-accent);
  font-size: 9px;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--accent-green);
  padding: 2px 6px;
  border-radius: 2px;
}

.step-title, .feature-title {
  font-family: var(--font-pixel-heading);
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.step-desc, .feature-text {
  font-family: var(--font-pixel-body);
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Feature Card Details */
.feature-icon-badge {
  font-family: var(--font-pixel-subheading);
  font-size: 20px;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: inline-block;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 4px 8px;
  border-radius: 2px;
}

/* ==========================================================================
   PROMPT FLOW BOX (HOW IT WORKS TABLE)
   ========================================================================== */
.prompt-flow-card {
  margin-top: 32px;
  padding: 20px;
}

.command-box-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--border-subtle);
}

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

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

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.command-box-title {
  font-family: var(--font-pixel-subheading);
  font-size: 18px;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
}

.flow-table-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(5, 9, 20, 0.7);
  border: 1px solid var(--border-subtle);
  padding: 12px 16px;
  border-radius: 2px;
  font-family: var(--font-pixel-body);
}

.flow-prompt-id {
  font-family: var(--font-pixel-heading);
  font-size: 11px;
  color: var(--accent-cyan);
  white-space: nowrap;
}

.flow-arrow {
  font-family: var(--font-pixel-subheading);
  font-size: 20px;
  color: var(--accent-green);
}

.flow-desc {
  font-size: 16px;
  color: var(--text-primary);
}

/* ==========================================================================
   SECURITY SECTION
   ========================================================================== */
.security-banner-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  margin-bottom: 24px;
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--accent-cyan);
}

.banner-pill {
  font-family: var(--font-pixel-heading);
  font-size: 9px;
  background: var(--accent-cyan);
  color: var(--bg-black);
  padding: 4px 8px;
  white-space: nowrap;
}

.banner-text {
  font-family: var(--font-pixel-body);
  font-size: 18px;
  color: #ffffff;
  font-weight: 600;
}

.security-list-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.sec-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}

.sec-row:last-child {
  border-bottom: none;
}

.sec-row:hover {
  background: rgba(0, 240, 255, 0.04);
}

.sec-badge {
  font-family: var(--font-pixel-heading);
  font-size: 14px;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  padding: 6px 10px;
  border-radius: 2px;
  box-shadow: 2px 2px 0px var(--border-pixel-shadow);
}

.sec-content {
  flex: 1;
}

.sec-title {
  font-family: var(--font-pixel-heading);
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.4;
}

.sec-desc {
  font-family: var(--font-pixel-body);
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.sec-desc code {
  font-family: var(--font-pixel-subheading);
  font-size: 18px;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 1px 6px;
  border-radius: 2px;
}

/* ==========================================================================
   USER MANUAL SECTION
   ========================================================================== */
.manual-layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.manual-card-box {
  padding: 24px;
}

.box-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-subtle);
}

.box-num-badge {
  font-family: var(--font-pixel-heading);
  font-size: 11px;
  background: var(--accent-cyan);
  color: var(--bg-black);
  padding: 4px 8px;
}

.box-header-title h3 {
  font-family: var(--font-pixel-heading);
  font-size: 12px;
  color: #ffffff;
  line-height: 1.4;
}

.manual-ordered-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.manual-ordered-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-pixel-body);
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-bullet {
  font-family: var(--font-pixel-heading);
  font-size: 10px;
  color: var(--accent-cyan);
  margin-top: 3px;
}

.bullet-content strong {
  color: #ffffff;
}

.flow-statement {
  font-family: var(--font-pixel-body);
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Pixel Functions Matrix Table */
.functions-matrix-box {
  padding: 24px;
  margin-bottom: 32px;
}

.matrix-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.matrix-icon {
  font-size: 18px;
  color: var(--accent-amber);
}

.matrix-title {
  font-family: var(--font-pixel-heading);
  font-size: 14px;
  color: #ffffff;
}

.table-responsive {
  overflow-x: auto;
}

.pixel-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.pixel-matrix-table th {
  font-family: var(--font-pixel-subheading);
  font-size: 20px;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  padding: 12px 16px;
  border: 1px solid var(--border-medium);
  letter-spacing: 0.08em;
}

.pixel-matrix-table td {
  font-family: var(--font-pixel-body);
  font-size: 16px;
  padding: 16px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  line-height: 1.5;
}

.pixel-matrix-table tr:hover td {
  background: rgba(0, 240, 255, 0.04);
}

.func-pill {
  font-family: var(--font-pixel-heading);
  font-size: 10px;
  color: #ffffff;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--accent-cyan);
  padding: 4px 8px;
  display: inline-block;
  white-space: nowrap;
}

.td-what {
  color: #ffffff !important;
}

/* The One Habit That Matters */
.habit-matters-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px 30px;
  background: rgba(10, 17, 36, 0.94);
  border-color: var(--accent-green);
  box-shadow: 4px 4px 0px rgba(16, 185, 129, 0.5);
}

.habit-icon {
  font-size: 38px;
  filter: drop-shadow(0 0 10px var(--accent-green));
}

.habit-title {
  font-family: var(--font-pixel-heading);
  font-size: 14px;
  color: var(--accent-green);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.habit-text {
  font-family: var(--font-pixel-body);
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ==========================================================================
   BOTTOM DOCK — Developers & Social Channels (Centrally Aligned)
   ========================================================================== */
.bottom-dock-section {
  border-top: 1px dashed var(--border-subtle);
  padding: 40px 0 20px;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
}

.bottom-dock-container {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
  justify-content: center;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
}

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

.dock-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.dock-badge {
  font-family: var(--font-pixel-heading);
  font-size: 7.5px;
  background: var(--accent-cyan);
  color: var(--bg-black);
  padding: 3px 6px;
  letter-spacing: 0.05em;
}

.dock-title {
  font-family: var(--font-pixel-subheading);
  font-size: 17px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.dock-btn-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Pixel Pill Buttons (team members & social) */
.pixel-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 2px 2px 0px var(--border-pixel-shadow);
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-pixel-subheading);
  font-size: 17px;
  transition: all var(--transition-fast);
  border-radius: 2px;
  position: relative;
}

.pixel-pill-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.05);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--border-pixel-shadow), 0 0 10px rgba(0, 240, 255, 0.15);
}

.pixel-pill-btn .pill-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.pixel-pill-btn .pill-name {
  letter-spacing: 0.03em;
}

.pixel-pill-btn .pill-arrow {
  margin-left: auto;
  font-size: 14px;
  opacity: 0.4;
  padding-left: 6px;
  transition: opacity 0.15s, transform 0.15s;
}

.pixel-pill-btn:hover .pill-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* Team Lead chip */
.lead-chip {
  font-family: var(--font-pixel-heading);
  font-size: 7px;
  background: var(--accent-cyan);
  color: var(--bg-black);
  padding: 2px 5px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.team-lead-btn {
  border-color: rgba(0, 240, 255, 0.35);
  color: var(--text-primary);
}

.team-lead-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Instagram pill */
.instagram-btn {
  border-color: rgba(168, 85, 247, 0.35);
  color: var(--text-secondary);
}

.instagram-btn:hover {
  border-color: #a855f7;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.06);
  box-shadow: 3px 3px 0px rgba(100, 0, 180, 0.4);
}

.insta-chip {
  font-family: var(--font-pixel-heading);
  font-size: 7px;
  background: #a855f7;
  color: #ffffff;
  padding: 2px 5px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* Gmail / Email pills */
.email-badge {
  background: #ea4335;
  color: #ffffff;
}

.email-btn {
  border-color: rgba(234, 67, 53, 0.3);
  color: var(--text-secondary);
}

.email-btn:hover {
  border-color: #ea4335;
  color: #fca5a5;
  background: rgba(234, 67, 53, 0.06);
  box-shadow: 3px 3px 0px rgba(234, 67, 53, 0.4), 0 0 10px rgba(234, 67, 53, 0.15);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 2px solid var(--border-medium);
  background: var(--bg-black);
  padding: 28px 24px;
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-pixel-heading);
  font-size: 10px;
  color: #ffffff;
  letter-spacing: 0.06em;
}

.footer-meta {
  font-family: var(--font-pixel-subheading);
  font-size: 17px;
  color: var(--text-muted);
  text-align: right;
}

/* ==========================================================================
   AUTHORIZATION MODAL (EXACT SAME DOM CLASSES & INPUT COMPATIBILITY)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 12, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--bg-surface);
  border: 2px solid var(--accent-cyan);
  box-shadow: var(--pixel-shadow-lg), 0 0 35px rgba(0, 240, 255, 0.35);
  padding: 32px;
  width: 100%;
  max-width: 440px;
  position: relative;
  border-radius: 2px;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  font-family: var(--font-pixel-heading);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
}

.modal-close-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #ffffff;
}

.modal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-glyph {
  font-size: 22px;
}

.modal-title {
  font-family: var(--font-pixel-heading);
  font-size: 11px;
  color: #ffffff;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.micro-copy-notice {
  font-family: var(--font-pixel-subheading);
  font-size: 16px;
  color: var(--accent-cyan);
  line-height: 1.4;
  margin: 10px 0;
}

.trust-line-notice {
  font-family: var(--font-pixel-subheading);
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 16px;
}

.auth-tabs {
  display: flex;
  background: var(--bg-black);
  border: 1px solid var(--border-medium);
  padding: 4px;
  margin: 14px 0;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-pixel-heading);
  font-size: 9px;
  padding: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab-btn.active {
  background: var(--accent-cyan);
  color: var(--bg-black);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.auth-alert-box {
  padding: 10px 14px;
  font-family: var(--font-pixel-body);
  font-size: 14px;
  margin-bottom: 14px;
  display: none;
  border: 1px solid;
}

.auth-alert-box.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.auth-alert-box.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-family: var(--font-pixel-heading);
  font-size: 8.5px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.form-input {
  width: 100%;
  background: var(--bg-black);
  border: 1px solid var(--border-medium);
  padding: 10px 12px;
  font-family: var(--font-pixel-body);
  font-size: 15px;
  color: #ffffff;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.deep-link-banner {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  padding: 8px 12px;
  margin-bottom: 14px;
  font-family: var(--font-pixel-subheading);
  font-size: 15px;
  color: var(--accent-cyan);
  word-break: break-all;
}

.auth-action-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 14px;
  color: var(--text-muted);
  font-family: var(--font-pixel-subheading);
  font-size: 16px;
  letter-spacing: 0.08em;
}

.auth-action-divider::before,
.auth-action-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px dashed var(--border-subtle);
}

.auth-action-divider span {
  padding: 0 10px;
}

.btn-open-vscode {
  text-decoration: none;
  font-family: var(--font-pixel-heading);
  font-size: 9.5px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  border: 2px solid;
}

.btn-open-vscode.locked {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-open-vscode.unlocked {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: var(--bg-black);
  box-shadow: var(--pixel-shadow-md), 0 0 20px rgba(0, 240, 255, 0.4);
  cursor: pointer;
}

.vscode-unlock-hint {
  font-family: var(--font-pixel-subheading);
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

.vscode-unlock-hint.unlocked {
  color: var(--accent-green);
}

/* Shake Animation on locked click */
.btn-open-vscode.shake {
  animation: pixelShake 0.4s ease;
}

@keyframes pixelShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Signed In Panel */
.signed-in-panel {
  background: var(--bg-black);
  border: 1px solid var(--accent-cyan);
  padding: 16px;
  margin-bottom: 16px;
}

.signed-in-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.signed-in-avatar {
  font-size: 24px;
}

.signed-in-label {
  font-family: var(--font-pixel-heading);
  font-size: 8px;
  color: var(--accent-green);
}

.signed-in-email {
  font-family: var(--font-pixel-subheading);
  font-size: 18px;
  color: #ffffff;
}

.btn-signout {
  width: 100%;
  background: transparent;
  border: 1px solid var(--accent-red);
  color: #fca5a5;
  font-family: var(--font-pixel-heading);
  font-size: 9px;
  padding: 8px;
  cursor: pointer;
  margin-bottom: 8px;
}

.switch-account-link {
  display: block;
  text-align: center;
  font-family: var(--font-pixel-subheading);
  font-size: 16px;
  color: var(--accent-cyan);
  text-decoration: none;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-surface);
  border: 2px solid var(--accent-cyan);
  box-shadow: var(--pixel-shadow-md), 0 0 20px rgba(0, 240, 255, 0.4);
  padding: 12px 18px;
  font-family: var(--font-pixel-subheading);
  font-size: 18px;
  color: #ffffff;
  z-index: 30000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .floating-header-wrapper {
    top: 10px;
    padding: 0 10px;
  }
  .floating-nav-bar {
    gap: 0.8rem;
    padding: 6px 12px;
  }
  .nav-brand .brand-name {
    display: none;
  }
  .nav-item {
    padding: 6px 8px;
    font-size: 8.5px;
  }
  .main-container {
    padding-top: 100px;
  }
}

@media (max-width: 600px) {
  .nav-menu-links {
    gap: 2px;
  }
  .nav-item {
    font-size: 7.5px;
    padding: 4px 6px;
  }
  .nav-actions {
    display: none;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-hero {
    width: 100%;
  }
  .hero-links-shelf {
    max-width: 100%;
  }
  .shelf-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-list {
    grid-template-columns: 1fr;
  }
  .bottom-dock-container {
    gap: 24px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .footer-meta {
    text-align: left;
  }
}

/* Tablet: maintain 2-col card grid, wrap shelf row */
@media (min-width: 601px) and (max-width: 860px) {
  .card-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .hero-links-shelf {
    max-width: 100%;
  }
  .shelf-buttons {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* Standalone Auth Pages (.auth-page-card) */
.auth-page-card {
  background: var(--bg-surface) !important;
  border: 2px solid var(--accent-cyan) !important;
  border-radius: 2px !important;
  box-shadow: var(--pixel-shadow-lg), 0 0 35px rgba(0, 240, 255, 0.35) !important;
}


