/* ==========================================================================
   AI APPS PORTFOLIO & WHITELABEL HUB - CLEAN LIGHT DESIGN SYSTEM
   Centered, organized, modern, and authentic.
   ========================================================================== */

:root {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --text-heading: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-subtle: #eff6ff;
  --primary-border: #bfdbfe;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 16px 24px -4px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.2);
  --shadow-modal: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.2s ease-in-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 5rem;
}

.page-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   TOP HEADER
   ========================================================================== */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 3rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-heading);
}

.brand-logo-badge {
  width: 38px;
  height: 38px;
  background: var(--text-heading);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
}

.brand-meta h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-meta span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-header-inquiry {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-heading);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-header-inquiry:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================================================
   CENTERED HERO SECTION
   ========================================================================== */
.hero-centered {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.hero-centered h2 {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-centered h2 span.highlight {
  color: var(--primary);
}

.hero-intro-text {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto 1.8rem auto;
  line-height: 1.7;
}

/* Whitelabel Trust Bar */
.trust-values-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.5rem;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
}

.trust-item span.icon {
  color: #10b981;
}

/* Category Filter Tabs */
.category-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2.5rem 0 2rem 0;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--border-medium);
  color: var(--text-heading);
}

.filter-btn.active {
  background: var(--text-heading);
  color: #ffffff;
  border-color: var(--text-heading);
}

/* ==========================================================================
   CENTERED CARDS STREAM
   ========================================================================== */
.centered-cards-stream {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  align-items: center;
  width: 100%;
}

.app-card {
  width: 100%;
  max-width: 820px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

/* ==========================================================================
   AUTHENTIC APP VISUAL PREVIEW FRAMES (Clean Browser UI Preview)
   ========================================================================== */
.card-browser-frame {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.browser-header-bar {
  height: 38px;
  background: #e2e8f0;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #cbd5e1;
}

.browser-traffic-lights {
  display: flex;
  gap: 6px;
}

.traffic-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.light-red { background: #ef4444; }
.light-yellow { background: #f59e0b; }
.light-green { background: #10b981; }

.browser-url-pill {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  padding: 3px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.browser-status-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
}

.browser-status-tag.preview {
  background: #e0e7ff;
  color: #3730a3;
}

/* Inner App UI Visual Mockup Canvas */
.app-ui-canvas {
  background: #ffffff;
  padding: 1.5rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Custom UI Layouts for Each App */
/* 1. Hubzoo UI */
.ui-hubzoo-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.pipeline-col {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 0.75rem;
}
.pipeline-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.pipeline-card-snippet {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* 2. MaxMotion UI */
.ui-maxmotion-studio {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.studio-engine-bar {
  display: flex;
  gap: 0.5rem;
}
.engine-badge {
  background: #f1f5f9;
  border: 1px solid var(--border-medium);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-heading);
}
.engine-badge.active {
  background: #8b5cf6;
  color: #ffffff;
  border-color: #8b5cf6;
}
.studio-timeline-track {
  background: #0f172a;
  color: #94a3b8;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* 3. MediaBunny UI */
.ui-mediabunny-suite {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.suite-tool-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 0.75rem;
  text-align: center;
}
.suite-tool-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #b45309;
  margin-top: 0.25rem;
}
.suite-tool-desc {
  font-size: 0.68rem;
  color: #78350f;
  margin-top: 0.2rem;
}

/* 4. SubSentry UI */
.ui-subsentry-shield {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}
.shield-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 0.85rem;
}
.shield-box h5 {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0369a1;
  margin-bottom: 0.35rem;
}
.shield-box p {
  font-size: 0.72rem;
  color: #0c4a6e;
}

/* 5. AppSave UI */
.ui-appsave-checkout {
  background: #fdf2f8;
  border: 1px dashed #f472b6;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.checkout-details {
  display: flex;
  flex-direction: column;
}
.checkout-store {
  font-size: 0.82rem;
  font-weight: 800;
  color: #9d174d;
}
.checkout-sub {
  font-size: 0.72rem;
  color: #be185d;
}
.appsave-pill-injected {
  background: #ec4899;
  color: #ffffff;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

/* 6. Upworkz UI */
.ui-upworkz-studio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.proposal-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 0.75rem;
}
.proposal-box h5 {
  font-size: 0.78rem;
  font-weight: 800;
  color: #166534;
  margin-bottom: 0.25rem;
}
.proposal-box p {
  font-size: 0.7rem;
  color: #15803d;
  font-family: var(--font-mono);
}

/* 7. Manus UI */
.ui-manus-agent {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.agent-step-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: #3730a3;
}
.step-check {
  color: #10b981;
  font-weight: 800;
}

/* ==========================================================================
   CARD CONTENT BODY
   ========================================================================== */
.card-content-body {
  padding: 1.85rem 2.25rem 1.75rem 2.25rem;
}

.card-category-meta {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.card-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.card-title-row h3 {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.card-tagline {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-body);
  line-height: 1.4;
  margin-bottom: 0.85rem;
}

.card-description {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* Product Tag Chips (Realistic Capability Tags) */
.card-tags-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  background: var(--bg-subtle);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

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

.tag-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.tag-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 1px;
}

/* ==========================================================================
   THE 3 ACTION LINKS AT THE BOTTOM OF EACH CARD
   ========================================================================== */
.card-actions-footer {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 1fr;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.btn-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-learn-more {
  background: var(--text-heading);
  color: #ffffff;
}

.btn-learn-more:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-tech-stack {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-heading);
}

.btn-tech-stack:hover {
  background: var(--bg-subtle);
  border-color: var(--text-heading);
}

.btn-launch-app {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-body);
}

.btn-launch-app:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-seo-page {
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.btn-seo-page:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Crawlable Static SEO Footer Directory */
.seo-directory-section {
  margin-top: 4rem;
  padding: 2.5rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
}

.seo-directory-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.seo-directory-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.seo-directory-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
}

.seo-directory-links a {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.seo-directory-links a:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.seo-directory-links a strong {
  color: var(--text-heading);
}

/* ==========================================================================
   MODAL DIALOGS (Clean Light Mode)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1.5rem;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-light);
  background: #ffffff;
}

.modal-header-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.modal-header-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
}

.modal-header-title h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
}

.modal-header-title p {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-subtle);
  padding: 0 2rem;
  gap: 1.5rem;
}

.modal-tab {
  background: transparent;
  border: none;
  padding: 0.85rem 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.modal-tab:hover {
  color: var(--text-heading);
}

.modal-tab.active {
  color: var(--primary);
}

.modal-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.modal-pane {
  display: none;
}

.modal-pane.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

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

.pane-headline {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.story-lead-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.story-lead-box .lead-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.85rem;
  line-height: 1.6;
}

.story-lead-box p {
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.detail-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.detail-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.detail-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.detail-card-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
}

.detail-summary {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 0.35rem;
}

.detail-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.operator-pitch-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.operator-lead {
  font-size: 1.05rem;
  font-weight: 700;
  color: #166534;
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.operator-pitch-card p {
  color: #15803d;
  font-size: 0.92rem;
  line-height: 1.6;
}

.licensing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.license-tier-box {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.license-tier-box.popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
  background: #fafcff;
}

.tier-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-heading);
}

.tier-cost {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.35rem 0 1rem 0;
  font-family: var(--font-mono);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.tier-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tier-list li {
  font-size: 0.78rem;
  color: var(--text-body);
  display: flex;
  gap: 0.4rem;
}

.tier-list li::before {
  content: '✓';
  color: #10b981;
  font-weight: 800;
}

.operator-calc-row {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Tech Stack Modal Components */
.tech-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 2rem 0;
}

.tech-chip-badge {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-heading);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.tech-durability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0 1.75rem 0;
}

.durability-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.durability-box h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.durability-box p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.evolution-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.evolution-card h5 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.evolution-card p {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Inquiry Form */
.form-group-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-group-item label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-heading);
}

.form-field {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  background: #ffffff;
  color: var(--text-heading);
}

.form-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

@media (max-width: 860px) {
  .card-actions-footer {
    grid-template-columns: 1fr;
  }
  .card-tags-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .licensing-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid-2col, .tech-durability-grid, .ui-hubzoo-pipeline, .ui-mediabunny-suite {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   AI EXPERT ADVISOR WIDGET (Always Positive, Encouraging & Deeply Trained)
   ========================================================================== */

.advisor-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.45), 0 8px 10px -6px rgba(37, 99, 235, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.advisor-floating-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.55);
}

.advisor-badge-pulse {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advisor-badge-pulse::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

/* Advisor Chat Modal Container */
.advisor-chat-window {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 420px;
  max-width: calc(100vw - 32px);
  height: 600px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.9);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.advisor-chat-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.advisor-chat-header {
  padding: 16px 20px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.advisor-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.advisor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid #bfdbfe;
}

.advisor-title-text h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.advisor-title-text p {
  font-size: 0.78rem;
  color: #10b981;
  font-weight: 600;
  margin: 2px 0 0 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.advisor-title-text p::before {
  content: ;
 display: inline-block;
 width: 6px;
 height: 6px;
 border-radius: 50%;
 background-color: #10b981;
}

.advisor-close-btn {
 background: none;
 border: none;
 font-size: 1.2rem;
 color: #94a3b8;
 cursor: pointer;
 padding: 4px 8px;
 border-radius: 8px;
 transition: all 0.15s ease;
}

.advisor-close-btn:hover {
 color: #0f172a;
 background: #f1f5f9;
}

/* Chat Messages Area */
.advisor-chat-messages {
 flex: 1;
 padding: 18px;
 overflow-y: auto;
 display: flex;
 flex-direction: column;
 gap: 14px;
 background: #f8fafc;
}

.advisor-msg {
 display: flex;
 flex-direction: column;
 max-width: 86%;
 font-size: 0.88rem;
 line-height: 1.5;
 animation: fadeInMsg 0.25s ease-out;
}

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

.advisor-msg.agent {
 align-self: flex-start;
}

.advisor-msg.user {
 align-self: flex-end;
}

.advisor-bubble {
 padding: 12px 16px;
 border-radius: 16px;
 word-wrap: break-word;
}

.advisor-msg.agent .advisor-bubble {
 background: #ffffff;
 color: #1e293b;
 border: 1px solid #e2e8f0;
 border-top-left-radius: 4px;
 box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.advisor-msg.agent .advisor-bubble p {
 margin: 0 0 8px 0;
}

.advisor-msg.agent .advisor-bubble p:last-child {
 margin-bottom: 0;
}

.advisor-msg.user .advisor-bubble {
 background: #2563eb;
 color: #ffffff;
 border-top-right-radius: 4px;
}

.advisor-msg-time {
 font-size: 0.7rem;
 color: #94a3b8;
 margin-top: 4px;
 padding: 0 4px;
}

.advisor-msg.user .advisor-msg-time {
 text-align: right;
}

/* Quick Suggestion Chips */
.advisor-chips-container {
 padding: 10px 14px;
 background: #ffffff;
 border-top: 1px solid #f1f5f9;
 display: flex;
 gap: 8px;
 overflow-x: auto;
 white-space: nowrap;
 scrollbar-width: none;
}

.advisor-chips-container::-webkit-scrollbar {
 display: none;
}

.advisor-chip-btn {
 background: #eff6ff;
 color: #2563eb;
 border: 1px solid #dbeafe;
 border-radius: 9999px;
 padding: 6px 12px;
 font-size: 0.78rem;
 font-weight: 600;
 cursor: pointer;
 transition: all 0.15s ease;
 flex-shrink: 0;
}

.advisor-chip-btn:hover {
 background: #2563eb;
 color: #ffffff;
 border-color: #2563eb;
}

/* Chat Input Bar */
.advisor-chat-input-bar {
 padding: 12px 16px;
 background: #ffffff;
 border-top: 1px solid #e2e8f0;
 display: flex;
 align-items: center;
 gap: 8px;
}

.advisor-input-field {
 flex: 1;
 padding: 10px 14px;
 border: 1px solid #cbd5e1;
 border-radius: 9999px;
 font-size: 0.88rem;
 font-family: inherit;
 outline: none;
 background: #f8fafc;
 transition: border-color 0.15s ease, background 0.15s ease;
}

.advisor-input-field:focus {
 border-color: #2563eb;
 background: #ffffff;
}

.advisor-send-btn {
 width: 38px;
 height: 38px;
 border-radius: 50%;
 background: #2563eb;
 color: #ffffff;
 border: none;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 1rem;
 cursor: pointer;
 transition: all 0.15s ease;
 flex-shrink: 0;
}

.advisor-send-btn:hover {
 background: #1d4ed8;
 transform: scale(1.05);
}

.advisor-action-btn-inline {
 display: inline-block;
 margin-top: 8px;
 padding: 6px 12px;
 background: #10b981;
 color: #ffffff;
 font-weight: 700;
 font-size: 0.78rem;
 border-radius: 6px;
 cursor: pointer;
 text-decoration: none;
}

.advisor-action-btn-inline:hover {
 background: #059669;
}

/* Turnkey Promise Banner (Zero-Tech & Always Included) */
.turnkey-promise-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 1.5px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  max-width: 860px;
  margin: 0 auto 2rem auto;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.08);
  text-align: left;
}

.promise-highlight-badge {
  display: inline-block;
  background: #0284c7;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.promise-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.promise-icon {
  font-size: 1.35rem;
  line-height: 1;
  background: #e0f2fe;
  padding: 6px;
  border-radius: 8px;
}

.promise-item strong {
  display: block;
  font-size: 0.88rem;
  color: #0f172a;
  margin-bottom: 2px;
}

.promise-item p {
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

.promise-addon-footer {
  border-top: 1px dashed #bae6fd;
  padding-top: 0.85rem;
  font-size: 0.82rem;
  color: #0369a1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* Language Selector Switcher */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch-btn {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-heading);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.lang-switch-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
  color: var(--primary);
}


/* ==========================================================================
   TEMPLATES (MALER) TAB & MODAL STYLES (Enquiry Focused)
   ========================================================================== */
.btn-header-templates {
  background: #ffffff;
  border: 1px solid #c7d2fe;
  color: #4338ca;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-header-templates:hover {
  background: #eef2ff;
  border-color: #6366f1;
  color: #312e81;
  transform: translateY(-1px);
}

.filter-btn-templates {
  background: #f5f3ff !important;
  color: #5b21b6 !important;
  border-color: #ddd6fe !important;
  font-weight: 700 !important;
}

.filter-btn-templates:hover {
  background: #ede9fe !important;
  border-color: #8b5cf6 !important;
  color: #4c1d95 !important;
}

.modal-templates-container {
  max-width: 720px !important;
}

.templates-explanation-card {
  background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
  border: 1px solid #dbeafe;
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
}

.templates-badge {
  display: inline-block;
  background: #6366f1;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.tpl-main-headline {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 0.85rem;
  color: var(--text-heading);
}

.tpl-intro-text {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-body);
  margin: 0;
}

.tpl-guarantees-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #dbeafe;
}

.tpl-g-pill {
  background: #ffffff;
  border: 1px solid #c7d2fe;
  color: var(--text-heading);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tpl-g-pill span:first-child {
  color: var(--success);
  font-weight: 800;
}

.tpl-inquire-action-box {
  background: var(--bg-dark);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.tpl-inquire-text h5 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
}

.tpl-inquire-text p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.tpl-inquire-action-box button {
  background: #6366f1 !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

.tpl-inquire-action-box button:hover {
  background: #4f46e5 !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4) !important;
}

@media (max-width: 640px) {
  .tpl-inquire-action-box {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
  .tpl-inquire-action-box button {
    width: 100%;
  }
}


/* ==========================================================================
   FLAGSHIP HOMEPAGE & 4-PILLAR ECOSYSTEM STYLES
   ========================================================================== */
.hero-action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn-hero-primary, .btn-hero-secondary, .btn-hero-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-hero-primary {
  background: #6366f1;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}
.btn-hero-primary:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.btn-hero-secondary {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #334155;
}
.btn-hero-secondary:hover {
  background: #1e293b;
  border-color: #6366f1;
  transform: translateY(-2px);
}

.btn-hero-tertiary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid var(--border-medium);
}
.btn-hero-tertiary:hover {
  background: var(--bg-subtle);
  border-color: var(--text-heading);
  transform: translateY(-2px);
}

.four-pillars-section {
  margin: 1.5rem 0 3.5rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.pillar-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: #6366f1;
}

.pillar-card-featured {
  border-color: rgba(99, 102, 241, 0.4);
  background: linear-gradient(180deg, #ffffff 0%, rgba(99, 102, 241, 0.03) 100%);
}

.pillar-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.pillar-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.pillar-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.pillar-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.pillar-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #6366f1;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: transform 0.15s;
}

.pillar-card:hover .pillar-link {
  transform: translateX(3px);
}

.homepage-articles-section {
  margin-top: 4.5rem;
  background: #0f172a;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  color: #f8fafc;
}

.homepage-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.homepage-article-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.homepage-article-card:hover {
  transform: translateY(-3px);
  border-color: #818cf8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.homepage-article-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.homepage-article-card p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}


/* Language Switching Rules */
html.lang-en .lang-no, body.lang-en .lang-no { display: none !important; }
html.lang-no .lang-en, body.lang-no .lang-en { display: none !important; }

.lang-switch-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
}
.lang-switch-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: #818cf8;
  color: #ffffff;
  transform: translateY(-1px);
}
