/*
 * SysWarden Showcase Stylesheet
 * Brand Aesthetic: Enterprise Cybersecurity / High-Tech Dark Mode
 * Language: English comments (as per project rules)
 */

/* --- LOCAL FONT CONFIGURATIONS --- */

/* Fira Code - Weights: 400, 500, 600 */
/* Symbols Subset */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/fira-code-symbols.woff2') format('woff2');
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/fira-code-symbols.woff2') format('woff2');
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/fira-code-symbols.woff2') format('woff2');
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}

/* Latin-Ext Subset */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/fira-code-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/fira-code-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/fira-code-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Latin Subset */
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/fira-code-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/fira-code-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/fira-code-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* Outfit - Weights: 300, 400, 500, 600, 700, 800 */
/* Latin-Ext Subset */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Latin Subset */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colors */
  --bg-primary: #0D1117;
  --bg-secondary: rgba(22, 27, 34, 0.85);
  --bg-card: rgba(22, 27, 34, 0.7);
  --bg-card-hover: rgba(48, 54, 61, 0.85);
  --border-color: #30363D;
  --border-hover: rgba(139, 148, 158, 0.4);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-code: #e2e8f0;
  --text-terminal: #e2e8f0;

  --bg-btn: rgba(255, 255, 255, 0.05);
  --bg-terminal: #05070f;

  /* Accent Colors */
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;
  
  /* Gradients */
  --gradient-cyber: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.15), transparent 60%);
  --gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);

  --gradient-text-hero: linear-gradient(to right, #ffffff, #94a3b8);
  --gradient-text-primary: linear-gradient(to right, #ffffff, #8B949E);

  /* Fonts */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Fira Code', source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  /* Colors */
  --bg-primary: #f9fafb;
  --bg-secondary: rgba(243, 244, 246, 0.85);
  --bg-card: #ffffff;
  --bg-card-hover: #f3f4f6;
  --border-color: #e5e7eb;
  --border-hover: rgba(156, 163, 175, 0.4);
  
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-code: #334155;
  --text-terminal: #24292f;

  --bg-btn: rgba(0, 0, 0, 0.05);
  --bg-terminal: #f6f8fa;

  --gradient-text-hero: linear-gradient(to right, #111827, #4b5563);
  --gradient-text-primary: linear-gradient(to right, #111827, #4b5563);
}


/* Base resets & styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}


/* Glowing background blur spots */
.glow-bg {
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--gradient-glow);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
}

.glow-top-left {
  top: -100px;
  left: -100px;
}

.glow-bottom-right {
  bottom: 10%;
  right: -100px;
}

/* Language selector switching rules */
html[lang="en"] .lang-fr {
  display: none !important;
}

html[lang="fr"] .lang-en {
  display: none !important;
}

/* Accessibility - Skip to Content link */
.skip-link {
  position: absolute;
  top: 0;
  transform: translateY(-100%);
  left: 0;
  background: var(--accent-cyan);
  color: var(--bg-primary);
  padding: 8px 16px;
  z-index: 100;
  font-weight: 600;
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Scroll Progress Indicator */
.scroll-progress-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent-cyan);
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1100;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* Header & Navbar */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--bg-secondary);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 50;
  transition: var(--transition-smooth);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo {
  width: 32px;
  height: 32px;
  color: var(--accent-blue);
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* GitHub Badges in Navbar */
.github-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.github-meta:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: rgba(6, 182, 212, 0.05);
}

.github-meta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.github-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.github-stat:not(:last-child)::after {
  content: "•";
  color: var(--text-muted);
  margin-left: 8px;
}

/* Lang Switcher & Theme Buttons */
.lang-btn, .theme-btn {
  background: var(--bg-btn);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover, .theme-btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  border-color: var(--accent-cyan);
}

/* Mobile Menu Toggle button */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 40px 24px;
  text-align: center;
  position: relative;
}

.badge-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tag-badge {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag-badge.red {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
}

.tag-badge.green {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title span {
  background: var(--gradient-text-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title strong {
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--gradient-cyber);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

/* Compliance Banner section */
.compliance-banner {
  background: rgba(15, 21, 38, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.compliance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.compliance-item svg {
  width: 40px;
  height: 40px;
  color: var(--accent-cyan);
}

.compliance-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.compliance-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Strategic Value Card for CISOs and CIOs */
.strategic-card {
}

.strategic-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.strategic-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-cyber);
}

.strategic-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}

.strategic-left h2 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.strategic-left p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.strategic-tag {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
}

.strategic-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.strategic-bullet {
  display: flex;
  gap: 16px;
}

.bullet-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.bullet-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.bullet-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Core Sections */
section.main-section {
  scroll-margin-top: 100px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-label {
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 10%, rgba(6, 182, 212, 0.05), transparent 50%);
  pointer-events: none;
}

.feature-card:hover {
  border-color: rgba(6, 182, 212, 0.6);
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.feature-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.feature-list li::before {
  content: "✓";
  color: var(--accent-cyan);
  font-weight: bold;
}

/* Specifics Grid (Dashboard, Architecture, Support checklist) */
.specifics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* Custom CSS terminal mockup */
.terminal-mockup {
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono);
  overflow: hidden;
  min-width: 0;
  width: 100%;
}

.terminal-header {
  background: #0f121d;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

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

.t-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tb-red { background: #ff5f56; }
.tb-yellow { background: #ffbd2e; }
.tb-green { background: #27c93f; }

.terminal-title {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-left: 20px;
}

.terminal-body {
  padding: 20px;
  font-size: 0.85rem;
  color: #10b981; /* Terminal green */
  line-height: 1.5;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 185, 129, 0.3) #05070f;
}

/* Custom Webkit scrollbar for terminal-body */
.terminal-body::-webkit-scrollbar {
  height: 8px;
}

.terminal-body::-webkit-scrollbar-track {
  background: var(--bg-terminal);
  border-radius: 0 0 10px 10px;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.3);
  border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.6);
}

.terminal-line {
  margin-bottom: 6px;
  word-break: break-all;
}

.terminal-prompt {
  color: var(--accent-cyan);
}

.terminal-text {
  color: var(--text-primary);
}

.terminal-muted {
  color: var(--text-muted);
}

.tui-header {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  padding: 2px 8px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 10px;
}

.tui-metric {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.tui-bar {
  background: rgba(255, 255, 255, 0.1);
  height: 8px;
  border-radius: 4px;
  margin-top: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}

.tui-bar-fill {
  background: var(--accent-cyan);
  height: 100%;
}

.tui-bar-fill.red {
  background: var(--accent-red);
}

/* Supported OS Section */
.os-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
}

.os-table-wrapper {
  overflow-x: auto;
}

.os-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.95rem;
  text-align: left;
}

.os-table th, .os-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.os-table th {
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.os-table tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 9999px;
}

.status-badge.ready {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
}

.status-badge.ready::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
}

.status-badge.alpha {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
}

.status-badge.alpha::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent-amber);
  border-radius: 50%;
}

/* Installation Section & Tabs */
.install-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.install-tabs {
  display: flex;
  background: var(--bg-terminal);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  padding: 18px 24px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.03);
}

.install-panes {
  padding: 32px;
}

.install-pane {
  display: none;
}

.install-pane.active {
  display: block;
}

.pane-desc {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.code-wrapper {
  position: relative;
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-color);
}

.code-lang {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.copy-btn:hover {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.copy-btn.copied {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border-color: var(--accent-green);
}

pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-code);
}

pre code, .code-wrapper code, .terminal-mockup code {
  color: var(--text-terminal);
}

/* Shell coloring highlights */
.c-comment { color: #64748b; font-style: italic; }
.c-command { color: #f43f5e; }
.c-output { color: #10b981; }
.c-arg { color: #06b6d4; }
.c-var { color: #e11d48; }

/* Support & Ko-Fi Section */
.support-wrapper {
  background: radial-gradient(100% 100% at 100% 100%, rgba(59, 130, 246, 0.05) 0%, transparent 80%), var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 48px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.support-wrapper h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.support-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 32px auto;
}

.kofi-btn-container {
  margin-bottom: 40px;
}

.kofi-img {
  width: 327px;
  max-width: 100%;
  height: auto;
  transition: transform 0.2s;
}

.kofi-img:hover {
  transform: scale(1.05);
}

/* Goal progress bar */
.goal-container {
  max-width: 500px;
  margin: 0 auto 32px auto;
}

.goal-labels {
  text-align: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: rgba(48, 54, 61, 0.5);
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--accent-cyan);
  border-radius: 4px;
  width: 36%;
}

.license-info {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.license-info a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
}

.license-info a:hover {
  text-decoration: underline;
}

/* Footer styling */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 120px;
  padding: 48px 24px;
  color: var(--text-muted);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  width: 24px;
  height: 24px;
  color: var(--accent-blue);
}

.footer-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

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

.footer-credits {
  font-size: 0.85rem;
  margin-top: 24px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .nav-menu {
    display: none; /* Collapse links on tablets & mobile */
  }
  
  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    gap: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  }

  .mobile-toggle {
    display: block; /* Show hamburger toggle on tablets & mobile */
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .strategic-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .specifics-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .strategic-wrapper,
  .support-wrapper {
    padding: 24px;
  }

  .install-panes {
    padding: 16px;
  }
}

@media (max-width: 580px) {
  /* Hide GitHub meta badge on smartphone screens to prevent horizontal wrapping and text overlaps */
  .github-meta {
    display: none !important;
  }
}

/* Error 404 Page Styling */
.error-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 85vh;
  text-align: center;
  padding: 40px 24px;
}

.error-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 48px;
  max-width: 600px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.error-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-red);
}

.error-icon {
  width: 64px;
  height: 64px;
  color: var(--accent-red);
  margin-bottom: 24px;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.3));
}

.error-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.error-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.error-log {
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-red);
  margin-bottom: 32px;
  text-align: left;
  word-break: break-all;
}

/* Bulletproof Feature List Link Color Overrides */
.feature-list a[href*="getplumber"] {
  color: var(--accent-green) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.feature-list a[href*="getplumber"]:hover,
.feature-list a[href*="getplumber"]:focus,
.feature-list a[href*="getplumber"]:active,
.feature-list a[href*="getplumber"]:visited {
  color: var(--accent-green) !important;
}

.feature-list a[href*="workflows"] {
  color: #38bdf8 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.feature-list a[href*="workflows"]:hover,
.feature-list a[href*="workflows"]:focus,
.feature-list a[href*="workflows"]:active,
.feature-list a[href*="workflows"]:visited {
  color: #38bdf8 !important;
}

/* --- CSP INLINE STYLES REPLACEMENTS --- */
.u-box-shadow-red {
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.25);
  background: var(--accent-red);
}
.u-mt-auto { margin-top: auto; }
.u-jc-center { justify-content: center; }
.u-text-green-link { color: var(--accent-green) !important; text-decoration: none; }
.u-text-blue-link { color: #38bdf8 !important; text-decoration: none; }
.u-mb-12 { margin-bottom: 12px; }
.u-terminal-grid-header {
  display: grid;
  grid-template-columns: 130px 90px 110px 1fr;
  gap: 12px;
  font-weight: 600;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 6px;
  margin-bottom: 8px;
  min-width: 580px;
}
.u-terminal-grid-row {
  display: grid;
  grid-template-columns: 130px 90px 110px 1fr;
  gap: 12px;
  min-width: 580px;
  font-size: 0.8rem;
  margin-bottom: 6px;
}
.u-terminal-grid-row-mb8 {
  display: grid;
  grid-template-columns: 130px 90px 110px 1fr;
  gap: 12px;
  min-width: 580px;
  font-size: 0.8rem;
  margin-bottom: 8px;
}
.u-text-red-500 { color: var(--accent-red); font-weight: 500; }
.u-text-amber { color: var(--accent-amber); }
.u-truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-mt-8 { margin-top: 8px; }

/* --- Plumber.io Inspired Flat Design Utilities --- */
.hero-terminal { border-radius: 12px; border: 1px solid var(--border-color); }

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Typography Utilities */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: var(--gradient-text-primary);
}
.text-gradient-cyan {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, #0ea5e9, #10b981);
}
.eyebrow {
  font-size: 0.75rem;
  font-family: 'Fira Code', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
}

/* Plumber Flat Cards */
.plumber-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.3s ease;
}
.plumber-card:hover {
  border-color: rgba(16, 185, 129, 0.6); /* SysWarden green hover */
}

/* Grid Layouts */
.grid-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-cols-4 { grid-template-columns: 1fr; }
}

.section-grid { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto 120px auto; padding: 0 2rem; }
.section-grid > * { width: 100%; }
@media (max-width: 900px) {
  .section-grid { margin: 0 auto 80px auto; padding: 0 1.5rem; }
}

