/* ===== CipherRun - Global Stylesheet ===== */
/* Color Palette:
   --bg-primary: #0a1628 (very dark blue)
   --bg-secondary: #0d1b2a (dark blue)
   --bg-card: #1a2744 (card background)
   --bg-card-hover: #1f3058
   --accent: #00d4ff (cyan)
   --accent-dim: #0099cc
   --accent-glow: rgba(0, 212, 255, 0.15)
   --text-primary: #e0e6ed (light gray)
   --text-secondary: #8892a4 (muted gray)
   --text-heading: #ffffff
   --border: #1e3a5f
   --success: #00e676
   --warning: #ffab00
   --error: #ff5252
*/

:root {
  --bg-primary: #0a1628;
  --bg-secondary: #0d1b2a;
  --bg-card: #1a2744;
  --bg-card-hover: #1f3058;
  --accent: #00d4ff;
  --accent-dim: #0099cc;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --text-primary: #e0e6ed;
  --text-secondary: #8892a4;
  --text-heading: #ffffff;
  --border: #1e3a5f;
  --success: #00e676;
  --warning: #ffab00;
  --error: #ff5252;
  --font-heading: 'Orbitron', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'Consolas', monospace;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1em; }

ul, ol { margin-left: 1.5em; margin-bottom: 1em; }

code {
  font-family: var(--font-mono);
  background: rgba(0, 212, 255, 0.1);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--accent);
}

pre {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1em;
  overflow-x: auto;
  margin-bottom: 1em;
}

pre code {
  background: none;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 2em;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 2px;
}

.nav-brand .brand-icon {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5em;
  list-style: none;
  margin: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5em 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2em;
}

.page-wrapper {
  padding-top: 64px;
  min-height: 100vh;
}

.section {
  padding: 4em 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2em;
}

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title p {
  color: var(--text-secondary);
  margin-top: 1em;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 1em 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  margin: 0 0.5em;
}

/* ===== Cards ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5em;
  transition: all var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.08);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5em;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.5em;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5em;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.5em;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: #33ddff;
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

.btn-sm {
  padding: 0.4em 1em;
  font-size: 0.85rem;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding: 6em 0 4em;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(0, 153, 204, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 3.5rem;
  letter-spacing: 3px;
  margin-bottom: 0.3em;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1.5em;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

/* Floating particles animation */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.4;
  animation: float linear infinite;
}

@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ===== Feature Highlights ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5em;
}

.feature-item {
  text-align: center;
  padding: 2em 1em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all var(--transition);
}

.feature-item:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}

.feature-item .icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.5em;
}

.feature-item h3 {
  font-size: 1rem;
  margin-bottom: 0.3em;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ===== Article Content ===== */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2em 0;
}

.article-content h2 {
  margin-top: 2em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border);
}

.article-content h3 {
  margin-top: 1.5em;
}

.article-content ul, .article-content ol {
  margin-bottom: 1em;
}

.article-content li {
  margin-bottom: 0.5em;
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5em 1em;
  margin: 1em 0;
  background: var(--accent-glow);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* Table of Contents */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5em;
  margin-bottom: 2em;
}

.toc h4 {
  color: var(--accent);
  margin-bottom: 0.5em;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li {
  margin-bottom: 0.3em;
}

.toc a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.toc a:hover {
  color: var(--accent);
}

/* Font size controls */
.font-controls {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 1em;
  font-size: 0.85rem;
}

.font-controls button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.3em 0.6em;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.font-controls button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Interactive Tool Styles ===== */
.tool-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2em;
  margin-bottom: 2em;
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-bottom: 1.5em;
}

.tool-header .icon {
  font-size: 1.5rem;
  color: var(--accent);
}

.tool-header h3 {
  margin: 0;
}

.tool-input-group {
  margin-bottom: 1.5em;
}

.tool-input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5em;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.tool-input-group input,
.tool-input-group textarea,
.tool-input-group select {
  width: 100%;
  padding: 0.7em 1em;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.tool-input-group input:focus,
.tool-input-group textarea:focus,
.tool-input-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.tool-input-group textarea {
  min-height: 100px;
  resize: vertical;
}

.tool-output {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1em;
  min-height: 60px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  word-break: break-all;
  color: var(--accent);
}

.tool-actions {
  display: flex;
  gap: 0.75em;
  margin-top: 1em;
  flex-wrap: wrap;
}

.tool-info {
  background: var(--accent-glow);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  padding: 1em;
  margin-top: 1em;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.tool-info strong {
  color: var(--accent);
}

/* ===== Quiz Styles ===== */
.quiz-container {
  max-width: 800px;
  margin: 0 auto;
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 2em;
}

.quiz-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.quiz-progress-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.quiz-question {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2em;
  margin-bottom: 1.5em;
}

.quiz-question h3 {
  font-size: 1.1rem;
  margin-bottom: 1em;
  color: var(--text-heading);
}

.quiz-question .question-type {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.75rem;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  margin-bottom: 0.75em;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.quiz-options {
  list-style: none;
  margin: 0;
  padding: 0;
}

.quiz-options li {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75em 1em;
  margin-bottom: 0.5em;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75em;
}

.quiz-options li:hover {
  border-color: var(--accent-dim);
  background: var(--bg-card);
}

.quiz-options li.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.quiz-options li.correct {
  border-color: var(--success);
  background: rgba(0, 230, 118, 0.1);
}

.quiz-options li.incorrect {
  border-color: var(--error);
  background: rgba(255, 82, 82, 0.1);
}

.quiz-options li .option-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.quiz-options li.selected .option-letter {
  border-color: var(--accent);
  background: var(--accent);
  color: #000;
}

.quiz-options li.correct .option-letter {
  border-color: var(--success);
  background: var(--success);
  color: #000;
}

.quiz-options li.incorrect .option-letter {
  border-color: var(--error);
  background: var(--error);
  color: #fff;
}

.quiz-fill-input {
  width: 100%;
  padding: 0.7em 1em;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.quiz-fill-input:focus {
  outline: none;
  border-color: var(--accent);
}

.quiz-explanation {
  margin-top: 1em;
  padding: 1em;
  background: rgba(0, 212, 255, 0.05);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: none;
}

.quiz-explanation.visible {
  display: block;
}

.quiz-score {
  text-align: center;
  padding: 3em 2em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.quiz-score .score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1em;
}

.quiz-score .score-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-heading);
}

.quiz-score .score-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ===== Password Strength ===== */
.strength-meter {
  height: 8px;
  background: var(--bg-primary);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5em;
}

.strength-meter-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease, background 0.3s ease;
}

.strength-text {
  margin-top: 0.5em;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3em 0 2em;
  margin-top: 4em;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2em;
}

.footer-brand h3 {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.5em;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 0.75em;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.4em;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* ===== Info Box ===== */
.info-box {
  background: var(--accent-glow);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  padding: 1.5em;
  margin: 1.5em 0;
}

.info-box.tip {
  background: rgba(0, 230, 118, 0.08);
  border-color: rgba(0, 230, 118, 0.2);
}

.info-box.warning {
  background: rgba(255, 171, 0, 0.08);
  border-color: rgba(255, 171, 0, 0.2);
}

.info-box h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5em;
  color: var(--accent);
}

.info-box.tip h4 { color: var(--success); }
.info-box.warning h4 { color: var(--warning); }

.info-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== Tab System ===== */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5em;
  overflow-x: auto;
}

.tab-btn {
  padding: 0.7em 1.5em;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 2em;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2em;
  padding-left: 1.5em;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2em;
  top: 0.3em;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

.timeline-item h4 {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.3em;
}

.timeline-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== Cipher Demo Widget ===== */
.cipher-demo {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5em;
  margin: 1.5em 0;
}

.cipher-demo h4 {
  color: var(--accent);
  margin-bottom: 1em;
  font-size: 0.95rem;
}

/* ===== Tags ===== */
.tag {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.tag-beginner { background: rgba(0, 230, 118, 0.15); color: var(--success); }
.tag-intermediate { background: rgba(255, 171, 0, 0.15); color: var(--warning); }
.tag-advanced { background: rgba(255, 82, 82, 0.15); color: var(--error); }
.tag-classical { background: rgba(0, 212, 255, 0.15); color: var(--accent); }
.tag-modern { background: rgba(156, 39, 176, 0.15); color: #ce93d8; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .navbar { padding: 0 1em; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    flex-direction: column;
    padding: 1em;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: block; }

  .hero h1, .hero-title { font-size: 3rem; }
  .hero .tagline { font-size: 1rem; }
  .hero { min-height: auto; padding: 4em 0 3em; }

  .container { padding: 0 1em; }

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

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

  .footer-content { grid-template-columns: 1fr; gap: 1.5em; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .tool-container { padding: 1.5em; }

  .section { padding: 2.5em 0; }
}

@media (max-width: 480px) {
  html { font-size: 14px; }

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

  .hero h1, .hero-title { font-size: 2.5rem; }

  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-secondary); }
.mt-1 { margin-top: 0.5em; }
.mt-2 { margin-top: 1em; }
.mt-3 { margin-top: 1.5em; }
.mt-4 { margin-top: 2em; }
.mb-1 { margin-bottom: 0.5em; }
.mb-2 { margin-bottom: 1em; }
.mb-3 { margin-bottom: 1.5em; }
.mb-4 { margin-bottom: 2em; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5em; }
.gap-2 { gap: 1em; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ===== Hero Enhancements ===== */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 20px;
  padding: 0.4em 1.2em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 1em;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 0.1em;
}

.hero-tagline-main {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-heading);
  letter-spacing: 1px;
  margin-bottom: 0.5em;
}

.hero-decrypt {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75em 1.25em;
  margin-bottom: 1.5em;
  display: flex;
  align-items: center;
  gap: 1em;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.decrypt-label {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.decrypt-text {
  color: var(--success);
  letter-spacing: 2px;
}

.hero-trust {
  display: flex;
  gap: 1.5em;
  margin-top: 1.5em;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.trust-item i {
  color: var(--accent);
  font-size: 0.75rem;
}

/* ===== Stats Counter ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2em;
  text-align: center;
}

.stat-item {
  padding: 1em;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.3em;
  letter-spacing: 0.5px;
}

/* ===== Learning Path ===== */
.path-steps {
  max-width: 800px;
  margin: 0 auto;
}

.path-step {
  display: flex;
  gap: 1.5em;
  padding: 1.5em 0;
  border-bottom: 1px solid var(--border);
}

.path-step:last-child {
  border-bottom: none;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  flex-shrink: 0;
  width: 60px;
}

.step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3em;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.75em;
}

/* ===== Demo Grid Responsive ===== */
@media (max-width: 768px) {
  .demo-grid {
    grid-template-columns: 1fr !important;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-tagline-main {
    font-size: 1rem;
  }
  .hero-decrypt {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1em;
  }
  .stat-number {
    font-size: 2rem;
  }
  .hero-trust {
    gap: 1em;
  }
  .path-step {
    flex-direction: column;
    gap: 0.75em;
  }
  .step-number {
    width: auto;
    font-size: 1.5rem;
  }
}
