/* ==========================================================================
   OpenAppsAI — Vibrant Google Material 3 Expressive Landing Page
   Multi-hue expressive palettes, frosted tonal cards, Light & Dark themes
   ========================================================================== */

:root,
[data-theme="light"] {
  --surface: #F6F5FF;
  --surface-card: rgba(255, 255, 255, 0.78);
  --surface-card-strong: rgba(255, 255, 255, 0.9);
  --surface-subtle: rgba(255, 255, 255, 0.56);
  --on-surface: #141626;
  --on-surface-variant: #4A4E69;
  --outline: rgba(98, 108, 152, 0.22);
  --glass-border: rgba(255, 255, 255, 0.88);
  --glass-specular: inset 0 1.5px 0 rgba(255, 255, 255, 0.94);

  /* Vibrant Expressive Accents */
  --indigo: #434CE6;
  --indigo-2: #7C3AED;
  --indigo-soft: #E5E7FF;
  --indigo-fg: #1F2378;

  --teal: #009B8D;
  --teal-2: #06B6D4;
  --teal-soft: #CCF7F1;
  --teal-fg: #004640;

  --coral: #E8436A;
  --coral-2: #F59E0B;
  --coral-soft: #FFE4EA;
  --coral-fg: #6E1028;

  --sky: #0284C7;
  --sky-2: #38BDF8;
  --sky-soft: #E0F2FE;
  --sky-fg: #075985;

  --emerald: #059669;
  --emerald-2: #0EA5E9;
  --emerald-soft: #D1FAE5;
  --emerald-fg: #065F46;

  --violet: #6D28D9;
  --violet-2: #2563EB;
  --violet-soft: #EDE9FE;
  --violet-fg: #4C1D95;

  --shadow-sm: 0 4px 16px rgba(45, 48, 95, 0.07);
  --shadow-md: 0 12px 34px rgba(45, 48, 95, 0.11), 0 3px 10px rgba(45, 48, 95, 0.05);
  --shadow-lg: 0 20px 50px rgba(45, 48, 95, 0.16), 0 6px 18px rgba(45, 48, 95, 0.08);

  --blob-indigo: rgba(99, 102, 241, 0.34);
  --blob-teal: rgba(20, 184, 166, 0.30);
  --blob-coral: rgba(244, 63, 94, 0.25);
  --blob-amber: rgba(251, 191, 36, 0.26);

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  --surface: #0C0F1D;
  --surface-card: rgba(23, 27, 48, 0.72);
  --surface-card-strong: rgba(28, 34, 60, 0.86);
  --surface-subtle: rgba(26, 31, 54, 0.56);
  --on-surface: #F1F3FC;
  --on-surface-variant: #B3B9D4;
  --outline: rgba(158, 174, 238, 0.2);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-specular: inset 0 1px 0 rgba(255, 255, 255, 0.16);

  --indigo: #8A95FF;
  --indigo-2: #A78BFA;
  --indigo-soft: rgba(79, 70, 229, 0.28);
  --indigo-fg: #DCE0FF;

  --teal: #34E0CF;
  --teal-2: #38BDF8;
  --teal-soft: rgba(6, 182, 212, 0.24);
  --teal-fg: #C5FCF6;

  --coral: #FF7A9C;
  --coral-2: #FBBF24;
  --coral-soft: rgba(244, 63, 94, 0.26);
  --coral-fg: #FFD8E2;

  --sky: #38BDF8;
  --sky-2: #22D3EE;
  --sky-soft: rgba(2, 132, 199, 0.26);
  --sky-fg: #BAE6FD;

  --emerald: #34D399;
  --emerald-2: #38BDF8;
  --emerald-soft: rgba(16, 185, 129, 0.26);
  --emerald-fg: #A7F3D0;

  --violet: #A78BFA;
  --violet-2: #60A5FA;
  --violet-soft: rgba(139, 92, 246, 0.28);
  --violet-fg: #DDD6FE;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 22px 56px rgba(0, 0, 0, 0.58);

  --blob-indigo: rgba(79, 70, 229, 0.32);
  --blob-teal: rgba(6, 182, 212, 0.25);
  --blob-coral: rgba(244, 63, 94, 0.22);
  --blob-amber: rgba(245, 158, 11, 0.18);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--surface);
  color: var(--on-surface);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.ms-icon {
  font-family: "Material Symbols Rounded", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

:focus-visible { outline: 2.5px solid var(--indigo); outline-offset: 2px; }

/* ==========================================================================
   Vibrant Multi-Hue Ambient Blobs
   ========================================================================== */
.vibrant-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(92px);
  will-change: transform;
  animation: blobDrift 20s ease-in-out infinite alternate;
}

.blob-indigo { width: min(56vw, 620px); height: min(56vw, 620px); top: -18%; left: -12%; background: var(--blob-indigo); }
.blob-teal   { width: min(50vw, 560px); height: min(50vw, 560px); top: 4%; right: -12%; background: var(--blob-teal); animation-delay: -5s; animation-duration: 24s; }
.blob-coral  { width: min(46vw, 500px); height: min(46vw, 500px); bottom: -14%; left: 16%; background: var(--blob-coral); animation-delay: -10s; animation-duration: 22s; }
.blob-amber  { width: min(40vw, 440px); height: min(40vw, 440px); bottom: 10%; right: 8%; background: var(--blob-amber); animation-delay: -15s; animation-duration: 26s; }

@keyframes blobDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(26px, 22px, 0) scale(1.07); }
  100% { transform: translate3d(-24px, 34px, 0) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}

/* ==========================================================================
   Floating Material 3 Pill Navigation
   ========================================================================== */
.top-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 18px 0;
}

.top-nav {
  max-width: 1160px;
  margin: 0 auto;
  padding: 8px 12px 8px 14px;
  border-radius: 999px;
  background: var(--surface-card-strong);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-specular), var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  padding: 2px 6px 2px 2px;
  border-radius: 999px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 52%, #F43F5E 100%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 8px;
  box-shadow: 0 5px 14px rgba(79, 70, 229, 0.34);
  flex-shrink: 0;
}

.logo-dot { background: #FFFFFF; display: block; }
.d1, .d4 { border-radius: 3px; }
.d2, .d3 { border-radius: 50%; opacity: 0.82; }

.brand-stack { display: flex; flex-direction: column; line-height: 1.08; }
.brand-name { font-size: 1.04rem; font-weight: 800; letter-spacing: -0.025em; }
.brand-host { font-size: 0.69rem; font-weight: 700; color: var(--on-surface-variant); }

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-pill {
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--on-surface-variant);
  font-size: 0.86rem;
  font-weight: 700;
  transition: background-color 0.18s, color 0.18s;
}

.nav-pill:hover {
  background: color-mix(in srgb, var(--indigo) 10%, transparent);
  color: var(--on-surface);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.m3-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--on-surface-variant);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, transform 0.15s;
}

.m3-icon-btn:hover {
  background: color-mix(in srgb, var(--on-surface) 8%, transparent);
  color: var(--on-surface);
}

.m3-filled-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(135deg, #434CE6, #7C3AED);
  color: #FFFFFF;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(67, 76, 230, 0.34);
  transition: transform 0.18s var(--spring), filter 0.18s, box-shadow 0.2s;
}

.m3-filled-btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1.5px);
  box-shadow: 0 10px 24px rgba(67, 76, 230, 0.44);
}

.m3-filled-btn .ms-icon { font-size: 17px; }

/* ==========================================================================
   Main Container & Vibrant Hero
   ========================================================================== */
.page-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.hero-section {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 54px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--surface-card-strong);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-specular), var(--shadow-sm);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--on-surface);
  margin-bottom: 18px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.24);
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 5.4vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.hero-gradient-text {
  background: linear-gradient(100deg, #434CE6 0%, #00A699 48%, #F0447C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="dark"] .hero-gradient-text {
  background: linear-gradient(100deg, #98A5FF 0%, #45F0DF 50%, #FF82AB 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  margin: 0 auto 28px;
  max-width: 630px;
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  line-height: 1.6;
  color: var(--on-surface-variant);
}

/* Quick Launch Dock */
.hero-quick-dock {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-specular), var(--shadow-sm);
  transition: transform 0.2s var(--spring), box-shadow 0.2s, filter 0.2s;
}

.quick-pill:hover {
  transform: translateY(-2.5px);
  box-shadow: var(--glass-specular), var(--shadow-md);
}

.quick-pill kbd {
  padding: 2px 7px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.34);
}

.qp-indigo  { background: var(--indigo-soft); color: var(--indigo-fg); }
.qp-teal    { background: var(--teal-soft); color: var(--teal-fg); }
.qp-coral   { background: var(--coral-soft); color: var(--coral-fg); }
.qp-sky     { background: var(--sky-soft); color: var(--sky-fg); }
.qp-emerald { background: var(--emerald-soft); color: var(--emerald-fg); }
.qp-violet  { background: var(--violet-soft); color: var(--violet-fg); }

/* ==========================================================================
   Apps Showcase Grid
   ========================================================================== */
.apps-section { margin-bottom: 52px; }

.section-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-sub {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: var(--on-surface-variant);
}

.filter-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface-card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-specular), var(--shadow-sm);
}

.filter-tab {
  border: none;
  border-radius: 999px;
  padding: 8px 15px;
  background: transparent;
  color: var(--on-surface-variant);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-tab:hover { color: var(--on-surface); }

.filter-tab.active {
  background: linear-gradient(135deg, #434CE6, #00A699);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(67, 76, 230, 0.28);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Expressive M3 App Card */
.app-card {
  display: flex;
  flex-direction: column;
  border-radius: 32px;
  background: var(--surface-card);
  backdrop-filter: blur(26px) saturate(185%);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-specular), var(--shadow-md);
  overflow: hidden;
  transition: transform 0.26s var(--spring), box-shadow 0.26s var(--ease), opacity 0.22s;
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-specular), var(--shadow-lg);
}

.app-card.card-hidden {
  display: none;
}

/* Vibrant Gradient Mini-Preview Header */
.card-preview {
  padding: 20px;
  min-height: 196px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.card-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.26), transparent 55%);
  pointer-events: none;
}

.preview-indigo  { background: linear-gradient(135deg, #4338CA 0%, #6D28D9 55%, #0EA5E9 100%); }
.preview-teal    { background: linear-gradient(135deg, #047857 0%, #0D9488 55%, #06B6D4 100%); }
.preview-coral   { background: linear-gradient(135deg, #E11D48 0%, #F97316 60%, #F59E0B 100%); }
.preview-sky     { background: linear-gradient(135deg, #0284C7 0%, #2563EB 54%, #06B6D4 100%); }
.preview-emerald { background: linear-gradient(135deg, #059669 0%, #0284C7 58%, #4F46E5 100%); }
.preview-violet  { background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 55%, #2563EB 100%); }

.preview-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 800;
}

.preview-chip .ms-icon { font-size: 15px; }

.preview-score,
.preview-pill-ok,
.preview-pill-save {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1A1C2E;
  font-size: 0.72rem;
  font-weight: 800;
}

/* DeepThink Mini Preview */
.preview-question {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 10px 0 8px;
  position: relative;
  z-index: 1;
}

.preview-answer-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.preview-answer-val { font-size: 0.84rem; font-weight: 800; }
.preview-badge-master {
  padding: 2px 8px;
  border-radius: 999px;
  background: #FDE047;
  color: #3B2800;
  font-size: 0.66rem;
  font-weight: 800;
}

.preview-meter {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  position: relative;
  z-index: 1;
}

.pm-seg { height: 7px; border-radius: 999px; }
.lit-1 { background: #FDE047; }
.lit-2 { background: #7DD3FC; }
.lit-3 { background: #5EEAD4; }
.lit-4 { background: #FFFFFF; }

/* OpenSign Mini Preview */
.preview-doc-mock {
  margin-top: 12px;
  padding: 13px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}

.doc-lines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 11px; }
.dl { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.45); display: block; }
.dl-lg { width: 88%; }
.dl-md { width: 68%; }
.dl-sm { width: 46%; }

.sig-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #064E3B;
}

.sig-script { font-family: "Caveat", cursive; font-size: 1.45rem; font-weight: 700; line-height: 1; }
.sig-check { color: #059669; font-variation-settings: "FILL" 1; }

/* Mortgage Mini Preview */
.preview-mortgage-mock {
  margin-top: 12px;
  padding: 13px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.mini-donut { width: 68px; height: 68px; flex-shrink: 0; }
.mortgage-nums { display: flex; flex-direction: column; gap: 2px; }
.m-label { font-size: 0.7rem; font-weight: 700; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.04em; }
.m-val { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.m-sub { font-size: 0.75rem; font-weight: 700; opacity: 0.9; }

/* PrismCalc Mini Preview */
.preview-calc-mock {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.calc-tier-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.calc-tier-pills span {
  padding: 3px 4px;
  border-radius: 999px;
  opacity: 0.85;
}

.calc-tier-pills span.is-on {
  background: rgba(255, 255, 255, 0.95);
  color: #075985;
  opacity: 1;
}

.calc-screen-mock {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #0C223A;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.calc-expr-mock { font-size: 0.84rem; font-weight: 700; opacity: 0.8; }
.calc-res-mock { font-size: 1.32rem; font-weight: 800; color: #0284C7; }

/* Meridian Mini Preview */
.preview-clock-mock {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.clock-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.cp-tag {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.69rem;
  font-weight: 800;
}

.cp-tag.is-ref {
  background: rgba(255, 255, 255, 0.94);
  color: #065F46;
}

.clock-overlap-mock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #064E3B;
  font-size: 0.74rem;
  font-weight: 800;
}

.co-bars {
  display: inline-flex;
  gap: 4px;
}

.co-b {
  width: 14px;
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.16);
  display: block;
}

.co-b.lit {
  background: #10B981;
}

/* OpenPad Mini Preview */
.preview-pad-mock {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.pad-tabs-mock {
  display: flex;
  gap: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.67rem;
  font-weight: 700;
}

.pad-tabs-mock span {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  opacity: 0.8;
}

.pad-tabs-mock span.is-on {
  background: rgba(255, 255, 255, 0.94);
  color: #1E1B4B;
  opacity: 1;
}

.pad-code-mock {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.74rem;
  line-height: 1.5;
  color: #E2E8F0;
}

.pc-kw  { color: #C586C0; font-weight: 700; }
.pc-fn  { color: #DCDCAA; font-weight: 700; }
.pc-str { color: #CE9178; }

/* Card Body */
.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.app-icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.app-icon .ms-icon { font-size: 22px; }
.icon-indigo  { background: var(--indigo-soft); color: var(--indigo-fg); }
.icon-teal    { background: var(--teal-soft); color: var(--teal-fg); }
.icon-coral   { background: var(--coral-soft); color: var(--coral-fg); }
.icon-sky     { background: var(--sky-soft); color: var(--sky-fg); }
.icon-emerald { background: var(--emerald-soft); color: var(--emerald-fg); }
.icon-violet  { background: var(--violet-soft); color: var(--violet-fg); }

.card-title-wrap { min-width: 0; flex: 1; }
.app-name { margin: 0; font-size: 1.18rem; font-weight: 800; letter-spacing: -0.02em; }
.app-domain { font-size: 0.75rem; font-weight: 700; color: var(--on-surface-variant); }

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
  font-size: 0.71rem;
  font-weight: 800;
  flex-shrink: 0;
}

[data-theme="dark"] .live-tag { color: #34D399; }

.live-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.app-desc {
  margin: 0 0 16px;
  font-size: 0.91rem;
  line-height: 1.56;
  color: var(--on-surface-variant);
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.f-chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--outline);
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--on-surface-variant);
}

.card-footer { margin-top: auto; }

.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border-radius: 999px;
  text-decoration: none;
  color: #FFFFFF;
  font-size: 0.93rem;
  font-weight: 800;
  transition: transform 0.18s var(--spring), filter 0.18s, box-shadow 0.2s;
}

.card-cta:hover { transform: translateY(-1.5px); filter: brightness(1.06); }
.card-cta .ms-icon { font-size: 18px; }

.cta-indigo  { background: linear-gradient(135deg, #434CE6, #7C3AED); box-shadow: 0 8px 20px rgba(67, 76, 230, 0.30); }
.cta-teal    { background: linear-gradient(135deg, #009B8D, #0284C7); box-shadow: 0 8px 20px rgba(0, 155, 141, 0.30); }
.cta-coral   { background: linear-gradient(135deg, #E11D48, #F59E0B); box-shadow: 0 8px 20px rgba(225, 29, 72, 0.28); }
.cta-sky     { background: linear-gradient(135deg, #0284C7, #4F46E5); box-shadow: 0 8px 20px rgba(2, 132, 199, 0.30); }
.cta-emerald { background: linear-gradient(135deg, #059669, #0284C7); box-shadow: 0 8px 20px rgba(5, 150, 105, 0.30); }
.cta-violet  { background: linear-gradient(135deg, #4F46E5, #7C3AED); box-shadow: 0 8px 20px rgba(79, 70, 229, 0.30); }

/* ==========================================================================
   Vibrant Pillars Strip & Footer
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pillar-card {
  padding: 24px;
  border-radius: 26px;
  background: var(--surface-card);
  backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-specular), var(--shadow-sm);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.p-indigo .pillar-icon { background: var(--indigo-soft); color: var(--indigo-fg); }
.p-teal   .pillar-icon { background: var(--teal-soft); color: var(--teal-fg); }
.p-coral  .pillar-icon { background: var(--coral-soft); color: var(--coral-fg); }

.pillar-card h3 { margin: 0 0 6px; font-size: 1.04rem; font-weight: 800; }
.pillar-card p { margin: 0; font-size: 0.88rem; line-height: 1.55; color: var(--on-surface-variant); }

.site-footer {
  border-top: 1px solid var(--outline);
  background: var(--surface-subtle);
  backdrop-filter: blur(18px);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-brand { display: flex; flex-direction: column; gap: 2px; }
.footer-brand strong { font-size: 0.98rem; font-weight: 800; }
.footer-brand span { font-size: 0.8rem; color: var(--on-surface-variant); }

.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a {
  text-decoration: none;
  color: var(--on-surface-variant);
  font-size: 0.85rem;
  font-weight: 700;
  transition: color 0.18s;
}
.footer-links a:hover { color: var(--indigo); }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 980px) {
  .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .top-nav-wrap { padding: 10px 12px 0; }
  .nav-links { display: none; }
  .nav-cta span:first-child { display: none; }
  .nav-cta { padding: 0 12px; }
  .page-shell { padding: 28px 14px 56px; }
  .apps-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .section-bar { flex-direction: column; align-items: flex-start; }
  .filter-tabs { border-radius: 20px; }
  .quick-pill kbd { display: none; }
}


/* ==========================================================================
   Unified OpenAppsAI Suite Chrome (Header & Footer)
   ========================================================================== */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

.oa-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 16px 0;
}

.oa-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 6px 22px rgba(32, 42, 88, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

[data-theme="dark"] .oa-nav {
  background: rgba(20, 25, 44, 0.84);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 26px rgba(0, 0, 0, 0.42);
}

.oa-brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.oa-home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  padding: 2px 6px 2px 2px;
  border-radius: 999px;
}

.oa-logo {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 52%, #F43F5E 100%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 7px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.34);
  flex-shrink: 0;
}

.oa-dot { background: #FFFFFF; display: block; }
.oa-dot.d1, .oa-dot.d4 { border-radius: 2.5px; }
.oa-dot.d2, .oa-dot.d3 { border-radius: 50%; opacity: 0.84; }

.oa-brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.oa-brand-title { font-size: 1rem; font-weight: 800; letter-spacing: -0.025em; }
.oa-brand-sub { font-size: 0.68rem; font-weight: 700; opacity: 0.72; }

.oa-suite-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.14);
}

[data-theme="dark"] .oa-suite-pills {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.oa-pill {
  padding: 6px 13px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--on-surface-variant, #4A4E69);
  white-space: nowrap;
  transition: background-color 0.18s, color 0.18s;
}

.oa-pill:hover {
  background: rgba(79, 70, 229, 0.12);
  color: var(--on-surface, #141626);
}

.oa-pill.is-active {
  background: linear-gradient(135deg, #434CE6, #00A699);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(67, 76, 230, 0.28);
}

.oa-actions { display: flex; align-items: center; gap: 6px; }

.oa-footer {
  margin-top: auto;
  border-top: 1px solid rgba(98, 108, 152, 0.2);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

[data-theme="dark"] .oa-footer {
  background: rgba(16, 20, 36, 0.72);
  border-top-color: rgba(255, 255, 255, 0.12);
}

.oa-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
}

.oa-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--on-surface-variant, #4A4E69);
}

.oa-footer-brand strong {
  color: var(--on-surface, #141626);
  font-weight: 800;
}

.oa-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.oa-footer-links a {
  text-decoration: none;
  color: var(--on-surface-variant, #4A4E69);
  font-weight: 700;
  transition: color 0.18s;
}

.oa-footer-links a:hover { color: #434CE6; }
[data-theme="dark"] .oa-footer-links a:hover { color: #98A5FF; }

@media (max-width: 820px) {
  .oa-suite-pills { display: none; }
}

@media (max-width: 600px) {
  .oa-header { padding: 8px 10px 0; }
  .oa-nav { padding: 6px 10px; }
  .oa-brand-sub { display: none; }
  .oa-footer-inner { flex-direction: column; text-align: center; }
  .oa-footer-links { justify-content: center; gap: 12px; }
}
