/* Component Design System & Rich Interactive Aesthetics */

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-text);
  box-shadow: 0 2px 4px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-main);
  background-color: var(--bg-subtle);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.btn-xs {
  padding: 0.25rem 0.6rem;
  font-size: 0.775rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Badges & Status Dots
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-warning {
  background-color: var(--warning-light);
  color: var(--warning);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.badge-success {
  background-color: var(--success-light);
  color: var(--success);
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-outline {
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  background: transparent;
}

.badge-subtle {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.65rem;
  padding: 0.2rem 0.45rem;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* ==========================================================================
   Hero Section & Dual-Track Switcher
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 0 3rem 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-light);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.35rem, 5vw, 3.75rem);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-main) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Dual-Track Segment Control */
.track-switcher-wrapper {
  margin: 1.75rem 0;
}

.track-switcher {
  display: inline-flex;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}

.track-btn {
  padding: 0.45rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.track-btn.active {
  background-color: var(--bg-card);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
  min-height: 60px;
  transition: opacity 0.2s ease;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  font-family: var(--font-mono);
}

.metric-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Three.js 3D Visualizer Container */
.three-canvas-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 540px;
  background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 70%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

#threeCityCanvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
  cursor: grab;
}

#threeCityCanvas:active {
  cursor: grabbing;
}

.canvas-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.15);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: 0.015em;
  z-index: 5;
  user-select: none;
}

[data-theme="dark"] .canvas-hint {
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

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

.section-subtext {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Pillars & Architecture Grid
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--accent);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
  letter-spacing: -0.015em;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-code-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  background-color: var(--bg-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

/* ==========================================================================
   Accounting & Double-Entry Showcase Component
   ========================================================================== */
.accounting-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.gl-table {
  width: 100%;
  font-size: 0.925rem;
}

.gl-table th {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  text-align: left;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.gl-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.gl-table tr:hover td {
  background-color: var(--bg-subtle);
}

.debit-val {
  color: var(--fin-debit);
  font-family: var(--font-mono);
  font-weight: 600;
}

.credit-val {
  color: var(--fin-credit);
  font-family: var(--font-mono);
  font-weight: 600;
}

.balanced-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background-color: var(--bg-subtle);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ==========================================================================
   Interactive Double-Entry Ledger Calculator
   ========================================================================== */
.ledger-calc-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  margin-top: 2.5rem;
}

.calc-controls {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 680px) {
  .calc-controls {
    grid-template-columns: 1fr;
  }
}

.calc-input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.calc-select, .calc-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.calc-select:focus, .calc-input:focus {
  border-color: var(--border-focus);
}

/* ==========================================================================
   FAQ Accordion Section
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.35rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 1.5rem 1.35rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.faq-answer p:not(:last-child) {
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   Comparison Table Matrix
   ========================================================================== */
.comparison-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comp-table th, .comp-table td {
  padding: 1.15rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comp-table th {
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.comp-table th.col-highlight {
  background-color: var(--primary-light);
  color: var(--accent);
  border-left: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}

.comp-table td.col-highlight {
  background-color: rgba(29, 78, 216, 0.03);
  border-left: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  font-weight: 600;
}

[data-theme="dark"] .comp-table td.col-highlight {
  background-color: rgba(59, 130, 246, 0.05);
}

.check-yes {
  color: var(--success);
  font-weight: bold;
}

.check-no {
  color: var(--danger);
  font-weight: bold;
}

/* ==========================================================================
   Terminal Emulator & Quickstart Tabs
   ========================================================================== */
.terminal-block {
  background-color: #0b0f19;
  border: 1px solid #1f2937;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.terminal-header {
  background-color: #111827;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1f2937;
}

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

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

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

.terminal-title {
  color: #9ca3af;
  font-family: var(--font-mono);
  font-size: 0.775rem;
}

.terminal-tabs {
  display: flex;
  background-color: #030712;
  border-bottom: 1px solid #1f2937;
  overflow-x: auto;
}

.terminal-tab {
  padding: 0.65rem 1.25rem;
  color: #9ca3af;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.terminal-tab:hover {
  color: #f9fafb;
}

.terminal-tab.active {
  color: #60a5fa;
  border-bottom-color: #3b82f6;
  background-color: #0b0f19;
}

.terminal-body {
  padding: 1.5rem;
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.terminal-panel {
  display: none;
}

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

.terminal-code {
  color: #e5e7eb;
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-comment {
  color: #6b7280;
}

.terminal-cmd {
  color: #93c5fd;
  font-weight: 600;
}

.copy-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: #1f2937;
  color: #d1d5db;
  border: 1px solid #374151;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  transition: all 0.15s ease;
}

.copy-btn:hover {
  background-color: #374151;
  color: #ffffff;
}

/* ==========================================================================
   Newsletter & Signup Form (Placeholder Closed State)
   ========================================================================== */
.signup-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 640px;
  margin: 3rem auto 0 auto;
  box-shadow: var(--shadow-md);
}

.signup-form {
  margin-top: 1.5rem;
}

.input-group {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .input-group {
    flex-direction: column;
  }
}

.input-email {
  flex: 1;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-app);
  color: var(--text-main);
  outline: none;
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}

.input-email:focus {
  border-color: var(--border-focus);
}

.form-feedback {
  margin-top: 1rem;
}

.form-feedback.hidden {
  display: none;
}

.alert {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
}

.alert-info {
  background-color: var(--info-light);
  color: var(--info);
  border: 1px solid rgba(2, 132, 199, 0.3);
}

/* ==========================================================================
   Modal Dialog
   ========================================================================== */
.modal-dialog {
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  padding: 0;
  max-width: 480px;
  width: 90%;
  margin: auto;
  box-shadow: var(--shadow-lg);
}

.modal-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}

.modal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: var(--text-main);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.modal-close-btn {
  font-size: 1.5rem;
  color: var(--text-muted);
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-body p {
  margin-bottom: 0.75rem;
}

.quick-terminal-preview {
  background-color: #0b0f19;
  color: #93c5fd;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-top: 1rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ==========================================================================
   Error Page Layout
   ========================================================================== */
.error-page {
  padding: 6rem 0;
  text-align: center;
}

.error-card {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  box-shadow: var(--shadow-md);
}

.error-code {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 900;
  font-family: var(--font-mono);
  letter-spacing: -0.05em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.error-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #111827;
  color: #f9fafb;
  border: 1px solid #374151;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

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

/* ==========================================================================
   Live Application Showcase Window & Lightbox
   ========================================================================== */
.app-window {
  background-color: #0b0f19;
  border: 1px solid #1f2937;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 35px rgba(29, 78, 216, 0.15);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.app-window:hover {
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8), 0 0 45px rgba(59, 130, 246, 0.25);
}

.app-window-bar {
  background-color: #111827;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1f2937;
  gap: 1rem;
}

.app-window-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.app-window-url {
  background-color: #030712;
  border: 1px solid #1f2937;
  border-radius: var(--radius-full);
  padding: 0.3rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #9ca3af;
  max-width: 480px;
  width: 100%;
  justify-content: center;
}

.app-window-url svg {
  color: #10b981;
  flex-shrink: 0;
}

.app-window-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .app-window-bar {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }
  .app-window-meta {
    display: none;
  }
  .app-window-url {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.app-window-body {
  position: relative;
  background-color: #030712;
  cursor: pointer;
  overflow: hidden;
  display: block;
}

.app-window-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-window:hover .app-window-img {
  transform: scale(1.008);
}

.app-window-hint {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f9fafb;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-window:hover .app-window-hint {
  opacity: 1;
  transform: translateY(-2px);
}

/* Callouts Grid below the App Window */
.app-callouts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}

@media (max-width: 1024px) {
  .app-callouts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .app-callouts-grid {
    grid-template-columns: 1fr;
  }
  .app-window-meta {
    display: none;
  }
}

.app-callout-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.app-callout-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.app-callout-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.app-callout-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-callout-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.app-callout-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Spotlight Card in Features Page */
.feature-spotlight-card {
  grid-column: 1 / -1;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.feature-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .feature-spotlight-grid {
    grid-template-columns: 1fr;
  }
}

/* Modal Lightbox for Native Screenshot Inspection */
.lightbox-dialog {
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  width: 95vw;
  max-width: 1400px;
  max-height: 95vh;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.lightbox-dialog::backdrop {
  background-color: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-content {
  background-color: #0b0f19;
  border: 1px solid #1f2937;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background-color: #111827;
  border-bottom: 1px solid #1f2937;
  color: #f9fafb;
}

.lightbox-header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lightbox-body {
  overflow: auto;
  max-height: calc(90vh - 55px);
  background-color: #030712;
}

.lightbox-body img {
  width: 100%;
  height: auto;
  display: block;
}

