/* ============================================================
   WindosFTP.com — Developer Workspace Theme
   IDE-Inspired Professional FTP Education Site
   ============================================================ */

/* --- FONTS --- */
@font-face {
  font-family: 'Fira Code';
  src: url('../fonts/FiraCode-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Code';
  src: url('../fonts/FiraCode-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fira Code';
  src: url('../fonts/FiraCode-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/SourceSans3-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/SourceSans3-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/SourceSans3-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/SourceSans3-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* --- CSS VARIABLES --- */
:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #f8fafc;
  --text: #334155;
  --text-heading: #1e293b;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-bg: #eff6ff;
  --secondary: #f59e0b;
  --secondary-bg: #fffbeb;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --error: #ef4444;
  --error-bg: #fef2f2;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --code-bg: #1e1e2e;
  --code-text: #cdd6f4;
  --code-comment: #6c7086;
  --code-keyword: #cba6f7;
  --code-string: #a6e3a1;
  --code-function: #89b4fa;
  --code-number: #fab387;
  --terminal-bg: #0d1117;
  --terminal-text: #58a6ff;
  --terminal-green: #3fb950;
  --terminal-prompt: #f0883e;
  --nav-bg: #1e293b;
  --nav-text: #e2e8f0;
  --nav-active: #2563eb;
  --nav-tab-bg: #334155;
  --nav-tab-active: #1e293b;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px rgba(0,0,0,.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;
  --transition: .25s ease;
}

[data-theme="dark"] {
  --bg: #111827;
  --bg-alt: #1f2937;
  --bg-card: #1f2937;
  --text: #cbd5e1;
  --text-heading: #e2e8f0;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --primary-bg: #1e3a5f;
  --secondary: #f59e0b;
  --secondary-bg: #451a03;
  --success: #34d399;
  --success-bg: #064e3b;
  --error: #f87171;
  --error-bg: #450a0a;
  --border: #374151;
  --border-light: #1f2937;
  --code-bg: #0d1117;
  --nav-bg: #0f172a;
  --nav-tab-bg: #1e293b;
  --nav-tab-active: #0f172a;
  --bg-card: #1f2937;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.2);
  --shadow-md: 0 4px 6px rgba(0,0,0,.25);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.3);
  --shadow-xl: 0 20px 25px rgba(0,0,0,.35);
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); text-decoration: underline; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-mono);
  color: var(--text-heading);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; margin-bottom: .75rem; }
h3 { font-size: 1.4rem; margin-bottom: .5rem; }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .35rem; }

/* --- CONTAINER --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

/* --- READING PROGRESS BAR --- */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%; z-index: 10000;
  transition: width .1s linear;
}

/* ============================================================
   NAVIGATION — IDE TABS STYLE
   ============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
}
.navbar-brand {
  display: flex; align-items: center; gap: .5rem;
  color: var(--primary-light); font-family: var(--font-mono);
  font-weight: 700; font-size: 1.15rem; text-decoration: none;
  padding: .75rem 0; white-space: nowrap;
}
.navbar-brand:hover { color: #fff; text-decoration: none; }
.navbar-brand .brand-icon { font-size: 1.3rem; }

/* IDE Tab Navigation */
.nav-tabs-ide {
  display: flex; align-items: flex-end; gap: 2px;
  list-style: none; padding: 0; margin: 0;
}
.nav-tabs-ide li a {
  display: flex; align-items: center; gap: .4rem;
  padding: .6rem 1rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 500;
  color: var(--nav-text);
  background: var(--nav-tab-bg);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  text-decoration: none;
  transition: all var(--transition);
  border: 1px solid transparent;
  border-bottom: none;
  position: relative;
  top: 1px;
  opacity: .75;
  white-space: nowrap;
}
.nav-tabs-ide li a:hover,
.nav-tabs-ide li a.active {
  background: var(--nav-tab-active);
  color: #fff;
  opacity: 1;
  border-color: var(--border) var(--border) transparent;
}
.nav-tabs-ide li a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--primary);
}
.nav-tab-icon { font-size: 1rem; }

/* Mobile menu */
.nav-toggle {
  display: none; background: none; border: none;
  color: var(--nav-text); font-size: 1.6rem; cursor: pointer;
  padding: .5rem;
}

/* Theme toggle in nav */
.theme-toggle {
  background: var(--nav-tab-bg); border: 1px solid var(--border);
  color: var(--nav-text); font-size: 1rem; cursor: pointer;
  padding: .45rem .75rem; border-radius: var(--radius-sm);
  font-family: var(--font-mono); transition: all var(--transition);
  margin-left: .5rem;
}
.theme-toggle:hover { background: var(--primary); color: #fff; }

/* ============================================================
   HERO — ANIMATED TERMINAL
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--nav-bg) 0%, #0f172a 100%);
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(37,99,235,.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(245,158,11,.1) 0%, transparent 50%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center; position: relative; z-index: 1;
}

/* Terminal window */
.terminal-window {
  background: var(--terminal-bg); border-radius: var(--radius-md);
  border: 1px solid #30363d;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  overflow: hidden;
}
.terminal-titlebar {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem;
  background: #161b22; border-bottom: 1px solid #30363d;
}
.terminal-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
.terminal-title {
  font-family: var(--font-mono); font-size: .75rem;
  color: #8b949e; margin-left: auto;
}
.terminal-body {
  padding: 1.25rem; font-family: var(--font-mono);
  font-size: .9rem; line-height: 1.8;
}
.terminal-line { display: block; }
.terminal-prompt { color: var(--terminal-prompt); }
.terminal-cmd { color: var(--terminal-green); }
.terminal-output { color: #8b949e; }
.terminal-cursor {
  display: inline-block; width: 8px; height: 1.1em;
  background: var(--terminal-green);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-content { color: #e2e8f0; }
.hero-content h1 {
  font-size: 2.6rem; color: #f8fafc;
  margin-bottom: 1rem; line-height: 1.2;
}
.hero-content h1 span { color: var(--primary-light); }
.hero-content p {
  font-size: 1.15rem; color: #94a3b8;
  margin-bottom: 1.75rem; max-width: 520px;
}
.hero-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem;
  background: var(--primary); color: #fff;
  font-family: var(--font-mono); font-size: .95rem;
  font-weight: 600; border-radius: var(--radius-sm);
  text-decoration: none; transition: all var(--transition);
  border: 2px solid var(--primary);
}
.hero-btn:hover { background: transparent; color: var(--primary-light); text-decoration: none; }
.hero-btn-secondary {
  background: transparent; color: #e2e8f0;
  border-color: #475569;
  margin-left: .75rem;
}
.hero-btn-secondary:hover { border-color: var(--primary-light); color: var(--primary-light); }

/* Connection status bar */
.connection-status {
  margin-top: 2.5rem; padding: .75rem 1.25rem;
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3);
  border-radius: var(--radius-sm); font-family: var(--font-mono);
  font-size: .8rem; color: var(--terminal-green);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--terminal-green);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .4; }
}
.status-item { display: flex; align-items: center; gap: .35rem; }
.status-label { color: #8b949e; }

/* File transfer visual */
.transfer-visual {
  margin-top: 2rem;
}
.transfer-bar {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: .6rem;
  font-family: var(--font-mono); font-size: .78rem; color: #94a3b8;
}
.transfer-name { min-width: 120px; color: #e2e8f0; }
.transfer-progress {
  flex: 1; height: 6px; background: #1e293b;
  border-radius: 3px; overflow: hidden;
}
.transfer-progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--success));
  animation: progress-fill 2.5s ease-out forwards;
}
.transfer-bar:nth-child(2) .transfer-progress-fill { animation-delay: .3s; }
.transfer-bar:nth-child(3) .transfer-progress-fill { animation-delay: .6s; }
@keyframes progress-fill {
  from { width: 0%; } to { width: var(--fill, 100%); }
}
.transfer-pct { min-width: 40px; text-align: right; color: var(--success); }

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header {
  text-align: center; margin-bottom: 3rem;
}
.section-header h2 { margin-bottom: .5rem; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.section-badge {
  display: inline-block; font-family: var(--font-mono); font-size: .78rem;
  font-weight: 600; color: var(--primary); background: var(--primary-bg);
  padding: .3rem .85rem; border-radius: 20px;
  margin-bottom: .75rem; letter-spacing: .03em;
}

/* ============================================================
   GUIDE CARDS — Grid
   ============================================================ */
.guide-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.guide-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.75rem;
  transition: all var(--transition); position: relative;
  overflow: hidden;
}
.guide-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.guide-card-icon {
  font-size: 2rem; margin-bottom: .75rem;
  width: 56px; height: 56px; display: flex; align-items: center;
  justify-content: center; background: var(--primary-bg);
  border-radius: var(--radius-sm);
}
.guide-card h3 a {
  color: var(--text-heading); text-decoration: none;
  font-family: var(--font-mono);
}
.guide-card h3 a:hover { color: var(--primary); }
.guide-card p { color: var(--text-muted); font-size: .95rem; margin-bottom: 1rem; }
.guide-card-link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--font-mono); font-size: .85rem;
  font-weight: 600; color: var(--primary);
}
.guide-card-link:hover { gap: .6rem; text-decoration: none; }

/* ============================================================
   PROTOCOL COMPARISON FLIP CARDS
   ============================================================ */
.protocol-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.protocol-card {
  perspective: 800px; height: 260px; cursor: pointer;
}
.protocol-card-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .6s ease;
  transform-style: preserve-3d;
}
.protocol-card:hover .protocol-card-inner { transform: rotateY(180deg); }
.protocol-card-front, .protocol-card-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-md); padding: 1.5rem;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  border: 1px solid var(--border);
}
.protocol-card-front {
  background: var(--bg-card);
}
.protocol-card-back {
  background: var(--primary-bg);
  transform: rotateY(180deg);
  font-size: .9rem;
}
.protocol-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.protocol-name {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 1.1rem; color: var(--text-heading);
  margin-bottom: .25rem;
}
.protocol-port {
  font-family: var(--font-mono); font-size: .8rem;
  color: var(--text-muted);
}
.protocol-back-title {
  font-family: var(--font-mono); font-weight: 700;
  color: var(--text-heading); margin-bottom: .75rem;
}
.protocol-detail {
  display: flex; justify-content: space-between;
  width: 100%; padding: .3rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: .85rem;
}
.protocol-detail-label { color: var(--text-muted); }
.protocol-detail-value { font-weight: 600; color: var(--text-heading); }

/* ============================================================
   STATS
   ============================================================ */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem; text-align: center;
}
.stat-card {
  padding: 1.75rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.stat-number {
  font-family: var(--font-mono); font-size: 2rem;
  font-weight: 700; color: var(--primary);
  margin-bottom: .25rem;
}
.stat-label { color: var(--text-muted); font-size: .9rem; }

/* ============================================================
   WHY FTP SECTION
   ============================================================ */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.why-card {
  padding: 1.5rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: all var(--transition);
}
.why-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.why-icon { font-size: 1.75rem; margin-bottom: .75rem; }
.why-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.why-card p { color: var(--text-muted); font-size: .93rem; margin: 0; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--nav-bg) 0%, #0f172a 100%);
  padding: 3.5rem 0; text-align: center; color: #e2e8f0;
}
.newsletter-section h2 { color: #f8fafc; margin-bottom: .5rem; }
.newsletter-section p { color: #94a3b8; margin-bottom: 1.5rem; }
.newsletter-form {
  display: flex; max-width: 480px; margin: 0 auto; gap: .5rem;
}
.newsletter-form input {
  flex: 1; padding: .7rem 1rem; border: 1px solid #475569;
  border-radius: var(--radius-sm); background: #1e293b;
  color: #e2e8f0; font-family: var(--font-body); font-size: .95rem;
}
.newsletter-form input::placeholder { color: #64748b; }
.newsletter-form button {
  padding: .7rem 1.5rem; background: var(--primary);
  color: #fff; border: none; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-weight: 600;
  cursor: pointer; transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--primary-light); }

/* ============================================================
   CODE BLOCKS — VS Code Style
   ============================================================ */
.code-block {
  background: var(--code-bg); border-radius: var(--radius-md);
  margin: 1.25rem 0; overflow: hidden;
  border: 1px solid #313244;
  box-shadow: var(--shadow-md);
}
.code-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem 1rem; background: #181825;
  border-bottom: 1px solid #313244;
}
.code-tab {
  font-family: var(--font-mono); font-size: .78rem;
  color: #cdd6f4; display: flex; align-items: center; gap: .4rem;
}
.code-tab-icon { font-size: .85rem; }
.code-copy {
  background: transparent; border: 1px solid #45475a;
  color: #a6adc8; font-family: var(--font-mono); font-size: .72rem;
  padding: .25rem .6rem; border-radius: 4px; cursor: pointer;
  transition: all var(--transition);
}
.code-copy:hover { background: #45475a; color: #cdd6f4; }
.code-body {
  display: flex; overflow-x: auto;
}
.code-lines {
  padding: 1rem .75rem; text-align: right;
  border-right: 1px solid #313244; user-select: none;
  color: var(--code-comment); font-family: var(--font-mono);
  font-size: .82rem; line-height: 1.7;
}
.code-content {
  padding: 1rem; flex: 1; overflow-x: auto;
  font-family: var(--font-mono); font-size: .85rem;
  line-height: 1.7; color: var(--code-text);
}
.code-content code {
  font-family: inherit; background: none; padding: 0;
}
/* Syntax classes */
.kw { color: var(--code-keyword); }
.str { color: var(--code-string); }
.fn { color: var(--code-function); }
.num { color: var(--code-number); }
.cmt { color: var(--code-comment); font-style: italic; }
.cmd { color: #89dceb; }
.flag { color: #f38ba8; }
.path { color: var(--code-string); }
.var { color: #fab387; }
.op { color: #89dceb; }

/* Inline code */
code {
  font-family: var(--font-mono); font-size: .88em;
  background: var(--bg-alt); color: var(--primary);
  padding: .15em .4em; border-radius: 4px;
  border: 1px solid var(--border);
}
[data-theme="dark"] code { background: #1e293b; }

/* ============================================================
   FILE TREE
   ============================================================ */
.file-tree {
  background: var(--code-bg); border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem; margin: 1.25rem 0;
  font-family: var(--font-mono); font-size: .85rem;
  line-height: 1.8; color: var(--code-text);
  border: 1px solid #313244;
  overflow-x: auto;
}
.file-tree .dir { color: var(--code-function); font-weight: 600; }
.file-tree .file { color: var(--code-string); }
.file-tree .special { color: var(--code-keyword); }

/* ============================================================
   CALLOUT BOXES — IDE Notification Style
   ============================================================ */
.callout {
  padding: 1rem 1.25rem; margin: 1.25rem 0;
  border-radius: var(--radius-sm);
  border-left: 4px solid; font-size: .95rem;
  display: flex; gap: .75rem; align-items: flex-start;
}
.callout-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: .1rem; }
.callout-content { flex: 1; }
.callout-content strong { display: block; margin-bottom: .25rem; font-family: var(--font-mono); font-size: .85rem; }
.callout-info { border-color: var(--primary); background: var(--primary-bg); }
.callout-info .callout-icon { color: var(--primary); }
.callout-warning { border-color: var(--secondary); background: var(--secondary-bg); }
.callout-warning .callout-icon { color: var(--secondary); }
.callout-error { border-color: var(--error); background: var(--error-bg); }
.callout-error .callout-icon { color: var(--error); }
.callout-tip { border-color: var(--success); background: var(--success-bg); }
.callout-tip .callout-icon { color: var(--success); }

/* ============================================================
   STEP-BASED TIMELINE LAYOUT (Guide Pages)
   ============================================================ */
.guide-hero {
  background: linear-gradient(135deg, var(--nav-bg) 0%, #0f172a 100%);
  padding: 3rem 0 2.5rem; color: #e2e8f0;
}
.guide-hero h1 { color: #f8fafc; margin-bottom: .75rem; font-size: 2.2rem; }
.guide-hero p { color: #94a3b8; font-size: 1.1rem; max-width: 700px; }
.guide-meta {
  display: flex; gap: 1.5rem; margin-top: 1rem;
  font-family: var(--font-mono); font-size: .8rem; color: #64748b;
}
.guide-meta span { display: flex; align-items: center; gap: .3rem; }

/* Progress indicator */
.step-progress {
  position: sticky; top: 58px; z-index: 100;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: .75rem 0; transition: background var(--transition);
}
.step-progress-inner {
  display: flex; align-items: center; gap: .5rem;
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  overflow-x: auto;
}
.step-dot {
  display: flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; border-radius: 50%;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
  background: var(--bg-alt); color: var(--text-muted);
  border: 2px solid var(--border);
  cursor: pointer; transition: all var(--transition);
  flex-shrink: 0;
}
.step-dot.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.step-dot.completed {
  background: var(--success); color: #fff; border-color: var(--success);
}
.step-connector {
  flex: 1; height: 2px; background: var(--border);
  min-width: 12px; max-width: 60px;
}

/* Timeline */
.timeline-section {
  padding: 3rem 0;
}
.timeline {
  position: relative; max-width: 900px; margin: 0 auto;
}
.timeline::before {
  content: ''; position: absolute; left: 28px; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(180deg, var(--primary), var(--success));
  border-radius: 2px;
}
.timeline-step {
  position: relative; padding-left: 76px; margin-bottom: 2.5rem;
}
.timeline-step:last-child { margin-bottom: 0; }
.step-number {
  position: absolute; left: 8px; top: 0;
  width: 44px; height: 44px;
  background: var(--primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-family: var(--font-mono);
  font-weight: 700; font-size: 1rem;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--primary-bg);
  z-index: 2;
}
.step-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.step-card:hover {
  border-color: var(--primary); box-shadow: var(--shadow-md);
}
.step-card h2 {
  font-size: 1.4rem; margin-bottom: 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.step-card h3 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: .75rem; }
.step-card p { margin-bottom: .75rem; }

/* Step arrow connector */
.step-arrow {
  display: flex; justify-content: center;
  padding: .5rem 0; margin-left: 28px;
  color: var(--text-muted); font-size: 1.2rem;
}

/* ============================================================
   ERROR CODE REFERENCE (terminal-style)
   ============================================================ */
.error-ref {
  background: var(--terminal-bg); border-radius: var(--radius-md);
  padding: 1rem 1.25rem; margin: 1rem 0;
  border-left: 4px solid var(--error);
  font-family: var(--font-mono); font-size: .88rem;
}
.error-code {
  color: var(--error); font-weight: 700;
}
.error-msg { color: #f0883e; }
.error-fix { color: var(--terminal-green); }

/* Settings paths as breadcrumb */
.settings-path {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--font-mono); font-size: .85rem;
  background: var(--bg-alt); padding: .3rem .7rem;
  border-radius: 4px; border: 1px solid var(--border);
  color: var(--primary); margin: .25rem 0;
}
.settings-path .sep { color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--nav-bg); color: #94a3b8;
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2.5rem;
}
.footer-brand {
  font-family: var(--font-mono); font-size: 1.15rem;
  color: var(--primary-light); font-weight: 700;
  margin-bottom: .75rem;
}
.footer p { font-size: .9rem; line-height: 1.6; color: #94a3b8; }
.footer h4 {
  font-size: .9rem; color: #e2e8f0; margin-bottom: .75rem;
  text-transform: uppercase; letter-spacing: .05em;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: #94a3b8; font-size: .9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary-light); text-decoration: none; }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: .5rem;
  margin-bottom: .5rem; font-size: .88rem;
}
.footer-contact-item .icon { flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding-top: 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem;
  font-size: .82rem;
}
.footer-bottom-links { display: flex; gap: 1rem; }
.footer-bottom-links a { color: #64748b; }
.footer-bottom-links a:hover { color: var(--primary-light); }

/* ============================================================
   ABOUT & CONTACT & LEGAL PAGES
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--nav-bg) 0%, #0f172a 100%);
  padding: 3rem 0 2.5rem; color: #e2e8f0;
}
.page-hero h1 { color: #f8fafc; margin-bottom: .5rem; }
.page-hero p { color: #94a3b8; font-size: 1.1rem; }

.page-content {
  padding: 3rem 0;
}
.page-content h2 { margin-top: 2rem; margin-bottom: .75rem; font-size: 1.5rem; }
.page-content h3 { margin-top: 1.5rem; }
.page-content ul, .page-content ol { margin-bottom: 1rem; }

/* Team cards */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem; margin: 1.5rem 0;
}
.team-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem; text-align: center;
}
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--primary-bg); display: flex; align-items: center;
  justify-content: center; font-size: 2rem;
  margin: 0 auto .75rem;
}
.team-card h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.team-role { color: var(--primary); font-family: var(--font-mono); font-size: .82rem; }

/* Contact form */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-family: var(--font-mono);
  font-size: .85rem; font-weight: 600;
  margin-bottom: .4rem; color: var(--text-heading);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .7rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: .95rem;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.btn-submit {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 2rem; background: var(--primary);
  color: #fff; border: none; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: .95rem;
  font-weight: 600; cursor: pointer;
  transition: background var(--transition);
}
.btn-submit:hover { background: var(--primary-light); }

/* FAQ Accordion */
.accordion-button {
  font-family: var(--font-mono); font-size: .95rem;
  font-weight: 600;
}

/* Info cards on contact */
.info-cards {
  display: grid; gap: 1rem;
}
.info-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.25rem;
  display: flex; align-items: flex-start; gap: .75rem;
}
.info-card-icon {
  font-size: 1.5rem; flex-shrink: 0;
  width: 44px; height: 44px; display: flex; align-items: center;
  justify-content: center; background: var(--primary-bg);
  border-radius: var(--radius-sm);
}
.info-card h4 { font-size: .95rem; margin-bottom: .2rem; }
.info-card p { color: var(--text-muted); font-size: .88rem; margin: 0; }

/* Legal pages */
.legal-content { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }
.legal-content h1 { margin-bottom: .5rem; }
.legal-content h2 { margin-top: 2.5rem; font-size: 1.4rem; }
.legal-content h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.legal-updated {
  color: var(--text-muted); font-family: var(--font-mono);
  font-size: .85rem; margin-bottom: 2rem;
}
.cookie-table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  font-size: .9rem;
}
.cookie-table th, .cookie-table td {
  padding: .6rem .75rem; text-align: left;
  border-bottom: 1px solid var(--border);
}
.cookie-table th {
  background: var(--bg-alt); font-family: var(--font-mono);
  font-size: .85rem; font-weight: 600;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition); z-index: 900;
}
.back-to-top:hover { background: var(--primary-light); transform: translateY(-2px); }
.back-to-top.visible { display: flex; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--nav-bg); color: #e2e8f0;
  padding: 1.25rem; z-index: 9999;
  box-shadow: 0 -4px 12px rgba(0,0,0,.2);
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.cookie-text { flex: 1; font-size: .9rem; }
.cookie-text a { color: var(--primary-light); }
.cookie-buttons { display: flex; gap: .5rem; }
.cookie-btn {
  padding: .5rem 1.25rem; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: .85rem;
  font-weight: 600; cursor: pointer; border: none;
  transition: all var(--transition);
}
.cookie-accept { background: var(--primary); color: #fff; }
.cookie-accept:hover { background: var(--primary-light); }
.cookie-decline { background: #374151; color: #e2e8f0; }
.cookie-decline:hover { background: #475569; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-content { text-align: center; }
  .hero-content p { margin: 0 auto 1.75rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .container { padding: 0 1rem; }
  .section { padding: 3rem 0; }
  .nav-tabs-ide { display: none; }
  .nav-toggle { display: block; }
  .nav-tabs-ide.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--nav-bg); border-top: 1px solid var(--border);
    padding: .5rem; gap: 0;
    box-shadow: var(--shadow-lg);
  }
  .nav-tabs-ide.open li a {
    border-radius: var(--radius-sm); width: 100%;
  }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-content h1 { font-size: 2rem; }
  .guide-grid { grid-template-columns: 1fr; }
  .protocol-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .timeline::before { left: 20px; }
  .timeline-step { padding-left: 60px; }
  .step-number { left: 0; width: 40px; height: 40px; font-size: .9rem; }
  .step-card { padding: 1.25rem; }
  .newsletter-form { flex-direction: column; }
}
@media (max-width: 480px) {
  .protocol-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 1.6rem; }
  .step-progress-inner { gap: .25rem; }
  .step-dot { min-width: 28px; height: 28px; font-size: .7rem; }
}
