/* ═══════════════════════════════════════════════════════════════════════════
   PanelOps Public Website Design System
   Inspired by Coolify.io · Obsidian-grade developer aesthetics · Responsive
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Global Scaffolding & Backgrounds ───────────────────────────────────── */
body.public-body {
  background-color: var(--bg-canvas, #080c14);
  color: var(--text-primary, #dbe3f0);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background grid mesh */
.public-grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 100% 50%, rgba(34, 211, 238, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 0% 80%, rgba(79, 70, 229, 0.08) 0%, transparent 40%),
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px;
  pointer-events: none;
}

[data-theme="light"] .public-grid-bg {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 40%),
    radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
}

.public-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Public Header & Navbar ─────────────────────────────────────────────── */
.public-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 12, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

[data-theme="light"] .public-header {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.public-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white, #ffffff);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  transition: opacity var(--transition-fast);
}

.public-brand:hover {
  opacity: 0.95;
}

.public-brand img,
.public-brand .public-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.45));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.public-brand:hover img,
.public-brand:hover .public-brand-icon {
  transform: scale(1.05);
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.65));
}

.public-brand .public-brand-logo {
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.35));
}

.public-brand-name {
  background: linear-gradient(135deg, #ffffff 30%, #c7d2fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

[data-theme="light"] .public-brand-name {
  background: linear-gradient(135deg, #0f172a 30%, #312e81 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.public-brand-version {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent, #22d3ee);
  border: 1px solid rgba(99, 102, 241, 0.3);
  letter-spacing: 0.5px;
  margin-left: 2px;
}

.public-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.public-nav-link {
  color: var(--text-secondary, #97a3b8);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.public-nav-link:hover,
.public-nav-link.active {
  color: var(--text-white, #ffffff);
}

.public-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand, linear-gradient(135deg, #4f46e5, #06b6d4));
  border-radius: 2px;
}

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

.btn-theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: var(--text-secondary, #97a3b8);
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-theme-toggle:hover {
  color: var(--text-white, #ffffff);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(148, 163, 184, 0.25);
}

.btn-nav-login {
  color: var(--text-primary, #dbe3f0);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.btn-nav-login:hover {
  color: var(--text-white, #ffffff);
  background: rgba(255, 255, 255, 0.06);
}

.btn-nav-primary {
  background: var(--gradient-primary, linear-gradient(135deg, #4f46e5 0%, #3b82f6 55%, #06b6d4 100%));
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-nav-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
  filter: brightness(1.08);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary, #dbe3f0);
  cursor: pointer;
  padding: 6px;
}

/* ─── Mobile Drawer ──────────────────────────────────────────────────────── */
.mobile-drawer {
  position: fixed;
  inset: 72px 0 0 0;
  background: rgba(8, 12, 20, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: none;
  flex-direction: column;
  padding: 24px;
  gap: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  overflow-y: auto;
}

.mobile-drawer.active {
  display: flex;
}

.mobile-drawer .public-nav-link {
  font-size: 1.15rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent, #22d3ee);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22d3ee;
  box-shadow: 0 0 10px #22d3ee;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: var(--text-white, #ffffff);
  max-width: 960px;
  margin: 0 auto 24px;
}

.hero-title span.gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 40%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary, #97a3b8);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

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

.btn-hero-primary {
  background: var(--gradient-primary, linear-gradient(135deg, #4f46e5 0%, #3b82f6 55%, #06b6d4 100%));
  color: #ffffff;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.4);
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.6);
  filter: brightness(1.08);
}

.btn-hero-secondary {
  background: rgba(16, 23, 40, 0.7);
  color: var(--text-primary, #dbe3f0);
  border: 1px solid rgba(148, 163, 184, 0.2);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.35);
  color: var(--text-white, #ffffff);
  transform: translateY(-2px);
}

/* ─── Terminal Command Shell Component ───────────────────────────────────── */
.terminal-box {
  max-width: 680px;
  margin: 0 auto 48px;
  background: #090d16;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.12);
  text-align: left;
}

[data-theme="light"] .terminal-box {
  background: #111827;
  color: #e5e7eb;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

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

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-size: 0.75rem;
  font-family: var(--font-mono, monospace);
  color: #94a3b8;
}

.terminal-body {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono, monospace);
  font-size: 0.92rem;
  background: #060912;
}

.terminal-command {
  color: #38bdf8;
  word-break: break-all;
}

.terminal-command .cmd-prompt {
  color: #64748b;
  margin-right: 8px;
  user-select: none;
}

.btn-terminal-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-terminal-copy:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
}

.os-compatibility-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
  margin-top: 14px;
}

.os-compatibility-strip span.os-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--text-secondary, #97a3b8);
}

/* ─── High-Fidelity Product Showcase ─────────────────────────────────────── */
.showcase-wrapper {
  margin-top: 40px;
  perspective: 1000px;
}

.showcase-window {
  background: #090d16;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 50px rgba(99, 102, 241, 0.18);
  transition: transform var(--transition-normal);
}

.showcase-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(16, 23, 40, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  gap: 16px;
}

.showcase-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.showcase-tab {
  background: transparent;
  border: none;
  color: var(--text-muted, #64748b);
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.showcase-tab:hover {
  color: var(--text-white, #ffffff);
  background: rgba(255, 255, 255, 0.05);
}

.showcase-tab.active {
  color: var(--text-white, #ffffff);
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.showcase-content {
  position: relative;
  min-height: 440px;
  background: #080c14;
}

.showcase-panel {
  display: none;
  animation: fadeIn 0.35s ease;
}

.showcase-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.showcase-screenshot {
  width: 100%;
  height: auto;
  display: block;
  max-height: 620px;
  object-fit: cover;
  object-position: top;
}

/* ─── Metrics Stats Bar ─────────────────────────────────────────────────── */
.stats-bar-section {
  padding: 40px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(16, 23, 40, 0.3);
}

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

.stat-item h3 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  color: var(--text-muted, #64748b);
  font-size: 0.88rem;
  font-weight: 500;
  margin: 0;
}

/* ─── Cloud vs Self-Hosted Comparison ────────────────────────────────────── */
.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent, #22d3ee);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text-white, #ffffff);
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary, #97a3b8);
  line-height: 1.6;
}

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

.comparison-card {
  background: rgba(16, 23, 40, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 18px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.comparison-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0.8;
}

.comparison-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5), 0 0 24px rgba(99, 102, 241, 0.15);
}

.comparison-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent, #22d3ee);
  border: 1px solid rgba(99, 102, 241, 0.3);
  margin-bottom: 16px;
}

.comparison-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white, #ffffff);
  margin-bottom: 12px;
}

.comparison-card p.tagline {
  color: var(--text-secondary, #97a3b8);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-primary, #dbe3f0);
}

.comparison-list li i {
  color: var(--success, #10b981);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ─── Platform Capabilities / Feature Grid ──────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: rgba(16, 23, 40, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  padding: 28px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  background: rgba(22, 32, 58, 0.7);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.6);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent, #22d3ee);
  margin-bottom: 20px;
}

.feature-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent, #22d3ee);
  margin-bottom: 6px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white, #ffffff);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary, #97a3b8);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

.feature-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-highlights li {
  font-size: 0.82rem;
  color: var(--text-primary, #dbe3f0);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-highlights li::before {
  content: '•';
  color: var(--primary, #6366f1);
  font-weight: bold;
}

/* ─── App Store Showcase ─────────────────────────────────────────────────── */
.app-store-section {
  padding: 80px 0;
}

.app-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.app-search-box {
  position: relative;
  max-width: 340px;
  width: 100%;
}

.app-search-box input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  background: rgba(16, 23, 40, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  color: var(--text-white, #ffffff);
  font-size: 0.88rem;
}

.app-search-box i {
  position: absolute;
  left: 12px;
  top: 11px;
  color: var(--text-muted, #64748b);
  width: 16px;
  height: 16px;
}

.app-category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--text-secondary, #97a3b8);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-pill:hover,
.category-pill.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--text-white, #ffffff);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.app-item-card {
  background: rgba(16, 23, 40, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all var(--transition-fast);
}

.app-item-card:hover {
  background: rgba(22, 32, 58, 0.7);
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateY(-2px);
}

.app-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent, #22d3ee);
}

.app-item-info {
  flex: 1;
  min-width: 0;
}

.app-item-info h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-white, #ffffff);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-item-info p {
  font-size: 0.78rem;
  color: var(--text-secondary, #97a3b8);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.app-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent, #22d3ee);
}

/* ─── Pricing Presentation ───────────────────────────────────────────────── */
.pricing-switcher-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.pricing-switch-btn {
  background: rgba(16, 23, 40, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 9999px;
  padding: 4px;
  display: inline-flex;
}

.pricing-switch-option {
  background: transparent;
  border: none;
  color: var(--text-secondary, #97a3b8);
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pricing-switch-option.active {
  background: var(--primary, #6366f1);
  color: #ffffff;
}

.save-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success, #10b981);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: rgba(16, 23, 40, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 18px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card.featured {
  background: rgba(22, 32, 58, 0.85);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.2);
  transform: scale(1.02);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.pricing-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-white, #ffffff);
  margin-bottom: 8px;
}

.pricing-card p.plan-desc {
  color: var(--text-secondary, #97a3b8);
  font-size: 0.85rem;
  min-height: 40px;
  margin-bottom: 20px;
  line-height: 1.45;
}

.pricing-price-box {
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-white, #ffffff);
  letter-spacing: -1px;
}

.pricing-period {
  font-size: 0.88rem;
  color: var(--text-muted, #64748b);
  font-weight: 500;
}

.pricing-limits-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
}

.pricing-limit-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary, #97a3b8);
}

.pricing-limit-row strong {
  color: var(--text-white, #ffffff);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-features li {
  font-size: 0.85rem;
  color: var(--text-primary, #dbe3f0);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing-features li i {
  color: var(--success, #10b981);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-plan {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-block;
}

.btn-plan.btn-plan-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-plan.btn-plan-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.btn-plan.btn-plan-outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-white, #ffffff);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.btn-plan.btn-plan-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(148, 163, 184, 0.35);
}

/* ─── Services Cards ─────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.service-card {
  background: rgba(16, 23, 40, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.service-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5);
}

.service-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
}

/* ─── Changelog Layout ───────────────────────────────────────────────────── */
.changelog-timeline {
  max-width: 840px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
}

.changelog-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 0;
  left: 8px;
  width: 2px;
  background: rgba(148, 163, 184, 0.15);
}

.changelog-entry {
  position: relative;
  margin-bottom: 48px;
}

.changelog-marker {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-canvas, #080c14);
  border: 3px solid var(--primary, #6366f1);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.changelog-card {
  background: rgba(16, 23, 40, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  padding: 28px;
}

.changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.changelog-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-white, #ffffff);
  margin: 0;
}

.changelog-date {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
}

.changelog-changes {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.changelog-changes li {
  font-size: 0.9rem;
  color: var(--text-primary, #dbe3f0);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.change-type-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

.tag-added { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.tag-improved { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.tag-fixed { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.tag-security { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* ─── FAQ Accordion ──────────────────────────────────────────────────────── */
.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding: 20px 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  user-select: none;
}

.faq-question h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-white, #ffffff);
  margin: 0;
}

.faq-toggle-icon {
  color: var(--text-muted, #64748b);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  color: var(--accent, #22d3ee);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-secondary, #97a3b8);
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  margin-top: 14px;
}

/* ─── Final CTA Banner ───────────────────────────────────────────────────── */
.final-cta-section {
  padding: 90px 0;
}

.final-cta-box {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.18) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 24px;
  padding: 60px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

.final-cta-box h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}

.final-cta-box p {
  font-size: 1.1rem;
  color: #c7d2fe;
  max-width: 600px;
  margin: 0 auto 36px;
}

/* ─── Public Footer ──────────────────────────────────────────────────────── */
.public-footer {
  margin-top: auto;
  background: #05080e;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 70px 0 30px;
  font-size: 0.88rem;
}

[data-theme="light"] .public-footer {
  background: #f1f5f9;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-col p {
  color: var(--text-secondary, #97a3b8);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-white, #ffffff);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary, #97a3b8);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-white, #ffffff);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted, #64748b);
  font-size: 0.82rem;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: var(--text-secondary, #97a3b8);
  transition: color var(--transition-fast);
}

.footer-socials a:hover {
  color: var(--text-white, #ffffff);
}

/* ─── Responsive Media Queries ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .public-nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 50px 0 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .terminal-box {
    margin: 0 12px 36px;
  }
  .showcase-window {
    border-radius: 12px;
  }
}
