/**
 * CreatorSense CSS Variables (Design Tokens)
 * Single source of truth for all design tokens
 * Import this FIRST in your main stylesheet
 */

/* =============================================================================
   LIGHT THEME (Default)
   ============================================================================= */
:root {
  /* Color scheme */
  color-scheme: light;

  /* Brand colors - CreatorSense navy blues */
  --brand-primary: #2a4066;
  --brand-primary-light: #4a7caf;
  --brand-primary-lighter: #6a94d9;
  --brand-primary-dark: #1e3a5f;
  --brand-primary-hover: #1e3a5f;
  --brand-primary-rgb: 42, 64, 102;
  --brand-gradient: linear-gradient(180deg, #2a4066 0%, #4a7caf 100%);
  --brand-gradient-bg: linear-gradient(135deg, #4a7caf 0%, #2a4066 100%);

  /* Background colors */
  --bg-primary: #f8fafc;
  /* Slate 50 */
  --bg-secondary: #f1f5f9;
  /* Slate 100 */
  --bg-tertiary: #e2e8f0;
  /* Slate 200 */
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-hover: #f1f5f9;
  --bg-active: #e2e8f0;
  --bg-overlay: rgba(255, 255, 255, 0.9);
  /* Glassmorphism Light */
  --bg-glass: rgba(255, 255, 255, 0.9);

  /* Text colors */
  --text-primary: #1e293b;
  /* Slate 800 */
  --text-secondary: #475569;
  /* Slate 600 */
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;
  /* Slate 400 */
  --text-inverse: #ffffff;
  --text-accent: #2a4066;
  --text-brand: #2a4066;
  --text-link: #4a7caf;
  --text-disabled: #94a3b8;

  /* Border colors */
  --border-primary: #e2e8f0;
  /* Slate 200 */
  --border-secondary: #cbd5e1;
  /* Slate 300 */
  --border-input: #d1d5db;
  /* Slate 300 equivalent */
  --border-focus: #4a7caf;
  --border-error: #ef4444;
  --border-success: #10b981;
  --border-subtle: #e2e8f0;
  --border-default: #d1d5db;
  --border-strong: #94a3b8;
  --border-color: #e2e8f0;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-brand: rgba(42, 64, 102, 0.2);

  /* Status colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --danger: #ef4444;
  --info: #17a2b8;
  --accent-primary: #2a4066;
  --accent-secondary: #4a7caf;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-error: #ef4444;
  --accent-danger: #dc3545;
  --accent-info: #17a2b8;

  /* Status backgrounds & text (Derived) */
  --bg-success: rgba(16, 185, 129, 0.1);
  --text-success: #10b981;

  --bg-warning: rgba(245, 158, 11, 0.1);
  --text-warning: #f59e0b;

  --bg-error: #fef2f2;
  --text-error: #ef4444;

  --bg-info: rgba(23, 162, 184, 0.1);
  --text-info: #17a2b8;

  /* Interactive states */
  --hover-overlay: rgba(0, 0, 0, 0.05);
  --active-overlay: rgba(0, 0, 0, 0.1);
  --focus-ring: rgba(74, 124, 175, 0.2);
  --focus-ring-color: #4a7caf;
  --backdrop: rgba(0, 0, 0, 0.5);

  /* Form elements */
  --checkbox-bg: #ffffff;
  --checkbox-border: #d1d5db;
  --checkbox-checked-bg: #2a4066;
  --checkbox-checked-border: #2a4066;
  --input-background: #ffffff;

  /* Divider */
  --divider-color: #e5e7eb;

  /* Border Radius - Standardized 8px System */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  /* Standard for Cards/Inputs */
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  --radius-card: 8px;
  --radius-button: 8px;
  --radius-input: 8px;
  --radius-modal: 12px;
  --radius-badge: 6px;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Transitions */
  --transition-theme:
    background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;

  /* Typography */
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-secondary: 'Inter', sans-serif;

  /* Legacy compatibility maps */
  --primary: var(--brand-primary);
  --secondary: var(--brand-primary-light);
  --dark: #1e3a5f;
  --blue: #2a4066;
  --light-blue: #4a7caf;
  --white: #ffffff;
  --black: #000000;
  --shadow: rgba(74, 124, 175, 0.3);
  --gradient: linear-gradient(45deg, #4a7caf, #2a4066);
  --font: 'Montserrat', sans-serif;
  --background: #ffffff;
  --background-secondary: #f8fafc;
  --background-card: rgba(255, 255, 255, 0.95);
  /* Sidebar */
  --sidebar-background: #2a4066;
  --sidebar-bg: #2a4066;
  --sidebar-gradient: linear-gradient(180deg, #2a4066 0%, #3b5a8c 100%);
  --sidebar-text: #ffffff;
  --sidebar-border: rgba(255, 255, 255, 0.15);
  --sidebar-text-muted: rgba(255, 255, 255, 0.8);
  --sidebar-hover: rgba(255, 255, 255, 0.1);
  --sidebar-active: rgba(255, 255, 255, 0.2);

  --shadow-color: rgba(74, 124, 175, 0.3);
  --nav-background: rgba(255, 255, 255, 0.95);
  --hover-background: #f1f5f9;
  --active-background: #e2e8f0;
  --primary-subtle: rgba(42, 64, 102, 0.1);
  --primary-muted: rgba(42, 64, 102, 0.2);
  --border: var(--border-primary);
}

/* =============================================================================
   DARK THEME
   ============================================================================= */
:root.dark,
.dark,
[data-theme="dark"] {
  /* Color scheme */
  color-scheme: dark;

  /* Brand colors - Brighter for Dark Mode */
  --brand-primary: #60a5fa;
  --brand-primary-light: #93c5fd;
  --brand-primary-lighter: #bfdbfe;
  --brand-primary-hover: #3b82f6;
  --brand-primary-rgb: 96, 165, 250;
  --brand-gradient: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  --brand-gradient-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);

  /* Background colors */
  --bg-primary: #0f172a;
  /* Slate 900 */
  --bg-secondary: #1e293b;
  /* Slate 800 */
  --bg-tertiary: #334155;
  /* Slate 700 */
  --bg-elevated: #1e293b;
  --bg-card: #1e293b;
  /* Slate 800 */
  --bg-input: #1e293b;
  /* Slate 800 */
  --bg-hover: #334155;
  /* Slate 700 */
  --bg-active: #475569;
  --bg-overlay: rgba(30, 41, 59, 0.8);
  /* Glassmorphism Dark */
  --bg-glass: rgba(30, 41, 59, 0.8);
  --bg-subtle: #1e293b;
  --bg-muted: #334155;

  /* Text colors */
  --text-primary: #f8fafc;
  /* Slate 50 */
  --text-secondary: #cbd5e1;
  /* Slate 300 */
  --text-tertiary: #cbd5e1;
  --text-muted: #64748b;
  /* Slate 500 */
  --text-inverse: #0f172a;
  --text-accent: #60a5fa;
  --text-brand: #60a5fa;
  --text-link: #93c5fd;
  --text-disabled: #64748b;

  /* Border colors */
  --border-primary: #334155;
  /* Slate 700 */
  --border-secondary: #475569;
  /* Slate 600 */
  --border-input: #475569;
  /* Slate 600 */
  --border-focus: #60a5fa;
  --border-error: #f87171;
  --border-success: #22c55e;
  --border-subtle: #334155;
  --border-default: #475569;
  --border-strong: #64748b;
  --border-color: #334155;

  /* Shadows - Dark Mode Overrides */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.4);
  /* Specific Override */
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-brand: rgba(59, 130, 246, 0.2);

  /* Status Colors (Brighter) */
  --success: #22c55e;
  --warning: #fbbf24;
  --error: #f87171;
  --danger: #f87171;
  --info: #38bdf8;
  --accent-primary: #60a5fa;
  --accent-secondary: #93c5fd;
  --accent-success: #22c55e;
  --accent-warning: #fbbf24;
  --accent-error: #f87171;
  --accent-danger: #f87171;
  --accent-info: #38bdf8;

  /* Status backgrounds */
  --bg-success: rgba(34, 197, 94, 0.15);
  --bg-warning: rgba(251, 191, 36, 0.15);
  --bg-error: rgba(248, 113, 113, 0.15);
  --bg-danger: rgba(248, 113, 113, 0.15);
  --bg-info: rgba(56, 189, 248, 0.15);

  /* Status text */
  --text-success: #22c55e;
  --text-warning: #fbbf24;
  --text-error: #f87171;
  --text-danger: #f87171;
  --text-info: #38bdf8;

  /* Interactive states */
  --hover-overlay: rgba(255, 255, 255, 0.05);
  --active-overlay: rgba(255, 255, 255, 0.1);
  --focus-ring: rgba(96, 165, 250, 0.3);
  --focus-ring-color: #60a5fa;
  --backdrop: rgba(0, 0, 0, 0.8);

  /* Form elements */
  --checkbox-bg: #1e293b;
  --checkbox-border: #475569;
  --checkbox-checked-bg: #3b82f6;
  --checkbox-checked-border: #3b82f6;
  --input-background: #1e293b;

  /* Divider */
  --divider-color: #334155;

  /* Legacy compatibility */
  --blue: #3b82f6;
  --light-blue: #60a5fa;
  --shadow: rgba(0, 0, 0, 0.5);
  --gradient: linear-gradient(45deg, #60a5fa, #3b82f6);
  --background: #0f172a;
  --background-secondary: #1e293b;
  --background-card: rgba(30, 41, 59, 0.95);
  --shadow-color: rgba(0, 0, 0, 0.5);
  --nav-background: rgba(30, 41, 59, 0.95);
  --sidebar-background: #1e293b;
  --hover-background: #334155;
  --active-background: #475569;
  --primary-subtle: rgba(96, 165, 250, 0.1);
  --primary-muted: rgba(96, 165, 250, 0.2);
  --brand-dark: #3b82f6;


  /* RGB Values for rgba() usage - Dark Mode Overrides */
  --brand-secondary-rgb: 147, 197, 253;
  --success-rgb: 34, 197, 94;
  --warning-rgb: 251, 191, 36;
  --error-rgb: 248, 113, 113;
  --info-rgb: 56, 189, 248;

  /* Sidebar */
  --sidebar-border: #334155;
  --sidebar-bg: var(--bg-secondary);
  --sidebar-text: var(--text-secondary);

  /* Fix for generic white backgrounds */
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* =============================================================================
   DARK MODE SCROLLBAR
   ============================================================================= */
.dark ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.dark ::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.dark ::-webkit-scrollbar-thumb {
  background: var(--border-secondary);
  border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* =============================================================================
   GLOBAL STYLES
   ============================================================================= */

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

html {
  overflow-x: hidden;
  overflow-y: auto;
  /* Ensure standard scroll behavior */
  max-width: 100vw;
  background-color: var(--bg-primary);
  height: 100%;
  /* Fix for double scrollbars if body also scrolls */
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 1rem;
  /* Base Size 16px */
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
  /* overflow-y: hidden;  <-- REMOVE THIS to let window scroll naturally */
  max-width: 100vw;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Prevent layout shifts from inline spacing */
}

#app {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background-color: var(--accent-primary);
  color: var(--text-inverse);
}

/* Links */
a {
  color: var(--text-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Focus indicators */
*:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Typography Headings */
h1,
h1 {
  color: #2a4066;
  /* Official Brand Navy Blue */
  line-height: 1.3;
  font-weight: 600;
}

h2,
h3,
h4,
h5,
h6 {
  color: #2a4066;
  /* Official Brand Navy Blue */
  line-height: 1.3;
  font-weight: 600;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem;
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Form Elements */
input[type='text'],
input[type='email'],
input[type='password'],
input[type='number'],
input[type='tel'],
input[type='url'],
input[type='search'],
input[type='date'],
textarea,
select {
  background-color: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-input);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  width: 100%;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input[type='checkbox'] {
  accent-color: var(--accent-primary);
}

/* =============================================================================
   COMPONENT STYLES
   ============================================================================= */

/* Buttons */
button {
  font-family: inherit;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-button);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--brand-gradient);
  color: var(--text-inverse);
  box-shadow: 0 2px 10px var(--shadow-brand);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-brand);
}

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

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--text-secondary);
}

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

/* =============================================================================
   UNIFIED CARD SYSTEM - Single Source of Truth
   All cards share these base styles for consistency across pages
   ============================================================================= */

/* Base Card Tokens */
:root {
  --card-padding: 1.5rem;
  --card-padding-lg: 2rem;
  --card-radius: var(--radius-lg);
  --card-bg: var(--bg-card);
  --card-border: 1px solid var(--border-primary);
  --card-shadow: var(--shadow-md);
  --card-hover-transform: translateY(-4px);
  --card-hover-shadow: var(--shadow-lg);
  --card-hover-border: var(--brand-primary-light);
  --card-transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Base Card Class - Apply to all card-like elements */
.card-base,
.bento-item,
.pricing-card,
.security-spec-card,
.feature-card,
.step-item,
.warning-card,
.value-card,
.glass-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  transition: var(--card-transition);
}

/* Card Hover Effects - Unified */
.card-base:hover,
.bento-item:hover,
.pricing-card:hover,
.security-spec-card:hover,
.feature-card:hover {
  transform: var(--card-hover-transform);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--card-hover-border);
}

/* Card with larger padding */
.card-lg,
.security-spec-card {
  padding: var(--card-padding-lg);
}

/* Legacy Cards - content articles with left border accent */
.card,
.features-content,
.blog-content,
.faq-content,
.content-shell article,
.content-page article {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 2rem 1.5rem;
  text-align: left;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

/* ... existing hover styles ... */

/* Page Sections */
.page-shell .section-title,
.content-page .section-title,
#pricing-page .section-title,
section .section-title {
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  position: relative;
  display: block;
  /* Default to block */
  text-align: inherit;
  /* Inherit align from parent (e.g. text-center) */
}

/* Specific center override if needed */
.text-center .section-title {
  margin-left: auto;
  margin-right: auto;
}

/* Utilities */
.text-center {
  text-align: center !important;
}

.align-center {
  align-items: center !important;
}

.feature-icon {
  font-size: 2rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-0-5 {
  margin-bottom: 0.5rem !important;
}

.mb-1 {
  margin-bottom: 1rem !important;
}

.mb-2 {
  margin-bottom: 1.5rem !important;
}

.mb-3 {
  margin-bottom: 2rem !important;
}

.mb-4 {
  margin-bottom: 3rem !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: 1rem !important;
}

.mt-2 {
  margin-top: 1.5rem !important;
}

.mt-3 {
  margin-top: 2rem !important;
}

.mt-4 {
  margin-top: 3rem !important;
}

.hidden {
  display: none !important;
}

.status-live {
  color: var(--text-success);
  font-weight: 600;
}

.status-planned {
  color: var(--text-muted);
  font-style: italic;
}

.fw-600 {
  font-weight: 600 !important;
}

.block {
  display: block !important;
}

.hidden {
  display: none !important;
}

.w-full {
  width: 100% !important;
}

.text-error {
  color: var(--error) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-right {
  text-align: right !important;
}

.m-0 {
  margin: 0 !important;
}

.p-2 {
  padding: 2rem !important;
}

.flex {
  display: flex !important;
}

.align-center {
  align-items: center !important;
}

.gap-0-5 {
  gap: 0.5rem !important;
}

.checkbox-sm {
  width: 1.2rem !important;
  height: 1.2rem !important;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.divider {
  margin: 3rem 0;
  border: 0;
  border-top: 1px solid var(--border-primary);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--brand-primary-light);
}

.card h3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.card .features-list {
  text-align: left;
  width: 100%;
}

/* =============================================================================
   LAYOUT UTILITIES
   ============================================================================= */
.hidden {
  display: none !important;
}

/* =============================================================================
   CONTAINER SYSTEM - Single Source of Truth
   ============================================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-sm {
  max-width: 800px;
}

.container-lg {
  max-width: 1400px;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* =============================================================================
   MARKETING SPECIFIC LAYOUTS
   ============================================================================= */

/* Content Page Typography */
.content-page h1 {
  margin-bottom: 0.5rem;
}

.content-meta {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.content-page h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-primary);
  color: var(--brand-primary);
}

.content-page h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* .content-page defined below - single source of truth */

.faq-page,
.admin-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
  min-height: 80vh;
  line-height: 1.7;
}

/* .content-page h1, h2 defined above - duplicate removed */

.check-list li {
  list-style: none;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.check-list li::before {
  content: "✅";
  position: absolute;
  left: 0;
}

.cross-list li {
  list-style: none;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.cross-list li::before {
  content: "❌";
  position: absolute;
  left: 0;
}

.mission-box {
  background: linear-gradient(135deg, rgba(74, 124, 175, 0.1), rgba(74, 124, 175, 0.05));
  border-left: 4px solid var(--brand-primary);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.1rem;
}

/* Navigation Helper */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--brand-primary);
  transform: translateX(-4px);
}

/* Headers & Meta */
.features-content h1,
.blog-content h1,
.content-page h1,
.faq-page h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.feature-meta,
.content-meta,
.faq-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-primary);
  padding-bottom: 1.5rem;
}

/* Content Typography */
.content-page h2,
.features-content h2,
.faq-page h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--brand-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.content-page h4,
.features-content h4 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 1.125rem;
}

.content-page ul,
.content-page ol,
.features-content ul {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.content-page li,
.features-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.content-page li strong,
.features-content li strong {
  color: var(--text-primary);
}

/* Data Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elevated);
}

th,
td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

td {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: var(--bg-hover);
}

/* Definition Lists / Info Cards */
dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 2rem;
  margin: 2rem 0;
}

dt {
  font-weight: 700;
  color: var(--brand-primary);
  min-width: 140px;
}

dd {
  color: var(--text-secondary);
  margin-left: 0;
  margin-bottom: 1rem;
}

.info-card,
.warning-card,
.value-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--brand-primary);
}

.value-card h4 {
  margin-top: 0;
  color: var(--brand-primary);
}

/* FAQ Specifics */
.faq-accordion {
  margin-top: 2rem;
}

.faq-item {
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  background: var(--bg-elevated);
  transition: all 0.2s;
}

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

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
  /* JS toggle handle */
}

/* Status Badges */
.status-live {
  color: var(--success);
  font-weight: 600;
  background: var(--bg-success);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.status-planned {
  color: var(--brand-primary);
  font-weight: 600;
  background: var(--bg-info);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* =============================================================================
   HOME PAGE SPECIFIC LAYOUTS
   Restoring missing Hero, Sections, and Feature Grids
   ============================================================================= */

/* Page Sections */
/* Page Sections - section-title defined earlier */

.home-section {
  padding: 4rem 0;
}

.features-section {
  padding: 4rem 0;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 1rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 2rem;
  /* Large Hero Text aligned to rules */
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: #2a4066;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

/* =============================================================================
   HERO GRID LAYOUT (Two-column hero with text + media)
   ============================================================================= */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: left;
}

.hero-content-relative {
  position: relative;
  z-index: 10;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-text .summary {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Floating Orbs Background Animation */
.floating-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--brand-primary);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--brand-primary-light);
  bottom: -50px;
  left: -50px;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(20px, 10px) scale(1.05);
  }
}

/* Hero Canvas Container (for Three.js) */
.hero-canvas-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Hero Feature Grid (inline feature highlights) */
.feature-grid-hero {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.feature-item-hero {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.feature-icon-hero {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  font-size: 1rem;
}

.feature-item-hero strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* CTA Row */
.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.cta-row-centered {
  justify-content: center;
}

/* Text Utilities */
.text-mini {
  font-size: 0.8125rem;
  line-height: 1.4;
}

.muted {
  color: var(--text-muted);
}

.text-inverse {
  color: var(--text-inverse);
}

.summary {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive Hero Grid */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .feature-grid-hero {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-item-hero {
    justify-content: center;
    text-align: left;
  }

  .cta-row {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-grid {
    padding: 0 1rem;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .feature-grid-hero {
    margin-top: 1.5rem;
  }

  .feature-icon-hero {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 0.875rem;
  }
}

/* Feature Benta Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  margin-bottom: 4rem;
}

/* Feature Card (Bento Style) */
/* Feature Card - specific overrides from unified card system */
.feature-card {
  /* Base styles inherited from unified card system */
  padding: var(--card-padding-lg);
}

.features-grid .feature-card,
.grid .feature-card {
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.feature-card.large {
  grid-column: span 2;
}

.feature-card.tall {
  grid-row: span 2;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Partners / Trusted By */
.partners-section {
  text-align: center;
  padding: 2rem 0 4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.partners-logos {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0.6;
  margin-top: 1.5rem;
}

.partner-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: var(--brand-primary);
  color: white;
  padding: 5rem 1rem;
  border-radius: var(--radius-2xl);
  margin: 4rem auto;
  max-width: 1000px;
}

.cta-section h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  html {
    font-size: 14px !important;
  }

  body {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .features-page,
  .content-page,
  .faq-page {
    padding: 1rem;
  }

  .features-content,
  .blog-content,
  .content-page article {
    padding: 1.5rem;
  }

  .features-content h1,
  .content-page h1 {
    font-size: 1.8rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card.large,
  .feature-card.tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  dl {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  dt {
    margin-top: 1rem;
    color: var(--brand-primary);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
  }
}

/* Helpers */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

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

/* =============================================================================
   PLATFORMS HEX GRID
   ============================================================================= */
.platforms-hex-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 3rem 0;
}

.hexagon-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hexagon-item {
  width: 100px;
  height: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.hexagon-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-brand);
  border-color: var(--brand-primary);
}

.hexagon-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
  opacity: 1;
}

.hexagon-item:hover img {
  opacity: 1;
  transform: scale(1.1);
}

.platforms-coming-soon {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =============================================================================
   CAROUSEL & SCREENSHOTS
   ============================================================================= */
/* Hero Media Deck Effect */
.hero-media {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  perspective: 1000px;
  /* Gives 3D depth */
  z-index: 10;
}

/* The Stack (Deck) Layers */
.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-xl);
  z-index: -1;
  transition: transform 0.3s ease;
}

.hero-media::before {
  transform: translateY(12px) scale(0.96);
  opacity: 0.7;
}

.hero-media::after {
  transform: translateY(24px) scale(0.92);
  opacity: 0.4;
  z-index: -2;
}

.hero-media:hover::before {
  transform: translateY(15px) scale(0.97) rotate(-1deg);
}

.hero-media:hover::after {
  transform: translateY(30px) scale(0.93) rotate(1deg);
}


.hero-carousel {
  width: 100%;
  /* max-width is handled by hero-media parent now */
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  z-index: 2;
  /* Sit on top of the deck */
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  flex: 0 0 100%;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-nav {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.nav-dot.active {
  background: white;
  transform: scale(1.2);
}

/* Feature Page Screenshot Grid */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.screenshot-grid img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s;
}

.screenshot-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.feature-screenshot {
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-lg);
}

.feature-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

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

/* =============================================================================
   PREMIUM PRESENCE: MARQUEE & BENTO GRID
   ============================================================================= */

/* Logo Marquee */
.logo-marquee {
  overflow: hidden;
  padding: 3rem 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.logo-marquee-title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 3rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.marquee-item:hover {
  opacity: 1;
}

.marquee-item i {
  font-size: 1.5rem;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 180px;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

/* Bento Item - Specific overrides from unified card system */
.bento-item {
  /* Base styles inherited from unified card system */
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.bento-item:hover {
  /* Hover inherited from unified system */
  border-color: var(--brand-primary-light);
}

.bento-item h3 {
  margin-top: 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bento-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Bento Sizing Variants */
.bento-2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-2x1 {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-1x2 {
  grid-column: span 1;
  grid-row: span 2;
}

/* Trust Bar */
.trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 4rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  margin-top: 2rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.trust-item i {
  font-size: 1.75rem;
  color: var(--brand-primary);
}

.trust-item span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Supplemental Bento & Benchmark Styles */
.bento-img {
  margin-top: auto;
  border-radius: 8px;
  border: 1px solid var(--border-primary);
  max-height: 200px;
  object-fit: cover;
  object-position: top;
}

.bento-chat-box {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 8px;
  margin-top: auto;
}

.mini-chat {
  font-size: 0.75rem;
  line-height: 1.4;
}

.mini-chat-q {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.mini-chat-a {
  font-weight: 600;
}

.benchmark-card {
  background: var(--brand-gradient);
  color: white;
  padding: 2.5rem;
}

.benchmark-card h4 {
  color: white !important;
  margin-bottom: 1rem;
}

.benchmark-stat {
  font-size: 3rem;
  font-weight: 600;
  color: white;
}

.benchmark-desc {
  color: white;
  opacity: 0.9;
  font-size: 1.1rem;
}

.benchmark-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 1.5rem 0;
}

.benchmark-note {
  font-size: 0.85rem;
  opacity: 0.8;
  color: white;
}

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

@media (max-width: 600px) {
  .bento-grid {
    display: flex;
    flex-direction: column;
  }

  .bento-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  .trust-bar {
    gap: 2rem;
  }
}

/* Privacy Grid (Modernized) */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin-top: 3rem;
}

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

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

/* Security Spec Grid (High-Trust) */
.security-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: 3rem;
}

/* Security Spec Card - specific overrides from unified card system */
.security-spec-card {
  height: 100%;
}

.security-spec-card:hover {
  /* Hover inherited from unified system */
}

.security-spec-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.security-spec-header i {
  font-size: 1.5rem;
  color: var(--brand-primary);
}

.security-spec-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.security-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.security-badge {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  border: 1px solid var(--border-primary);
  letter-spacing: 0.05em;
}

/* Modern Platforms Grid */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 2.5rem;
  justify-items: center;
  align-items: center;
  margin-top: 3rem;
}

.platform-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  filter: grayscale(1);
  opacity: 0.6;
  text-decoration: none;
}

.platform-logo-item:hover {
  transform: translateY(-5px);
  filter: grayscale(0);
  opacity: 1;
}

.platform-logo-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.platform-logo-item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =============================================================================
   MISSING INDEX STYLES (Compliance, Hero Badges, Animations)
   ============================================================================= */

/* Compliance Section - Stripped of background containers */
.compliance-section {
  margin-top: 3rem;
  padding: 0;
  background: transparent;
  border: none;
}

.compliance-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.compliance-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge-pill {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
}

/* Hero Badges & Typography */
.badge-container {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  padding: 0.35rem 0.5rem 0.35rem 0.35rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.badge-new {
  background: var(--brand-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  text-transform: uppercase;
}

.badge-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding-right: 0.5rem;
}

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--brand-primary);
  /* Fallback */
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

/* Reveal animations - visible by default, animated when JS runs */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

/* When JS initializes, set initial state for animation */
.reveal.reveal-init {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  animation-delay: 0.1s;
  transition-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
  transition-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
  transition-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================================================
   PRICING PAGE STYLES
   ============================================================================= */

/* Pricing Grid */
.pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem auto 3rem;
  /* Reduced top margin from 3rem */
  justify-content: center;
  align-items: stretch;
  max-width: 1100px;
}

/* Pricing Card */
/* Pricing Card - specific overrides from unified card system */
.pricing-card {
  /* Base styles inherited from unified card system */
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 360px;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-primary-light);
}

.pricing-card-highlight {
  border: 2px solid var(--brand-primary);
  box-shadow: var(--shadow-lg);
  background: var(--bg-elevated);
  z-index: 1;
  transform: scale(1.02);
}

.pricing-card-highlight:hover {
  transform: scale(1.02) translateY(-8px);
  box-shadow: ar(--shadow-2xl);
  /* Typo fix: var(--shadow-2xl) */
  box-shadow: var(--shadow-2xl);
}

/* Typography & Badges */
.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.pricing-badge-sub {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-align: center;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  margin: 0.5rem 0 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-tag {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 1rem 0 0.25rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  line-height: 1;
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 0.25rem;
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Feature Lists */
.features-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  text-align: left;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.features-list li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.features-list li::before {
  content: none !important;
}

/* Comparison Table */
.comparison-container {
  margin-top: 5rem;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-sm);
  background: var(--bg-elevated);
}

.comparison-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  font-size: 0.9rem;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  padding-left: 2rem;
  width: 30%;
}

.comparison-table th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 1.1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

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

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

/* Utility Classes Needed for Pricing */
.text-success {
  color: var(--success) !important;
}

.text-primary {
  color: var(--brand-primary) !important;
}

.text-brand {
  color: var(--brand-primary) !important;
}

.text-info {
  color: var(--info) !important;
}

/* Padding Utilities */
.pt-1 {
  padding-top: 1rem !important;
}

.pt-4 {
  padding-top: 3rem !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.text-upper {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.text-highlight {
  color: var(--brand-primary);
  font-weight: 600;
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.section-lead {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1.6;
}

/* Pain Points Row */
.pain-points-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.card-center-vertical {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Value Anchor Fix - Ensure it doesn't float weirdly */
.value-anchor {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 600px;
  margin: 1rem auto 2rem;
  /* Reduced top margin */
  text-align: center;
  position: relative;
  z-index: 0;
  /* Lower than pricing cards */
}

/* Mobile Pricing Grid Fix */
@media (max-width: 900px) {
  .pricing-table {
    display: flex;
    flex-direction: column !important;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 0 1rem;
    /* Ensure side padding on mobile */
  }

  .pricing-card {
    width: 100%;
    max-width: 100%;
    /* Allow full width with padding */
    margin: 0 auto;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}


/* Global Container Alignment Fix */
/* Container defined above - duplicate removed for consistency */

#pricing-page {
  padding-top: 1rem !important;
  /* Prevent "Halfway down" issue */
  width: 100%;
  display: block;
}

/* =============================================================================
   COOKIE CONSENT
   ============================================================================= */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-title {
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.cookie-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-cookie {
  flex: 1;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}

.btn-cookie-accept {
  background: var(--brand-primary);
  color: white;
  border: none;
}

.btn-cookie-accept:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}

.btn-cookie-decline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
}

.btn-cookie-decline:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

@media (max-width: 480px) {
  .cookie-banner {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    width: auto;
  }
}

/* =============================================================================
   CONTENT PAGE STANDARD LAYOUT (Source of Truth)
   Unified layout for all content pages
   ============================================================================= */
.content-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  min-height: 80vh;
  line-height: 1.7;
}

/* Typography for content pages defined above - duplicates removed */

/* Custom List Styles */
.check-list,
.cross-list {
  padding-left: 0;
  margin-left: 0;
}

.check-list li,
.cross-list li {
  list-style: none;
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.check-list li::before {
  content: "\f00c";
  /* FontAwesome Check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--success);
}

.cross-list li::before {
  content: "\f00d";
  /* FontAwesome X */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--text-danger);
}

/* Info & Security Cards */
.info-card {
  background: var(--bg-secondary);
  border-left: 4px solid var(--brand-primary);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.info-card h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
}

.info-card h4 i {
  color: var(--brand-light);
}

/* Live Stats Component */
.live-stats-section {
  padding: 4rem 1rem;
  background: transparent;
  /* Let global background show through */
  margin-top: 2rem;
}

.live-stats-container {
  max-width: 1200px;
  margin: 0 auto;
}

.live-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  /* Inherits from main styles.css */
  margin-bottom: 0;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2e7d32;
  background: rgba(46, 125, 50, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-theme="dark"] .live-indicator {
  background: rgba(46, 125, 50, 0.2);
  color: #4ade80;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #2e7d32;
  border-radius: 50%;
  position: relative;
}

[data-theme="dark"] .pulse-dot {
  background-color: #4ade80;
}

.pulse-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: inherit;
  border-radius: inherit;
  animation: pulse-ring 2s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
  opacity: 0.6;
}

@keyframes pulse-ring {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.6;
  }

  100% {
    width: 300%;
    height: 300%;
    opacity: 0;
  }
}

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

/* Using glass-card style from main css conceptually, but keeping it specific here */
.stat-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(74, 124, 175, 0.15);
  border-radius: var(--radius-lg, 12px);
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(42, 64, 102, 0.08);
  /* Matches --shadow-md conceptually */
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .stat-card {
  background: rgba(30, 30, 30, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-light, #4A7CAF);
  box-shadow: 0 8px 24px rgba(42, 64, 102, 0.12);
}

[data-theme="dark"] .stat-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary, #4f4f4f);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary, #2A4066);
  line-height: 1.1;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .stat-value {
  color: var(--text-primary, #e8eaed);
}

.stat-value.loading {
  color: transparent;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  animation: pulse-bg 1.5s infinite;
  user-select: none;
}

[data-theme="dark"] .stat-value.loading {
  background-color: rgba(255, 255, 255, 0.1);
}

@keyframes pulse-bg {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

/* Step Flow Component */
.step-flow {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2.5rem 0;
  position: relative;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.step-item::after {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 3.5rem;
  bottom: -1rem;
  width: 2px;
  background: var(--brand-light);
  opacity: 0.3;
  z-index: -1;
}

.step-item:last-child::after {
  display: none;
}

.step-icon-container {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background: #ffffff;
  border: 2px solid var(--brand-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2a4066;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(42, 64, 102, 0.1);
  transition: transform 0.3s ease;
}

.step-item:hover .step-icon-container {
  transform: scale(1.1);
  background: var(--brand-light);
  color: #ffffff;
}

.dark .step-icon-container {
  background: var(--bg-secondary);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.step-content {
  background: var(--bg-card);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-primary);
  border-left: 4px solid var(--brand-primary);
  box-shadow: var(--shadow-sm);
  flex-grow: 1;
  transition: all 0.3s ease;
}

.step-item:hover .step-content {
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.step-content h4 {
  margin: 0 0 0.5rem 0;
  color: #2a4066;
  font-size: 1.1rem;
}

.dark .step-content h4 {
  color: var(--text-primary);
}

.step-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.flow-note {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(74, 124, 175, 0.05);
  border: 1px dashed var(--brand-light);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.flow-note::before {
  content: "\f12a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--brand-light);
  font-size: 1.5rem;
}

.flow-note p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .step-item {
    gap: 1rem;
  }

  .step-content {
    padding: 1rem;
  }

}

/* Layout Constraints & Spacing Fixes - Cleaned up redundant/conflicting overrides */

.fw-bold {
  font-weight: 700;
}

/* Pricing Page Specifics */
.pricing-badge-top {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.no-border {
  border: none !important;
  padding: 0 !important;
}

/* Status Cards */
.warning-card {
  background: var(--bg-warning);
  border-left: 4px solid var(--warning);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  margin: 1.5rem 0;
}

.warning-card strong {
  color: var(--text-warning);
}

/* Glass Card effect - adds glassmorphism to base card system */
.glass-card {
  background: var(--bg-glass) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.platforms-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.platform-badge-mini {
  background: var(--bg-secondary);
  padding: 0.5rem;
  border-radius: var(--radius-card);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
}

.mission-card {
  background: var(--brand-gradient) !important;
  color: white !important;
  border: none !important;
}

.mission-card h4,
.mission-card h3,
.mission-card p {
  color: white !important;
}

/* FAQ ACCORDION STYLES */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
  max-width: 800px;
  /* Limit width for readability */
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.faq-question:hover {
  background-color: var(--bg-hover);
}

.faq-question::after {
  content: '\f078';
  /* FontAwesome chevron-down */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  /* Padding is added when active to avoid jumpiness during transition */
  padding-bottom: 1.5rem;
  /* max-height is set via JS */
}

.faq-answer p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-answer ul,
.faq-answer ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.faq-answer li {
  margin-bottom: 0.5rem;
}

/* =============================================================================
   BENTO GRID (NAVIGATION VARIANT)
   ============================================================================= */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: minmax(180px, auto);
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Bento Link Variant - inherits from unified card system */
a.bento-item {
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
}

a.bento-item:hover {
  /* Inherited from unified hover system */
}

.link-arrow {
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: inline-block;
}

a.bento-item:hover .link-arrow i {
  transform: translateX(4px);
  transition: transform 0.2s;
}

.bento-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-2x2,
  .bento-2x1 {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .bento-grid {
    display: flex;
    flex-direction: column;
  }
}

/* =============================================================================
   UNIFIED FEATURE GRID (ENTERPRISE VARIANT)
   ============================================================================= */
.unified-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 0;
}

.feature-nav-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  /* Solid background by default */
  border: 1px solid var(--border-primary);
  /* Defined technical border */
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.feature-nav-item:hover {
  border-color: var(--brand-primary);
  /* High-utility active state */
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Icons - Enterprise (No background pills, clean glyphs) */
.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2.5rem;
  /* Reduced footprint */
  height: 2.5rem;
  display: flex;
  align-items: center;
  /* Center vertically relative to line-height */
  justify-content: flex-start;
  /* Left align to text */
  color: var(--text-primary);
  transition: color 0.2s ease;
  margin-top: -2px;
  /* Optical alignment with H3 title */
}

/* Icon Colors - Applied directly to text/glyph */
.icon-primary {
  color: var(--brand-primary);
}

.icon-success {
  color: var(--status-success);
}

.icon-error {
  color: var(--status-error);
}

.icon-warning {
  color: var(--status-warning);
}

.icon-info {
  color: var(--status-info);
}

.icon-link {
  color: var(--text-link);
}


/* No rotation on hover, just color intensity or lift */
.feature-nav-item:hover .feature-icon {
  transform: none;
}

.feature-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  /* Larger Title */
  font-weight: 700;
  /* Bolder */
  color: #1e293b;
  /* Slate 800 - High Contrast */
  letter-spacing: -0.02em;
  /* Tight "Premium" tracking */
  line-height: 1.3;
}

.dark .feature-content h3 {
  color: #f8fafc;
  /* Slate 50 in Dark Mode */
}

.feature-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0 0 1rem 0;
  line-height: 1.5;
  font-weight: 500;
}

.feature-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.8rem;
}

.dark .feature-link {
  color: #60a5fa;
}

.feature-nav-item:hover .feature-link i {
  transform: translateX(4px);
  transition: transform 0.2s;
}

/* Utilities */
.text-white {
  color: #ffffff !important;
}

/* =============================================================================
   CREATOR PULSE WIDGET (Sidebar Embedded)
   ============================================================================= */
.creator-pulse-widget {
  width: calc(100% - 2rem);
  /* detached width */
  margin: 0 1rem 1rem 1rem;
  /* Floating margin */
  padding: 0.75rem;
  margin-top: auto;
  /* Push to bottom */

  /* Floating "On Top" Style */
  background: var(--bg-elevated);
  /* Slightly lighter/different than sidebar */
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  /* Float shadow */

  overflow: hidden;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: auto;
}

/* Dark Mode: Make it float distinctly but subtly */
html.dark .creator-pulse-widget {
  background: var(--bg-card);
  /* Should match card bg */
  border-color: var(--border-primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Sidebar Collapsed State - Widget Adaptation */
.sidebar.collapsed .creator-pulse-widget {
  width: calc(100% - 1rem);
  margin: 0 0.5rem 1rem 0.5rem;
  padding: 0.75rem 0;
  justify-content: center;
  border: 1px solid var(--border-primary);
  border-radius: 8px;
}

.sidebar.collapsed .pulse-content-wrapper {
  display: none;
  /* Hide details when collapsed */
}

.sidebar.collapsed .pulse-icon-wrapper {
  margin: 0;
}

/* Icon & Pulse Status */
.pulse-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  background: rgba(42, 64, 102, 0.1);
  border-radius: 8px;
  color: var(--brand-primary);
}

.dark .pulse-icon-wrapper {
  background: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
}

.pulse-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 6px #ef4444;
  animation: pulse-dot-anim 2s infinite;
  z-index: 2;
}

@keyframes pulse-dot-anim {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Text Content */
.pulse-content-wrapper {
  flex: 1;
  overflow: hidden;
  /* Ensure text doesn't spill */
}

.pulse-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
}

.pulse-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.pulse-content {
  display: flex;
  flex-direction: column;
}

.pulse-item-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse-item-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.pulse-item-change {
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

/* Animations & Trends */
.creator-pulse-widget.fade-in {
  opacity: 1;
}

.pulse-content.slide-out {
  opacity: 0;
  transform: translateY(-5px);
}

.pulse-content.slide-in {
  animation: slide-in-anim 0.3s forwards;
}

@keyframes slide-in-anim {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trend-up {
  color: #10b981;
}

.trend-down {
  color: #ef4444;
}

.trend-neutral {
  color: var(--text-muted);
}

/* Ensure Sidebar column layout */
.sidebar {
  display: flex;
  flex-direction: column;
}

.sidebar-nav {
  flex: 1;
  /* Push widget to bottom */
}

/* =============================================================================
   SECURITY SPEC CARDS (How It Works Page)
   ============================================================================= */

/* Security Spec Grid defined above - duplicate removed for consistency */

.security-spec-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.security-spec-header i {
  font-size: 1.5rem;
  color: var(--brand-primary);
}

.security-spec-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* =============================================================================
   GLOBAL POLISH: Dividers, Buttons, Icons
   ============================================================================= */

/* Consistent Dividers */
hr,
.divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 2rem 0;
}

.border-top {
  border-top: 1px solid var(--border-subtle) !important;
}

/* Consistent Button Radius */
.btn,
button,
[class*="btn-"] {
  border-radius: var(--radius-button, 8px);
}

/* Icon Vertical Centering Helper */
.icon-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Step Flow Styling (How It Works) */
/* Step flow grid variant - for horizontal layouts on larger screens */
@media (min-width: 768px) {
  .step-flow.step-flow-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .step-flow.step-flow-horizontal .step-item {
    text-align: center;
  }
  
  .step-flow.step-flow-horizontal .step-icon-container {
    margin: 0 auto 1rem;
  }
}

/* Step Icon Container - shared across flow types */
.step-flow .step-icon-container {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.step-content h4 {
  margin-bottom: 0.5rem;
}

/* Flow Note (Security/Privacy callout) */
.flow-note {
  background: var(--bg-secondary);
  border-left: 3px solid var(--brand-primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-md, 8px) var(--radius-md, 8px) 0;
}

.flow-note p {
  margin: 0;
}

/* Warning Card */
.warning-card {
  background: var(--bg-warning, rgba(245, 158, 11, 0.1));
  border: 1px solid var(--warning);
  border-radius: var(--radius-md, 8px);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-warning);
}

/* Table Wrapper for Responsive Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 1rem 0;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrapper th,
.table-wrapper td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.table-wrapper th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

.table-wrapper tr:hover td {
  background: var(--bg-hover);
}

/* =============================================================================
   FAQ SEARCH
   ============================================================================= */

.faq-search-container {
  margin-bottom: 2rem;
}

.faq-search-input-wrapper {
  position: relative;
  max-width: 400px;
}

.faq-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.faq-search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md, 8px);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-search-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.faq-search-input::placeholder {
  color: var(--text-muted);
}

.faq-results-count {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  color: var(--text-muted);
}

mark {
  background: rgba(74, 124, 175, 0.3);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

/* =============================================================================
   SCROLL-TRIGGERED ANIMATIONS (Subtle, Vibe Coded Vibes Compliant)
   ============================================================================= */

.scroll-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scroll-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scroll-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scroll-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delays for child elements */
.scroll-stagger>*:nth-child(1) {
  transition-delay: 0ms;
}

.scroll-stagger>*:nth-child(2) {
  transition-delay: 100ms;
}

.scroll-stagger>*:nth-child(3) {
  transition-delay: 200ms;
}

.scroll-stagger>*:nth-child(4) {
  transition-delay: 300ms;
}

.scroll-stagger>*:nth-child(5) {
  transition-delay: 400ms;
}

.scroll-stagger>*:nth-child(6) {
  transition-delay: 500ms;
}

/* =============================================================================
   READING TIME UTILITY
   ============================================================================= */

.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.reading-time i {
  font-size: 0.75rem;
}

/* =============================================================================
   TOUCH OPTIMIZED (Mobile)
   ============================================================================= */

@media (max-width: 768px) {

  /* Ensure minimum 44px touch targets */
  .btn,
  button,
  .faq-question,
  .nav-item a,
  .sidebar-item {
    min-height: 44px;
    min-width: 44px;
  }

  /* Larger tap areas for links in lists */
  .features-list li,
  .footer-column a {
    padding: 0.5rem 0;
  }
}

/* =============================================================================
   PWA INSTALL PROMPT
   ============================================================================= */

.pwa-install-prompt {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-card, 8px);
  box-shadow: var(--shadow-xl);
  padding: 1rem 1.25rem;
  max-width: 400px;
  width: calc(100% - 2rem);
  transition: bottom 0.3s ease-out;
}

.pwa-install-prompt.visible {
  bottom: 1rem;
}

.pwa-prompt-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pwa-prompt-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gradient);
  border-radius: 12px;
  color: var(--text-inverse);
  font-size: 1.25rem;
}

.pwa-prompt-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pwa-prompt-text strong {
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.pwa-prompt-text span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.pwa-prompt-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pwa-prompt-actions .btn-ghost {
  padding: 0.5rem;
  color: var(--text-muted);
}

/* PWA Update Notification */
.pwa-update-notification {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-card, 8px);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 1rem;
  transition: top 0.3s ease-out;
}

.pwa-update-notification.visible {
  top: 1rem;
}

.pwa-update-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.pwa-update-content i {
  color: var(--brand-primary);
}

/* =============================================================================
   MOBILE BOTTOM NAVIGATION
   ============================================================================= */

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-card);
  border-top: 1px solid var(--border-primary);
  padding: 0.5rem 0;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  /* Add padding to body to account for bottom nav */
  body {
    padding-bottom: 70px;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.6875rem;
  transition: color 0.2s ease;
  min-width: 60px;
}

.mobile-nav-item i {
  font-size: 1.25rem;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--brand-primary);
}

.mobile-nav-item.active {
  font-weight: 600;
}

/* ARIA button in mobile nav */
#mobile-aria-trigger {
  background: none;
  border: none;
  cursor: pointer;
}

#mobile-aria-trigger i {
  color: var(--brand-primary);
}

/* Dark mode adjustments */
.dark .pwa-install-prompt,
.dark .pwa-update-notification,
.dark .mobile-bottom-nav {
  background: var(--bg-card);
  border-color: var(--border-primary);
}

/* =============================================================================
   LIVE DASHBOARD PREVIEW
   ============================================================================= */

.dashboard-preview-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.dashboard-preview-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
}

.preview-dots {
  display: flex;
  gap: 0.5rem;
}

.preview-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.preview-dots .dot.red {
  background: #ef4444;
}

.preview-dots .dot.yellow {
  background: #f59e0b;
}

.preview-dots .dot.green {
  background: #10b981;
}

.preview-url {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: monospace;
  background: var(--bg-tertiary, var(--bg-primary));
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.preview-content {
  position: relative;
  overflow: hidden;
}

.preview-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.preview-content:hover .preview-overlay {
  opacity: 1;
}

.preview-overlay .text-inverse {
  color: #ffffff;
}

.preview-overlay p {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .preview-overlay {
    opacity: 1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  }

  .preview-header {
    padding: 0.5rem 0.75rem;
  }

  .preview-url {
    font-size: 0.6875rem;
  }

  .preview-dots .dot {
    width: 10px;
    height: 10px;
  }
}

/* =============================================================================
   SWIPE GALLERY
   ============================================================================= */

.hero-carousel {
  cursor: grab;
  touch-action: pan-y pinch-zoom;
}

.hero-carousel:active {
  cursor: grabbing;
}

.carousel-track {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.swipe-indicator {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  animation: swipeHint 2s ease-in-out infinite;
}

.swipe-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border-radius: 20px;
  font-size: 0.8125rem;
  backdrop-filter: blur(4px);
}

.swipe-hint i {
  animation: swipeIcon 2s ease-in-out infinite;
}

@keyframes swipeHint {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

@keyframes swipeIcon {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(10px);
  }
}

/* =============================================================================
   ICON MICROINTERACTIONS (Lottie Alternative)
   ============================================================================= */

/* Subtle pulse for feature icons */
.feature-icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-nav-item:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(var(--brand-primary-rgb), 0.3);
}

/* Animate specific icons */
.feature-icon i {
  transition: transform 0.3s ease;
}

.feature-nav-item:hover .feature-icon i {
  animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* DNA helix rotation hint */
.icon-success:hover i.fa-dna {
  animation: dnaRotate 2s linear infinite;
}

@keyframes dnaRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Chart line pulse */
.icon-warning:hover i.fa-chart-line {
  animation: chartPulse 1s ease-in-out infinite;
}

@keyframes chartPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1) translateY(-2px);
  }
}

/* Calendar shake */
.icon-link:hover i.fa-calendar-alt {
  animation: calendarShake 0.5s ease;
}

@keyframes calendarShake {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-5deg);
  }

  75% {
    transform: rotate(5deg);
  }
}

/* Custom brand icons in feature grid */
.feature-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.feature-nav-item:hover .feature-brand-icon {
  transform: scale(1.1);
}

/* =============================================================================
   MOBILE VIEW FIXES (Critical)
   ============================================================================= */

@media (max-width: 480px) {

  /* Fix page content overflow */
  body {
    overflow-x: hidden;
  }

  .page-shell,
  .content-page,
  .container {
    max-width: 100vw;
    overflow-x: hidden;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }

  /* Carousel dots - reduce size on mobile */
  .carousel-nav {
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }

  .nav-dot {
    width: 8px;
    height: 8px;
  }

  .nav-dot.active {
    transform: scale(1.15);
  }

  /* Pricing cards - fix overflow */
  .pricing-card,
  .bento-item {
    max-width: 100%;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .pricing-table {
    gap: 1rem;
  }

  .price-tag {
    font-size: 2rem;
  }

  .features-list {
    padding-left: 0;
  }

  .features-list li {
    font-size: 0.875rem;
  }

  /* Section padding adjustments */
  .section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .section-intro {
    font-size: 0.9375rem;
    padding: 0 0.5rem;
  }

  /* Hero text sizing */
  .hero-tagline {
    font-size: 1.75rem;
    line-height: 1.3;
    padding: 0 0.5rem;
  }

  .hero-description {
    font-size: 0.9375rem;
    padding: 0 1rem;
  }

  /* Button sizing */
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  .btn-large {
    padding: 0.875rem 1.5rem;
  }

  /* Table overflow */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table {
    min-width: 500px;
    font-size: 0.8125rem;
  }

  /* Bento grid - ensure single column */
  .bento-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto;
  }

  .bento-2x1,
  .bento-2x2,
  .bento-1x2 {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  /* Feature nav grid */
  .feature-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .feature-nav-item {
    padding: 0.75rem;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .feature-nav-item h3 {
    font-size: 0.8125rem;
  }

  .feature-nav-item p {
    display: none;
  }

  /* Dashboard preview */
  .dashboard-preview-frame {
    border-radius: 8px;
  }

  .preview-header {
    padding: 0.5rem;
  }

  /* Hero carousel */
  .hero-carousel {
    margin: 0 -1rem;
    border-radius: 0;
  }

  /* Marquee */
  .logo-marquee {
    padding: 1rem 0;
  }

  .marquee-item {
    font-size: 0.75rem;
    padding: 0 0.75rem;
  }
}

/* Slightly larger mobile screens */
@media (min-width: 481px) and (max-width: 768px) {
  .nav-dot {
    width: 10px;
    height: 10px;
  }

  .pricing-card {
    max-width: 100%;
  }

  .feature-nav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============================================================================
   PSYCHOLOGY-DRIVEN MESSAGING COMPONENTS
   ============================================================================= */

/* Hero Eyebrow */
.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

/* Pain Point Badges */
.pain-point-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.pain-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(var(--brand-primary-rgb, 42, 64, 102), 0.1);
  border: 1px solid var(--brand-primary);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-primary);
  transition: all 0.3s ease;
}

.pain-badge:hover {
  background: var(--brand-primary);
  color: white;
  transform: translateY(-2px);
}

.pain-badge i {
  font-size: 1rem;
}

/* The Math Section */
.the-math-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.comparison-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto 0;
}

.comparison-card {
  background: var(--bg-card);
  border-radius: var(--radius-card, 12px);
  padding: 2rem;
  border: 1px solid var(--border-primary);
  position: relative;
}

.comparison-card.without-card {
  border-left: 4px solid var(--error, #ef4444);
}

.comparison-card.with-card {
  border-left: 4px solid var(--success, #10b981);
  box-shadow: var(--shadow-lg);
}

.comparison-card h3 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comparison-card.without-card h3 {
  color: var(--error, #ef4444);
}

.comparison-card.with-card h3 {
  color: var(--success, #10b981);
}

.comparison-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.comparison-card li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.05));
  font-size: 0.9375rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.comparison-card li:last-child {
  border-bottom: none;
}

.comparison-card li i {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.comparison-card.without-card li i {
  color: var(--error, #ef4444);
}

.comparison-card.with-card li i {
  color: var(--success, #10b981);
}

.total-cost,
.total-gain {
  font-size: 1.125rem;
  font-weight: 700;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.total-cost {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error, #ef4444);
}

.total-gain {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success, #10b981);
}

/* Value Anchor (Pricing) */
.value-anchor {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-card, 12px);
}

.value-anchor .strikethrough {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 1rem;
  margin: 0.25rem 0;
}

.value-anchor .actual-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success, #10b981);
  margin: 1rem 0 0.5rem;
}

.value-anchor .roi-note {
  font-size: 0.875rem;
  color: var(--brand-primary);
  font-weight: 600;
}

/* Proof Stats */
.proof-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 8px;
  border-left: 3px solid var(--brand-primary);
}

.proof-stat .stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.proof-stat .stat-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .pain-point-badges {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .pain-badge {
    font-size: 0.8125rem;
    padding: 0.4rem 0.875rem;
  }

  .comparison-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .comparison-card {
    padding: 1.5rem;
  }

  /* Admin Mobile Fixes */
  .admin-container {
    padding: 1rem 1.5rem;
    /* More horizontal padding */
  }

  /* Larger touch targets & prevent zoom on iOS */
  .admin-form input,
  .admin-form select,
  .admin-form textarea,
  .form-control {
    font-size: 16px !important;
    min-height: 48px;
  }
}

/* =============================================================================
   CHANGELOG SECTION
   ============================================================================= */

.changelog-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-primary);
}

.changelog-feed {
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.changelog-entry {
  padding: 1.5rem;
  border-left: 3px solid var(--brand-primary);
}

.changelog-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.changelog-version {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
}

.changelog-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.changelog-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.changelog-summary {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.changelog-changes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.changelog-changes li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.changelog-changes li:last-child {
  border-bottom: none;
}

.change-type {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.change-type.new {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success, #10b981);
}

.change-type.improved {
  background: rgba(59, 130, 246, 0.15);
  color: var(--brand-primary, #3b82f6);
}

.change-type.fixed {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.change-type.breaking {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error, #ef4444);
}

@media (max-width: 768px) {
  .changelog-section {
    padding: 2rem 1rem;
  }

  .changelog-entry {
    padding: 1rem;
  }

  .changelog-title {
    font-size: 1rem;
  }
}

/* =============================================================================
   COMPARISON TABLE STYLES (Row-Based Layout)
   ============================================================================= */
.comparison-clean-container {
  max-width: 1200px;
  margin: 2rem auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-primary);
  background: var(--bg-card);
}

.comparison-header-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  background: var(--bg-tertiary);
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-primary);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
  transition: background 0.2s ease;
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-row:hover {
  background: var(--bg-hover);
}

.col-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.col-feature i {
  color: var(--brand-primary);
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.col-old {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.col-new {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--brand-primary);
}

.col-new i {
  color: var(--success);
}

@media (max-width: 768px) {
  .comparison-clean-container {
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
  }

  .comparison-header-row,
  .comparison-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem;
  }

  .comparison-header-row {
    display: none; /* Hide header on mobile, use card layout instead */
  }

  .comparison-row {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
  }

  .col-feature {
    font-size: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border-subtle);
  }

  .col-old::before {
    content: "Before: ";
    color: var(--text-muted);
    font-weight: 600;
  }

  .col-new::before {
    content: "After: ";
    font-weight: 600;
  }
}

/* =============================================================================
   LEGACY COMPARISON COLUMN STYLES (For other pages)
   ============================================================================= */
.comparison-column {
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  position: relative;
  transition: transform 0.3s ease;
}

.comparison-column.legacy {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  opacity: 0.9;
}

.comparison-column.modern {
  background: var(--bg-card);
  border: 2px solid var(--brand-primary);
  box-shadow: var(--shadow-xl);
  z-index: 2;
  transform: scale(1.02);
}

.comparison-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comparison-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comparison-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.comparison-list li i {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.comparison-column.modern .comparison-list li {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
}

.comparison-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-weight: 700;
  font-size: 1.1rem;
}

.comparison-column.modern .comparison-footer {
  color: var(--brand-primary);
}

@media (max-width: 768px) {
  .comparison-column.modern {
    transform: none;
  }
}

/* =============================================================================
   MOBILE DRAWER & BOTTOM SHEET
   ============================================================================= */
.mobile-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + 60px);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.mobile-drawer.active {
  transform: translateY(0);
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
}

.drawer-item i {
  font-size: 1.5rem;
  color: var(--brand-primary);
  background: var(--bg-secondary);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: transform 0.2s;
}

.drawer-item:active i {
  transform: scale(0.95);
}

/* =============================================================================
   PREMIUM CTA BANNER
   ============================================================================= */
.cta-banner-premium {
  background: var(--brand-gradient);
  border-radius: 24px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-banner-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 60%);
  pointer-events: none;
}

.cta-content {
  flex: 1;
  z-index: 2;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #fff, #bfdbfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 400px;
}

.cta-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-visual {
  position: relative;
  z-index: 2;
}

/* CTA Visual Price Tag - scoped to avoid conflict with pricing cards */
.cta-visual .price-tag,
.hero-cta .price-tag-visual {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  transform: rotate(-5deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.price-val {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.price-label {
  font-size: 1rem;
  opacity: 0.8;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

/* =============================================================================
   MOBILE PULSE WIDGET
   ============================================================================= */
.mobile-pulse-widget {
  display: none;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-primary);
  height: 36px;
  overflow: hidden;
  width: 100%;
  position: relative;
}

.mobile-pulse-widget .pulse-content-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-pulse-widget .pulse-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.mobile-pulse-widget .pulse-item-label {
  color: var(--text-muted);
  font-weight: 500;
}

.mobile-pulse-widget .pulse-item-value {
  color: var(--text-primary);
  font-weight: 700;
}

.mobile-pulse-widget .pulse-item-change {
  font-size: 0.75rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-pulse-widget .pulse-icon {
  display: none;
}

/* =============================================================================
   RESPONSIVE: CTA & MOBILE
   ============================================================================= */
@media (max-width: 768px) {
  .cta-banner-premium {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    gap: 2rem;
  }

  .cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cta-note {
    justify-content: center;
  }

  .cta-visual {
    display: none;
  }

  .mobile-pulse-widget {
    display: block;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .content-page {
    padding: 1.5rem 1rem !important;
  }
}

/* =============================================================================
   DESKTOP HEADER FIX
   ============================================================================= */
@media (min-width: 769px) {
  .app-header {
    flex-direction: row !important;
    justify-content: space-between !important;
    height: 64px !important;
  }

  .header-main {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    flex: 1 !important;
  }

  .header-actions {
    display: flex !important;
  }

  .header-greeting {
    width: auto !important;
  }
}

/* =============================================================================
   BLOG ARTICLE STYLES
   Proper typography, spacing, and formatting for blog post content
   ============================================================================= */

/* Blog Article Container */
.blog-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  line-height: 1.8;
}

/* Back Link */
.blog-article .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s ease;
}

.blog-article .back-link:hover {
  color: var(--brand-primary);
}

/* Article Hero Image */
.blog-article .article-hero {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-tertiary);
}

/* Breadcrumb Navigation */
.blog-article nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.blog-article nav a {
  color: var(--brand-primary);
  text-decoration: none;
}

.blog-article nav a:hover {
  text-decoration: underline;
}

/* Article Title */
.blog-article h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Article Meta (Date) */
.blog-article .content-meta,
.blog-article > p:first-of-type {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Article Content Container */
.article-content {
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Paragraphs */
.article-content p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

/* Headings */
.article-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-subtle);
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content h5,
.article-content h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Lists */
.article-content ul,
.article-content ol {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content ul {
  list-style-type: disc;
}

.article-content ol {
  list-style-type: decimal;
}

.article-content li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 0.5rem;
}

.article-content li::marker {
  color: var(--brand-primary);
}

.article-content li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Blockquotes */
.article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--bg-tertiary);
  border-left: 4px solid var(--brand-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-content blockquote p {
  margin-bottom: 0;
}

/* Code Blocks */
.article-content pre {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  border: 1px solid var(--border-primary);
}

.article-content code {
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  background: var(--bg-tertiary);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--brand-primary);
}

.article-content pre code {
  background: transparent;
  padding: 0;
  color: var(--text-primary);
}

/* Links in Content */
.article-content a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.article-content a:hover {
  color: var(--brand-secondary);
}

/* Images in Content */
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

/* Tables */
.article-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-content th,
.article-content td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-primary);
}

.article-content th {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-primary);
}

.article-content td {
  color: var(--text-secondary);
}

/* Horizontal Rule / Divider */
.blog-article .divider,
.blog-article hr {
  border: none;
  height: 1px;
  background: var(--border-primary);
  margin: 3rem 0;
}

/* Founder Card */
.blog-article .founder-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
}

.blog-article .founder-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.blog-article .founder-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.blog-article .founder-card a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 500;
}

.blog-article .founder-card a:hover {
  text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .blog-article {
    padding: 1.5rem 1rem;
  }

  .blog-article h1 {
    font-size: 1.75rem;
  }

  .article-content {
    font-size: 1rem;
  }

  .article-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .article-content h3 {
    font-size: 1.25rem;
    margin-top: 1.75rem;
  }

  .blog-article .article-hero {
    height: 200px;
    margin-bottom: 1.5rem;
  }

  .article-content blockquote {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
  }

  .blog-article .founder-card {
    padding: 1.5rem;
  }
}

/* =============================================================================
   COMPREHENSIVE MOBILE OPTIMIZATION
   Complete mobile-first responsive fixes for all components
   ============================================================================= */

@media (max-width: 768px) {
  /* --- HEADER FIXES --- */
  .app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    padding: 0 1rem;
    z-index: 2005;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
  }

  .header-main {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }

  .header-greeting {
    font-size: 0.85rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
  }

  .header-actions {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
  }

  /* Hide Register button on mobile header */
  .header-actions .btn-primary,
  .header-actions a.btn {
    display: none !important;
  }

  .header-actions .theme-toggle {
    display: flex !important;
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* --- PAGE SHELL / MAIN CONTENT --- */
  .page-shell {
    margin-left: 0 !important;
    padding-top: 56px !important;
    padding-bottom: 80px !important;
    width: 100% !important;
  }

  .main-content {
    padding: 1rem !important;
  }

  /* --- HERO SECTION --- */
  .hero-section,
  .hero-grid,
  .hero {
    padding: 1.5rem 1rem !important;
    min-height: auto !important;
  }

  .hero-content {
    text-align: center;
    padding: 0 0.5rem;
  }

  .hero h1,
  .hero-text h1 {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  .hero p,
  .hero-text p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  .hero-eyebrow {
    font-size: 0.75rem !important;
    letter-spacing: 0.08em;
  }

  /* Hero Features List */
  .hero-features,
  .feature-grid-hero {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    text-align: left;
    padding: 0 !important;
  }

  .hero-features .feature-item,
  .feature-grid-hero .feature-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    font-size: 0.875rem !important;
  }

  .hero-features .feature-item i,
  .feature-grid-hero .feature-item i {
    font-size: 1rem !important;
    width: 24px !important;
    flex-shrink: 0;
  }

  /* Hero CTA */
  .hero-cta,
  .cta-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }

  .hero-cta .btn,
  .cta-row .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.875rem 1.5rem !important;
    font-size: 0.9375rem !important;
  }

  /* Hero Carousel */
  .hero-carousel {
    margin-top: 1.5rem;
    overflow: hidden;
  }

  .hero-carousel-track {
    gap: 0.5rem;
  }

  .hero-carousel-slide img {
    max-height: 200px;
    object-fit: contain;
  }

  .nav-dots {
    margin-top: 1rem;
    gap: 0.5rem;
  }

  .nav-dot {
    width: 8px;
    height: 8px;
  }

  /* --- SECTION TITLES --- */
  .section-title,
  section h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
    text-align: center;
  }

  .section-intro,
  section > p {
    font-size: 0.9rem !important;
    text-align: center;
  }

  /* --- PAIN POINT BADGES --- */
  .pain-point-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem !important;
  }

  .pain-badge {
    font-size: 0.75rem !important;
    padding: 0.375rem 0.75rem !important;
    white-space: nowrap;
  }

  .pain-badge i {
    font-size: 0.875rem !important;
  }

  /* --- COMPARISON TABLE MOBILE --- */
  .comparison-clean-container {
    margin: 1rem 0 !important;
    border-radius: var(--radius-md) !important;
  }

  .comparison-header-row {
    display: none !important;
  }

  .comparison-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding: 1rem !important;
    margin: 0.5rem !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-md) !important;
  }

  .col-feature {
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: var(--text-primary) !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .col-feature i {
    font-size: 1rem !important;
    color: var(--brand-primary) !important;
  }

  .col-old,
  .col-new {
    font-size: 0.875rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .col-old::before {
    content: "Before: ";
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
  }

  .col-new::before {
    content: "After: ";
    font-weight: 500;
    color: var(--brand-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
  }

  /* --- CTA BANNER --- */
  .cta-banner-premium {
    padding: 1.5rem !important;
    text-align: center !important;
    flex-direction: column !important;
  }

  .cta-banner-premium h3 {
    font-size: 1.25rem !important;
  }

  .cta-banner-premium p {
    font-size: 0.875rem !important;
  }

  .cta-visual {
    display: none !important;
  }

  /* --- LOGO MARQUEE --- */
  .logo-marquee {
    padding: 1.5rem 0 !important;
  }

  .logo-marquee-title {
    font-size: 0.75rem !important;
    margin-bottom: 1rem !important;
  }

  .marquee-logo {
    width: 80px !important;
    height: 32px !important;
    margin: 0 0.75rem !important;
  }

  /* --- TRUST BADGES --- */
  .trust-badges {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    padding: 0 0.5rem !important;
  }

  .trust-badge {
    font-size: 0.75rem !important;
    padding: 0.5rem !important;
    text-align: center !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
  }

  .trust-badge i {
    font-size: 1rem !important;
  }

  /* --- STATS GRID --- */
  .stats-grid,
  .social-proof-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
  }

  .stat-item {
    padding: 1rem 0.5rem !important;
    text-align: center !important;
  }

  .stat-value {
    font-size: 1.5rem !important;
  }

  .stat-label {
    font-size: 0.6875rem !important;
  }

  /* --- FEATURE NAVIGATION GRID --- */
  .feature-nav-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    padding: 0 !important;
  }

  .feature-nav-item {
    padding: 1rem !important;
    text-align: center !important;
  }

  .feature-nav-item i {
    font-size: 1.25rem !important;
    margin-bottom: 0.5rem !important;
  }

  .feature-nav-item h3 {
    font-size: 0.875rem !important;
  }

  .feature-nav-item .feature-link {
    font-size: 0.75rem !important;
  }

  /* --- BENTO GRID --- */
  .bento-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .bento-item {
    padding: 1.25rem !important;
  }

  .bento-item h3 {
    font-size: 1rem !important;
  }

  /* --- SECURITY SPECS --- */
  .security-spec-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .security-spec-card {
    padding: 1.25rem !important;
  }

  .security-badges {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  .security-badge {
    font-size: 0.6875rem !important;
    padding: 0.25rem 0.5rem !important;
  }

  /* --- PRIVACY GRID --- */
  .privacy-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .privacy-card {
    padding: 1.25rem !important;
  }

  .privacy-card h3 {
    font-size: 1rem !important;
  }

  /* --- PLATFORM GRID --- */
  .platform-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.75rem !important;
  }

  .platform-icon {
    width: 48px !important;
    height: 48px !important;
  }

  .platform-icon img {
    width: 24px !important;
    height: 24px !important;
  }

  .platform-name {
    font-size: 0.6875rem !important;
  }

  /* --- PRICING CARDS --- */
  .pricing-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    padding: 0 !important;
  }

  .pricing-card {
    padding: 1.5rem !important;
    max-width: 100% !important;
  }

  .pricing-card h3 {
    font-size: 1.25rem !important;
  }

  .price-amount {
    font-size: 2rem !important;
  }

  /* --- FOOTER --- */
  .app-footer {
    padding: 2rem 1rem 5rem !important;
    text-align: center !important;
  }

  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  .footer-column {
    text-align: center !important;
  }

  .footer-column h4 {
    margin-bottom: 0.75rem !important;
    font-size: 0.875rem !important;
  }

  .footer-column a {
    padding: 0.5rem 0 !important;
    display: block !important;
  }

  .social-links-bottom {
    justify-content: center !important;
    gap: 1.5rem !important;
    margin-top: 1rem !important;
  }

  .footer-bottom {
    margin-top: 1.5rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid var(--border-subtle) !important;
  }

  /* --- MOBILE BOTTOM NAV SPACING --- */
  body {
    padding-bottom: 80px !important;
  }

  .mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2010 !important;
    background: var(--bg-primary) !important;
    border-top: 1px solid var(--border-subtle) !important;
    padding: 0.5rem 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0.5rem) !important;
  }

  /* --- SIDEBAR HIDDEN ON MOBILE --- */
  .sidebar {
    transform: translateX(-100%) !important;
    position: fixed !important;
    z-index: 2001 !important;
  }

  .sidebar.mobile-open {
    transform: translateX(0) !important;
  }

  /* --- CONTAINER PADDING --- */
  .container,
  .container-sm,
  .container-lg {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* --- FAQ ACCORDION --- */
  .faq-question {
    padding: 1rem !important;
    font-size: 0.9375rem !important;
  }

  .faq-answer {
    padding: 0 1rem 1rem !important;
    font-size: 0.875rem !important;
  }

  /* --- FORM INPUTS --- */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px !important; /* Prevents iOS zoom */
    padding: 0.875rem 1rem !important;
  }

  /* --- BUTTONS --- */
  .btn {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.9375rem !important;
    min-height: 44px !important;
  }

  .btn-lg {
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
  }

  /* --- CARDS GENERAL --- */
  .card,
  .bento-item,
  .feature-card,
  .glass-card {
    padding: 1.25rem !important;
  }
}

/* =============================================================================
   NEWS PAGE STYLES
   Layout, cards, and widgets for the News & Creator Pulse page
   ============================================================================= */

/* News Page Layout Grid */
.news-layout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  margin-top: 2rem;
}

/* Articles Column */
.articles-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Pulse Column (Right Sidebar) */
.pulse-column {
  position: sticky;
  top: calc(var(--header-height, 64px) + 1rem);
  height: fit-content;
}

/* Individual News Card */
.news-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

/* News Card Image */
.news-image {
  flex-shrink: 0;
  width: 200px;
  min-height: 180px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* News Card Content */
.news-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

/* News Category Badge */
.news-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-primary);
  background: rgba(59, 130, 246, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

/* News Title */
.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

/* News Excerpt */
.news-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1rem 0;
  flex: 1;
}

/* Reading Time */
.reading-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.reading-time i {
  margin-right: 0.25rem;
}

/* Read More Link */
.read-more-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s ease;
}

.read-more-link:hover {
  gap: 0.75rem;
}

/* Expanded Pulse Widget */
.expanded-pulse-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.pulse-header-large {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.pulse-header-large .pulse-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.pulse-header-large .pulse-title i {
  color: var(--brand-primary);
}

/* Live Indicator */
.pulse-live-indicator {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

/* Pulse Stats Grid */
.pulse-stats-expanded {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pulse-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.pulse-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.pulse-stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pulse-stat-change {
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.pulse-stat-change.positive {
  color: var(--success, #10b981);
}

.pulse-stat-change.negative {
  color: var(--error, #ef4444);
}

/* Live Wire Section */
.live-wire-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.live-wire-section h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.live-wire-item {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.live-wire-item:last-child {
  border-bottom: none;
}

.live-wire-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.live-wire-platform {
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 0.5rem;
}

/* Changelog Section */
.changelog-section {
  margin-top: 3rem;
}

.changelog-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.changelog-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.changelog-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.changelog-version {
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  background: var(--brand-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.changelog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.changelog-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.changelog-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 1rem 0;
}

.changelog-changes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.changelog-changes li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.change-type {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.change-type.new {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.change-type.improved {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.change-type.fixed {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.change-type.breaking {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* News Page Mobile Responsive */
@media (max-width: 1024px) {
  .news-layout-grid {
    grid-template-columns: 1fr;
  }

  .pulse-column {
    position: static;
    order: -1; /* Show pulse widget first on mobile */
  }
}

@media (max-width: 768px) {
  .news-card {
    flex-direction: column;
  }

  .news-image {
    width: 100%;
    height: 150px;
    min-height: 150px;
  }

  .news-content {
    padding: 1rem;
  }

  .news-title {
    font-size: 1.1rem;
  }

  .expanded-pulse-widget {
    padding: 1rem;
  }

  .pulse-stat-row {
    padding: 0.5rem;
  }

  .pulse-stat-value {
    font-size: 0.9rem;
  }
}