/* ============================================================
   PLATFORM PAGE - Frontora AI V2-Pre
   ============================================================ */

.plt-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(16,185,129,0.1);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 20px;
}

.plt-h1 {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--neutral-900);
}

.plt-h1-accent {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.plt-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--neutral-900);
}

.plt-section-sub {
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.55;
  color: var(--neutral-600);
  margin: 0 auto;
  max-width: 620px;
}

.plt-section-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- HERO ---------- */
.plt-hero {
  position: relative;
  padding: clamp(80px, 11vw, 120px) 0 clamp(60px, 8vw, 90px);
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(16,185,129,0.08), transparent 60%),
    var(--neutral-0);
  overflow: hidden;
}

.plt-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.plt-lede {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--neutral-700, #404040);
  margin: 0 0 28px;
  max-width: 540px;
}

.plt-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* === Animated orbit visual === */
.plt-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}

.plt-orbit {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mia core */
.plt-orbit-core {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 16px 40px -8px rgba(16,185,129,0.5);
}

.plt-orbit-core-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: white;
  text-align: center;
}

.plt-orbit-core-label {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.plt-orbit-core-sub {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.plt-orbit-core-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--brand-500);
  opacity: 0.4;
  animation: plt-pulse 2.4s ease-out infinite;
}

@keyframes plt-pulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Orbit rings (rotate around the core) */
.plt-orbit-ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: plt-rotate 30s linear infinite;
}

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

.plt-orbit-ring-2 {
  width: 100%;
  height: 100%;
  animation-direction: reverse;
  animation-duration: 36s;
}

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

/* Orbiting modules (counter-rotate so they stay upright) */
.plt-orbit-mod {
  position: absolute;
  width: 56px;
  height: 56px;
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-600);
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.1);
  pointer-events: auto;
  cursor: default;
  animation: plt-counter-rotate 30s linear infinite;
}

.plt-orbit-ring-2 .plt-orbit-mod {
  animation-direction: reverse;
  animation-duration: 36s;
}

@keyframes plt-counter-rotate {
  to { transform: rotate(-360deg); }
}

.plt-orbit-mod svg { width: 24px; height: 24px; }

/* Position modules around the orbit */
/* Ring 1 - 3 modules at 0deg, 120deg, 240deg */
.plt-orbit-mod-1 { top: 0; left: 50%; transform: translate(-50%, 0); }
.plt-orbit-mod-2 { top: 75%; left: 100%; transform: translate(-50%, -50%); }
.plt-orbit-mod-3 { top: 75%; left: 0; transform: translate(-50%, -50%); }

/* Ring 2 - 3 modules offset by 60deg */
.plt-orbit-mod-4 { top: 25%; left: 100%; transform: translate(-50%, -50%); }
.plt-orbit-mod-5 { top: 100%; left: 50%; transform: translate(-50%, -50%); }
.plt-orbit-mod-6 { top: 25%; left: 0; transform: translate(-50%, -50%); }

/* Connecting lines (subtle, dashed) */
.plt-orbit::before,
.plt-orbit::after {
  content: '';
  position: absolute;
  inset: 25%;
  border: 1px dashed rgba(16,185,129,0.2);
  border-radius: 50%;
}

.plt-orbit::after {
  inset: 10%;
  border-color: rgba(16,185,129,0.12);
}

/* ---------- FLAGSHIP CORE ---------- */
.plt-flagship {
  background: var(--neutral-100, #f5f5f5);
  padding: clamp(60px, 8vw, 100px) 0;
}

.plt-flagship-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 20px;
  padding: clamp(32px, 4vw, 56px);
  box-shadow: 0 4px 20px -8px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.plt-flagship-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(16,185,129,0.06), transparent 60%);
  pointer-events: none;
}

.plt-flagship-content { position: relative; z-index: 1; }

.plt-flagship-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: linear-gradient(135deg, #c4a35a, #92753f);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 16px;
}

.plt-flagship-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--neutral-900);
  letter-spacing: -0.015em;
}

.plt-flagship-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--neutral-700);
  margin: 0 0 24px;
}

.plt-flagship-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.plt-flagship-list li {
  font-size: 14px;
  color: var(--neutral-600);
  padding-left: 22px;
  position: relative;
  line-height: 1.45;
}

.plt-flagship-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 2px;
  background: var(--brand-500);
}

.plt-flagship-list strong {
  color: var(--neutral-900);
  font-weight: 700;
  font-family: var(--font-display);
}

.plt-flagship-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.plt-flagship-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.plt-stat {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.02));
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 14px;
}

.plt-stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 52px);
  font-weight: 800;
  color: var(--brand-600);
  line-height: 1;
  letter-spacing: -0.02em;
}

.plt-stat-num span {
  font-size: 0.5em;
  opacity: 0.7;
}

.plt-stat-label {
  font-size: 13px;
  color: var(--neutral-700);
  margin-top: 6px;
  font-weight: 600;
}

/* ---------- MODULES GRID ---------- */
.plt-modules {
  background: var(--neutral-0);
  padding: clamp(60px, 8vw, 100px) 0;
}

.plt-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.plt-mod-card {
  position: relative;
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.25s ease;
}

.plt-mod-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16,185,129,0.4);
  box-shadow: 0 16px 32px -8px rgba(16,185,129,0.18);
}

.plt-mod-card[data-status="soon"] { opacity: 0.92; }

.plt-mod-status {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}

.plt-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.plt-status-live {
  background: rgba(16,185,129,0.12);
  color: var(--brand-700);
}

.plt-status-live .plt-status-dot {
  background: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
  animation: plt-blink 2s ease-in-out infinite;
}

@keyframes plt-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.plt-status-beta {
  background: rgba(245,158,11,0.12);
  color: #c4a35a;
}

.plt-status-beta .plt-status-dot {
  background: #f59e0b;
}

.plt-status-soon {
  background: rgba(115,115,115,0.12);
  color: var(--neutral-600);
}

.plt-status-soon .plt-status-dot {
  background: var(--neutral-500);
}

.plt-mod-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.plt-mod-icon svg { width: 24px; height: 24px; }

/* Specific module icon colors for variety */
.plt-mod-icon-pipeline { background: linear-gradient(135deg, #c4a35a, #92753f); }
.plt-mod-icon-analytics { background: linear-gradient(135deg, #3b82f6, #1e40af); }
.plt-mod-icon-voicemail { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.plt-mod-icon-reviews { background: linear-gradient(135deg, #c4a35a, #92753f); }
.plt-mod-icon-automation { background: linear-gradient(135deg, #f59e0b, #d97706); }
.plt-mod-icon-crm { background: linear-gradient(135deg, #6b7280, #374151); }
.plt-mod-icon-more { background: linear-gradient(135deg, var(--neutral-700), var(--neutral-900)); }

.plt-mod-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--neutral-900);
}

.plt-mod-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--neutral-600);
  margin: 0 0 16px;
}

.plt-mod-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plt-mod-features li {
  font-size: 13px;
  color: var(--neutral-700);
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}

.plt-mod-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 2px;
  background: var(--brand-500);
}

.plt-mod-more .plt-mod-features li::before { background: var(--neutral-400, #a3a3a3); }

/* ---------- FINAL CTA ---------- */
.plt-final-cta {
  background: var(--neutral-950, #0a0a0a);
  color: white;
  padding: clamp(60px, 8vw, 100px) 0;
}

.plt-final-cta .plt-eyebrow {
  background: rgba(16,185,129,0.18);
  color: var(--brand-500);
}

.plt-final-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.plt-final-h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: white;
}

.plt-final-sub {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
  margin: 0;
  max-width: 540px;
}

.plt-final-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plt-final-cta .btn-ghost-light {
  border-color: rgba(255,255,255,0.3);
  color: white;
}

.plt-final-cta .btn-ghost-light:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--brand-500);
  color: white;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .plt-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .plt-orbit { width: 320px; height: 320px; }
  .plt-flagship-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .plt-flagship-stats {
    flex-direction: row;
  }
  .plt-stat { flex: 1; }
  .plt-final-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .plt-final-actions { align-items: center; }
}

@media (max-width: 540px) {
  .plt-h1 { font-size: 36px; }
  .plt-h2 { font-size: 26px; }
  .plt-orbit { width: 280px; height: 280px; }
  .plt-orbit-core { width: 100px; height: 100px; }
  .plt-orbit-core-label { font-size: 18px; }
  .plt-orbit-mod { width: 44px; height: 44px; }
  .plt-flagship-list { grid-template-columns: 1fr; }
  .plt-flagship-stats { flex-direction: column; }
  .plt-hero-actions { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   BASH 1536 - Real plugin marketplace styling
   ============================================================ */

/* Hero meta strip */
.plt-hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--neutral-200);
}

.plt-hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.plt-hero-meta-item strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-600);
  line-height: 1;
}

.plt-hero-meta-item span {
  font-size: 12px;
  color: var(--neutral-600);
  font-weight: 500;
}

/* Featured badge (gold flagship) */
.plt-mod-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  background: linear-gradient(135deg, #c4a35a, #92753f);
  color: white;
  z-index: 2;
}

.plt-mod-badge svg { width: 11px; height: 11px; }

.plt-mod-featured {
  border-color: rgba(196, 163, 90, 0.3);
  box-shadow: 0 4px 16px -4px rgba(196, 163, 90, 0.15);
}

.plt-mod-featured:hover {
  border-color: rgba(196, 163, 90, 0.5);
  box-shadow: 0 16px 32px -8px rgba(196, 163, 90, 0.25);
}

/* Featured card pushes the status pill down so it does not collide with badge */
.plt-mod-featured .plt-mod-status {
  top: 16px;
  right: 16px;
}

/* Plugin icon - now uses Font Awesome */
.plt-mod-icon i.fas, .plt-mod-icon i.fab, .plt-mod-icon i.far {
  font-size: 22px;
  color: white;
  display: inline-block;
}

/* Meta row - category + agent badge */
.plt-mod-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.plt-mod-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-500);
}

.plt-mod-agent {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #c2410c;
  background: rgba(249, 115, 22, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.plt-mod-agent svg { width: 11px; height: 11px; }

/* Pricing */
.plt-mod-pricing {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plt-mod-price {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--neutral-900);
}

.plt-mod-cta {
  font-size: 13px;
  color: var(--brand-600);
  font-weight: 600;
  text-decoration: none;
}

.plt-mod-cta:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

/* Architecture section - 3 col */
.plt-architecture {
  background: var(--neutral-100);
  padding: clamp(60px, 8vw, 100px) 0;
}

.plt-arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.plt-arch-col {
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  padding: 28px;
}

.plt-arch-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 16px;
}

.plt-arch-icon svg { width: 24px; height: 24px; }

.plt-arch-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--neutral-900);
}

.plt-arch-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--neutral-600);
  margin: 0 0 16px;
}

.plt-arch-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plt-arch-list li {
  font-size: 13px;
  color: var(--neutral-700);
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}

.plt-arch-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 2px;
  background: var(--brand-500);
}

@media (max-width: 980px) {
  .plt-hero-meta { gap: 24px; }
  .plt-hero-meta-item strong { font-size: 22px; }
  .plt-arch-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .plt-hero-meta { gap: 20px; flex-wrap: wrap; }
}

/* ============================================================
   BASH 1538 - Pricing removed, custom-builds card repositioned
   ============================================================ */

/* Custom builds badge color (purple, distinct from green Live) */
.plt-status-custom {
  background: rgba(139, 92, 246, 0.12);
  color: #6d28d9;
}

.plt-status-custom .plt-status-dot {
  background: #8b5cf6;
}

/* Custom card visual treatment - matches gold/purple gradient theme */
.plt-mod-custom {
  border-color: rgba(139, 92, 246, 0.22);
  background: linear-gradient(180deg, white 0%, rgba(139, 92, 246, 0.03) 100%);
}

.plt-mod-custom:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 16px 32px -8px rgba(139, 92, 246, 0.18);
}

.plt-mod-icon-custom {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
}

/* Pricing block on custom card is CTA-only (no top border line) */
.plt-mod-custom .plt-mod-pricing {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(139, 92, 246, 0.18);
  justify-content: flex-start;
}

.plt-mod-custom .plt-mod-cta {
  color: #6d28d9;
  font-weight: 600;
}

.plt-mod-custom .plt-mod-cta:hover {
  color: #5b21b6;
}

/* Hide desktop/agent badge globally - we don't want to expose implementation */
.plt-mod-agent {
  display: none !important;
}

/* ============================================================
   BASH 1540 - Equal plugins (no featured), longer descriptions
   ============================================================ */

/* Cards have minimum height for visual consistency with longer descs */
.plt-mod-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

/* Description grows to fill available space, pushes any pricing/cta to bottom */
.plt-mod-desc {
  flex-grow: 1;
  margin-bottom: 0;
  font-size: 13.5px;
  line-height: 1.55;
}

/* Custom card pricing area sticks to bottom */
.plt-mod-custom .plt-mod-pricing {
  margin-top: 16px;
  flex-shrink: 0;
}

/* Hide the "featured" badge style entirely - we removed featured plugins */
.plt-mod-badge,
.plt-mod-featured {
  /* Reset any featured styling */
}

.plt-mod-featured {
  border-color: var(--neutral-200) !important;
  box-shadow: none !important;
  background: white !important;
}

.plt-mod-featured:hover {
  border-color: rgba(16,185,129,0.4) !important;
  box-shadow: 0 16px 32px -8px rgba(16,185,129,0.18) !important;
}

.plt-mod-badge { display: none !important; }
