/* ==========================================================================
   IndSoft Systems — Premium Modern Pages Stylesheet
   Applied exclusively to new GEO/AI-Visibility pages without disturbing existing pages.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --prem-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --prem-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --prem-primary: #2563eb;
  --prem-primary-hover: #1d4ed8;
  --prem-primary-light: #eff6ff;
  --prem-dark: #0b1120;
  --prem-dark-card: #0f172a;
  --prem-border: #e2e8f0;
  --prem-text: #1e293b;
  --prem-text-muted: #64748b;
  --prem-success: #10b981;
  --prem-accent: #38bdf8;
}

/* Base refinement for premium pages container */
.premium-page-wrapper {
  font-family: var(--prem-font);
  color: var(--prem-text);
  -webkit-font-smoothing: antialiased;
  background-color: #f8fafc;
}

/* --------------------------------------------------------------------------
   1. HERO SECTION (Mesh Gradient & Modern Tech Aesthetic)
   -------------------------------------------------------------------------- */
.premium-hero {
  position: relative;
  background: linear-gradient(135deg, #090d16 0%, #0f172a 60%, #1e293b 100%);
  padding: 185px 0 75px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(50px);
}

.premium-hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(50px);
}

.premium-hero .hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  color: #38bdf8;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.premium-hero .hero-pill-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  display: inline-block;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.premium-hero h1 {
  font-family: var(--prem-font);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.22;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .premium-hero h1 { font-size: 28px; }
  .premium-hero { padding: 140px 0 50px 0; }
}

.premium-hero .hero-subtitle {
  font-size: 17px;
  color: #cbd5e1;
  line-height: 1.65;
  max-width: 860px;
  margin-bottom: 24px;
}

.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.hero-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.hero-stat-chip i {
  color: #38bdf8;
}

/* --------------------------------------------------------------------------
   2. CARDS & CONTAINERS
   -------------------------------------------------------------------------- */
.p-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--prem-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
  padding: 32px;
  margin-bottom: 24px;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.p-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  border-color: #cbd5e1;
}

.p-card-header-clean {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--prem-border);
}

.p-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   3. TABLES (Sleek Modern SaaS Layout)
   -------------------------------------------------------------------------- */
.p-table-wrap {
  border-radius: 16px;
  border: 1px solid var(--prem-border);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  margin-bottom: 24px;
}

.p-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.p-table thead th {
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 20px;
  border-top: none;
  border-bottom: 1px solid var(--prem-border);
  white-space: nowrap;
}

.p-table tbody td {
  padding: 18px 20px;
  vertical-align: middle;
  border-top: none;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-size: 15px;
}

.p-table tbody tr:last-child td {
  border-bottom: none;
}

.p-table tbody tr:hover td {
  background-color: #f8fafc;
}

.p-table td.highlight-col, .p-table th.highlight-col {
  background: rgba(37, 99, 235, 0.03);
  border-left: 1px solid rgba(37, 99, 235, 0.12);
  border-right: 1px solid rgba(37, 99, 235, 0.12);
}

.p-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

.p-badge-success { background: #dcfce7; color: #15803d; }
.p-badge-blue { background: #dbeafe; color: #1d4ed8; }
.p-badge-amber { background: #fef3c7; color: #b45309; }
.p-badge-slate { background: #f1f5f9; color: #475569; }

/* --------------------------------------------------------------------------
   4. CODE TERMINAL WINDOW (Developer Focused / Mac Style)
   -------------------------------------------------------------------------- */
.terminal-window {
  border-radius: 14px;
  background: #0b1120;
  border: 1px solid #1e293b;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  margin: 16px 0 24px 0;
  font-family: var(--prem-mono);
}

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

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

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

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

.terminal-title {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.terminal-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.terminal-copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.terminal-body {
  padding: 18px 22px;
  color: #38bdf8;
  font-size: 14px;
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre;
  margin: 0;
}

.terminal-body code {
  color: #38bdf8;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
}

.terminal-output {
  background: #070a10;
  border-top: 1px dashed #1e293b;
  padding: 14px 22px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  font-family: var(--prem-mono);
}

.terminal-output-label {
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   5. STEP BADGE & WORKFLOW LISTS
   -------------------------------------------------------------------------- */
.step-item-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--prem-border);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
  position: relative;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.step-num-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  flex-shrink: 0;
}

.step-title {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   6. INTERACTIVE ACCORDIONS (FAQ)
   -------------------------------------------------------------------------- */
.p-accordion-item {
  border: 1px solid var(--prem-border);
  border-radius: 14px;
  margin-bottom: 12px;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.2s;
}

.p-accordion-item:hover {
  border-color: #cbd5e1;
}

.p-accordion-header {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  color: #1e293b;
  user-select: none;
  background: #ffffff;
  transition: background 0.2s;
}

.p-accordion-header:hover {
  background: #f8fafc;
}

.p-accordion-header .chevron {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #64748b;
  font-size: 14px;
}

.p-accordion-item.active .chevron {
  transform: rotate(180deg);
  color: var(--prem-primary);
}

.p-accordion-body {
  padding: 0 24px 22px 24px;
  color: #475569;
  font-size: 15px;
  line-height: 1.75;
  display: none;
}

.p-accordion-item.active .p-accordion-body {
  display: block;
}

/* --------------------------------------------------------------------------
   7. FEATURE COMPARISON / VERDICT BOXES
   -------------------------------------------------------------------------- */
.feat-box-green {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  padding: 30px;
  height: 100%;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.feat-box-amber {
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
  border: 1px solid #fef08a;
  border-radius: 18px;
  padding: 30px;
  height: 100%;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.feat-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-right: 12px;
  flex-shrink: 0;
}

.feat-icon-green { background: rgba(34, 197, 94, 0.15); color: #16a34a; }
.feat-icon-amber { background: rgba(245, 158, 11, 0.15); color: #d97706; }

/* --------------------------------------------------------------------------
   8. COMPETITOR COMPARISON CARDS
   -------------------------------------------------------------------------- */
.compare-competitor-card {
  background: #f8fafc;
  border: 1px solid var(--prem-border);
  border-radius: 18px;
  padding: 32px;
  height: 100%;
}

.compare-indsoft-card {
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  border: 2px solid #3b82f6;
  border-radius: 18px;
  padding: 32px;
  position: relative;
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.15);
  height: 100%;
}

.compare-badge-recommended {
  position: absolute;
  top: -13px;
  right: 24px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

/* --------------------------------------------------------------------------
   9. METRIC SCORECARDS
   -------------------------------------------------------------------------- */
.metric-stat-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--prem-border);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 24px;
}

.metric-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08);
  border-color: #38bdf8;
}

.metric-number {
  font-size: 38px;
  font-weight: 800;
  background: linear-gradient(135deg, #1e40af, #2563eb, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   10. TOC SIDEBAR FOR TUTORIALS
   -------------------------------------------------------------------------- */
.toc-card-premium {
  background: #ffffff;
  border: 1px solid var(--prem-border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.toc-card-premium h5 {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #64748b;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  margin-bottom: 6px;
  line-height: 1.4;
}

.toc-nav-item:hover, .toc-nav-item.active {
  color: var(--prem-primary);
  background: var(--prem-primary-light);
  border-left-color: var(--prem-primary);
  font-weight: 600;
}

.toc-cta-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 14px;
  padding: 22px;
  color: #ffffff;
  text-align: center;
  margin-top: 24px;
  border: 1px solid #334155;
}

.toc-cta-box p {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 14px;
}

/* Modern Primary Button */
.btn-prem-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-prem-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}
