/* ================================================================
   landing.css - All styles for the Iron Rod AI landing page
   Extracted from templates/index.html for maintainability
   ================================================================ */

/* ── Main page styles ── */
    :root {
      /* Modern Color Palette - Professional yet Warm */
      --primary-color: #2d4a3e;
      --secondary-color: #5a6f64;
      --accent-color: #c4a747;
      --background-color: #ffffff;
      --text-color: #1a2124;
      --text-secondary: #525a5f;
      --light-gray: #f8f9f8;
      --dark-gray: #525a5f;
      --header-bg: #fafbfa;
      --header-border: rgba(45, 74, 62, 0.1);
      
      /* Modern spacing scale */
      --space-xs: 0.25rem;
      --space-sm: 0.5rem;
      --space-md: 1rem;
      --space-lg: 1.5rem;
      --space-xl: 2rem;
      --space-2xl: 3rem;
      --space-3xl: 4rem;
      
      /* Modern typography scale */
      --text-xs: 0.75rem;
      --text-sm: 0.875rem;
      --text-base: 1rem;
      --text-lg: 1.125rem;
      --text-xl: 1.25rem;
      --text-2xl: 1.5rem;
      --text-3xl: 1.875rem;
      --text-4xl: 2.25rem;
      --text-5xl: 3rem;
      
      /* Layout variables - keeping these unchanged */
      --navbar-height: 60px;
      --logged-in-header-height: 60px;
      --footer-height: 46px;
      --chat-input-height: 60px;
      
      /* Modern 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 -1px rgba(0, 0, 0, 0.06);
      --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
      --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
      
      /* Animation variables */
      --animation-duration: 0.3s;
      --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Modern base typography */
    * {
      font-variant-ligatures: common-ligatures;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    html {
      font-size: 16px;
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      font-size: var(--text-base);
      line-height: 1.6;
      background-color: var(--background-color);
      color: var(--text-color);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      margin: 0;
      padding: 0;
      padding-top: calc(var(--navbar-height) + env(safe-area-inset-top));
      padding-bottom: var(--footer-height);
      position: relative;
      overflow-x: hidden;
    }

    /* Modern background with subtle gradient overlay */
    body::before {
      content: "";
      position: fixed;
      top: 0;
      left: 50%; transform: translateX(-50%);
      width: 100vw;
      height: 100vh;
      background: url("/static/images/SceneWithTree.png") no-repeat center center;
      background-size: cover;
      z-index: -1;
      opacity: 0.6;
      pointer-events: none;
    }
    
    /* Add subtle overlay for better text readability */
    body::after {
      content: "";
      position: fixed;
      top: 0;
      left: 50%; transform: translateX(-50%);
      width: 100vw;
      height: 100vh;
      background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.5) 50%, 
        rgba(255, 255, 255, 0.4) 100%);
      z-index: -1;
      pointer-events: none;
    }

    /* Global, page-wide vertical rhythm for all pages */
    :root { --section-gap-global: 60px; }
    .container.content-section,
    section.content-section {
      margin-top: var(--section-gap-global) !important;
      margin-bottom: var(--section-gap-global) !important;
      padding-top: var(--section-gap-global) !important;
      padding-bottom: var(--section-gap-global) !important;
    }
    .container.content-section > *:first-child { margin-top: 0 !important; }
    .container.content-section > *:last-child { margin-bottom: 0 !important; }
    .container.content-section .row:last-child,
    .container.content-section .section-card:last-child,
    .container.content-section .info-panel:last-child,
    .container.content-section .comparison-section:last-child { margin-bottom: 0 !important; }

    /* Modern typography hierarchy */
    h1, .h1 { 
      font-size: var(--text-3xl); 
      font-weight: 700;
      line-height: 1.2;
      letter-spacing: -0.02em;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    }
    
    h2, .h2 { 
      font-size: var(--text-2xl); 
      font-weight: 600;
      line-height: 1.3;
      letter-spacing: -0.01em;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    }
    
    h3, .h3 { 
      font-size: var(--text-xl); 
      font-weight: 600;
      line-height: 1.4;
    }
    
    h4, .h4 { 
      font-size: var(--text-lg); 
      font-weight: 600;
      line-height: 1.4;
    }
    
    p {
      margin-bottom: var(--space-md);
      color: var(--text-secondary);
    }
    
    .lead {
      font-size: var(--text-lg);
      font-weight: 400;
      line-height: 1.7;
      color: var(--text-secondary);
    }

    /* Modern card design */
    .card {
      background: rgba(255, 255, 255, 0.8);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(0, 0, 0, 0.06);
      border-radius: 16px;
      box-shadow: var(--shadow-md);
      overflow: hidden;
      transition: all 0.3s var(--animation-timing);
    }
    
    .card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-xl);
      border-color: rgba(196, 167, 71, 0.2);
    }

    .card-header {
      background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
      color: white;
      font-weight: 600;
      padding: var(--space-lg);
      border: none;
    }

    .card-body {
      padding: var(--space-xl);
    }

    /* Modern buttons */
    .btn {
      font-weight: 500;
      padding: var(--space-sm) var(--space-lg);
      border-radius: 8px;
      transition: all 0.2s var(--animation-timing);
      font-size: var(--text-sm);
      letter-spacing: 0.01em;
      position: relative;
      overflow: hidden;
      border: none;
    }
    
    .btn::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.2);
      transform: translate(-50%, -50%);
      transition: width 0.6s, height 0.6s;
    }
    
    .btn:active::before {
      width: 300px;
      height: 300px;
    }
    
    .btn-primary {
      background: linear-gradient(135deg, var(--accent-color), #b39740);
      color: white;
      box-shadow: 0 2px 8px rgba(196, 167, 71, 0.3);
    }
    
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(196, 167, 71, 0.4);
      background: linear-gradient(135deg, #b39740, var(--accent-color));
    }
    
    .btn-outline-primary {
      background: transparent;
      color: var(--primary-color);
      border: 1.5px solid var(--primary-color);
    }
    
    .btn-outline-primary:hover {
      background: var(--primary-color);
      color: white;
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }

    /* Modern form controls */
    .form-control {
      border: 1.5px solid rgba(0, 0, 0, 0.08);
      border-radius: 8px;
      padding: var(--space-sm) var(--space-md);
      font-size: var(--text-base);
      transition: all 0.2s var(--animation-timing);
      background: rgba(255, 255, 255, 0.8);
    }
    
    .form-control:focus {
      border-color: var(--accent-color);
      box-shadow: 0 0 0 3px rgba(196, 167, 71, 0.1);
      outline: none;
      background: white;
    }
    
    /* Override browser autofill yellow/gold background */
    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    input:-webkit-autofill:active,
    textarea:-webkit-autofill,
    textarea:-webkit-autofill:hover,
    textarea:-webkit-autofill:focus,
    textarea:-webkit-autofill:active,
    select:-webkit-autofill,
    select:-webkit-autofill:hover,
    select:-webkit-autofill:focus,
    select:-webkit-autofill:active {
      -webkit-box-shadow: 0 0 0 1000px #fafbfa inset !important;
      -webkit-text-fill-color: var(--text-color) !important;
      background-color: #fafbfa !important;
      transition: background-color 5000s ease-in-out 0s;
    }
    
    .form-control:-webkit-autofill,
    .form-control:-webkit-autofill:hover,
    .form-control:-webkit-autofill:focus,
    .form-control:-webkit-autofill:active {
      -webkit-box-shadow: 0 0 0 1000px #fafbfa inset !important;
      -webkit-text-fill-color: var(--text-color) !important;
      background-color: #fafbfa !important;
    }

    /* Modern navbar - dark theme to match footer */
    .simple-navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      width: 100%;
      height: calc(var(--navbar-height) + env(safe-area-inset-top));
      padding-top: env(safe-area-inset-top);
      background: rgba(30, 40, 55, 0.95);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
      z-index: 1000;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .simple-navbar.scrolled {
      box-shadow: var(--shadow-md);
      background: rgba(30, 40, 55, 0.98);
    }
    
    .nav-container {
      width: 100%;
      margin: 0;
      padding: 0 10px 0 10px;
      padding-right: 30px; /* Increase right padding to push nav links left */
      height: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .nav-logo {
      display: inline-flex;
      align-items: center;
      transition: transform 0.3s var(--animation-timing);
    }
    
    .nav-logo:hover {
      transform: translateY(-2px);
    }
    
    .nav-logo img {
      height: calc(var(--navbar-height) * 0.7);
      width: auto;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }
    
    .nav-links {
      display: flex;
      gap: var(--space-xl);
      align-items: center;
      margin-right: 0;
    }
    
    /* Custom breakpoint for nav - switch to hamburger at 1450px */
    @media (max-width: 1450px) {
      .simple-navbar {
        display: none !important;
      }
      .mobile-header {
        display: flex !important;
      }
    }
    @media (min-width: 1451px) {
      .simple-navbar {
        display: block !important;
      }
      .mobile-header {
        display: none !important;
      }
    }
    
    .nav-links a {
      color: rgba(255, 255, 255, 0.9);
      text-decoration: none;
      font-weight: 500;
      font-size: var(--text-sm);
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      transition: all 0.3s var(--animation-timing);
      position: relative;
      padding: var(--space-xs) 0;
      white-space: nowrap;
    }
    
    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      width: 0;
      height: 2px;
      background: var(--accent-color);
      transition: all 0.3s var(--animation-timing);
      transform: translateX(-50%);
    }
    
    .nav-links a:hover {
      color: var(--accent-color);
    }
    
    .nav-links a:hover::after {
      width: 100%;
    }

    .nav-links a.nav-link-active,
    .nav-links a.nav-link-disabled {
      color: var(--accent-color) !important;
      font-weight: 600;
      pointer-events: none;
      cursor: default;
    }

    .nav-links a.nav-link-active::after,
    .nav-links a.nav-link-disabled::after {
      width: 100%;
    }
    
    /* Nav link icons */
    .nav-links a i {
      font-size: inherit;
      vertical-align: middle;
    }
    
    /* Brand text styling is now in partials/_branding_styles.html */

    .mobile-menu-nav-link.nav-link-active {
      color: var(--accent-color) !important;
      font-weight: 600;
      background: rgba(196, 167, 71, 0.1);
      padding-left: 15px;
      border-left: 3px solid var(--accent-color);
    }

    /* Logged-in header - dark theme to match footer */
    .logged-in-header {
      position: fixed;
      top: 0;
      left: 50%; transform: translateX(-50%);
      right: 0;
      height: calc(var(--logged-in-header-height) + env(safe-area-inset-top));
      padding-top: env(safe-area-inset-top);
      background: rgba(30, 40, 55, 0.95);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      z-index: 100;
      display: flex;
      align-items: center;
      box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
      backdrop-filter: blur(10px);
      transition: all 0.3s var(--animation-timing);
    }
    
    .header-left {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      height: 100%;
      justify-content: flex-start;
      padding-left: 10px;
    }
    
    .header-right {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      height: 100%;
      justify-content: flex-end;
      padding-right: 12px;
      gap: 4px;
    }
    
    .header-center {
      flex: 1;
    }
    
    .header-logo {
      display: flex;
      align-items: center;
      height: 100%;
      transition: transform 0.3s var(--animation-timing);
    }
    
    .header-logo:hover {
      transform: translateY(-2px);
    }
    
    .header-logo img {
      height: calc(var(--navbar-height) * 0.8);
      width: auto;
      background: none;
      border: none;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }
    
    .page-name {
      margin-left: 12px;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      font-size: 1.1rem;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.9);
      letter-spacing: 0.01em;
      display: inline-block;
    }
    
    .user-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid #e9ecef;
      transition: border-color 0.2s;
    }
    
    .user-avatar-link {
      display: block;
      text-decoration: none;
      margin-right: 3px;
    }
    
    .user-avatar-link:hover .user-avatar {
      border-color: var(--primary-color, #B0B8AA);
    }
    
    .settings-gear-link {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      transition: all 0.2s;
      text-decoration: none;
    }
    
    .settings-gear-link:hover {
      background: rgba(196, 167, 71, 0.1);
    }
    
    .settings-gear-link:hover i {
      color: var(--primary-color, #B0B8AA) !important;
      transform: rotate(15deg);
    }
    
    /* Menu button styles - light colors for dark header */
    .logged-in-header #mobile-menu-toggle,
    #mobile-menu-toggle {
      all: unset;
      position: relative;
      background: transparent;
      height: calc(var(--logged-in-header-height) * 0.8);
      width: calc(var(--logged-in-header-height) * 0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: rgba(255, 255, 255, 0.9);
      transition: all 0.3s var(--animation-timing);
      border-radius: 8px;
    }
    
    .logged-in-header #mobile-menu-toggle:hover,
    #mobile-menu-toggle:hover {
      color: var(--accent-color);
      background: rgba(255, 255, 255, 0.1);
    }
    
    /* Dark header menu button */
    .mobile-header #mobile-menu-toggle {
      color: rgba(255, 255, 255, 0.9);
    }
    
    /* Modern mobile header - dark theme to match footer */
    .mobile-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      width: 100%;
      height: calc(var(--navbar-height) + env(safe-area-inset-top));
      padding-top: env(safe-area-inset-top);
      background: rgba(30, 40, 55, 0.95);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-left: 10px;
      padding-right: 10px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-logo {
      display: flex;
      align-items: center;
      height: 100%;
      transition: transform 0.3s var(--animation-timing);
    }
    
    .mobile-logo:hover {
      transform: translateY(-2px);
    }
    
    .mobile-logo img {
      height: calc(var(--navbar-height) * 0.7);
      width: auto;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }
    
    /* Hide menu button when mobile menu is open */
    body.mobile-menu-open #mobile-menu-toggle {
      display: none !important;
    }

    /* Modern footer */
    footer {
      position: fixed;
      bottom: 0;
      left: 50%; transform: translateX(-50%);
      right: 0;
      width: 100%;
      height: var(--footer-height) !important;
      background: rgba(30, 40, 55, 0.95);
      backdrop-filter: blur(5px);
      z-index: 1030;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding: 0 !important;
      display: flex !important;
      align-items: center !important;
      font-size: var(--text-xs) !important;
    }
    
    footer .container {
      width: 100%;
      max-width: 100%;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      padding: 0 !important;
      margin: 0 !important;
    }

    footer .footer-version {
      display: none;
    }
    
    footer .footer-company {
      white-space: nowrap;
      margin-left: 16px;
    }
    
    footer .footer-links {
      margin-left: auto;
      margin-right: 16px;
    }

    footer .text-muted,
    footer .footer-company,
    footer .footer-links a,
    footer .footer-version {
      color: rgba(160, 165, 175, 0.85) !important;
      font-size: var(--text-sm) !important;
    }
    
    footer .footer-links a {
      margin: 0 0.45rem;
      transition: color 0.2s var(--animation-timing);
    }
    
    footer .footer-links a:hover {
      color: rgba(255, 255, 255, 1) !important;
      text-decoration: none;
    }
        
    /* Hide footer when header switches to hamburger menu */
    @media (max-width: 1450px) {
      footer {
        display: none !important;
      }

      body {
        padding-top: calc(var(--navbar-height) + env(safe-area-inset-top)) !important;
        height: auto !important;
        overflow: auto !important;
      }
    }

    main.container {
      flex: 1 !important;
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch !important;
      padding-bottom: var(--space-2xl) !important;
      max-width: 1200px;
      margin: 0 auto;
      padding-left: var(--space-lg);
      padding-right: var(--space-lg);
    }

    /* For chat page specific layout */
    main#chat-container {
      flex: 1;
      overflow-y: auto;
      height: calc(100vh - var(--navbar-height) - var(--footer-height));
      padding-top: 0;
      margin-top: 0;
    }

    /* Modern links */
    a {
      color: var(--primary-color);
      text-decoration: none;
      transition: color 0.2s var(--animation-timing);
      font-weight: 500;
    }

    a:hover {
      color: var(--accent-color);
      text-decoration: none;
    }

    /* Modern loading states */
    @keyframes shimmer {
      0% {
        background-position: -200% 0;
      }
      100% {
        background-position: 200% 0;
      }
    }
    
    .loading-skeleton {
      background: linear-gradient(90deg, 
        rgba(0,0,0,0.06) 25%, 
        rgba(0,0,0,0.03) 50%, 
        rgba(0,0,0,0.06) 75%
      );
      background-size: 200% 100%;
      animation: shimmer 1.5s infinite;
      border-radius: 4px;
    }

    /* Modern code blocks */
    pre {
      background: #1a1a1a;
      color: #e6e6e6;
      padding: var(--space-lg);
      border-radius: 8px;
      overflow-x: auto;
      font-size: var(--text-sm);
      line-height: 1.6;
      box-shadow: var(--shadow-md);
    }

    code {
      font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
      background: rgba(45, 74, 62, 0.08);
      padding: 2px 6px;
      border-radius: 4px;
      font-size: 0.9em;
    }

    /* ================================================================
       BOOTSTRAP MODAL Z-INDEX FIX
       Ensure Bootstrap modals (like arbiterModal) appear above headers,
       mobile menu elements, and cosmos settings gear
       ================================================================ */
    
    /* Body scroll lock when modal is open */
    body.modal-open {
      overflow: hidden !important;
    }
    
    /* Bootstrap modal backdrop - must be above all page elements */
    .modal-backdrop {
      z-index: 10000 !important;
    }
    
    /* Bootstrap modals - above backdrop */
    .modal {
      z-index: 10001 !important;
    }
    
    /* Specific modal overrides for extra safety */
    #arbiterModal,
    #testimonialsModal {
      z-index: 10001 !important;
    }
    
    #arbiterModal.show,
    #testimonialsModal.show {
      z-index: 10001 !important;
    }
    
    .modal .modal-dialog {
      margin-top: calc(20px + env(safe-area-inset-top)) !important;
    }
    
    .modal .modal-content {
      max-height: calc(100vh - 60px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    }
    
    .modal .modal-body {
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    /* Mobile menu styles - Dark blue theme matching header */
    .mobile-menu-container {
      position: fixed;
      top: 0;
      right: 0;
      transform: translateX(100%);
      width: 100%;
      max-width: 480px;
      height: 100vh;
      padding-top: env(safe-area-inset-top);
      background: rgba(30, 40, 55, 0.98);
      z-index: 1050;
      box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
      transition: transform 0.3s var(--animation-timing);
      display: flex;
      flex-direction: column;
    }

    .mobile-menu-container.show {
      transform: translateX(0);
    }

    .mobile-menu-overlay {
      display: none;
      position: fixed;
      top: 0; 
      left: 0;
      right: 0; 
      bottom: 0;
      background-color: rgba(0,0,0,0.5);
      z-index: 1045;
      opacity: 0;
      transition: opacity 0.3s var(--animation-timing);
    }

    .mobile-menu-overlay.show {
      display: block;
      opacity: 1;
    }

    .mobile-menu {
      padding: 0;
      flex: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      display: flex;
      flex-direction: column;
      background: rgba(30, 40, 55, 0.98);
    }

    .mobile-menu-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 15px;
      background: rgba(30, 40, 55, 1);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      flex-shrink: 0;
    }

    .mobile-menu-logo {
      display: flex;
      align-items: center;
      z-index: 1;
      text-decoration: none;
    }
    
    .mobile-menu-logo .nav-brand-text {
      font-weight: 600;
      color: rgba(255, 255, 255, 0.95);
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      font-size: 1.15rem;
      letter-spacing: 0.01em;
      white-space: nowrap;
    }
    
    .mobile-menu-logo .brand-ai {
      color: #D4AF37 !important;
      font-style: italic !important;
    }
    
    .mobile-menu-logo .brand-tm {
      color: rgba(255, 255, 255, 0.7) !important;
    }
    
    .mobile-menu-title {
      margin: 0 0 0 8px !important;
      padding: 0 !important;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      font-size: 1rem;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.7);
      letter-spacing: 0.01em;
      white-space: nowrap;
    }
    
    .mobile-menu-title::before {
      content: '|';
      margin-right: 10px;
      color: rgba(255, 255, 255, 0.3);
    }

    .mobile-menu-logo img {
      height: 45px;
      width: auto;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }
    
    .mobile-menu-close {
      background: none;
      border: none;
      font-size: 28px;
      cursor: pointer;
      padding: 0;
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1;
      transition: all 0.3s var(--animation-timing);
      border-radius: 50%;
      color: rgba(255, 255, 255, 0.7);
      margin-left: auto;
    }
    
    .mobile-menu-close:hover {
      background: rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.95);
      transform: rotate(90deg);
    }

    .mobile-menu-content {
      flex: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding: 0;
      padding-bottom: calc(20px + env(safe-area-inset-bottom));
      background: rgba(30, 40, 55, 0.98);
    }
    
    /* Section headers in dark menu */
    .mobile-menu-section-header {
      background: rgba(255, 255, 255, 0.05);
      padding: 12px 20px;
      font-size: 0.75rem;
      font-weight: 700;
      color: rgba(255, 255, 255, 0.5);
      text-transform: uppercase;
      letter-spacing: 1.5px;
      margin: 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-menu-nav-link {
      display: block;
      padding: 14px 20px;
      text-decoration: none;
      color: rgba(255, 255, 255, 0.85);
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      transition: all 0.3s var(--animation-timing);
      font-weight: 500;
      position: relative;
    }
    
    .mobile-menu-nav-link i {
      color: rgba(255, 255, 255, 0.5);
      transition: color 0.3s var(--animation-timing);
    }

    .mobile-menu-nav-link:hover {
      color: var(--accent-color);
      background: rgba(255, 255, 255, 0.05);
    }
    
    .mobile-menu-nav-link:hover i {
      color: var(--accent-color);
    }
    
    /* Current page menu item - selected state (gold highlight) */
    .mobile-menu-nav-link.nav-link-active,
    .mobile-menu-nav-link.mobile-menu-disabled {
      color: var(--accent-color, #c4a747) !important;
      cursor: default;
      pointer-events: none;
      background: rgba(196, 167, 71, 0.15);
      border-left: 3px solid var(--accent-color, #c4a747);
      padding-left: 17px;
    }
    
    .mobile-menu-nav-link.nav-link-active i,
    .mobile-menu-nav-link.mobile-menu-disabled i {
      color: var(--accent-color, #c4a747) !important;
    }
    
    /* Dividers in dark theme */
    .mobile-menu-divider {
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      margin: 8px 20px;
    }
    
    /* Copyright in dark theme */
    .mobile-menu-copyright {
      padding: 15px 20px;
      color: rgba(255, 255, 255, 0.35);
      font-size: clamp(0.5rem, 2.5vw, 0.65rem);
      line-height: 1.5;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      margin-top: 15px;
      padding-bottom: calc(15px + env(safe-area-inset-bottom));
      word-wrap: break-word;
      overflow-wrap: break-word;
    }

    /* Remove border-bottom from last item before divider */
    .mobile-menu-nav-link:has(+ div[style*="border-top"]) {
      border-bottom: none;
    }

    /* Fix for iOS safari for the fixed bottom input */
    @supports (-webkit-touch-callout: none) {
      #chat-form {
        padding-bottom: env(safe-area-inset-bottom);
      }
      
      .mobile-menu-container {
        padding-bottom: env(safe-area-inset-bottom);
      }
    }

    /* Modern scroll animations */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }
    
    .fade-in-up {
      animation: fadeInUp 0.6s var(--animation-timing) forwards;
    }
    
    .fade-in {
      animation: fadeIn 0.6s var(--animation-timing) forwards;
    }

    /* Modern utility classes */
    .glass {
      background: rgba(255, 255, 255, 0.7);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.18);
    }
    
    .gradient-border {
      position: relative;
      background: white;
      border-radius: 16px;
      padding: 2px;
    }
    
    .gradient-border::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 16px;
      padding: 2px;
      background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
    }

    /* Modern Hero Section - FROM INDEX.HTML */
    .hero-section {
      position: relative;
      padding: var(--space-2xl) 0;
      margin-bottom: var(--space-2xl);
      overflow: hidden;
    }

    .hero-section::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle at 30% 50%, rgba(196, 167, 71, 0.08) 0%, transparent 50%),
                  radial-gradient(circle at 70% 50%, rgba(45, 74, 62, 0.05) 0%, transparent 50%);
      animation: float 20s ease-in-out infinite;
      pointer-events: none;
    }

    @keyframes float {
      0%, 100% { transform: translate(0, 0) rotate(0deg); }
      33% { transform: translate(30px, -30px) rotate(1deg); }
      66% { transform: translate(-20px, 20px) rotate(-1deg); }
    }

    .hero-title {
      font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
      font-weight: 700;
      margin-bottom: var(--space-md);
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      letter-spacing: -0.02em;
    }

    .hero-copy {
      margin: 0 auto;
      text-align: center;
      max-width: 75ch;
      padding: 0;
    }

    .hero-promise {
      font-size: clamp(18px, 1.4vw, 22px);
      line-height: 1.4;
      font-weight: 400;
      letter-spacing: 0.1px;
      color: rgba(255,255,255,0.88);
      text-shadow: 0 1px 10px rgba(0,0,0,0.3);
      margin: 0;
    }

    .hero-reason {
      margin: 6px 0 0;
      font-size: clamp(15px, 1.1vw, 18px);
      line-height: 1.5;
      font-weight: 300;
      color: rgba(255,255,255,0.7);
      text-shadow: 0 1px 10px rgba(0,0,0,0.25);
      font-style: italic;
    }

    .hero-subtitle {
      font-size: var(--text-lg);
      font-style: italic;
      opacity: 0.8;
      margin-bottom: var(--space-xl);
      color: var(--text-secondary);
    }

    .hero-description {
      font-size: var(--text-xl);
      line-height: 1.6;
      margin-bottom: var(--space-2xl);
      color: var(--text-secondary);
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }

    /* Hero mobile responsive */
    @media (max-width: 768px) {
      .hero-section {
        padding: var(--space-lg) 0;
        margin-bottom: var(--space-xl);
      }
      
      .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: var(--space-sm);
      }
      
      .hero-copy {
        margin: 14px auto 20px;
      }
      
      .hero-reason {
        margin-top: 6px;
      }
      
      .hero-subtitle {
        font-size: var(--text-base);
        margin-bottom: var(--space-lg);
      }
      
      .hero-description {
        font-size: var(--text-base);
        line-height: 1.5;
        margin-bottom: var(--space-xl);
        padding: 0 var(--space-md);
      }
    }

    /* Section headers - common across pages */
    .section-title {
      color: var(--text-color);
      margin-bottom: var(--space-xl);
      text-align: center;
      font-weight: 600;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      font-size: var(--text-2xl);
    }

    /* Info panels - Dark Navy Starfield */
    .info-panel {
      background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
      border-left: 4px solid var(--accent-color);
      border-radius: 12px;
      padding: var(--space-xl);
      margin: var(--space-2xl) 0;
      box-shadow: 0 8px 32px rgba(0,0,0,0.3);
      border: 1px solid rgba(255,255,255,0.1);
      position: relative;
      overflow: hidden;
      transition: all 0.3s var(--animation-timing);
    }

    .info-panel::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image: radial-gradient(rgba(196, 167, 71, 0.05) 1px, transparent 1px);
      background-size: 24px 24px;
      pointer-events: none;
    }

    .info-panel:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    }

    .info-panel h3 {
      color: #ffffff;
      margin-bottom: var(--space-md);
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      font-size: var(--text-xl);
      position: relative;
      z-index: 1;
    }

    .info-panel h3 i {
      color: #c4a747;
    }

    .info-panel p {
      color: rgba(255,255,255,0.85);
      line-height: 1.8;
      margin-bottom: var(--space-md);
      font-size: var(--text-base);
      position: relative;
      z-index: 1;
    }

    .info-panel p a {
      color: #c4a747;
    }

    .info-panel p:last-child {
      margin-bottom: 0;
    }

    /* Modern section card - from index */
    .section-card {
      background: rgba(255, 255, 255, 0.8);
      backdrop-filter: blur(10px);
      border-radius: 20px;
      padding: var(--space-2xl);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
      border: 1px solid rgba(0, 0, 0, 0.05);
      transition: all 0.3s var(--animation-timing);
      position: relative;
      overflow: hidden;
    }

    .section-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.5s var(--animation-timing);
    }

    .section-card:hover::before {
      transform: scaleX(1);
    }

    .section-header {
      font-size: var(--text-2xl);
      font-weight: 600;
      text-align: center;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      color: var(--text-color);
      margin-bottom: var(--space-lg);
    }

    .section-body {
      font-size: var(--text-base);
      color: var(--text-secondary);
      line-height: 1.8;
      text-align: center;
    }

    .section-body p {
      margin-bottom: var(--space-lg);
    }

    /* Modern example buttons - from index */
    .example-buttons {
      display: flex;
      gap: var(--space-md);
      justify-content: center;
      flex-wrap: wrap;
      margin-top: var(--space-xl);
    }

    .example-btn {
      padding: var(--space-sm) var(--space-lg);
      border-radius: 10px;
      font-weight: 600;
      font-size: var(--text-sm);
      transition: all 0.3s var(--animation-timing);
      border: 1px solid rgba(196, 167, 71, 0.4);
      background: linear-gradient(135deg, rgba(196, 167, 71, 0.15) 0%, rgba(196, 167, 71, 0.08) 50%, rgba(196, 167, 71, 0.15) 100%);
      color: #c4a747;
      cursor: pointer;
      text-decoration: none;
      position: relative;
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(8px);
    }

    .example-btn::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      transition: width 0.5s, height 0.5s;
    }

    .example-btn:hover::before {
      width: 300%;
      height: 300%;
    }

    .example-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(196, 167, 71, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
      background: linear-gradient(135deg, rgba(196, 167, 71, 0.25) 0%, rgba(196, 167, 71, 0.15) 50%, rgba(196, 167, 71, 0.25) 100%);
      border-color: rgba(196, 167, 71, 0.6);
      color: #d4b957;
    }

    /* Modern subscription banner - from index */
    .subscription-banner {
      background: linear-gradient(135deg, rgba(196, 167, 71, 0.1), rgba(45, 74, 62, 0.05));
      border-radius: 16px;
      padding: var(--space-2xl);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      border: 1px solid rgba(196, 167, 71, 0.2);
      transition: all 0.3s var(--animation-timing);
    }

    .subscription-banner:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    }

    .subscription-banner h3 {
      color: var(--text-color);
      margin-bottom: var(--space-sm);
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      font-size: var(--text-xl);
    }

    .subscription-banner p {
      color: var(--text-secondary);
      margin-bottom: var(--space-lg);
      font-size: var(--text-base);
    }

    /* Example link style - from index */
    .example-link {
      color: var(--accent-color);
      text-decoration: none;
      font-weight: 500;
      transition: all 0.3s var(--animation-timing);
      position: relative;
    }

    .example-link::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 50%; transform: translateX(-50%);
      width: 0;
      height: 2px;
      background: var(--accent-color);
      transition: width 0.3s var(--animation-timing);
    }

    .example-link:hover::after {
      width: 100%;
    }

    /* Modern comparison cards - from index */
    .comparison-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--space-xl);
      max-width: 1000px;
      margin: 0 auto;
    }

    .comparison-card {
      background: white;
      border-radius: 16px;
      padding: var(--space-xl);
      position: relative;
      transition: all 0.3s var(--animation-timing);
      border: 2px solid transparent;
    }

    .comparison-card.negative {
      background: linear-gradient(to bottom right, #fff, #fef8f8);
    }

    .comparison-card.positive {
      background: linear-gradient(to bottom right, #fff, #f8fef8);
    }

    .comparison-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

    .comparison-card.negative:hover {
      border-color: #e53e3e;
    }

    .comparison-card.positive:hover {
      border-color: #48bb78;
    }

    .comparison-card h3 {
      margin-bottom: var(--space-lg);
      display: flex;
      align-items: center;
      font-size: var(--text-xl);
    }

    .comparison-card h3 i {
      margin-right: var(--space-sm);
      font-size: var(--text-xl);
    }

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

    .comparison-card li {
      margin-bottom: var(--space-md);
      padding-left: var(--space-xl);
      position: relative;
      line-height: 1.6;
      color: var(--text-secondary);
      font-size: var(--text-sm);
    }

    .comparison-card li::before {
      position: absolute;
      left: 50%; transform: translateX(-50%);
      top: 0.25em;
    }

    .comparison-card.negative li::before {
      content: '✕';
      color: #e53e3e;
    }

    .comparison-card.positive li::before {
      content: '✓';
      color: #48bb78;
    }

    /* Comparison responsive */
    @media (max-width: 768px) {
      .comparison-grid {
        grid-template-columns: 1fr;
      }
    }

    /* CTA sections - common style */
    .cta-section {
      text-align: center;
      margin-top: var(--space-2xl);
      padding: var(--space-2xl);
      background: var(--light-gray);
      border-radius: 15px;
    }

    .cta-section h2 {
      color: var(--text-color);
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      margin-bottom: var(--space-md);
    }

    .cta-section p {
      color: var(--text-secondary);
      margin-bottom: var(--space-lg);
    }

    .cta-button {
      display: inline-block;
      padding: var(--space-md) var(--space-2xl);
      background-color: var(--accent-color);
      color: var(--primary-color) !important;
      text-decoration: none;
      border-radius: 6px;
      font-weight: 600;
      transition: all 0.3s ease;
      margin-top: var(--space-md);
    }

    .cta-button:hover {
      background-color: #c5912a;
      color: var(--primary-color) !important;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(214, 158, 46, 0.3);
    }

    /* Common content containers */
    .content-container {
      max-width: 800px;
      margin: 0 auto;
      padding: var(--space-2xl);
      background-color: white;
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }

    /* Quote/Scripture styling - common */
    .scripture-quote, .quote-bubble {
      font-style: italic;
      padding: var(--space-lg);
      background-color: #fffaf0;
      border-left: 4px solid var(--accent-color);
      margin: var(--space-xl) 0;
      border-radius: 0 8px 8px 0;
      color: var(--text-color);
      line-height: 1.8;
    }

    .scripture-reference {
      font-weight: 600;
      display: block;
      text-align: right;
      margin-top: var(--space-sm);
      color: var(--accent-color);
      font-style: normal;
    }

    /* Contact info sections - common */
    .contact-section {
      background-color: var(--light-gray);
      border-radius: 8px;
      padding: var(--space-lg);
      margin-top: var(--space-xl);
    }

    .contact-section p {
      margin-bottom: var(--space-sm);
    }

    .contact-section a {
      color: var(--primary-color) !important;
      text-decoration: none;
      font-weight: 500;
    }

    .contact-section a:hover {
      color: var(--accent-color) !important;
      text-decoration: underline;
    }

    /* Last updated footer - common */
    .last-updated {
      font-style: italic;
      color: var(--text-secondary);
      margin-top: var(--space-3xl);
      text-align: center;
      padding-top: var(--space-xl);
      border-top: 1px solid var(--light-gray);
      font-size: var(--text-sm);
    }

    /* Hide navbar and adjust layout for logged-in users */
    body.logged-in {
      padding-top: calc(60px + env(safe-area-inset-top)) !important;
      padding-bottom: 0 !important;
    }

    body.logged-in .simple-navbar {
      display: none !important;
    }

    
/* Prevent anchor jumping on page load */
html:target {
  scroll-behavior: auto !important;
}
html:target::before {
  content: "";
  display: block;
  height: 0;
  visibility: hidden;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Cycling word animation for hero headline - 18 words over 54s = 3s each */
@keyframes cycleFade {
  0%, 0.4% { opacity: 0; transform: translateX(-50%) translateY(8px); }
  1.2% { opacity: 1; transform: translateX(-50%) translateY(0); }
  4% { opacity: 1; transform: translateX(-50%) translateY(0); }
  5% { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  5.01%, 100% { opacity: 0; transform: translateX(-50%) translateY(8px); }
}

/* Modern Button Group */
.auth-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.auth-buttons .btn {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.3s var(--animation-timing);
  position: relative;
  overflow: hidden;
}

.auth-buttons .btn-light {
  background: white;
  color: var(--primary-color);
  border: 1px solid rgba(45, 74, 62, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.auth-buttons .btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary, #666);
  margin-bottom: 1rem;
  line-height: 1.4;
  position: relative;
  z-index: 2;
}

/* TruthLock Badge in Hero */
.truthlock-badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 20px;
  border-radius: 25px;
  border: 2px solid #C4A747;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.truthlock-badge-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.truthlock-badge-hero i {
  font-size: 1.2rem;
  color: #C4A747;
}
.badge-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-color, #2D4A3E);
}

/* Hero Section - Minimal and Modern */
.hero-section {
  padding: 60px 0;
  text-align: center;
  width: 100%;
  margin: 0;
  max-width: none;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color, #2D4A3E);
  margin-bottom: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Make the first hero line ("Advanced AI") sans-serif with a thin weight */
.hero-title .hero-line:first-child {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary, #666);
  margin: 2rem 0;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.auth-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design for Hero */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .auth-buttons {
    flex-direction: column;
    align-items: center;
  }
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  perspective: 1400px;
  transform-style: preserve-3d;
  padding: 40px 20px;
  overflow: visible;
}

.hero-chat-header {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 54px;
  position: relative;
  z-index: 2;
  border-radius: 0;
}

.hero-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-app-logo {
  width: 40px;
  height: 40px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  /* Removed background-color and border-radius - no circle/background */
}

.hero-header-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #000000;
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.hero-menu-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-menu-icon span {
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: #2563eb;
}

.hero-chat-content {
  padding: 24px 16px 24px 24px;
  background: #e8e8ea;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
  position: relative;
  z-index: 2;
}

.hero-message {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  overflow: visible;
}

.hero-message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px 8px 10px;
  margin-left: -6px;
  margin-right: -6px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px #e0e0e0;
  background: #ffffff;
  position: relative;
  justify-content: flex-start;
}

.hero-message-header > div:not(.hero-avatar):not(.hero-bookmark) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-left: 2px;
}

.hero-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-weight: 600;
  color: #4b5563;
}

.hero-avatar-user {
  background: #e5e7eb;
}

.hero-avatar-ai {
  background-color: #e5e7eb;
  background-size: 60%;
}

.hero-username {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.95rem;
  text-align: left;
  white-space: nowrap;
}

.hero-timestamp {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: left;
  white-space: nowrap;
}

.hero-bookmark {
  margin-left: auto;
  width: 24px;
  height: 32px;
  background: #f87171;
  opacity: 0.8;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
  position: absolute;
  right: 12px;
  top: -2px;
}

.hero-message-text {
  margin-left: 4px;
  padding-left: 50%; transform: translateX(-50%);
  padding-right: 4px;
  color: #374151;
  font-size: 0.88rem;
  line-height: 1.6;
  width: calc(100% - 8px);
  text-align: left;
}

.hero-message-text a {
  color: #2563eb;
  text-decoration: none;
}

.hero-message-text a:hover {
  text-decoration: underline;
}

.hero-messages {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-typing-bubble {
  margin-left: 4px;
  color: #64748b;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-dots {
  display: inline-flex;
  gap: 4px;
}

.hero-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  opacity: 0.4;
  animation: hero-dot 1s infinite ease-in-out;
}

.hero-dots span:nth-child(2) { animation-delay: 0.15s; }
.hero-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes hero-dot {
  0%, 60%, 100% { opacity: 0.4; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

/* Summary section styles */
.hero-summary-wrapper {
  margin-top: 0;
  margin-left: 4px;
  margin-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-summary-box {
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
}

.hero-summary-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.hero-summary-content {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #374151;
  filter: blur(2px);
  user-select: none;
  text-align: left;
  max-height: 3.75em; /* Max 3 lines */
  overflow: hidden;
}

.hero-suggested-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: flex-start;
}

.hero-suggested-pill {
  padding: 4px 10px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 0.68rem;
  color: #4b5563;
  filter: blur(1.5px);
  user-select: none;
  white-space: nowrap;
}

.hero-content-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.hero-content-link {
  font-size: 0.75rem;
  color: #2563eb;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  filter: blur(1.5px);
  user-select: none;
  text-align: left;
}

.hero-content-link::before {
  content: '•';
  color: #9ca3af;
}

/* On mobile screens, allow wrapping and adjust avatar size */
@media (max-width: 768px) {
  .hero-suggested-pills {
    flex-wrap: wrap;
  }
  .hero-suggested-pill {
    flex: 0 1 auto;
    font-size: 0.65rem;
    padding: 3px 8px;
  }
  .hero-avatar {
    width: 38px;
    height: 38px;
  }
  .hero-username {
    font-size: 0.9rem;
  }
  .hero-timestamp {
    font-size: 0.7rem;
  }
}

/* On very narrow screens, stack vertically */
@media (max-width: 380px) {
  .hero-suggested-pills {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-suggested-pill {
    width: 100%;
    text-align: center;
  }
}

.hero-summary {
  background: white;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid #e5e7eb;
}

.hero-summary-header {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.hero-summary p {
  margin: 0;
  color: #1f2937;
  font-size: 0.95rem;
  line-height: 1.5;
}

.hero-input-container {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 16px 20px;
  background: #f5f5f7;
  position: relative;
  z-index: 2;
  border-radius: 0 0 30px 30px;
  margin-bottom: -1px;
}

.hero-input-wrapper {
  position: relative;
  background: #f3f4f6;
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  align-items: stretch;
  gap: 10px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  min-height: 60px;
}
.hero-input-wrapper.is-typing {
  border-color: rgba(196, 167, 71, 0.4);
  background: white;
  box-shadow: 0 0 0 4px rgba(196, 167, 71, 0.06);
}

.hero-typing-input {
  flex: 1;
  border: none;
  background: transparent;
  resize: none;
  outline: none;
  font-size: 0.85rem;
  color: #1f2937;
  line-height: 1.4;
  font-family: inherit;
  height: 42px; /* Fixed height for 2 lines */
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 transparent;
}

/* Custom scrollbar for webkit browsers */
.hero-typing-input::-webkit-scrollbar {
  width: 4px;
}

.hero-typing-input::-webkit-scrollbar-track {
  background: transparent;
}

.hero-typing-input::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 2px;
}

.hero-typing-input::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.hero-typing-input::placeholder {
  color: #9ca3af;
}

/* Cursor removed */

.hero-send-button {
  position: static;
  width: 48px;
  height: auto;
  border-radius: 12px;
  border: none;
  background: #C4A747; /* site gold */
  color: #2D4A3E; /* readable text/icon */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, filter 0.2s ease;
}

.hero-send-button:hover { filter: brightness(0.95); }
.hero-send-button:active { filter: brightness(0.9); }
.hero-send-button.disabled,
.hero-send-button:disabled { cursor: default; filter: grayscale(0.2) brightness(1.05); opacity: 0.8; }

.hero-send-button i { font-size: 1.05rem; }

.hero-controls-heading {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero-mode-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-mode-btn {
  flex: 1 1 45%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-mode-btn.active,
.hero-mode-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-control-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-control-btn {
  flex: 1 1 30%;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  transition: background 0.3s ease;
}

.hero-control-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.28);
}

.hero-control-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hero-question-counter {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 1200px) {
  .hero-demo {
    flex-direction: column;
    align-items: center;
  }

  

  .hero-mode-btn {
    flex: 1 1 30%;
  }
}

@media (max-width: 768px) {
  

  

  .hero-mode-btn {
    flex: 1 1 45%;
  }

  .hero-control-btn {
    flex: 1 1 45%;
  }
}

/* Modern Content Sections - NO margins/padding on container */
.content-section {
  position: relative;
  padding: 0 !important;
  margin: 0 !important;
}

.section-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: var(--space-2xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s var(--animation-timing);
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--animation-timing);
}

.section-card:hover::before {
  transform: scaleX(1);
}

/* CFM section - gold gradient visible on dark background */
#cfm-section .section-card::before {
  background: linear-gradient(90deg, #c4a747, #e8d574, #c4a747);
}

/* Gospel Connections section - dark navy override */
#gospel-connections-section .section-card {
  background: linear-gradient(135deg, #0a0a1a 0%, #141428 50%, #1a1a2e 100%) !important;
  border: 1px solid rgba(196,167,71,0.15) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
  backdrop-filter: none !important;
}
#gospel-connections-section .section-card::before {
  background: linear-gradient(90deg, #c4a747, #e8d574, #c4a747) !important;
}
#gospel-connections-section .gc-feature {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(196,167,71,0.15);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
#gospel-connections-section .gc-feature h3 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin: 10px 0 6px;
}
#gospel-connections-section .gc-feature p {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}
#gospel-connections-section .gc-feature .gc-icon {
  font-size: 1.6rem;
  color: #c4a747;
}

.section-header {
  font-size: var(--text-2xl);
  font-weight: 600;
  text-align: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-color);
  margin-bottom: var(--space-lg);
}

.section-body {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: center;
}

.section-body p {
  margin-bottom: var(--space-lg);
}

/* ═══════════════════════════════════════════════════════════════════════════════════════ */
/* DARK NAVY STARFIELD SECTIONS - Applied globally regardless of cosmos mode              */
/* ═══════════════════════════════════════════════════════════════════════════════════════ */

/* The Iron Rod Difference Section */
#comparison-section > .section-card,
.container#comparison-section .section-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
  position: relative !important;
  overflow: hidden !important;
  backdrop-filter: none !important;
}

#comparison-section > .section-card::before,
.container#comparison-section .section-card::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background-image: radial-gradient(rgba(196, 167, 71, 0.05) 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
  pointer-events: none !important;
  z-index: 0 !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
}

/* Top edge animation for comparison section */
#comparison-section > .section-card::after,
.container#comparison-section .section-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c4a747, #e8d574, #c4a747);
  border-radius: 20px 20px 0 0;
  z-index: 3;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

#comparison-section > .section-card:hover::after,
.container#comparison-section .section-card:hover::after {
  transform: scaleX(1);
}

#comparison-section .section-card h2,
#comparison-section h2 {
  color: #ffffff !important;
  position: relative !important;
  z-index: 1 !important;
}

#comparison-section .section-card .not-just-pointed,
#comparison-section .not-just-pointed {
  color: #c4a747 !important;
  position: relative !important;
  z-index: 1 !important;
}

#comparison-section .problem-solution-grid {
  position: relative;
  z-index: 1;
}

/* Real Examples Section */
#examples-section > .section-card,
.container#examples-section .section-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
  position: relative !important;
  overflow: hidden !important;
  backdrop-filter: none !important;
}

#examples-section > .section-card::before,
.container#examples-section .section-card::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background-image: radial-gradient(rgba(196, 167, 71, 0.05) 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
  pointer-events: none !important;
  z-index: 0 !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
}

/* Top edge animation for examples section */
#examples-section > .section-card::after,
.container#examples-section .section-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c4a747, #e8d574, #c4a747);
  border-radius: 20px 20px 0 0;
  z-index: 3;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

#examples-section > .section-card:hover::after,
.container#examples-section .section-card:hover::after {
  transform: scaleX(1);
}

#examples-section .section-card h2,
#examples-section h2 {
  color: #ffffff !important;
  position: relative !important;
  z-index: 1 !important;
}

#examples-section .section-card .row {
  position: relative;
  z-index: 1;
}

/* Everything You Need for Deeper Study Section - Blue Theme */
#features-section > .section-card,
#features-section .section-card {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #1e3a5f 100%) !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
  position: relative !important;
  overflow: hidden !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Top edge animation for features section */
#features-section > .section-card::before,
#features-section .section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c4a747, #e8d574, #c4a747);
  border-radius: 20px 20px 0 0;
  z-index: 3;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

#features-section > .section-card:hover::before,
#features-section .section-card:hover::before {
  transform: scaleX(1);
}

/* Built on Apostolic Principles / Prophetic Counsel Section */
#leaders-section .counsel-section,
.section-card.counsel-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%) !important;
  padding: var(--space-2xl);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
  position: relative !important;
  overflow: hidden !important;
  backdrop-filter: none !important;
}

#leaders-section .counsel-section::before,
.section-card.counsel-section::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background-image: radial-gradient(rgba(196, 167, 71, 0.05) 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
  pointer-events: none !important;
  z-index: 0 !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
}

/* Top edge animation for leaders/counsel section */
#leaders-section .counsel-section::after,
.section-card.counsel-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c4a747, #e8d574, #c4a747);
  border-radius: 20px 20px 0 0;
  z-index: 3;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

#leaders-section .counsel-section:hover::after,
.section-card.counsel-section:hover::after {
  transform: scaleX(1);
}

.counsel-section h2,
#leaders-section h2 {
  color: #ffffff !important;
  position: relative !important;
  z-index: 1 !important;
}

.counsel-section > div > p,
#leaders-section .counsel-section > div > p {
  color: #c4a747 !important;
  position: relative !important;
  z-index: 1 !important;
}

.elder-quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.elder-quote {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 4px solid var(--accent-color);
  padding: 20px;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.elder-quote p {
  font-style: italic;
  margin-bottom: 10px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  flex-grow: 1;
}

.elder-quote cite {
  display: block;
  text-align: right;
  color: #c4a747;
  font-size: 0.9rem;
  font-style: normal;
  margin-top: auto;
}

.our-commitment {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.our-commitment h3 {
  color: #c4a747 !important;
  margin-bottom: 15px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.our-commitment p {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* TruthLock Explanation */
.truthlock-explanation {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(45, 74, 62, 0.05));
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  text-align: center;
  border: 2px solid var(--accent-color);
}

.truthlock-icon-large {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 4rem;
  color: var(--accent-color);
}

.truthlock-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 25px;
}

.truthlock-step {
  padding: 15px;
  background: white;
  border-radius: 8px;
}

.truthlock-step-number {
  display: inline-block;
  width: 30px;
  height: 30px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  line-height: 30px;
  font-weight: bold;
  margin-bottom: 10px;
}

.truthlock-step h4 {
  color: var(--primary-color);
  margin-bottom: 8px;
}

/* Modern Comparison Grid */
.comparison-section {
  background: linear-gradient(to bottom, rgba(248, 249, 248, 0.5), rgba(255, 255, 255, 0.5));
  border-radius: 20px;
  padding: var(--space-2xl) var(--space-xl);
  margin-bottom: var(--space-xl);
}

.comparison-title {
  text-align: center;
  margin-bottom: 15px;
  color: var(--text-color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--text-2xl);
}

.not-just-pointed {
  text-align: center;
  font-size: 1.2rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 40px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.comparison-card {
  background: white;
  border-radius: 16px;
  padding: var(--space-xl);
  position: relative;
  transition: all 0.3s var(--animation-timing);
  border: 2px solid transparent;
}

.comparison-card.negative {
  background: linear-gradient(to bottom right, #fff, #fef8f8);
}

.comparison-card.positive {
  background: linear-gradient(to bottom right, #fff, #f8fef8);
  border: 2px solid var(--accent-color);
}

.comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.comparison-card h3 {
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  font-size: var(--text-xl);
  gap: 10px;
}

.comparison-card h3 i {
  margin-right: var(--space-sm);
  font-size: var(--text-xl);
}

.positive-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

.comparison-card li {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
  position: relative;
  line-height: 1.6;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  padding: 10px 0;
  padding-left: 30px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.comparison-card li::before {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  top: 12px;
}

.comparison-card.negative li::before {
  content: '✕';
  color: #e53e3e;
}

.comparison-card.positive li::before {
  content: '✓';
  color: #48bb78;
}

/* Privacy Highlight */
.privacy-highlight {
  background: rgba(45, 74, 62, 0.05);
  padding: 20px;
  border-radius: 10px;
  margin-top: 30px;
  border-left: 4px solid var(--primary-color);
}

.privacy-highlight h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Truthlock verified badge */
.truthlock-verified {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(212, 175, 55, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  border: 1px solid var(--accent-color);
}

.truthlock-verified i {
  color: var(--accent-color);
  font-size: 1.5rem;
}

/* Modern Example Buttons */
.example-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}
.example-btn {
  min-width: 220px;
  max-width: 250px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s var(--animation-timing);
  border: 1px solid rgba(196, 167, 71, 0.4);
  background: linear-gradient(135deg, rgba(196, 167, 71, 0.15) 0%, rgba(196, 167, 71, 0.08) 50%, rgba(196, 167, 71, 0.15) 100%);
  color: #c4a747;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  margin: 5px;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.example-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.example-btn:hover::before {
  width: 300%;
  height: 300%;
}

.example-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 167, 71, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, rgba(196, 167, 71, 0.25) 0%, rgba(196, 167, 71, 0.15) 50%, rgba(196, 167, 71, 0.25) 100%);
  border-color: rgba(196, 167, 71, 0.6);
  color: #d4b957;
}

/* Modern Tab Interface */
.tab-container {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: var(--space-xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

#vertical-tab-menu {
  background: rgba(248, 249, 248, 0.5);
  border-radius: 12px;
  padding: var(--space-md);
}

#vertical-tab-menu .nav-link {
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-md);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.2s var(--animation-timing);
  width: 100%;
  margin-bottom: var(--space-xs);
  position: relative;
}

#vertical-tab-menu .nav-link:hover {
  background-color: rgba(196, 167, 71, 0.08);
  color: var(--text-color);
  transform: translateX(4px);
}

#vertical-tab-menu .nav-link.active {
  background-color: white;
  color: var(--accent-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.tab-section {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s var(--animation-timing);
}

.tab-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

#vertical-tab-content {
  background: white;
  padding: var(--space-2xl);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#vertical-tab-content h2 {
  color: var(--text-color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin-bottom: var(--space-lg);
  font-size: var(--text-xl);
}

#vertical-tab-content .lead {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  font-size: var(--text-base);
}

#vertical-tab-content .list-group-item {
  border: none;
  padding: var(--space-md) 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: var(--space-xl);
  text-align: left;
  font-size: var(--text-sm);
}

#vertical-tab-content .list-group-item::before {
  content: '•';
  position: absolute;
  left: 50%; transform: translateX(-50%);
  color: var(--accent-color);
  font-weight: bold;
  font-size: var(--text-lg);
}

/* Modern Info Panels - Dark Navy Starfield */
.info-panel {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%) !important;
  border-left: 4px solid var(--accent-color);
  border-radius: 12px;
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--animation-timing);
}

.info-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(196, 167, 71, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.info-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4) !important;
}

.info-panel h3 {
  color: #ffffff !important;
  margin-bottom: var(--space-md);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  position: relative;
  z-index: 1;
}

.info-panel h3 i {
  color: #c4a747;
}

.info-panel p {
  color: rgba(255,255,255,0.85) !important;
  position: relative;
  z-index: 1;
}

.info-panel p a {
  color: #c4a747 !important;
}

.info-panel p {
  color: rgba(255,255,255,0.85) !important;
  line-height: 1.8;
  margin-bottom: var(--space-md);
  font-size: var(--text-base);
  position: relative;
  z-index: 1;
}

.info-panel p:last-child {
  margin-bottom: 0;
}

/* Modern Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  z-index: 2147483640;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s var(--animation-timing);
  padding-top: 0;
}

/* Solid background layer to ensure nothing shows through */
.modal-overlay::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000;
  z-index: -1;
}

.modal-overlay.show {
  opacity: 1;
}

/* Scoped to .modal-overlay to avoid conflicting with Bootstrap modals */
.modal-overlay .modal-content {
  background-color: white;
  margin: 100px auto 20px auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2147483641;
  transform: scale(0.9);
  transition: transform 0.3s var(--animation-timing);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

/* Responsive modal sizing - scoped to .modal-overlay */
@media (max-height: 700px) {
  .modal-overlay .modal-content {
    margin: 80px auto 10px auto;
    max-height: calc(100vh - 100px);
  }
}

@media (max-width: 768px) {
  .modal-overlay .modal-content {
    width: 95%;
    margin: 80px auto 10px auto;
    max-height: calc(100vh - 100px);
  }
  .modal-overlay {
    padding-top: 20px;
  }
}

@media (max-width: 480px) {
  .modal-overlay .modal-content {
    width: 95%;
    margin: 80px auto 10px auto;
    max-height: calc(100vh - 100px);
    border-radius: 12px;
  }
  .modal-overlay {
    padding-top: 10px;
  }
  .modal-overlay .modal-header {
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .modal-overlay .modal-close {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

.modal-overlay .modal-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
  color: #ffffff;
  padding: var(--space-xl);
  border-radius: 16px 16px 0 0;
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  border-bottom: 3px solid #c4a747;
}

.modal-overlay .modal-header h3 {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--text-xl);
  color: #ffffff;
}

.modal-overlay .modal-close {
  position: absolute;
  right: var(--space-lg);
  top: var(--space-lg);
  color: #ffffff;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s var(--animation-timing);
}

.modal-overlay .modal-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.modal-overlay .modal-body {
  padding: var(--space-2xl);
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: white;
  position: relative;
  z-index: 1;
}

/* Ensure modal content is scrollable on small screens */
@media (max-width: 768px) {
  .modal-overlay .modal-body {
    padding: var(--space-lg);
  }
}

.question-box {
  background-color: #f0f1f5;
  padding: var(--space-lg);
  border-radius: 12px;
  margin-bottom: var(--space-xl);
  font-style: italic;
  color: var(--text-color);
  border-left: 3px solid var(--accent-color);
}

.timestamp {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  display: block;
  opacity: 0.7;
}

.answer-preview {
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.answer-preview p {
  margin-bottom: var(--space-md);
}

/* Modal styles remain page-specific since they're unique to index */

.modal-cta {
  background: linear-gradient(135deg, var(--accent-color), #b39740);
  color: white;
  padding: var(--space-md) var(--space-2xl);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s var(--animation-timing);
  box-shadow: 0 4px 12px rgba(196, 167, 71, 0.3);
}

.modal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(196, 167, 71, 0.4);
  color: white;
}

/* Modern Subscription Banner */
.subscription-banner {
  background: linear-gradient(135deg, rgba(196, 167, 71, 0.1), rgba(45, 74, 62, 0.05));
  border-radius: 16px;
  padding: var(--space-2xl);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(196, 167, 71, 0.2);
  transition: all 0.3s var(--animation-timing);
}

.subscription-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.subscription-banner h3 {
  color: var(--text-color);
  margin-bottom: var(--space-sm);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--text-xl);
}

.subscription-banner p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-size: var(--text-base);
}

/* Experience Card */
.experience-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Responsive Design */
@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  
  .elder-quotes {
    grid-template-columns: 1fr;
  }
  
  .truthlock-steps {
    grid-template-columns: 1fr;
  }
  
  .auth-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    gap: var(--space-sm);
  }
  
  .auth-buttons .btn {
    width: 100%;
    padding: var(--space-md) var(--space-xl);
  }
  
  .content-section {
    padding: var(--space-lg) 0;
    margin-bottom: var(--space-lg);
  }
  
  .section-card {
    padding: var(--space-lg);
    border-radius: 12px;
  }
  
  .example-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .example-btn {
    min-width: 260px;
    padding: 12px 20px;
  }
  
  .tab-container {
    padding: var(--space-lg);
  }
  
  #vertical-tab-menu {
    margin-bottom: var(--space-lg);
  }
  
  .truthlock-badge-hero {
    flex-direction: row; /* Keep horizontal on mobile */
    padding: 10px 20px;
    gap: 10px; /* Reduce gap */
    align-items: center; /* Ensure vertical alignment */
  }
  
  .truthlock-badge-hero i {
    font-size: 1.5rem; /* Smaller icon on mobile */
    line-height: 1; /* Fix line height */
  }
  
  .badge-tagline {
    font-size: 0.95rem; /* Slightly smaller text */
    line-height: 1.2; /* Consistent line height */
  }
}

/* Animation Classes - disabled on mobile for performance */
@media (min-width: 769px) {
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--animation-timing);
}

[data-animate].animate {
  opacity: 1;
  transform: translateY(0);
}

[data-animate-child] {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s var(--animation-timing);
}

[data-animate-child].animate {
  opacity: 1;
  transform: translateX(0);
  }
}
/* On mobile, everything is visible immediately */
@media (max-width: 768px) {
  [data-animate],
  [data-animate-child] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive adjustments for tablet and mobile */
@media (max-width: 992px) {
  .content-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .container {
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Only center specific sections that need it */
  .hero-content h1,
  .hero-content h2 {
    text-align: center !important;
  }
  
  .features-grid {
    justify-content: center !important;
  }
  
  .feature-item {
    margin: 0 auto !important;
  }
  
  /* Keep comparison section left-aligned */
  
  .comparison-table {
    margin: 0 auto !important;
  }
  
  .example-buttons {
    justify-content: center !important;
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-lg {
    margin: 10px auto !important;
    display: inline-block !important;
  }
  
  /* Center feature lists */
  .feature-item ul,
  .content-section ul {
    text-align: left !important;
    display: inline-block !important;
    margin: 0 auto !important;
  }
  
  
  /* Center footer content */
  footer .container {
    text-align: center !important;
  }
}

/* Full Version Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-align: left;
  min-height: 120px;
}

/* Default feature-item styling for non-dark sections */
.feature-item:not(#features-section .feature-item) {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  text-align: left;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #C4A747, #B8941F);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.feature-content h3 {
  margin: 0 0 8px 0;
  color: #2D4A3E;
  font-size: 18px;
  font-weight: 600;
}

.feature-content p {
  margin: 0;
  color: #6c757d;
  line-height: 1.5;
  font-size: 14px;
}

.features-cta {
  text-align: center;
  margin-top: 50px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.features-cta h3 {
  margin: 0 0 20px 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
}

.processing-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid #dee2e6;
  border-radius: 8px 8px 0 0;
  position: relative;
}

.processing-title {
  font-weight: bold;
  font-size: 14px;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex: 1;
}

.processing-status {
  font-size: 14px;
  color: #6c757d;
  flex: 1;
}

.processing-toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.processing-toggle:hover {
  background: #f8f9fa;
  color: #495057;
}

.processing-content {
  padding: 12px 16px;
  max-height: 200px;
  overflow-y: auto;
}

.processing-section:not(.collapsed) .processing-status {
  display: none;
}

.processing-history {
  margin-bottom: 8px;
}

.processing-history .status-item {
  color: #6c757d;
  font-size: 13px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.processing-current {
  color: #495057;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

/* Make the response container scrollable when locked */

/* Fix header and footer positions when locked */

/* Chat Header - Dark like real chat */

/* Messages Container */

/* Message wrapper */

/* User message */

/* Assistant message */

/* Message header */

/* Avatar styles */

/* Meta info */

/* Message content */

/* Icons container */

/* TruthLock */

/* Bookmark ribbon */

/* Three dots menu */

@keyframes pulse {
  0% { opacity: 0.5; }
  50% { opacity: 0.8; }
  100% { opacity: 0.5; }
}

/* Welcome Message */

/* Suggested questions pills */
.suggested-questions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;   /* same layout as chat.html */
}

/* Summary/Reading/Questions box styling (match working chat) */
.summary-box,
.reading-box,
.questions-box {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  border-left: 3px solid var(--accent-color);
}

/* Titles for all three boxes */
.summary-title,
.reading-title,
.questions-title {
  font-weight: 600;
  color: #666;
  margin-bottom: 12px;
  text-transform: none;
}

/* Group panel inside the bubble (alias to chat class) */
.chat-sections-panel,
.ir-sections-panel {
  background: rgba(0,0,0,0.03);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 12px;
}

/* Thin divider (alias to chat divider) */
.chat-section-divider,
.ir-section-divider {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 16px 0;
}

/* Tighter spacing within the grouped panel */
.ir-sections-panel .summary-box { margin: 0 0 12px 0; }
.ir-sections-panel .questions-box,
.ir-sections-panel .suggested-questions-section { margin: 0 0 12px 0; }
.ir-sections-panel .content-box,
.ir-sections-panel .suggested-content-section { margin: 0; }

/* Suggested questions section */
.suggested-questions-section {
  margin: 20px 0;
}

.suggested-questions-section h4 {
  color: #666;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Containers for both pre-response and post-response pills (flex wrap; no fixed columns) */
.suggested-questions-pills,
.questions-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  justify-content: flex-start;
}

/* Unified pill style: ALL pills look the same (lighter than box bg) */
.suggested-pill,
.question-pill,
.clickable-question {
  background: #fafafa;            /* lighter than #f5f5f5 so it stands out */
  color: #555555;
  padding: 10px 20px;
  border-radius: 24px;
  border: 1px solid #e6e6e6;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;            /* natural inline sizing; multiple per row when space allows */
  align-items: center;
  max-width: 100%;
  white-space: normal;             /* allow wrapping inside the pill */
  word-break: break-word;          /* break long words/URLs */
  margin: 4px;                     /* spacing managed by margin+gap */
  transition: background 0.2s, transform 0.2s;
  text-align: left;
}

.suggested-pill:hover,
.question-pill:hover,
.clickable-question:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 20px 0;
  justify-content: center;
}

@media (min-width: 993px) {
  .category-pills {
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .category-pill {
    width: 100%;
    max-width: 350px;
    justify-content: space-between;
  }
}

.category-pill {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  color: #495057;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex: 0 0 calc(50% - 4px);
  max-width: 300px;
}

@media (max-width: 768px) {
  .category-pill {
    flex: 0 0 100%;
    max-width: none;
  }
}

.category-pill:hover {
  background: #e9ecef;
  border-color: #c4a747;
  color: #2D4A3E;
}

.category-pill i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.category-pill.active i {
  transform: rotate(180deg);
}

.category-dropdown {
  position: absolute;
  top: 100%;
  left: 50%; transform: translateX(-50%);
  right: 0;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  margin-top: 4px;
  width: 100%;
  min-width: 200px;
}

.category-dropdown.show {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Removed dropdown header styles - no longer needed */

.category-questions {
  padding: 8px 0;
}

.category-question {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 12px 16px;
  text-align: left;
  color: #495057;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.category-question:hover {
  background: #f8f9fa;
  color: #2D4A3E;
}

/* Suggested Content Section */
.suggested-content-section {
  margin: 20px 0;
}

.suggested-content-section h4 {
  color: #666;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.suggested-content-links {
  list-style: none;
  padding: 0;
}

.suggested-content-links li {
  margin: 10px 0;
  padding-left: 24px;
  position: relative;
}

.suggested-content-links li:before {
  content: "•";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  color: #666;
  font-weight: bold;
}

.suggested-content-links a {
  color: #1976d2;
  text-decoration: none;
  font-size: 15px;
}

.suggested-content-links a:hover {
  text-decoration: underline;
}

/* Fix for mobile keyboard overlay */
@supports (height: 100dvh) {
}

.positive-header-badge .bi-shield-lock-fill {
    color: var(--accent-color, #C4A747);
}

/* Turnstile Modal */

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Container adjustments */
  
  .section-card {
    padding: 20px 15px; /* Keep some padding for content */
    border-radius: 0;
    margin: 0 0 40px 0; /* Add bottom margin between sections */
    box-shadow: none;
  }
  
  
  .content-section {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Chat window adjustments */
  
  
  /* Sidebar on mobile - show but stack features */
  
  
  
  /* Messages container */
  
  /* Message wrapper - full width on mobile */
  
  /* Adjust message bubbles on mobile - FULL WIDTH */,

  
  /* Assistant message needs more room for icons */
  
  /* Smaller avatars on mobile */
  
  /* Adjust header for mobile */
  
  /* Smaller text in meta */
  
  
  /* Message content adjustments */
  
  /* Smaller icons on mobile - properly spaced */
  
  
  
  
  /* Welcome message adjustments */
  
  
  /* Suggested pills - full width on narrow screens */
  .suggested-pill {
    font-size: 13px;
    padding: 8px 14px;
    white-space: nowrap !important;
    width: 100%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 2px 0;
    display: block;
  }
  
  /* Input area adjustments */
  
  
  
  /* Questions remaining text */
  
  /* Suggested questions/content in responses */
  .question-pill,
  .clickable-question {
    font-size: 14px;
    padding: 8px 16px;
    white-space: normal;
  }
  
  .suggested-content-links a {
    font-size: 14px;
  }
}

/* Very small mobile devices */
@media (max-width: 375px) {
  /* Even smaller adjustments for very small screens */
  
  
  
  
  .suggested-pill {
    width: 100%;
    margin: 2px 0;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }
  
}

/* Narrow screens - hide button text, show only icons */
@media (max-width: 600px) {
  }

.ai-status-window {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: rgba(45, 74, 62, 0.95);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  z-index: 1000;
  min-width: 250px;
  max-width: 350px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.ai-status-window.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ai-status-window .status-message {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-status-window .status-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.7;
  padding: 0;
}

.ai-status-window .status-close:hover {
  opacity: 1;
}

.processing-section {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  margin: 5px 0;
  transition: all 0.3s ease;
  box-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.processing-section.hidden {
  display: none;
}

.processing-section.collapsed .processing-content {
  display: none;
}

.processing-section.collapsed .processing-title {
  display: none;
}

.processing-section.collapsed .processing-status {
  display: block;
}

.processing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  min-height: 40px;
}

.processing-title {
  font-weight: 600;
  color: #2d4a3e;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.processing-status {
  font-weight: 500;
  color: #666;
  font-size: 0.9rem;
  display: none;
}

.processing-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 5px;
  border-radius: 3px;
  transition: background 0.2s;
}

.processing-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.processing-toggle i {
  transition: transform 0.3s ease;
}

.processing-section.collapsed .processing-toggle i {
  transform: rotate(90deg);
}

.processing-content {
  padding: 15px;
  max-height: 200px;
  overflow-y: auto;
}

.processing-history {
  margin-bottom: 10px;
}

.processing-history-item {
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 5px;
  padding: 3px 0;
}

.processing-current {
  color: #2d4a3e;
  font-weight: 500;
  font-size: 0.9rem;
}

.sticky-nav-container {
    position: fixed;
    width: 100%;
    top: 0;
    left: 50%; transform: translateX(-50%);  /* ADD THIS */
    right: 0; /* ADD THIS */
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease;
}

.sticky-nav {
    padding: 8px 0;
    width: 100%;  
}

.sticky-nav .container {
    max-width: 100%;  
    padding: 0 20px;  
    position: relative; /* for back-to-top absolute positioning */
}

/* Back-to-top button inside sticky nav */
.sticky-top-btn {
    position: absolute;
    right: 12px;
    top: 6px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(45, 74, 62, 0.95); /* matches dark header */
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    opacity: 0.9;
}

.sticky-top-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 1;
}

.sticky-top-btn i {
    font-size: 18px;
    line-height: 1;
}

/* Tighter placement on small screens */
@media (max-width: 768px) {
    .sticky-top-btn {
        right: 8px;
        top: 8px;
        width: 32px;
        height: 32px;
    }
}

.sticky-nav-container.visible {
    opacity: 1;
    transform: translateY(0);
}

body.sticky-nav-visible {
    padding-top: 60px; /* Adjust based on your nav height */
}
/* Smooth transition for the padding */
body {
    transition: padding-top 0.3s ease;
}

.nav-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.nav-item i {
    font-size: 16px;
}

.nav-item:hover {
    background: rgba(45, 74, 62, 0.08);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-item.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(45, 74, 62, 0.2);
}

.nav-item.pricing-cta {
    background: linear-gradient(135deg, var(--accent-color), #b39740);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(196, 167, 71, 0.3);
}

.nav-item.pricing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 167, 71, 0.4);
}

/* Progress bar */
.scroll-progress-bar {
    position: absolute;
    bottom: 0;
    left: 50%; transform: translateX(-50%);
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    width: 0%;
    transition: width 0.1s linear;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .nav-items {
        gap: 4px;
    }
    
    .nav-item {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .nav-item i {
        font-size: 14px;
    }
    
    .nav-item span {
        display: none; /* Hide text on mobile, show only icons */
    }
    
    .nav-item.pricing-cta span {
        display: inline; /* Keep "Get Started" visible */
    }
}

/* Alternative: Floating action button for mobile */
.floating-menu-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 998;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@media (max-width: 768px) {
    .floating-menu-btn {
        display: flex;
    }
}

    
    /* Mobile-specific fixes: disable heavy glass/blur effects that cause box artifacts */
    @media (max-width: 768px) {
      /* Nuke inline and class-based backdrop filters */
      [style*="backdrop-filter"] { backdrop-filter: none !important; }
      .card,
      .modal-content,
      .logged-in-header,
      .simple-navbar,
      .footer,
      .hero-text,
      .btn-secondary-hero { backdrop-filter: none !important; }

      /* Provide solid backgrounds instead to avoid overlapping boxes */
      .card { background: rgba(255, 255, 255, 0.95) !important; }
      .hero-text { background: rgba(10, 16, 28, 0.55) !important; }
      .btn-secondary-hero { background: rgba(255, 255, 255, 0.15) !important; }
    }
    
    /* Memorial Modal Styles */
    .memorial-modal {
      position: fixed;
      top: 0;
      left: 50%; transform: translateX(-50%);
      width: 100%;
      height: 100%;
      z-index: 2147483647 !important;
      display: flex;
      justify-content: center;
      align-items: center;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.5s ease, visibility 0.5s ease;
      isolation: isolate;
    }
    .memorial-modal.show { opacity: 1; visibility: visible; }
    .memorial-overlay {
      position: absolute;
      top: 0; left: 50%; transform: translateX(-50%); width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.9);
      z-index: 2147483646;
    }
    .memorial-content { position: relative; z-index: 2147483647; }
    .memorial-image-container {
      position: relative;
      max-width: 500px;
      width: 90vw;
      background: #000;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    }
    .memorial-image { width: 100%; height: auto; display: block; }
    .memorial-text-overlay {
      position: absolute;
      bottom: 60px;
      left: 50%; transform: translateX(-50%); right: 0;
      text-align: center;
      color: white;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
      background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
      padding: 50px 20px 20px;
    }
    .memorial-memory {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      font-size: 18px;
      font-style: italic;
      margin-bottom: 8px;
      opacity: 0.9;
    }
    .memorial-name {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      font-size: 24px;
      font-weight: 500;
      margin-bottom: 8px;
    }
    .memorial-years {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      font-size: 20px;
      font-weight: 300;
    }
    .memorial-footer {
      position: absolute;
      bottom: 0; left: 50%; transform: translateX(-50%); right: 0;
      background: rgba(0, 0, 0, 0.95);
      padding: 12px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .memorial-checkbox-label {
      display: flex;
      align-items: center;
      gap: 8px;
      color: rgba(255, 255, 255, 0.8);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      font-size: 13px;
      cursor: pointer;
    }
    .memorial-checkbox-label input[type="checkbox"] {
      width: 16px; height: 16px;
      cursor: pointer;
      accent-color: #c4a747;
    }
    .memorial-dismiss {
      background: rgba(255, 255, 255, 0.15);
      color: white;
      border: 1px solid rgba(255, 255, 255, 0.3);
      padding: 8px 20px;
      border-radius: 4px;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      font-size: 14px;
      cursor: pointer;
      transition: background 0.2s ease;
    }
    .memorial-dismiss:hover { background: rgba(255, 255, 255, 0.25); }
    body.memorial-active [data-lastpass-root],
    body.memorial-active [data-1p-popover],
    body.memorial-active .bitwarden-iframe { display: none !important; }
    @media (max-width: 480px) {
      .memorial-image-container { max-width: 90vw; }
      .memorial-text-overlay { bottom: 50px; }
      .memorial-memory { font-size: 14px; }
      .memorial-name { font-size: 17px; }
      .memorial-years { font-size: 14px; }
      .memorial-checkbox-label { font-size: 12px; }
      .memorial-dismiss { padding: 6px 14px; font-size: 13px; }
    }

/* ── Cosmos modal hiding ── */
  /* Hide cosmos gear AND menu only when modals are open */
  body.modal-open #cosmos-settings,
  body:has(.modal.show) #cosmos-settings,
  body.modal-open #cosmos-menu,
  body:has(.modal.show) #cosmos-menu {
    visibility: hidden !important;
    pointer-events: none !important;
  }

/* ── Cosmos fullpage styles + animations ── */
    /* Full-page cosmos styles */
    #cosmos-fullpage .nebula-glow {
        background: 
            radial-gradient(ellipse 80% 50% at 20% 30%, rgba(196, 167, 71, 0.08) 0%, transparent 50%),
            radial-gradient(ellipse 60% 40% at 80% 70%, rgba(100, 149, 237, 0.06) 0%, transparent 50%),
            radial-gradient(ellipse 50% 30% at 50% 50%, rgba(147, 112, 219, 0.04) 0%, transparent 50%);
        opacity: 0.45;
        animation: none;
    }
    /* Make page content backgrounds transparent/semi-transparent to show cosmos */
    body {
        background: transparent !important;
    }
    /* Hide the default body background overlays to show cosmos */
    body::before,
    body::after {
        display: none !important;
    }
    main.container {
        background: transparent !important;
    }
    .content-section {
        background: transparent !important;
    }
    /* Hero wrapper transparent to show cosmos */
    .hero-wrapper {
        background: transparent !important;
    }
    /* Section cards get frosted glass effect - except CFM which has its own dark style */
    .section-card {
        background: rgba(255, 255, 255, 0.92) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    #cfm-section .section-card {
        background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #1e3a5f 100%) !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    /* CFM section mobile - center icons and text */
    @media (max-width: 600px) {
        #cfm-section [style*="display: grid"] > div {
            text-align: center;
        }
        #cfm-section [style*="display: grid"] > div > div[style*="width: 48px"] {
            margin: 0 auto 16px auto !important;
        }
        #cfm-section [style*="display: grid"] > div h3 {
            text-align: center;
        }
        #cfm-section [style*="display: grid"] > div p {
            text-align: center;
        }
    }
    /* What is Iron Rod section - Blue theme like CFM */
    .what-is-section {
        background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #1e3a5f 100%) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Dark Navy Sections - Override frosted glass */
    #comparison-section .section-card,
    #comparison-section .section-card.dark-navy-panel,
    .comparison-section.section-card {
        background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
    }
    
    #examples-section .section-card {
        background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
    }
    
    #leaders-section .section-card.counsel-section {
        background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
    }
    
    #what-can-you-ask-section .section-card {
        background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
    }
    /* Memorial section - frosted glass */
    .memorial-card {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    /* Footer semi-transparent */
    footer {
        background: rgba(30, 40, 55, 0.95) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    footer .text-muted,
    footer .footer-company,
    footer .footer-links a,
    footer .footer-version {
        color: rgba(160, 165, 175, 0.85) !important;
    }
    footer .footer-links a:hover {
        color: rgba(255, 255, 255, 1) !important;
    }
    /* Sticky nav - frosted glass */
    .sticky-nav-container {
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    /* Feature items - subtle frosted background (except in features-section which has dark theme) */
    .feature-item:not(#features-section .feature-item) {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    /* Features section cards - dark frosted glass */
    #features-section .feature-item {
        background: rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    #features-section .feature-item h3 {
        color: #ffffff !important;
    }
    
    #features-section .feature-item p {
        color: rgba(255, 255, 255, 0.85) !important;
    }
    /* Navbar - dark theme over cosmos */
    .simple-navbar {
        background: rgba(30, 40, 55, 0.92) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .simple-navbar.scrolled {
        background: rgba(30, 40, 55, 0.98) !important;
    }
    /* Mobile header - dark theme */
    .mobile-header {
        background: rgba(30, 40, 55, 0.92) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    /* Mobile menu - dark theme matching header */
    .mobile-menu {
        background: rgba(30, 40, 55, 0.98) !important;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    /* Cosmos settings button styles */
    #cosmos-gear:hover {
        background: rgba(0,0,0,0.5) !important;
        border-color: rgba(255,255,255,0.4) !important;
    }
    #cosmos-gear:hover i { color: rgba(255,255,255,1); }
    .cosmos-mode-btn:hover { background: rgba(255,255,255,0.1) !important; }
    .cosmos-mode-btn.active { background: rgba(196,167,71,0.2) !important; color: #ffd700 !important; }

/* ── Hero wrapper layout ── */
            /* Prevent background building/transition issues */
            .hero-wrapper {
                transition: none !important;
                animation: none !important;
                backface-visibility: hidden;
                -webkit-backface-visibility: hidden;
                transform: translate3d(0, 0, 0);
                min-height: calc(100vh - var(--navbar-height, 60px)) !important;
                position: relative !important;
                z-index: 10 !important;
            }
            
            @media (max-width: 992px) {
                .hero-content {
                    grid-template-columns: 1fr !important;
                    gap: 40px !important;
                    text-align: center !important;
                    padding: 0 !important;
                    width: 100% !important;
                }
                .hero-text {
                    order: 1;
                    width: 100%;
                    max-width: 100%;
                    margin: 0 auto;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    text-align: center;
                    box-sizing: border-box;
                    padding: 0 20px !important;
                }
                .hero-visual {
                    order: 2;
                    width: 100%;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    padding: 0 20px;
                    box-sizing: border-box;
                }
                .hero-wrapper {
                    min-height: auto !important;
                    padding: 60px 0 !important;
                }
                
                .btn-secondary-hero { 
                    background: rgba(196, 167, 71, 0.1) !important;
                    border: 1px solid rgba(196, 167, 71, 0.5) !important;
                    color: #c4a747 !important;
                }
                .hero-buttons { 
                    display: flex !important;
                    flex-direction: column !important;
                    align-items: center !important;
                    justify-content: center !important; 
                    width: 100% !important;
                    gap: 12px !important;
                }
                .hero-buttons .btn-hero { margin-left: 50%; transform: translateX(-50%); margin-right: 0; }
                
            }
            
            /* Special handling for verification badges on narrow screens */
            @media (max-width: 480px) {
                .verification-badge > div:first-child > div > span {
                    font-size: 0.75rem !important;
                }
            }
            
            /* Keep mobile-specific optimizations for actual mobile devices */
            @media (max-width: 768px) {
                .hero-wrapper {
                    padding: 40px 0 60px !important;
                    min-height: 100vh !important;
                    display: flex !important;
                    flex-direction: column !important;
                    background: transparent !important; /* Let cosmos show through */
                    background-image: none !important;
                    will-change: auto !important;
                    transform: translateZ(0); /* Force GPU acceleration */
                    z-index: 10 !important;
                }
                /* cosmos-canvas and nebula-glow stay visible on mobile for consistency with login */
                #hero-wrapper::before { display: none !important; }
                .hero-content {
                    flex: 1 !important;
                    display: flex !important;
                    flex-direction: column !important;
                    justify-content: center !important;
                    align-items: center !important;
                    padding: 0 !important;
                    width: 100% !important;
                    max-width: 100% !important;
                }
                .hero-text {
                    background: transparent !important;
                    padding: 0 20px !important;
                    text-align: center !important;
                    display: flex !important;
                    flex-direction: column !important;
                    align-items: center !important;
                    justify-content: center !important;
                    width: 100% !important;
                    max-width: 100% !important;
                    margin: 0 auto !important;
                    box-sizing: border-box !important;
                }
                .hero-title {
                    text-align: center !important;
                    font-size: clamp(2rem, 5vw, 3rem) !important;
                    width: 100% !important;
                    padding: 0 !important;
                    margin: 0 0 20px 0 !important;
                }
                .hero-buttons {
                    width: 100%;
                    display: flex !important;
                    justify-content: center !important;
                    align-items: center !important;
                    gap: 15px !important;
                    flex-direction: column !important;
                }
                .hero-buttons .btn-hero {
                    width: calc(100% - 40px) !important;
                    max-width: 280px !important;
                    margin: 0 auto !important;
                    text-align: center !important;
                    justify-content: center !important;
                }
                .btn-primary-hero {
                    background: rgba(30, 30, 40, 0.95) !important; /* Solid dark background for mobile */
                }
                .btn-secondary-hero {
                    background: linear-gradient(135deg, #c4a747 0%, #d4b957 50%, #c4a747 100%) !important; /* Solid gold for mobile */
                    border-color: rgba(196, 167, 71, 0.6) !important;
                    color: #1a1a1a !important;
                }
                .verification-badge {
                    text-align: center !important;
                    justify-content: center !important;
                    width: 100% !important;
                    padding: 16px 20px !important;
                    background: rgba(30, 30, 40, 0.95) !important; /* Solid dark background for mobile */
                }
                .verification-badge > div:last-child {
                    text-align: center !important;
                    padding: 0 12px !important;
                }
                .verification-badge > div:last-child > div:nth-child(3) {
                    font-size: 0.95rem !important;
                    line-height: 1.45 !important;
                }
                .verification-badge > div:first-child {
                    flex-direction: column !important;
                    gap: 10px !important;
                    align-items: flex-start !important;
                    width: auto !important;
                    margin: 0 auto !important;
                }
                .verification-badge > div:first-child > div {
                    align-items: center !important;
                    justify-content: flex-start !important;
                    width: auto !important;
                }
                /* Scale up hero title on narrow screens */
                .hero-title {
                    font-size: clamp(3rem, 6vw, 5rem) !important;
                }
                .hero-title .hero-line {
                    font-size: 1em !important;
                }
                .hero-title .hero-subline {
                    font-size: 0.5em !important;
                }
                .verification-badge > div:first-child > div:first-child {
                    flex-shrink: 0 !important;
                }
                .verification-badge > div:last-child {
                    text-align: center !important;
                    padding: 0 20px !important;
                }
                
                .hero-visual {
                    padding: 20px !important;
                    width: 100% !important;
                    display: flex !important;
                    justify-content: center !important;
                    align-items: center !important;
                    box-sizing: border-box !important;
                }
            }
            
            /* ============================================
               NARROW PROFILE STYLES (max-width: 480px)
               ============================================ */
            @media (max-width: 480px) {
                /* Hero tagline line break */
                .hero-tagline-sub {
                    text-align: center;
                }
                .hero-tagline-sub .narrow-break {
                    display: block;
                }
                
                /* TruthLock Verification header - break and center */
                .truthlock-verify-header {
                    flex-direction: column !important;
                    text-align: center !important;
                }
                .truthlock-verify-header h3 {
                    text-align: center !important;
                }
                
                /* TruthLock Proof header - break and center */
                .truthlock-proof-header h3 .narrow-break {
                    display: block;
                }
                
                /* Verification Badges - 2x2 grid */
                .verification-badges-grid {
                    display: grid !important;
                    grid-template-columns: repeat(2, 1fr) !important;
                    gap: 10px !important;
                }
                .verification-badges-grid > div {
                    flex: none !important;
                    min-width: unset !important;
                }
                
                /* What's recorded in every proof - 2x2 grid */
                .whats-recorded-grid {
                    display: grid !important;
                    grid-template-columns: repeat(2, 1fr) !important;
                    gap: 8px !important;
                }
                
                /* Look for TruthLock Verify badge - line break */
                .truthlock-verify-cta .narrow-break {
                    display: block;
                }
                
                /* Features section items - icon above, centered */
                #features-section .feature-item {
                    flex-direction: column !important;
                    align-items: center !important;
                    text-align: center !important;
                }
                #features-section .feature-icon {
                    margin-bottom: 12px !important;
                }
                #features-section .feature-content {
                    text-align: center !important;
                }
            }
            
            /* Hide narrow breaks by default */
            .narrow-break {
                display: inline;
            }
            .narrow-break::before {
                content: ' ';
            }
            @media (max-width: 480px) {
                .narrow-break {
                    display: block;
                }
                .narrow-break::before {
                    content: none;
                }
            }

/* ── Hero decorative overlay ── */
            /* Proper decorative overlay using a pseudo-element instead of a real DIV */
            #hero-wrapper::before {
                content: '';
                position: absolute;
                inset: 0;
                background: radial-gradient(ellipse 800px 600px at 30% 40%, rgba(196, 167, 71, 0.03) 0%, transparent 40%);
                animation: float 20s ease-in-out infinite;
                pointer-events: none;
                z-index: 0;
            }

/* ── Premium hero design + responsive ── */
            .hero-centered { 
                display: flex; 
                flex-direction: column; 
                align-items: center; 
                justify-content: center;
                text-align: center; 
                width: 100%; 
                max-width: 900px; 
                margin: 0 auto; 
                padding: 0 32px;
                box-sizing: border-box;
                overflow: visible;
            }
            .hero-title-block {
                margin-bottom: 48px;
                position: relative;
                min-height: 220px;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                transition: opacity 0.6s ease;
            }
            .hero-main-title {
                font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
                font-size: clamp(2.8rem, 6vw, 4.5rem);
                font-weight: 300;
                color: #ffffff;
                line-height: 1.2;
                margin: 0 0 8px 0;
                letter-spacing: -0.02em;
                text-align: center;
                overflow: visible;
                white-space: nowrap;
            }
            .hero-cycling-phrase {
                display: inline-block;
                overflow: visible;
                padding-right: 0.15em;
                padding-top: 0.05em;
                cursor: default;
            }
            .hero-cycling-phrase .ai-text {
                font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
                font-style: italic;
                font-weight: 400;
                color: #c4a747;
                margin-left: 0.18em;
                display: inline-block;
                overflow: visible;
            }
            .hero-for-line {
                font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
                font-size: 1.2rem;
                font-weight: 300;
                color: rgba(255,255,255,0.7);
                margin: 6px 0 12px;
                letter-spacing: 0.02em;
            }
            .hero-audience {
                font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
                font-size: clamp(1.8rem, 4vw, 2.8rem);
                font-weight: 400;
                color: #ffffff;
                margin: 0;
                letter-spacing: 0.04em;
                text-transform: uppercase;
                white-space: nowrap;
                min-height: 1.2em;
            }
            .hero-audience.serif-persona {
                font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif !important;
                letter-spacing: 0.08em !important;
            }
            .hero-tagline {
                margin: 0 0 56px;
            }
            .hero-tagline-main {
                font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
                font-size: 1.2rem;
                font-weight: 500;
                color: rgba(255,255,255,0.95);
                margin: 0 0 10px;
                line-height: 1.5;
                letter-spacing: 0.01em;
            }
            .hero-tagline-sub {
                font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
                font-size: 0.95rem;
                font-weight: 400;
                font-style: normal;
                color: rgba(255,255,255,0.65);
            }
            .hero-tagline-sub .statement-link {
                color: #c9a227;
                text-decoration: none;
                transition: color 0.2s ease;
            }
            .hero-tagline-sub .statement-link:hover {
                color: #e6b82e;
                text-decoration: underline;
                margin: 0;
                letter-spacing: 0.01em;
            }
            .hero-trust-badge {
                display: flex;
                align-items: flex-start;
                gap: 16px;
                padding: 20px 24px;
                background: rgba(20, 20, 30, 0.9);
                backdrop-filter: blur(12px);
                border: 1px solid rgba(196, 167, 71, 0.2);
                border-radius: 12px;
                margin-bottom: 40px;
                max-width: 680px;
            }
            .hero-trust-icon {
                width: 44px;
                height: 44px;
                flex-shrink: 0;
                margin-top: 2px;
            }
            .hero-trust-content {
                text-align: left;
            }
            .hero-trust-title {
                font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
                font-size: 0.9rem;
                font-weight: 600;
                color: #ffffff;
                margin-bottom: 8px;
                line-height: 1.4;
            }
            .truthlock-title-link {
                color: #c4a747;
                text-decoration: none;
                font-weight: 600;
            }
            .truthlock-link {
                position: relative;
                display: inline-flex;
                align-items: center;
                gap: 4px;
                cursor: pointer;
            }
            .truthlock-arrow {
                opacity: 0;
                transform: translateX(-3px);
                transition:
                    opacity 140ms ease-out,
                    transform 140ms ease-out;
            }
            .truthlock-link:hover .truthlock-arrow {
                opacity: 1;
                transform: translateX(0);
            }
            .hero-trust-desc {
                font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
                font-size: 0.85rem;
                font-weight: 400;
                color: rgba(255,255,255,0.7);
                line-height: 1.55;
            }
            .hero-trust-desc strong {
                color: #c4a747;
                font-weight: 500;
            }
            .hero-input-area {
                width: 100%;
                max-width: 620px;
                margin-bottom: 16px;
            }
            .hero-input-box {
                display: flex;
                align-items: center;
                gap: 12px;
                background: rgba(255, 255, 255, 0.78);
                backdrop-filter: blur(12px);
                -webkit-backdrop-filter: blur(12px);
                border: 1px solid rgba(255, 255, 255, 0.3);
                border-radius: 14px;
                padding: 8px 8px 8px 22px;
                box-shadow: 0 4px 24px rgba(0,0,0,0.15);
                transition: all 0.2s ease;
            }
            .hero-input-box:focus-within {
                background: rgba(255, 255, 255, 0.92);
                border-color: rgba(196,167,71,0.5);
                box-shadow: 0 6px 32px rgba(0,0,0,0.2), 0 0 0 2px rgba(196,167,71,0.2);
            }
            .hero-input-box input {
                flex: 1;
                border: none;
                background: transparent;
                font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
                font-size: 1rem;
                color: #1a1a1a;
                outline: none;
                padding: 14px 0;
            }
            .hero-input-box input::placeholder {
                color: #666;
            }
            .hero-input-submit {
                width: 40px;
                height: 40px;
                border-radius: 8px;
                background: transparent;
                border: none;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                color: #999;
                transition: all 0.15s ease;
                flex-shrink: 0;
            }
            .hero-input-submit:hover {
                color: #c4a747;
                background: rgba(196, 167, 71, 0.08);
            }
            .hero-free-note {
                font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
                font-size: 0.9rem;
                font-weight: 400;
                color: rgba(255,255,255,0.55);
                margin-bottom: 48px;
                letter-spacing: 0.02em;
            }
            .hero-actions {
                display: flex;
                gap: 16px;
                align-items: center;
                flex-wrap: wrap;
                justify-content: center;
            }
            .hero-btn-primary {
                font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
                padding: 16px 36px;
                border-radius: 50px;
                background: linear-gradient(135deg, #c4a747, #d4b957);
                color: #1a1a1a;
                font-weight: 500;
                font-size: 1rem;
                text-decoration: none;
                border: none;
                cursor: pointer;
                transition: all 0.2s ease;
                box-shadow: 0 4px 16px rgba(196,167,71,0.3);
            }
            .hero-btn-primary:hover {
                background: linear-gradient(135deg, #d4b957, #e5ca68);
                box-shadow: 0 6px 24px rgba(196,167,71,0.45);
                transform: translateY(-1px);
            }
            .hero-btn-secondary {
                font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
                padding: 16px 32px;
                border-radius: 50px;
                background: transparent;
                color: rgba(255,255,255,0.85);
                font-weight: 400;
                font-size: 1rem;
                text-decoration: none;
                border: 1px solid rgba(255,255,255,0.3);
                cursor: pointer;
                transition: all 0.2s ease;
            }
            .hero-btn-secondary:hover {
                background: rgba(255,255,255,0.08);
                border-color: rgba(255,255,255,0.5);
                color: #fff;
            }
            /* Mobile-only line breaks - hidden by default */
            .mobile-only { display: none; }
            
            @media (max-width: 600px) {
                .mobile-only { display: inline; }
                .hero-centered { padding: 0 20px; }
                .hero-trust-badge { 
                    flex-direction: column; 
                    align-items: center;
                    text-align: center; 
                    padding: 20px 24px;
                }
                .hero-trust-icon {
                    margin: 0 0 12px 0;
                }
                .hero-trust-content { text-align: center; }
                .hero-trust-title { line-height: 1.5; }
                .hero-actions { flex-direction: column; width: 100%; }
                .hero-btn-primary, .hero-btn-secondary { width: 100%; text-align: center; justify-content: center; }
            }

/* ── What is Iron Rod AI section ── */
  /* What is Iron Rod AI Section Styles - Blue Theme (like CFM) */
  .what-is-section {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #1e3a5f 100%);
    padding: 60px 20px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: none;
  }
  
  /* Starry background effect for What is Iron Rod AI (like CFM) */
  .what-is-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.4), transparent), 
                      radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.3), transparent), 
                      radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.5), transparent), 
                      radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.4), transparent), 
                      radial-gradient(1px 1px at 230px 80px, rgba(255,255,255,0.3), transparent), 
                      radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.2), transparent);
    background-size: 350px 180px;
    pointer-events: none;
  }
  
  @media (max-width: 575px) {
    .what-is-section {
      padding: 50px 16px;
      border-radius: 16px;
    }
  }
  
  .what-is-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c4a747, #e8d574, #c4a747);
    border-radius: 16px 16px 0 0;
    z-index: 2;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
  }
  
  .what-is-section:hover::before {
    transform: scaleX(1);
  }
  
  .what-is-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  
  .what-is-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
  }
  
  .what-is-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
  }
  
  .what-is-header .tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #c4a747;
    font-weight: 500;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
  }
  
  .what-is-header .main-pitch {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #ffffff;
    font-weight: 600;
    max-width: 900px;
    margin: 0 auto 20px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
  }
  
  .what-is-header .sub-pitch {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
  }

/* ── Example cards + section cards ── */
  .see-it-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px 28px;
    transition: all 0.3s ease;
  }
  .see-it-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
  }
  .see-it-card .card-emotion {
    color: #c4a747;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
  }
  .see-it-card h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
  }
  .see-it-card .card-body-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
  }
  .see-it-card .card-caption {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-style: italic;
    margin: 0;
  }
  .see-it-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  @media (max-width: 900px) {
    .see-it-grid { grid-template-columns: 1fr; }
  }

  .persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .persona-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
  }
  .persona-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(196, 167, 71, 0.3);
    text-decoration: none;
    color: inherit;
  }
  .persona-card .persona-verb {
    display: inline-block;
    background: rgba(196, 167, 71, 0.15);
    color: #c4a747;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
  }
  .persona-card h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
  }
  .persona-card .persona-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 14px;
    font-style: italic;
  }
  .persona-card .persona-question {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 12px 16px;
    background: rgba(196, 167, 71, 0.06);
    border-left: 3px solid rgba(196, 167, 71, 0.4);
    border-radius: 0 8px 8px 0;
  }

  .how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  @media (max-width: 900px) {
    .how-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 600px) {
    .how-grid { grid-template-columns: 1fr; }
  }
  .how-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
  }
  .how-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
  }
  .how-card .how-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 167, 71, 0.2);
    margin-bottom: 16px;
  }
  .how-card .how-icon i { font-size: 1.4rem; color: #c4a747; }
  .how-card h3 { color: #ffffff; font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
  .how-card p { color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; line-height: 1.5; margin: 0; }

  #see-it-section .section-card,
  #personas-section .section-card,
  #how-it-works-section .section-card,
  #commitment-section .section-card,
  #pricing-section .section-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  #see-it-section .section-card::before,
  #personas-section .section-card::before,
  #how-it-works-section .section-card::before,
  #commitment-section .section-card::before,
  #pricing-section .section-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #c4a747, #e8d574, #c4a747) !important;
    border-radius: 20px 20px 0 0 !important;
    z-index: 2 !important;
    transform: scaleX(0) !important;
    transform-origin: left !important;
    transition: transform 0.5s ease !important;
  }
  #see-it-section .section-card:hover::before,
  #personas-section .section-card:hover::before,
  #how-it-works-section .section-card:hover::before,
  #commitment-section .section-card:hover::before,
  #pricing-section .section-card:hover::before {
    transform: scaleX(1) !important;
  }

/* ── What Can You Ask + testimonials ── */
  /* What Can You Ask Section - Dark Navy Panel */
  .what-can-you-ask-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
    padding: 48px 32px !important;
    position: relative;
    overflow: hidden;
  }
  
  .what-can-you-ask-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(196, 167, 71, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
  }
  
  /* Top edge animation */
  .what-can-you-ask-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c4a747, #e8d574, #c4a747);
    border-radius: 16px 16px 0 0;
    z-index: 3;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
  }
  
  .what-can-you-ask-card:hover::after {
    transform: scaleX(1);
  }
  
  .wcya-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #ffffff !important;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.25;
    position: relative;
    z-index: 1;
  }
  
  .wcya-tagline {
    font-size: 1.2rem;
    color: #c4a747 !important;
    margin: 0 0 32px 0;
    font-weight: 500;
    text-align: center;
    position: relative;
    z-index: 1;
  }
  
  .wcya-promise {
    color: rgba(255,255,255,0.9) !important;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 32px 0 48px 0;
    position: relative;
    z-index: 1;
  }
  
  .wcya-testimonials {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 32px 24px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
  }
  
  .wcya-testimonials-title {
    text-align: center;
    color: #ffffff !important;
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 600;
    margin-bottom: 24px;
  }
  
  .wcya-cta {
    text-align: center;
    position: relative;
    z-index: 1;
  }
  
  .wcya-cta p {
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    font-weight: 500;
    color: #ffffff !important;
    font-style: italic;
    margin: 0;
  }
  
  /* Question cards in dark section */
  .what-can-you-ask-card .question-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
  
  .what-can-you-ask-card .question-card p {
    color: rgba(255, 255, 255, 0.9);
  }
  
  /* Testimonial cards in dark section */
  .what-can-you-ask-card .testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .what-can-you-ask-card .testimonial-card .quote {
    color: rgba(255, 255, 255, 0.9);
  }
  
  .what-can-you-ask-card .testimonial-card .author {
    color: #c4a747;
  }
  
  .what-can-you-ask-card .testimonial-card::before {
    color: rgba(196, 167, 71, 0.2);
  }
  
  @media (max-width: 575px) {
    .what-can-you-ask-card {
      padding: 32px 16px !important;
    }
  }
  
  /* Questions Grid */
  .questions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
  }
  
  @media (max-width: 900px) {
    .questions-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 600px) {
    .questions-grid {
      grid-template-columns: 1fr;
    }
  }
  
  .question-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 24px;
    border-radius: 16px;
    border-left: 4px solid #c4a747;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
  }
  
  .question-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-left-color: #e8c847;
    background: rgba(255, 255, 255, 0.12);
  }
  
  .question-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  /* Testimonials Grid */
  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  @media (max-width: 900px) {
    .testimonials-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 600px) {
    .testimonials-grid {
      grid-template-columns: 1fr;
    }
  }
  
  .testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
  }
  
  .testimonial-card::before {
    content: '"';
    position: absolute;
    top: 12px;
    left: 20px;
    font-size: 4rem;
    color: rgba(196, 167, 71, 0.2);
    line-height: 1;
  }
  
  .testimonial-card .quote {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
  }
  
  .testimonial-card .author {
    color: #c4a747;
    font-weight: 600;
    font-size: 0.9rem;
  }

/* ── Turnstile overlay/modal ── */
  .home-turnstile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
  }
  .home-turnstile-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 9999;
    text-align: center;
    max-width: 360px;
    width: 90%;
  }
  .home-turnstile-modal h4 {
    margin-bottom: 10px;
    color: var(--primary-color, #2D4A3E);
  }
  .home-turnstile-cancel {
    margin-top: 12px;
    background: transparent;
    border: 1px solid #ccc;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
  }

/* ── Content cards, features grid, collapsibles ── */
  /* Section cards polish */
  .content-card { background: #ffffff; border-radius: 16px; margin-bottom: 28px; border: 1px solid #e6e6e6; box-shadow: 0 6px 16px rgba(0,0,0,0.06); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
  .content-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
  .content-card-header { padding: 28px 28px 12px; background: linear-gradient(135deg,#f8f9fa 0%, #ffffff 100%); cursor: pointer; }
  .content-card-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#c4a747,#e8d574); color: #2D4A3E; font-size: 1.35rem; margin-bottom: 16px; }
  .content-card-title { display: flex; align-items: center; justify-content: space-between; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-weight: 700; color: #2D4A3E; font-size: 1.6rem; }
  .expand-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(196,167,71,0.12); }
  .content-card-summary { color: #666; margin-top: 8px; font-size: 1.05rem; }
  .content-card-body { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(0.4,0,0.2,1); }
  .content-card.expanded .content-card-body { max-height: 1200px; }
  .content-card-detail { padding: 0 28px 24px; color: #525a5f; }

  /* Features grid restore + expand behavior - exclude #features-section which has dark theme */
  .features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 1000px; margin: 0 auto; }
  @media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }
  :not(#features-section) > .feature-item, :not(#features-section) .feature-item:not(#features-section .feature-item) { background: #fff; border: 1px solid #e6e6e6; }
  .feature-item { border-radius: 14px; padding: 18px 18px 12px; display: grid; grid-template-columns: 56px 1fr; gap: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.04); transition: transform .25s ease, box-shadow .25s ease; cursor: pointer; }
  .feature-item:hover { transform: translateY(-4px); box-shadow: 0 8px 18px rgba(0,0,0,0.07); }
  .feature-item.expanded { transform: translateY(-2px) scale(1.01); box-shadow: 0 12px 28px rgba(0,0,0,0.09); }
  .feature-item .feature-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#c4a747,#e8d574); color: #2D4A3E; }
  :not(#features-section) .feature-item h3 { margin: 0 0 6px; font-size: 1.1rem; color: #2D4A3E; font-weight: 700; }
  :not(#features-section) .feature-item p { margin: 0; color: #666; }
  /* Features section dark theme cards */
  #features-section .feature-item { background: rgba(255, 255, 255, 0.08) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; }
  #features-section .feature-item h3 { color: #ffffff !important; }
  #features-section .feature-item p { color: rgba(255, 255, 255, 0.85) !important; }
  .feature-summary { color: #666; }
  .feature-details { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .feature-item.expanded .feature-details { max-height: 200px; }
  .feature-toggle { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: #2D4A3E; font-weight: 600; }

  /* Collapsible long-sections to reduce scroll */
  .collapsible-container { position: relative; max-height: 260px; overflow: hidden; transition: max-height .35s ease; }
  .collapsible-container::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); right: 0; bottom: 0; height: 72px; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(245,245,245,0.9) 60%, rgba(245,245,245,1) 100%); pointer-events: none; }
  .collapsible-container.expanded { max-height: 2000px; }
  .collapsible-container.expanded::after { display: none; }
  .collapsible-toggle { margin: 14px auto 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid #dcdcdc; background: #fff; color: #2D4A3E; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.06); cursor: pointer; }

  /* TM superscript styling */
  .tm {
    font-size: .5em;
    line-height: 0;
    position: relative;
    top: -.55em;
    margin-left: .15em;
    letter-spacing: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-weight: 600;
    display: inline-block;
    transform: translateY(0);
  }
  .truthlock-lead { font-size: 1.06rem; color: #2D4A3E; font-weight: 600; letter-spacing: 0.1px; }
