/* ============================================================================
 * ACHAPP.IT — Stylesheet & Design System
 * Clean, responsive, high-craft showcase built for single & multi-account stores
 * ============================================================================ */

:root,
[data-theme="dark"] {
  --bg-base: #070b14;
  --bg-elevated: #0d1424;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-solid: #0f172a;
  --bg-card-hover: rgba(22, 33, 58, 0.92);
  --bg-subtle: rgba(30, 41, 59, 0.52);
  --bg-header: rgba(7, 11, 20, 0.78);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(56, 189, 248, 0.35);

  --accent-primary: #38bdf8;
  --accent-secondary: #34d399;
  --accent-amber: #fbbf24;
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #22d3ee 50%, #34d399 100%);

  --btn-primary-bg: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
  --btn-primary-text: #ffffff;

  --shadow-card: 0 20px 50px -20px rgba(0, 0, 0, 0.65);
  --shadow-modal: 0 28px 80px -16px rgba(0, 0, 0, 0.85);
  --glow-opacity: 0.16;
  --grid-line: rgba(148, 163, 184, 0.05);
}

[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-elevated: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-solid: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-subtle: rgba(226, 232, 240, 0.65);
  --bg-header: rgba(248, 250, 252, 0.86);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;

  --border-subtle: rgba(15, 23, 42, 0.11);
  --border-strong: rgba(3, 105, 161, 0.35);

  --accent-primary: #0369a1;
  --accent-secondary: #047857;
  --accent-amber: #b45309;
  --accent-gradient: linear-gradient(135deg, #0369a1 0%, #0e7490 50%, #047857 100%);

  --btn-primary-bg: linear-gradient(135deg, #0284c7 0%, #059669 100%);
  --btn-primary-text: #ffffff;

  --shadow-card: 0 18px 40px -18px rgba(15, 23, 42, 0.12);
  --shadow-modal: 0 28px 70px -16px rgba(15, 23, 42, 0.25);
  --glow-opacity: 0.09;
  --grid-line: rgba(15, 23, 42, 0.04);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1200px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Ambient Background */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: var(--glow-opacity);
}

.ambient-glow--one {
  width: 620px;
  height: 620px;
  top: -180px;
  left: -120px;
  background: #38bdf8;
}

.ambient-glow--two {
  width: 560px;
  height: 560px;
  top: 140px;
  right: -160px;
  background: #34d399;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 35%, transparent 100%);
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
}

.brand-domain {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-left: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.18s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.lang-btn.is-active {
  background: var(--bg-card-solid);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

[data-theme="light"] .icon-sun {
  display: none;
}

.mobile-menu-btn {
  display: none;
}

.mobile-drawer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card-solid);
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0 1.1rem;
  gap: 0.25rem;
}

.mobile-nav-link {
  padding: 0.65rem 0.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 8px;
}

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

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3.25rem;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--accent-primary);
  margin-bottom: 1.35rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}

.hero-title {
  font-size: clamp(2.2rem, 4.3vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 58ch;
  margin-bottom: 2rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.35rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 0 10px 26px -8px rgba(14, 165, 233, 0.55);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px -8px rgba(16, 185, 129, 0.6);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding-top: 1.65rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-item dt {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.stat-item dd {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero Radar Stage & Spotlight Cards */
.hero-stage {
  position: relative;
  min-height: 410px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-backdrop {
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--border-strong);
  opacity: 0.42;
}

.radar-ring--1 {
  width: 100%;
  height: 100%;
}

.radar-ring--2 {
  width: 72%;
  height: 72%;
}

.radar-ring--3 {
  width: 44%;
  height: 44%;
}

.radar-sweep {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(56, 189, 248, 0.16), transparent 32%);
  animation: radarSpin 14s linear infinite;
}

@keyframes radarSpin {
  to {
    transform: rotate(360deg);
  }
}

.hero-showcase-cards {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spotlight-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: var(--text-primary);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.spotlight-card:nth-child(2) {
  margin-left: 1.5rem;
  width: calc(100% - 1.5rem);
}

.spotlight-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.spotlight-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

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

.spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 0.2rem;
}

.spotlight-title {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.spotlight-tagline {
  font-size: 0.86rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-arrow {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease;
}

.spotlight-card:hover .spotlight-arrow {
  background: var(--accent-primary);
  color: #070b14;
}

.spotlight-arrow svg {
  width: 17px;
  height: 17px;
}

/* Section Headers */
.apps-section,
.developers-section,
.values-section {
  padding: 4.25rem 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.section-header--compact {
  margin-bottom: 1.85rem;
}

.section-kicker {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 0.45rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
}

.section-desc {
  max-width: 50ch;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* Catalog Toolbar */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.filter-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-pill {
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.filter-pill.is-active {
  background: var(--btn-primary-bg);
  color: #ffffff;
  border-color: transparent;
}

.dev-filter-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--border-subtle);
}

.dev-filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.search-box {
  position: relative;
  min-width: 280px;
  flex: 0 1 340px;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.58rem 2.1rem 0.58rem 2.4rem;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.18s ease;
}

.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--accent-primary);
}

.search-clear {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  min-width: 28px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.35rem;
}

/* Apps Grid & Rich App Cards */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.app-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.app-card-banner {
  position: relative;
  height: 184px;
  background: var(--bg-elevated);
  overflow: hidden;
}

.app-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0.72;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.app-card:hover .app-card-banner img {
  transform: scale(1.03);
  opacity: 0.86;
}

.app-card-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7, 11, 20, 0.12) 0%, var(--bg-card-solid) 100%);
}

.app-card-badges {
  position: absolute;
  top: 0.9rem;
  left: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.badge-chip {
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.badge-chip--price {
  color: #34d399;
}

.app-card-body {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem 1.5rem;
  margin-top: -2.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.app-card-header {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.app-icon {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  object-fit: cover;
  border: 3px solid var(--bg-card-solid);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.app-heading-group {
  min-width: 0;
  padding-bottom: 0.15rem;
}

.app-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.app-dev-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.app-dev-link {
  color: var(--accent-primary);
  font-weight: 600;
}

.app-dev-link:hover {
  text-decoration: underline;
}

.mono-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}

.app-tagline {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.95rem;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.tag-pill {
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.22rem 0.6rem;
  border-radius: 7px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.app-highlights-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.mini-highlight {
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}

.mini-highlight-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.mini-highlight-title svg {
  width: 15px;
  height: 15px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.mini-highlight-text {
  font-size: 0.77rem;
  color: var(--text-secondary);
  line-height: 1.42;
}

/* Screenshot Strip inside Card */
.card-screenshots {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  margin-bottom: 1.3rem;
  scrollbar-width: thin;
}

.screenshot-thumb-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  height: 156px;
  cursor: zoom-in;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.screenshot-thumb-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
}

.screenshot-thumb-btn img {
  height: 100%;
  width: auto;
  object-fit: cover;
}

.app-card-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.app-card-actions .btn {
  flex: 1 1 auto;
  padding: 0.72rem 1rem;
  font-size: 0.88rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
}

.empty-state-icon {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
}

.empty-state h3 {
  margin-bottom: 0.4rem;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* Developers Section */
.developers-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.5rem;
  align-items: stretch;
}

.developers-grid.is-multi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dev-card {
  padding: 1.75rem;
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.dev-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dev-avatar {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--btn-primary-bg);
  color: #ffffff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dev-role-badge {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--accent-secondary);
  margin-bottom: 0.2rem;
}

.dev-name {
  font-size: 1.35rem;
  font-weight: 800;
}

.dev-location {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.dev-bio {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.dev-apps-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
}

.dev-app-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.7rem 0.32rem 0.35rem;
  border-radius: 999px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.18s ease;
}

.dev-app-pill:hover {
  border-color: var(--accent-primary);
}

.dev-app-pill img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
}

.dev-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.dev-network-card {
  padding: 1.75rem;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.09), rgba(52, 211, 153, 0.06));
  border: 1px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.dev-network-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dev-network-icon svg {
  width: 22px;
  height: 22px;
}

.dev-network-card h3 {
  font-size: 1.2rem;
}

.dev-network-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.dev-network-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  font-size: 0.86rem;
  display: grid;
  gap: 0.35rem;
}

/* Values Section */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.value-card {
  padding: 1.65rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.value-icon--emerald {
  background: rgba(52, 211, 153, 0.14);
  color: var(--accent-secondary);
}

.value-icon--amber {
  background: rgba(251, 191, 36, 0.14);
  color: var(--accent-amber);
}

.value-icon svg {
  width: 22px;
  height: 22px;
}

.value-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-tagline {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 38ch;
}

.footer-col h4 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--accent-primary);
}

.footer-email {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.83rem !important;
}

.footer-location {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* App Detail Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-dialog {
  width: min(880px, 100%);
  max-height: calc(100vh - 2.5rem);
  border-radius: 24px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.modal-dev-crumb {
  font-size: 0.83rem;
  color: var(--text-muted);
  font-weight: 500;
}

.modal-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-ghost-sm:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-ghost-sm svg {
  width: 15px;
  height: 15px;
}

.modal-body {
  padding: 1.65rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.modal-body::-webkit-scrollbar,
.card-screenshots::-webkit-scrollbar,
.modal-screenshots::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.modal-body::-webkit-scrollbar-thumb,
.card-screenshots::-webkit-scrollbar-thumb,
.modal-screenshots::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.32);
  border-radius: 999px;
}

.modal-hero {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.modal-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.modal-hero-main {
  flex: 1;
  min-width: 220px;
}

.modal-hero-main h2 {
  font-size: 1.7rem;
  margin-bottom: 0.3rem;
}

.modal-tagline {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.modal-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.modal-cta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-section {
  margin-bottom: 1.75rem;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section h3 {
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.modal-screenshots {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.modal-screenshot-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  height: 250px;
  flex: 0 0 auto;
  cursor: zoom-in;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.modal-screenshot-btn:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.modal-screenshot-btn img {
  height: 100%;
  width: auto;
  object-fit: cover;
}

.modal-description {
  display: grid;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.modal-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.modal-usecases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.modal-usecases li {
  padding: 0.65rem 0.85rem;
  border-radius: 11px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 7, 18, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-figure {
  margin: 0;
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-figure img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.lightbox-caption {
  color: #cbd5e1;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(30, 41, 59, 0.85);
  color: #f8fafc;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(30, 41, 59, 0.85);
  color: #f8fafc;
}

.lightbox-prev {
  left: 1.25rem;
}

.lightbox-next {
  right: 1.25rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--text-primary);
  color: var(--bg-base);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Noscript */
.noscript-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-stage {
    min-height: auto;
  }

  .radar-backdrop {
    width: 300px;
    height: 300px;
  }

  .apps-grid,
  .developers-grid,
  .developers-grid.is-multi {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-section {
    padding: 2.75rem 0 2rem;
  }

  .spotlight-card:nth-child(2) {
    margin-left: 0;
    width: 100%;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .dev-filter-bar {
    padding-left: 0;
    border-left: 0;
  }

  .search-box {
    flex: 1 1 auto;
    min-width: 0;
  }

  .app-highlights-mini,
  .modal-highlights-grid,
  .modal-usecases {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }
}
