:root {
  --bg-primary: #0a0d14;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(26, 36, 56, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(0, 165, 81, 0.4);
  --pmos-green: #00A551;
  --pmos-green-light: #10B981;
  --pmos-green-glow: rgba(0, 165, 81, 0.25);
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Ambient glow blobs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 165, 81, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  top: -100px;
  left: 20%;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: 10%;
  right: -100px;
}

.glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  top: 50%;
  left: -150px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navigation */
.navbar {
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 13, 20, 0.75);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
}

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

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

.logo-badge {
  width: 42px;
  height: 42px;
  background: rgba(0, 165, 81, 0.1);
  border: 1px solid rgba(0, 165, 81, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pmos-icon {
  width: 28px;
  height: 28px;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.nav-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--pmos-green-light);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--pmos-green-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--pmos-green-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.badge-pill {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 4px 8px;
}

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

/* Glass Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

/* Main Content */
.main-content {
  padding: 40px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Hero Section */
.hero-card {
  padding: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 165, 81, 0.25);
  box-shadow: 0 12px 40px rgba(0, 165, 81, 0.08);
}

.hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(0, 165, 81, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.device-tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--pmos-green-light);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.hero-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #FFFFFF 0%, #D1D5DB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 820px;
  margin-bottom: 32px;
}

.hero-desc strong {
  color: var(--text-main);
}

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

.spec-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.spec-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.spec-sub {
  font-size: 0.75rem;
  color: var(--pmos-green-light);
  font-family: 'Fira Code', monospace;
}

/* Section Header */
.section-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Downloads Grid */
.downloads-grid,
.artifacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.download-card,
.artifact-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.download-card:hover,
.artifact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.highlight-card {
  border: 1px solid var(--border-highlight);
  background: linear-gradient(180deg, rgba(0, 165, 81, 0.08) 0%, rgba(17, 24, 39, 0.8) 100%);
  box-shadow: 0 8px 30px rgba(0, 165, 81, 0.12);
}

.card-badge,
.status-badge {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(0, 165, 81, 0.2);
  color: var(--pmos-green-light);
  border: 1px solid rgba(0, 165, 81, 0.4);
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  flex-shrink: 0;
}

.primary-icon {
  background: rgba(0, 165, 81, 0.15);
  border-color: rgba(0, 165, 81, 0.3);
  color: var(--pmos-green-light);
}

.card-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.file-name {
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  color: var(--pmos-green-light);
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.card-desc code {
  font-family: 'Fira Code', monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.card-meta {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.meta-item strong {
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-primary {
  background: #00A551;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 165, 81, 0.35);
}

.btn-primary:hover {
  background: #00B95B;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 165, 81, 0.45);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  padding: 8px 14px;
}

.btn-outline:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Terminal Card */
.terminal-card {
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.1);
}

.terminal-bar {
  background: rgba(15, 20, 30, 0.9);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.term-title {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.copy-all-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.copy-all-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.terminal-body {
  padding: 24px;
  font-family: 'Fira Code', monospace;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #E5E7EB;
  white-space: pre-wrap;
  background: rgba(8, 11, 18, 0.6);
}

.terminal-body .comment {
  color: #6B7280;
  display: block;
}

.terminal-body .cmd {
  color: #10B981;
  font-weight: 500;
  display: block;
}

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

.info-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-card-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.code-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
}

.mini-copy {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.mini-copy:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.cred-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  padding-top: 8px;
}

.cred-row {
  display: flex;
  gap: 10px;
}

.cred-label {
  color: var(--text-dim);
  width: 80px;
}

.feature-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.feature-list strong {
  color: var(--text-main);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  background: rgba(10, 13, 20, 0.9);
  padding: 32px 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

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

.footer-sub {
  font-size: 0.75rem;
  color: #4B5563;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-highlight {
  color: var(--pmos-green-light) !important;
  font-weight: 600;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(16, 185, 129, 0.9);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero-card {
    padding: 24px;
  }
  .hero-header h1 {
    font-size: 1.8rem;
  }
  .downloads-grid {
    grid-template-columns: 1fr;
  }
  .nav-badges {
    display: none;
  }
}
