/* ==========================================================================
   Yegz — Modern Product Website Stylesheet
   ========================================================================== */

:root {
  /* Default: One Dark */
  --bg-primary: #1e2227;
  --bg-secondary: #21252b;
  --bg-card: rgba(33, 37, 43, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #61afef;
  --text-primary: #abb2bf;
  --text-strong: #ffffff;
  --text-muted: #6b7280;
  --accent-blue: #61afef;
  --accent-cyan: #56b6c2;
  --accent-green: #98c379;
  --accent-orange: #d19a66;
  --accent-purple: #c678dd;
  --accent-red: #e06c75;
  --glass-bg: rgba(33, 37, 43, 0.65);
  --glass-border: rgba(255, 255, 255, 0.1);
  --editor-bg: #282c34;
  --editor-sidebar: #21252b;
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Theme variations for the preview editor */
[data-theme="onelight"] {
  --bg-primary: #f5f6f8;
  --bg-secondary: #eaeaea;
  --bg-card: rgba(255, 255, 255, 0.85);
  --border-color: rgba(0, 0, 0, 0.08);
  --text-primary: #383a42;
  --text-strong: #111827;
  --text-muted: #6b7280;
  --editor-bg: #fafafa;
  --editor-sidebar: #eaeaea;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.1);
}

[data-theme="githubdark"] {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: rgba(22, 27, 34, 0.75);
  --border-color: #30363d;
  --border-focus: #58a6ff;
  --text-primary: #c9d1d9;
  --text-strong: #f0f6fc;
  --editor-bg: #0d1117;
  --editor-sidebar: #161b22;
}

[data-theme="monokai"] {
  --bg-primary: #1e1f1c;
  --bg-secondary: #272822;
  --bg-card: rgba(39, 40, 34, 0.75);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-focus: #f92672;
  --text-primary: #f8f8f2;
  --text-strong: #ffffff;
  --editor-bg: #272822;
  --editor-sidebar: #1e1f1c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient Backdrops */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.glow-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: 20%;
  background: radial-gradient(circle, #61afef 0%, #c678dd 70%, transparent 100%);
}

.glow-2 {
  width: 450px;
  height: 450px;
  top: 300px;
  right: 15%;
  background: radial-gradient(circle, #56b6c2 0%, #61afef 70%, transparent 100%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(30, 34, 39, 0.75);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-strong);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-logo {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.badge-version {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(97, 175, 239, 0.15);
  color: var(--accent-blue);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(97, 175, 239, 0.3);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-strong);
}

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

.btn-github {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s;
}

.btn-github:hover {
  color: var(--text-strong);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-blue);
  color: #1e2227;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(97, 175, 239, 0.25);
}

.btn-primary:hover {
  background: #73baff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(97, 175, 239, 0.4);
}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 80px 0 60px;
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
  color: var(--text-strong);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #98c379;
  box-shadow: 0 0 8px #98c379;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-strong);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #61afef 0%, #c678dd 50%, #56b6c2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 680px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.btn-hero-download {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(180deg, #61afef, #4a9ce2);
  color: #111827;
  padding: 12px 26px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(97, 175, 239, 0.4);
  transition: all 0.2s;
}

.btn-hero-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(97, 175, 239, 0.55);
}

.btn-icon {
  font-size: 1.8rem;
}

.btn-text {
  text-align: left;
}

.btn-action {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
}

.btn-meta {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
}

.cli-quick-install {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.cli-prompt {
  color: var(--accent-green);
  user-select: none;
}

.btn-copy {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.btn-copy:hover {
  color: var(--text-strong);
}

.platform-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plat-tag {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-muted);
  transition: color 0.2s;
}

.plat-tag:hover {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

/* Preview Section & Mockup */
.preview-section {
  position: relative;
  z-index: 2;
  padding: 40px 0 80px;
}

.preview-header-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.theme-picker-container {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(33, 37, 43, 0.6);
  backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
}

.theme-picker-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-strong);
}

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

.theme-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-btn:hover {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.05);
}

.theme-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-strong);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Editor Mockup Window */
.editor-window {
  max-width: 980px;
  margin: 0 auto;
  background: var(--editor-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  font-family: var(--font-sans);
  transition: background 0.3s;
}

.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 14px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--border-color);
}

.traffic-lights {
  display: flex;
  gap: 8px;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.traffic-light.close { background: #ff5f56; }
.traffic-light.minimize { background: #ffbd2e; }
.traffic-light.maximize { background: #27c93f; }

.window-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.window-spacer {
  width: 52px;
}

.window-toolbar {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid var(--border-color);
  gap: 8px;
  font-size: 0.78rem;
}

.toolbar-group {
  display: flex;
  gap: 4px;
}

.tb-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  color: var(--text-primary);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.tb-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-strong);
}

.toolbar-separator {
  width: 1px;
  height: 16px;
  background: var(--border-color);
}

.syntax-badge {
  font-weight: 600;
  color: var(--accent-blue);
}

.toolbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.git-badge {
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* Tabs */
.window-tabs {
  display: flex;
  align-items: center;
  height: 34px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
  padding: 0 6px;
  gap: 4px;
}

.editor-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid transparent;
  cursor: pointer;
}

.editor-tab.active {
  background: var(--editor-bg);
  color: var(--text-strong);
  font-weight: 600;
  border-color: var(--border-color);
  border-bottom-color: var(--editor-bg);
}

.tab-dirty {
  color: var(--accent-orange);
  font-size: 0.65rem;
}

.tab-close {
  opacity: 0.6;
  font-size: 0.85rem;
  transition: opacity 0.2s;
}

.tab-close:hover {
  opacity: 1;
  color: var(--accent-red);
}

.tab-add {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.tab-add:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-strong);
}

/* Window Body */
.window-body {
  display: flex;
  height: 380px;
}

.editor-sidebar {
  width: 220px;
  background: var(--editor-sidebar);
  border-right: 1px solid var(--border-color);
  padding: 10px;
  font-size: 0.8rem;
}

.sidebar-header {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.file-tree {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tree-item {
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tree-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.tree-item.active {
  background: rgba(97, 175, 239, 0.15);
  color: var(--text-strong);
  font-weight: 500;
}

.tree-item.indent {
  padding-left: 20px;
}

.git-m {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--accent-orange);
  font-weight: 700;
}

.git-u {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--accent-green);
  font-weight: 700;
}

.editor-content {
  flex: 1;
  display: flex;
  padding: 16px 12px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
}

.line-numbers {
  display: flex;
  flex-direction: column;
  width: 36px;
  color: #4b5263;
  user-select: none;
  text-align: right;
  padding-right: 12px;
}

.code-view {
  flex: 1;
  overflow-x: auto;
}

/* Syntax Highlighting Colors (One Dark Style) */
.syn-keyword { color: #c678dd; font-weight: 600; }
.syn-fn { color: #61afef; }
.syn-type { color: #e5c07b; }
.syn-string { color: #98c379; }
.syn-number { color: #d19a66; }
.syn-comment { color: #5c6370; font-style: italic; }

/* Status Bar */
.window-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.status-left, .status-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-sep {
  opacity: 0.3;
}

/* Metrics Section */
.metrics-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.1);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.metric-card {
  text-align: center;
}

.metric-val {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.metric-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.metric-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Features Grid */
.features-section {
  padding: 100px 0;
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Shortcuts Section */
.shortcuts-section {
  padding: 60px 0 100px;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--border-color);
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.shortcut-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
}

.sc-category {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.sc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

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

.sc-keys {
  display: flex;
  gap: 4px;
}

kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom-width: 2px;
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 5px;
}

/* Downloads Section */
.downloads-section {
  padding: 100px 0;
}

.downloads-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.download-card.featured {
  border-color: rgba(97, 175, 239, 0.4);
  box-shadow: 0 10px 30px -10px rgba(97, 175, 239, 0.2);
}

.dc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.dc-os-icon {
  font-size: 2.2rem;
}

.dc-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-strong);
}

.dc-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dc-desc {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 24px;
  flex: 1;
}

.dc-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-dl-main {
  display: block;
  text-align: center;
  background: var(--accent-blue);
  color: #1e2227;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-dl-main:hover {
  background: #73baff;
}

.btn-dl-sec {
  display: block;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-strong);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-dl-sec:hover {
  background: rgba(255, 255, 255, 0.1);
}

.source-build-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.source-build-box h4 {
  font-size: 0.95rem;
  color: var(--text-strong);
  margin-bottom: 12px;
}

.source-build-box pre {
  background: #0d1117;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--accent-green);
  overflow-x: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-left a, .footer-right a {
  color: var(--accent-blue);
  text-decoration: none;
}

.footer-right {
  display: flex;
  gap: 24px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .window-body {
    height: 320px;
  }
  .editor-sidebar {
    display: none;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-hero-download, .cli-quick-install {
    width: 100%;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
