:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: rgba(255, 255, 255, .82);
  --surface-solid: #fff;
  --surface-soft: #edf1f2;
  --text: #101617;
  --muted: #627073;
  --line: rgba(15, 31, 34, .12);
  --accent: #24d6a0;
  --accent-dark: #07996f;
  --accent-wash: rgba(36, 214, 160, .12);
  --shadow: 0 30px 80px rgba(23, 41, 43, .14);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #081011;
  --surface: rgba(16, 27, 29, .82);
  --surface-solid: #101b1d;
  --surface-soft: #142326;
  --text: #f1f7f5;
  --muted: #92a4a5;
  --line: rgba(220, 255, 246, .12);
  --accent: #36e5ad;
  --accent-dark: #46f0ba;
  --accent-wash: rgba(54, 229, 173, .12);
  --shadow: 0 30px 90px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 18% -10%, var(--accent-wash), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
b, h1, h2, h3, p { margin-top: 0; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand b { color: var(--accent-dark); }
nav { display: flex; gap: 32px; color: var(--muted); font-size: 14px; }
nav a:hover { color: var(--text); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.icon-button {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.theme-toggle .moon, :root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: inline; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-weight: 700;
  transition: transform .2s, border-color .2s, background .2s;
}
.button:hover { transform: translateY(-2px); border-color: var(--accent); }
.button-small { min-height: 40px; padding: 0 16px; background: var(--text); color: var(--bg); }
.button-primary { border-color: var(--accent); background: var(--accent); color: #062219; box-shadow: 0 12px 30px rgba(36, 214, 160, .22); }
.button-ghost { background: transparent; }
.button.is-disabled { pointer-events: none; opacity: .72; filter: saturate(.75); }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(560px, 1.1fr);
  gap: 54px;
  align-items: center;
  min-height: 700px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 82px 40px 70px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  right: 4%;
  top: 10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--accent-wash), transparent 68%);
  filter: blur(20px);
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow span:first-child { width: 26px; height: 2px; background: var(--accent); }
h1 { max-width: 720px; margin-bottom: 24px; font-size: clamp(46px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -.035em; font-weight: 680; }
h1 strong { display: block; color: var(--accent-dark); font-weight: 700; }
.hero-copy > p { max-width: 650px; margin-bottom: 0; color: var(--muted); font-size: 18px; line-height: 1.85; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-wash) 72%, transparent);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.hero-actions { display: flex; gap: 12px; margin: 30px 0 24px; }
.release-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 12px; }
.release-meta span { display: flex; align-items: center; gap: 7px; }
.release-meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-wash); }
.development-notice {
  display: grid;
  gap: 4px;
  max-width: 520px;
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 16px;
  background: var(--accent-wash);
}
.development-notice[hidden] { display: none; }
.development-notice b {
  color: var(--accent-dark);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.development-notice span { color: var(--text); font-weight: 700; }
.product-stage { position: relative; min-height: 630px; }
.stage-orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.orbit-one { inset: 10% 0; transform: rotate(-12deg); }
.orbit-two { inset: 0 10%; transform: rotate(32deg); }
/* --- Desktop App Window Mockup --- */
.app-window {
  position: absolute;
  z-index: 2;
  top: 62px;
  left: 2%;
  width: 96%;
  overflow: hidden;
  border: 1px solid #1a263c;
  border-radius: 16px;
  background: #0b111e;
  color: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.app-titlebar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-bottom: 1px solid #1a263c;
  background: #0b111e;
  user-select: none;
}

.app-brand-title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.app-title-version {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #71829e;
  text-align: center;
}

.app-controls {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0;
}

.win-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  color: #71829e;
  cursor: pointer;
  font-size: 14px;
}

.win-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.win-btn.win-close:hover {
  background: #e5484d;
  color: #ffffff;
}

/* App Body & Sidebar */
.app-body {
  display: grid;
  grid-template-columns: 210px 1fr;
  height: 520px;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  border-right: 1px solid #1a263c;
  background: #080d18;
}

.side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 20px 20px 20px;
}

.side-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #ffffff;
  padding: 2px;
}

.side-toggles {
  display: flex;
  gap: 5px;
}

.side-btn-lang, .side-btn-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid #1a263c;
  border-radius: 12px;
  background: #0b111e;
  color: #71829e;
  font-size: 10px;
  cursor: pointer;
}

.side-btn-theme {
  font-size: 12px;
}

.side-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: auto;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 12px;
  padding: 12px 16px;
  border-radius: 9px;
  color: #71829e;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.side-icon {
  width: 18px;
  height: 18px;
  color: #71829e;
}

.side-item:hover {
  background: rgba(255, 255, 255, 0.02);
  color: #ffffff;
}

.side-item:hover .side-icon {
  color: #ffffff;
}

.side-item.active {
  background: #243755;
  color: #5b84fa;
}

.side-item.active .side-icon {
  color: #5b84fa;
  stroke: #5b84fa;
}

/* Status & Action Button in Sidebar */
.side-bottom-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 15px 20px 10px;
  color: #71829e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #71829e;
}

.side-action-btn {
  margin: 0 20px;
  padding: 12px;
  border-radius: 8px;
  background: #5b84fa;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(91, 132, 250, 0.25);
  transition: background 0.2s;
}

.side-action-btn:hover {
  background: #4a6ee0;
}

.app-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.content-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.content-desc {
  margin: 0;
  font-size: 13px;
  color: #71829e;
  line-height: 1.6;
}

.mock-panel {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.panel-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #71829e;
  text-transform: uppercase;
}

.panel-label.spacing-top {
  margin-top: 20px;
}

.mock-app-list {
  display: flex;
  flex-direction: column;
  border: 1px solid #1a263c;
  border-radius: 8px;
  background: #0b111e;
  overflow: hidden;
}

.mock-app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid #1a263c;
}

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

.app-row-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.app-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.icon-codex {
  background: #1e293b;
  color: #38bdf8;
}

.icon-cursor {
  background: #000000;
  color: #ffffff;
}

.icon-antigravity {
  background: #111a2e;
  color: #38bdf8;
}

.icon-vscode {
  background: #0f172a;
  color: #007acc;
}

.icon-vs {
  background: #1e1e1e;
  color: #ae81ff;
}

.app-row-name {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.app-row-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.app-row-status {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.status-running {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.status-not-running {
  background: rgba(113, 130, 158, 0.1);
  color: #71829e;
}

/* Toggle Switch Styling */
.app-row-toggle {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: #1d283c;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.app-row-toggle span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}

/* Custom Text Input */
.mock-custom-input {
  padding: 10px 12px;
  border: 1px solid #1a263c;
  border-radius: 8px;
  background: #0b111e;
  color: #71829e;
  font-size: 13px;
}
.floating-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 16px 50px rgba(15, 30, 32, .14); backdrop-filter: blur(18px); }
.floating-card div { display: flex; flex-direction: column; }
.floating-card b { font-size: 11px; }
.floating-card small { color: var(--muted); font-size: 8px; }
.floating-protocol { right: -8px; top: 38px; }
.floating-scope { left: -10px; bottom: 58px; flex-direction: column; align-items: flex-start; gap: 0; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px var(--accent-wash); }
.trust-strip { display: flex; justify-content: center; gap: 55px; padding: 26px 40px; border-block: 1px solid var(--line); color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.trust-strip div { display: flex; gap: 42px; color: var(--text); }
.section, .download-section, .support-section { max-width: 1240px; margin: 0 auto; padding: 120px 40px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 48px; }
.section-heading h2, .compliance-copy h2, .download-section h2 { margin-bottom: 0; font-size: clamp(36px, 4vw, 54px); line-height: 1.08; letter-spacing: -.045em; }
.section-heading p { max-width: 450px; margin-bottom: 0; color: var(--muted); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}

.feature-number {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--accent-wash);
  color: var(--accent-dark);
  font-size: 20px;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: -.02em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
/* --- Modal Overlay & Dialog --- */
.modal-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 16, 17, 0.65);
  backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-box {
  width: 90%;
  max-width: 680px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text);
  font-family: inherit;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.modal-close-btn:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.modal-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.modal-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px;
  background: var(--surface-soft);
  border-radius: 16px;
  border: 1px solid var(--line);
}

.modal-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}

.modal-list b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent-dark);
  font-size: 11px;
}

.modal-list span:nth-child(n+3) b {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.modal-body .modal-note {
  font-size: 12px;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  color: var(--muted);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@media (max-width: 600px) {
  .modal-box {
    width: 95%;
  }
  .modal-header {
    padding: 18px 20px;
  }
  .modal-body {
    padding: 20px;
    gap: 18px;
  }
  .modal-list {
    grid-template-columns: 1fr;
    padding: 14px;
  }
}
footer { display: flex; justify-content: space-between; align-items: center; gap: 30px; max-width: 1240px; margin: 0 auto; padding: 36px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer .brand { color: var(--text); }
footer div { display: flex; gap: 18px; }

@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .eyebrow, .hero-actions, .hero-points, .release-meta { justify-content: center; }
  .product-stage { width: min(720px, 100%); margin: 0 auto; }
  .trust-strip { flex-direction: column; align-items: center; gap: 14px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .site-header { min-height: 66px; padding: 0 16px; }
  .brand span { display: none; }
  .header-actions .button-small { display: none; }
  .hero { min-height: auto; padding: 60px 20px 50px; }
  h1 { font-size: 42px; line-height: 1.08; }
  .hero-copy > p { font-size: 16px; }
  .hero-points { gap: 8px; margin-top: 18px; }
  .hero-points span { min-height: 32px; padding: 0 10px; font-size: 12px; }
  .hero-actions { flex-direction: column; }
  .product-stage { min-height: 470px; }
  .app-window { top: 40px; }
  .app-body { grid-template-columns: 90px 1fr; height: 380px; }
  .app-sidebar { padding: 10px 0; }
  .side-top { margin: 0 8px 12px 8px; }
  .side-logo { width: 20px; height: 20px; }
  .side-toggles { display: none; }
  .side-item { margin: 0 4px; padding: 8px; gap: 6px; font-size: 8px; }
  .side-icon { width: 12px; height: 12px; }
  .side-bottom-status { margin: 10px 4px 6px; font-size: 8px; gap: 5px; }
  .status-dot { width: 6px; height: 6px; }
  .side-action-btn { margin: 0 8px; padding: 6px; font-size: 8px; border-radius: 4px; }
  .app-content { padding: 15px; gap: 10px; }
  .content-title { font-size: 16px; }
  .content-desc { font-size: 10px; }
  .mock-panel { gap: 10px; }
  .panel-label { font-size: 9px; }
  .panel-label.spacing-top { margin-top: 10px; }
  .mock-app-row { padding: 8px 10px; }
  .app-row-icon { width: 18px; height: 18px; }
  .app-row-icon svg { width: 10px; height: 10px; }
  .app-row-name { font-size: 11px; }
  .app-row-status { padding: 2px 4px; font-size: 9px; }
  .app-row-toggle { width: 26px; height: 14px; border-radius: 7px; }
  .app-row-toggle span { width: 10px; height: 10px; top: 2px; left: 2px; }
  .mock-custom-input { padding: 8px; font-size: 10px; }
  .floating-protocol { right: 0; top: 5px; }
  .floating-scope { display: none; }
  .trust-strip div { flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
  .section, .download-section, .support-section { padding: 80px 20px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  footer { align-items: flex-start; padding: 28px 20px; }
  footer p { display: none; }
}

/* Supported Apps Section Styling */
#supported-apps {
  padding-top: 80px;
  padding-bottom: 80px;
}

.search-container {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 40px;
  width: 100%;
  max-width: 480px;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

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

#appSearchInput {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

#appSearchInput:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-solid);
  box-shadow: 0 0 0 4px var(--accent-wash), 0 8px 24px rgba(0, 0, 0, 0.04);
}

#appSearchInput:focus + .search-icon {
  color: var(--accent-dark);
}

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

.app-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 12px 30px var(--accent-wash), 0 4px 12px rgba(0, 0, 0, 0.02);
}

.app-card-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 8px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  transition: transform 0.2s;
}

.app-card:hover .app-card-icon-wrapper {
  transform: scale(1.05);
  background: var(--surface-solid);
}

.app-card-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.app-card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex-grow: 1;
}

.app-card-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-card-execs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  min-width: 0;
}

.app-card-exec-label {
  flex-shrink: 0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--muted);
  opacity: 0.8;
}

.app-card-exec-code {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: var(--surface-soft);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--line);
  color: var(--accent-dark);
}

.app-card:hover .app-card-exec-code {
  background: var(--surface-solid);
  border-color: var(--accent);
}

.no-apps-message, .apps-loading, .apps-error {
  font-size: 15px;
  color: var(--muted);
  text-align: center;
  padding: 60px 0;
  grid-column: 1 / -1;
  background: var(--surface);
  border-radius: 18px;
  border: 1px dashed var(--line);
}

@media (max-width: 700px) {
  #supported-apps {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .search-container {
    max-width: 100%;
    margin-bottom: 24px;
  }
  #appSearchInput {
    height: 48px;
    font-size: 14px;
  }
  .apps-grid {
    gap: 16px;
  }
  .app-card {
    padding: 16px;
    gap: 12px;
  }
  .app-card-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    padding: 6px;
  }
  .app-card-name {
    font-size: 15px;
  }
}

/* Features Modal Styling */
.modal-box-large {
  max-width: 900px;
  width: 95%;
}

.features-modal-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 12px;
}

.features-modal-intro .section-kicker {
  justify-content: center;
  margin-bottom: 12px;
}

.features-modal-intro p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.features-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}

.feature-card-modal {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card-modal:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  transform: translateY(-2px);
  background: var(--surface-solid);
  box-shadow: 0 8px 24px var(--accent-wash);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.feature-card-header .feature-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-wash);
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: bold;
}

.feature-card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.feature-card-header .feature-number {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.6;
}

.feature-card-modal p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .features-modal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-card-modal {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
