/* ================================================
   Mosh Labs - Dev-Centric Premium Stylesheet
   Design: deep navy, electric blue neon, grid motifs
   Fonts: Outfit (Headings), JetBrains Mono (Data/Badges)
   ================================================ */


/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #020617;
  --bg-card:   #0f172a;
  --bg-card-hover: #1e293b;
  --accent:    #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.4);
  --text:      #f8fafc;
  --text-muted: #94a3b8;
  --text-dim:  #64748b;
  --border:    rgba(56, 189, 248, 0.1);
  --border-card: rgba(255, 255, 255, 0.05);
  --radius:    16px;
  --radius-sm: 10px;
  --max-w:     1100px;
  --font-main: 'Inter', system-ui, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: 0.2s ease; }
a:hover { color: #7dd3fc; }

img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

main { flex: 1; }

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid var(--border-card);
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-logo::before {
  content: '{ }';
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

.site-nav { display: flex; gap: 4px; }

.site-nav a {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  text-decoration: none;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-card);
  padding: 48px 0;
  margin-top: 80px;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

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

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  z-index: -1;
  opacity: 0.3;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 100px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 em {
  font-style: normal;
  display: block;
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: var(--accent);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- App Grid (Homepage) ---------- */
.apps-section {
  padding: 40px 0 100px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-card);
}

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

/* ---------- App Card ---------- */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(56, 189, 248, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
}

.app-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.5), 0 0 20px -5px var(--accent-glow);
}

.app-card:hover::before { opacity: 1; }

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

.app-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #1e293b;
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.app-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card-meta { flex: 1; }

.app-card-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.app-card-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.8;
}

.app-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  opacity: 0.8;
  margin-bottom: 4px;
}

.app-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.app-card-platforms {
  display: flex;
  gap: 6px;
  margin-right: auto;
}

.p-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.platform-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  transition: all 0.3s ease;
  position: relative;
}

.platform-badge::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--bg-card);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-family: var(--font-mono);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  border: 1px solid var(--border-card);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.platform-badge:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--accent);
}

.platform-badge:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

.platform-badge.android:hover { color: #A4C639; border-color: rgba(164, 198, 57, 0.3); background: rgba(164, 198, 57, 0.05); }
.platform-badge.ios:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.05); }

.app-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.app-status.live { 
  background: rgba(34, 197, 94, 0.08); 
  color: #4ade80; 
  border: 1px solid rgba(34, 197, 94, 0.15); 
}

.app-status.dev, .app-status.in-development { 
  background: rgba(245, 158, 11, 0.08); 
  color: #fbbf24; 
  border: 1px solid rgba(245, 158, 11, 0.15); 
}

.app-status.beta { 
  background: rgba(168, 85, 247, 0.08); 
  color: #c084fc; 
  border: 1px solid rgba(168, 85, 247, 0.15); 
}

.status-pulse {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.app-card-arrow {
  font-size: 1.2rem;
  color: var(--text-dim);
  transition: all 0.2s;
}
.app-card:hover .app-card-arrow { color: var(--accent); transform: translateX(5px); }

/* ---------- Project Detail Page ---------- */
.project-page {
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease-out;
}

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

.project-hero {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
  position: relative;
}

.project-hero-glow {
  position: absolute;
  top: 50%;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}

.project-icon-container {
  position: relative;
  flex-shrink: 0;
}

.project-icon {
  width: 160px;
  height: 160px;
  border-radius: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
  box-shadow: 0 30px 60px -12px rgba(0,0,0,0.5), 
              0 18px 36px -18px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
}

.project-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-text {
  flex: 1;
}

.project-title-area {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.project-title-area h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 0;
}

.project-tagline {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0.9;
}

.project-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 800px;
  margin-bottom: 40px;
}

.project-actions {
  display: flex;
  gap: 16px;
}

/* Layout Grid */
.project-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  margin-top: 80px;
}

.features-wrapper {
  min-width: 0;
}

/* Section Styling */
.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  opacity: 0.6;
  padding: 4px 8px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 4px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  white-space: nowrap;
  margin: 0;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-card), transparent);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.feature-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.feature-content {
  display: flex;
  gap: 16px;
}

.feature-marker {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--accent-glow);
}

.feature-item p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Screenshots */
.screenshots-section {
  grid-column: 1 / -1;
  margin-bottom: 80px;
  width: 100%;
  position: relative;
  z-index: 5;
}

.project-additional-content {
  grid-column: 1 / -1;
}

.screenshots-scroll-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.screenshots-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 30px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-card) transparent;
}

.screenshot-wrapper {
  flex-shrink: 0;
  scroll-snap-align: start;
  position: relative;
  padding: 12px;
  background: #000;
  border-radius: 36px;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.7),
              inset 0 0 0 1px rgba(255,255,255,0.1);
}

.screenshot-wrapper img {
  height: 520px;
  display: block;
  border-radius: 24px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.screenshot-wrapper:hover img {
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Sidebar */
.project-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 20px; /* Consistent with features grid gap */
  padding-top: 80px; /* Align with first row of features */
  padding-bottom: 80px; /* Match features-grid margin-bottom */
}

.sidebar-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.sidebar-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 20px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
}

.spec-label {
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.spec-value {
  color: var(--text);
  font-weight: 500;
}

.legal-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.legal-link svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.legal-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.legal-link:hover svg {
  transform: translateX(3px);
  opacity: 1;
}

/* Store Badges */
.project-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 12px 24px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-mono);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
}

.store-badge svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-badge:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.05);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.store-badge.coming-soon {
  opacity: 0.6;
  cursor: help;
  background: rgba(255, 255, 255, 0.02);
  border-style: dashed;
}

.store-badge.coming-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-card);
}

/* ---------- Legal Content ---------- */
.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 48px;
  margin-bottom: 64px;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text);
  margin: 48px 0 24px;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 12px;
}

.legal-content p { color: var(--text-muted); font-size: 1rem; margin-bottom: 20px; }
.legal-content strong { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .project-content-grid {
    grid-template-columns: 1fr;
  }
  .project-sidebar {
    position: static;
    order: 2;
  }
  .project-main-content {
    order: 1;
  }
}

@media (max-width: 768px) {
  .project-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
  }
  .project-title-area {
    justify-content: center;
  }
  .project-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  .project-description {
    margin-left: auto;
    margin-right: auto;
  }
  .screenshot-wrapper img {
    height: 380px;
  }
}


/* ================================================
   Legal & Privacy Pages
   ================================================ */

.legal-page-wrapper {
    padding: 80px 0 120px;
    background: radial-gradient(circle at top left, rgba(0, 243, 255, 0.05), transparent 40%),
                radial-gradient(circle at bottom right, rgba(0, 243, 255, 0.02), transparent 40%);
}

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

.legal-branding {
    margin-bottom: 40px;
    display: flex;
    justify-content: flex-start;
}

.legal-header {
    margin-bottom: 60px;
    text-align: left;
}

.legal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    margin-bottom: 24px;
    transition: color 0.2s;
}

.legal-back-btn:hover {
    color: var(--accent);
}

.legal-title {
    font-size: 2.5rem;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.legal-meta {
    font-family: var(--font-mono);
    color: var(--text-dim);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-content {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    color: #fff;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-content h3 {
    font-size: 1.1rem;
    margin: 24px 0 12px;
    color: var(--accent);
}

.legal-content p {
    margin-bottom: 20px;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 24px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 12px;
}

.legal-content .info-box {
    background: rgba(0, 243, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
}

.legal-content .info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
}

.legal-content .info-box p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--accent);
}

.legal-content .info-box strong {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 4px;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.9rem;
}

.legal-content th {
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-mono);
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.75rem;
}

.legal-content td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-content tr:last-child td {
    border-bottom: none;
}

.legal-footer-nav {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.legal-footer-nav a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-footer-nav a:hover {
    color: var(--accent);
}

/* ---------- Terminal Component ---------- */
.terminal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.terminal-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.terminal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
}

.terminal-window {
  width: 90%;
  max-width: 800px;
  height: 60vh;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.terminal-modal.active .terminal-window {
  transform: translateY(0) scale(1);
}

.terminal-header {
  background: rgba(30, 41, 59, 0.8);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

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

.control.close { background: #ff5f56; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #27c93f; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 60px; /* offset controls */
}

.terminal-body {
  flex: 1;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #e2e8f0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.terminal-output {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terminal-input-line {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.terminal-prompt {
  color: var(--accent);
  white-space: nowrap;
}

#terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: inherit;
  width: 100%;
}

.terminal-trigger {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.terminal-trigger:hover {
  background: rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.t-icon { width: 18px; height: 18px; }

.line.command { color: var(--accent); font-weight: 600; }
.line.error { color: #f87171; }
.line.welcome { color: #34d399; }
.line.help-cmd { color: var(--accent); min-width: 100px; display: inline-block; }

/* Custom Scrollbar for Terminal */
.terminal-body::-webkit-scrollbar { width: 6px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }
.terminal-body::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.2); border-radius: 10px; }
.terminal-body::-webkit-scrollbar-thumb:hover { background: rgba(56, 189, 248, 0.4); }


/* ---------- Apps Listing Page ---------- */
.apps-listing-page {
  padding: 60px 0 100px;
}

.apps-page-header {
  margin-bottom: 60px;
  position: relative;
}

.apps-page-header h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  margin: 10px 0 20px;
  letter-spacing: -0.04em;
}

.apps-page-header p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
}

.apps-page-header .header-line {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin-top: 30px;
  border-radius: 2px;
  box-shadow: 0 0 15px var(--accent-glow);
}

