/* ==========================================================================
   Base Stylesheet & Layout
   Targeting: Top 4 Juno Download Alternatives for DJs in 2026
   Theme: Custom modern electronic aesthetic, supporting light/dark systems
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* Dynamic Color Palettes & System Variables */
:root {
    --primary: #0052ff;
    --primary-hover: #003cd1;
    --primary-muted: rgba(0, 82, 255, 0.08);
    --primary-muted-border: rgba(0, 82, 255, 0.15);
    
    --bg-site: #f8fafc;
    --bg-card: #ffffff;
    --bg-navbar: rgba(255, 255, 255, 0.85);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-focus: rgba(0, 82, 255, 0.4);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 999px;
    
    --max-width-site: 1140px;
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* User-triggered and System-inferred Dark Mode */
.site-body-surface[data-theme="dark"] {
    --bg-site: #090d16;
    --bg-card: #121824;
    --bg-navbar: rgba(18, 24, 36, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-focus: rgba(0, 82, 255, 0.6);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #090d16;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

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

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

body.site-body-surface {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-site);
    color: var(--text-secondary);
    line-height: 1.625;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 72px; /* Accounting for fixed navbar */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Minimal Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-site);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Utility Links Base */
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary-hover);
}

/* Base Typographical Flow */
h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.25;
}

h2 {
    font-size: 1.75rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.35rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

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

strong {
    color: var(--text-primary);
}

ul, ol {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Layout Core Vessel */
.canopy-canvas {
    width: 100%;
}

.spine-layout-vessel {
    max-width: var(--max-width-site);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.spine-layout-core {
    max-width: 800px;
    margin: 2rem auto;
}

/* Custom general table reset inside content */
.spine-layout-core table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.spine-layout-core th {
    background-color: var(--primary-muted);
    color: var(--text-primary);
    font-weight: 700;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.spine-layout-core td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.spine-layout-core tr:last-child td {
    border-bottom: 0;
}

/* ==========================================================================
   Header Navigation Dock
   ========================================================================== */
.sys-dock-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background-color: var(--bg-navbar);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dock-bar-inner {
    max-width: var(--max-width-site);
    height: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.portal-brand-block {
    flex-shrink: 0;
}

.portal-brand-anchor {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 750;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

.portal-brand-mark {
    display: block;
    flex-shrink: 0;
}

.border-brand-title {
    font-weight: 850;
}

.dock-nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.dock-nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.dock-nav-link:hover {
    color: var(--primary);
}

.dock-interactive-cluster {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Search Bar Wrapper */
.query-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-glass-icon {
    position: absolute;
    left: 12px;
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0.7;
}

#search-input {
    width: 200px;
    height: 38px;
    padding: 0 12px 0 34px;
    font-family: inherit;
    font-size: 0.85rem;
    background-color: var(--bg-site);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    transition: var(--transition);
}

#search-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px var(--primary-muted);
}

/* Theme Toggle Trigger */
.day-night-shifter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
}

.day-night-shifter:hover {
    background-color: var(--bg-site);
    border-color: var(--text-muted);
}

.theme-mode-symbol {
    font-size: 1.1rem;
}

/* Responsive Dock Adapters */
@media (max-width: 900px) {
    #search-input {
        width: 140px;
    }
    .dock-nav-menu {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .dock-nav-menu {
        display: none; /* Auto stacked/hidden links on pure css mobile scale */
    }
}


/* ==========================================================================
   Premium Hero Canopy
   ========================================================================== */
.canopy-billboard {
    background: radial-gradient(circle at 10% 20%, rgba(0, 82, 255, 0.05) 0%, transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(112, 0, 255, 0.04) 0%, transparent 50%),
                var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 5rem 1.5rem;
    text-align: center;
}

.billboard-container-mesh {
    max-width: var(--max-width-site);
    margin: 0 auto;
}

.billboard-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background-color: var(--primary-muted);
    border: 1px solid var(--primary-muted-border);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
}

.billboard-headline {
    font-size: 2.75rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    max-width: 820px;
    margin: 0 auto 1.25rem;
    line-height: 1.15;
}

.billboard-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .canopy-billboard {
        padding: 3.5rem 1rem;
    }
    .billboard-headline {
        font-size: 2rem;
    }
    .billboard-tagline {
        font-size: 1rem;
    }
}


/* ==========================================================================
   Author Bio Card Layout
   ========================================================================== */
.patron-bio-deck {
    margin: 4rem auto;
    max-width: 800px;
}

.bio-inner-hull {
    display: flex;
    gap: 2rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.bio-inner-hull:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-muted-border);
}

.bio-portrait-housing {
    flex-shrink: 0;
}

.avatar-roundel {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--bg-site);
    box-shadow: 0 0 0 1px var(--border-color);
}

.bio-details-cluster {
    flex-grow: 1;
}

.bio-patron-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.bio-patron-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.bio-patron-narrative {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.bio-social-orbit {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.bio-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.bio-profile-link:hover {
    color: var(--primary);
}

.bio-social-symbol {
    flex-shrink: 0;
    pointer-events: none;
}

@media (max-width: 650px) {
    .bio-inner-hull {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.75rem;
        gap: 1.25rem;
    }
    .bio-social-orbit {
        justify-content: center;
    }
}


/* ==========================================================================
   Contact Form Module
   ========================================================================== */
.dispatch-envelope {
    margin: 4rem auto;
    max-width: 800px;
}

.dispatch-hull {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.dispatch-header-cell {
    text-align: center;
    margin-bottom: 2.25rem;
}

.dispatch-headline {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.dispatch-subtext {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

.nexus-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nexus-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .nexus-form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .dispatch-hull {
        padding: 1.75rem;
    }
}

.nexus-input-shield {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nexus-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.nexus-field,
.nexus-textbox {
    width: 100%;
    font-family: inherit;
    font-size: 0.9rem;
    background-color: var(--bg-site);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.nexus-field:focus,
.nexus-textbox:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px var(--primary-muted);
}

.nexus-textbox {
    resize: vertical;
}

.nexus-submission-rack {
    margin-top: 0.5rem;
    text-align: right;
}

.nexus-submit-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    background-color: var(--primary);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nexus-submit-trigger:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.2);
}

.nexus-submit-trigger:active {
    transform: translateY(0);
}


/* ==========================================================================
   Global Footer Section
   ========================================================================== */
.ground-anchor-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 5rem 1.5rem 2.5rem;
    margin-top: 6rem;
}

.footer-matrix {
    max-width: var(--max-width-site);
    margin: 0 auto 4rem;
    display: grid;
    grid-template-columns: 2.25fr 1fr 1fr 2fr;
    gap: 3rem;
}

@media (max-width: 1024px) {
    .footer-matrix {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    .footer-matrix-column:last-child {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .footer-matrix {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
    .footer-matrix-column:last-child {
        grid-column: span 1;
    }
}

.footer-matrix-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-brand-emblem {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.footer-brand-text {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.footer-brand-pitch {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.footer-brand-pitch.text-fine-print {
    background-color: var(--bg-site);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.footer-header-tag {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: 0.08em;
}

.footer-unrolled-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-plain-link {
    font-size: 0.9rem;
    font-weight: 550;
    color: var(--text-secondary);
}

.footer-plain-link:hover {
    color: var(--primary);
    padding-left: 2px;
}

/* Footer Bottom Strip */
.footer-bottom-shingle {
    max-width: var(--max-width-site);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.footer-copyright-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* Cohesive Variables & Theme Defaults */
:root {
  --brand-primary: #0052ff;
  --brand-primary-hover: #0041cb;
  --brand-grad-1: linear-gradient(135deg, #0052ff, #2575fc);
  --brand-grad-2: linear-gradient(135deg, #ff416c, #ff4b2b);
  --brand-grad-3: linear-gradient(135deg, #00b09b, #96c93d);
  
  --bg-card-light: #ffffff;
  --border-card-light: rgba(0, 0, 0, 0.08);
  --shadow-card-light: 0 10px 30px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-hover-light: 0 20px 40px rgba(0, 82, 255, 0.08), 0 1px 3px rgba(0, 82, 255, 0.03);
  
  --text-main-light: #1a202c;
  --text-muted-light: #4a5568;
  --text-dim-light: #718096;
}

/* Base structural adjustments for target sections */
#comparison, #top-tools {
  box-sizing: border-box;
}
#comparison *, #top-tools * {
  box-sizing: border-box;
}

/* ==========================================================================
   1. Compact Typography & Spacing Rules for Lists, Headers & Inner Cards
   ========================================================================== */
#top-tools h3.tool-core-name {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
}

#top-tools h4, 
#comparison h4 {
  margin-top: 0.8rem;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

#top-tools h5.pro-title, 
#top-tools h5.con-title {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#top-tools p.tool-summary-block {
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

#top-tools .benefit-item-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#top-tools .benefit-item {
  margin-bottom: 8px; /* Compact spacing */
  font-size: 0.875rem;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

#top-tools .benefit-item:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   2. Comparison Table Styling (Modern, Clean & Responsive)
   ========================================================================== */
.quantum-matrix-bracket {
  margin: 4rem auto;
  border-radius: 20px;
  padding: 2.25rem 1.75rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 82, 255, 0.08);
  box-shadow: var(--shadow-card-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.matrix-title-cluster {
  text-align: center;
  margin-bottom: 2rem;
}

.matrix-headline {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, var(--brand-primary), #7000ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.matrix-subline {
  font-size: 0.95rem;
  color: var(--text-muted-light);
}

/* Responsive Table Container Rail with Custom Scrollbars */
.responsive-matrix-rail {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.responsive-matrix-rail::-webkit-scrollbar {
  height: 6px;
}
.responsive-matrix-rail::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
}
.responsive-matrix-rail::-webkit-scrollbar-thumb {
  background: rgba(0, 82, 255, 0.15);
  border-radius: 3px;
}
.responsive-matrix-rail::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 82, 255, 0.3);
}

.comparison-anchor-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 800px;
}

.comparison-anchor-table th {
  background: #fafafa;
  padding: 1.1rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted-light);
  border-bottom: 2.5px solid rgba(0, 82, 255, 0.08);
}

.comparison-anchor-table td {
  padding: 1.25rem 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background: transparent;
  transition: background-color 0.2s ease;
}

.comparison-anchor-table tr {
  transition: transform 0.2s ease;
}

.comparison-anchor-table tr:hover td {
  background: rgba(0, 82, 255, 0.01);
}

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

/* Table Inside Content - Brand Profiles */
.brand-pinnacle-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-graphic-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.15rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 82, 255, 0.1);
}

.brand-graphic-badge.b-pink-1 { background: var(--brand-grad-1); }
.brand-graphic-badge.b-pink-2 { background: var(--brand-grad-2); }
.brand-graphic-badge.b-pink-3 { background: var(--brand-grad-3); }

.brand-detail-vessel h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main-light);
}

.brand-meta-label {
  font-size: 0.72rem;
  color: var(--text-dim-light);
  margin-top: 0.1rem;
  display: block;
}

/* Rating Visuals */
.score-star-cluster {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.numerical-rating {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-main-light);
  letter-spacing: -0.02em;
}

.star-ray-emblem {
  color: #ffb800;
  font-size: 1rem;
}

/* Audio Format Capsules */
.format-capsule-rack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  max-width: 220px;
}

.format-capsule {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(0, 82, 255, 0.06);
  color: var(--brand-primary);
  border: 1px solid rgba(0, 82, 255, 0.05);
  letter-spacing: 0.02em;
}

.meta-feature-point {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted-light);
}

/* High Fidelity CTA inside the comparison grid */
.platform-nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  background: var(--brand-primary);
  color: #ffffff !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  box-shadow: 0 4px 10px rgba(0, 82, 255, 0.12);
  white-space: nowrap;
}

.platform-nav-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 82, 255, 0.25);
  background: var(--brand-primary-hover);
}

/* ==========================================================================
   3. Premium Listing Cards (id="top-tools")
   ========================================================================== */
#top-tools {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 4rem auto;
}

.tool-curated-card {
  background: var(--bg-card-light);
  border-radius: 18px;
  border: 1px solid var(--border-card-light);
  box-shadow: var(--shadow-card-light);
  padding: 2.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 992px) {
  .tool-curated-card {
    grid-template-columns: 2fr 3.2fr 1.5fr;
    align-items: center;
    gap: 2.2rem;
  }
}

.tool-curated-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--brand-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.tool-curated-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover-light);
  border-color: rgba(0, 82, 255, 0.18);
}

.tool-curated-card:hover::before {
  opacity: 1;
}

/* Top Badge & Rating Row */
.tool-identity-hull {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tool-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tool-custom-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  color: #ffffff;
}

.tool-custom-badge.badge-primary { background: var(--brand-grad-1); }
.tool-custom-badge.badge-secondary { background: var(--brand-grad-2); }
.tool-custom-badge.badge-tertiary { background: var(--brand-grad-3); }

.tool-rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 82, 255, 0.05);
  color: var(--brand-primary);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid rgba(0, 82, 255, 0.05);
}

.tool-rating-star {
  color: #ffb800;
  font-size: 0.9rem;
}

/* Feature Grid Columns (Pros / Cons) */
.tool-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 600px) {
  .tool-feature-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
  }
}

@media (min-width: 992px) {
  .tool-feature-grid {
    border-top: none;
    border-bottom: none;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0 1.75rem;
  }
}

.pro-title {
  color: #2f855a;
}
.con-title {
  color: #c53030;
}

.benefit-bullet.bullet-pro {
  color: #38a169;
  font-size: 1rem;
}

.benefit-bullet.bullet-con {
  color: #e53e3e;
  font-size: 1rem;
}

/* Action Trigger Box & Premium CTA Buttons */
.tool-action-portal {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem;
}

.curated-action-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  background: var(--brand-primary);
  color: #ffffff !important;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 82, 255, 0.15);
  text-align: center;
  letter-spacing: -0.01em;
}

.curated-action-trigger:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 82, 255, 0.3);
}

.action-guarantee-text {
  font-size: 0.72rem;
  text-align: center;
  color: var(--text-dim-light);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}


/* ==========================================================================
   4. Deep Multi-Theme dark Support Override Program
   ========================================================================== */
.site-body-surface[data-theme="dark"] {
  --text-main-light: #f7fafc;
  --text-muted-light: #cbd5e0;
  --text-dim-light: #a0aec0;
  --bg-card-light: #16161a;
  --border-card-light: rgba(255, 255, 255, 0.06);
  --shadow-card-light: 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-hover-light: 0 20px 40px rgba(0, 82, 255, 0.15);
}

/* Specific Dark Mode Refinements */
.site-body-surface[data-theme="dark"] .quantum-matrix-bracket {
  background: rgba(22, 22, 26, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

.site-body-surface[data-theme="dark"] .responsive-matrix-rail {
  background: #111114;
  border-color: rgba(255, 255, 255, 0.08);
}

.site-body-surface[data-theme="dark"] .comparison-anchor-table th {
  background: #141418;
  color: var(--text-dim-light);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.site-body-surface[data-theme="dark"] .comparison-anchor-table td {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.site-body-surface[data-theme="dark"] .comparison-anchor-table tr:hover td {
  background: rgba(0, 82, 255, 0.03);
}

.site-body-surface[data-theme="dark"] .format-capsule {
  background: rgba(0, 82, 255, 0.15);
  color: #6392ff;
  border-color: rgba(0, 82, 255, 0.1);
}

.site-body-surface[data-theme="dark"] .tool-rating-chip {
  background: rgba(0, 82, 255, 0.12);
  color: #6392ff;
  border-color: rgba(0, 82, 255, 0.1);
}

.site-body-surface[data-theme="dark"] .tool-feature-grid {
  border-color: rgba(255, 255, 255, 0.06);
}

.site-body-surface[data-theme="dark"] .pro-title {
  color: #48bb78;
}
.site-body-surface[data-theme="dark"] .con-title {
  color: #f56565;
}

.site-body-surface[data-theme="dark"] .bullet-pro {
  color: #48bb78;
}
.site-body-surface[data-theme="dark"] .bullet-con {
  color: #f56565;
}

/* ==========================================================================
   5. Dynamic Media Query Layout Adaptation
   ========================================================================== */
@media (max-width: 768px) {
  .quantum-matrix-bracket {
    padding: 1.5rem 1rem;
    margin: 2.5rem 0.5rem;
  }
  
  .matrix-headline {
    font-size: 1.6rem;
  }
  
  .tool-curated-card {
    padding: 1.5rem;
    margin: 0 0.5rem;
    gap: 1.25rem;
  }
}