/* CSS Reset & Variables */
:root {
    --bg-dark: #0b0f19;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.07);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Neon Accents */
    --accent-purple: #c084fc;
    --accent-purple-glow: rgba(192, 132, 252, 0.15);
    --accent-cyan: #22d3ee;
    --accent-cyan-glow: rgba(34, 211, 238, 0.15);
    --accent-green: #4ade80;
    --accent-green-glow: rgba(74, 222, 128, 0.15);
    --accent-red: #f87171;
    
    --grad-purple: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    --grad-cyan: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --grad-green: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --grad-dark: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    --grad-text: linear-gradient(135deg, #22d3ee 0%, #a855f7 100%);
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Glow Blobs */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}

.blob-1 {
    top: 5%;
    left: 10%;
    width: 400px;
    height: 400px;
    background-color: var(--accent-purple);
}

.blob-2 {
    top: 40%;
    right: 5%;
    width: 500px;
    height: 500px;
    background-color: var(--accent-cyan);
}

.blob-3 {
    bottom: 10%;
    left: 15%;
    width: 350px;
    height: 350px;
    background-color: var(--accent-green);
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--grad-text);
    color: #0b0f19;
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.35);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-youtube {
    background: #ff0000;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-youtube:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.yt-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* Header */
#main-header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-accent {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.logo-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

#navbar {
    display: flex;
    align-items: center;
    gap: 2rem;
}

#navbar a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

#navbar a:hover {
    color: var(--text-primary);
}

#navbar .nav-cta {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

#navbar .nav-cta:hover {
    background: var(--grad-text);
    color: #0b0f19;
    border-color: transparent;
}

/* Main layouts */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
#hero {
    min-height: calc(85vh - var(--header-height));
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 4rem;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    font-weight: 500;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 14px var(--accent-cyan); }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Pillars Section */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.pillar-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: var(--transition);
}

.pillar-card.card-purple::before { background: var(--grad-purple); }
.pillar-card.card-cyan::before { background: var(--grad-cyan); }
.pillar-card.card-green::before { background: var(--grad-green); }

.pillar-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.pillar-card.card-purple:hover { border-color: rgba(192, 132, 252, 0.4); box-shadow: 0 12px 30px var(--accent-purple-glow); }
.pillar-card.card-cyan:hover { border-color: rgba(34, 211, 238, 0.4); box-shadow: 0 12px 30px var(--accent-cyan-glow); }
.pillar-card.card-green:hover { border-color: rgba(74, 222, 128, 0.4); box-shadow: 0 12px 30px var(--accent-green-glow); }

.pillar-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    flex-shrink: 0;
}

.card-purple .pillar-icon-wrapper { background: rgba(192, 132, 252, 0.1); color: var(--accent-purple); }
.card-cyan .pillar-icon-wrapper { background: rgba(34, 211, 238, 0.1); color: var(--accent-cyan); }
.card-green .pillar-icon-wrapper { background: rgba(74, 222, 128, 0.1); color: var(--accent-green); }

.pillar-icon {
    width: 32px;
    height: 32px;
}

.pillar-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    min-height: 2.25rem;
    display: flex;
    align-items: center;
}

.pillar-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    min-height: 4.8rem;
    flex-grow: 1;
}

.pillar-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-top: 1px solid var(--card-border);
    padding-top: 1.5rem;
    margin-top: auto;
    width: 100%;
}

.detail-group h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}

.tag-list li {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.cert-icon {
    font-size: 1.1rem;
}

.history-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 15px;
}

.history-list li::before {
    content: '➔';
    position: absolute;
    left: 0;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Lead Qualifier Dashboard */
.qualifier-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
}

.qualifier-sidebar {
    background: rgba(255, 255, 255, 0.01);
    border-right: 1px solid var(--card-border);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.agent-avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.agent-avatar {
    width: 48px;
    height: 48px;
    background: var(--grad-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b0f19;
    position: relative;
}

.agent-avatar svg {
    width: 24px;
    height: 24px;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-purple);
    animation: ring-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes ring-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.agent-status h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.agent-status p {
    font-size: 0.75rem;
    color: var(--accent-purple);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.steps-progress {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-progress-item {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.4;
    transition: var(--transition);
}

.step-progress-item.active {
    opacity: 1;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
}

.step-progress-item.active .step-num {
    background: var(--grad-text);
    color: #0b0f19;
    border-color: transparent;
}

.step-label {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Chat/Form Box */
.qualifier-chat-box {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-height: 480px;
}

.chat-step {
    display: none;
    animation: step-fade-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-step.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@keyframes step-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.agent-msg {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--accent-purple);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.1);
}

/* Custom Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input {
    display: none;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.02);
    display: inline-block;
    position: relative;
    transition: var(--transition);
}

.checkbox-label input:checked + .custom-checkbox {
    background: var(--accent-purple);
    border-color: transparent;
}

.checkbox-label input:checked + .custom-checkbox::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0b0f19;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Select wrapper styling */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    appearance: none;
    cursor: pointer;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    pointer-events: none;
}

/* Custom Radio styling */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
}

.radio-label input {
    display: none;
}

.custom-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.02);
    display: inline-block;
    position: relative;
    transition: var(--transition);
}

.radio-label input:checked + .custom-radio {
    border-color: var(--accent-purple);
}

.radio-label input:checked + .custom-radio::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-purple);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Results Panel Styling */
.results-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: step-fade-in 0.5s ease-out;
}

.results-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

.results-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.gauge-section {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.score-ring-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.score-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.score-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 8;
}

.score-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-value-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
}

#score-display {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.score-total {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.score-summary h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.score-summary p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 400px;
}

.divider {
    border: none;
    border-top: 1px solid var(--card-border);
}

.result-action-box {
    animation: step-fade-in 0.5s ease-out;
}

.alert-success-box {
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
}

.alert-neutral-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
}

.alert-icon {
    font-size: 1.3rem;
    line-height: 1.2;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-purple);
}

.contact-card h5 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.contact-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    word-break: break-all;
}

.contact-link:hover {
    text-decoration: underline;
}

.alternative-funnels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.funnel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.funnel-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-secondary);
}

.funnel-btn.outline {
    background: transparent;
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.funnel-btn.outline:hover {
    background: rgba(192, 132, 252, 0.05);
}

/* Tier 1: Direct Outreach Notification Card */
.direct-outreach-card {
    background: rgba(74, 222, 128, 0.05);
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.outreach-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 222, 128, 0.15);
    color: var(--accent-green);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.direct-outreach-card h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0.25rem 0 0 0;
    font-weight: 700;
}

.direct-outreach-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

.outreach-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    color: var(--accent-green);
    margin-top: 0.25rem;
}

/* Tier 2: Catalog Recommendation Box */
.alert-info-box {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.catalog-redirect-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(56, 189, 248, 0.04);
    border: 1px dashed rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.funnel-btn-catalog {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-weight: 700;
}

.funnel-btn-catalog:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
}

.redirect-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Tier 3: Secondary Contact & Direct Form */
.funnel-btn-secondary-contact {
    background: rgba(192, 132, 252, 0.1);
    border-color: rgba(192, 132, 252, 0.35);
    color: var(--accent-purple);
    font-weight: 600;
    cursor: pointer;
}

.funnel-btn-secondary-contact:hover {
    background: rgba(192, 132, 252, 0.2);
    border-color: var(--accent-purple);
}

.direct-contact-drawer {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 0.5rem;
    animation: step-fade-in 0.3s ease-out;
}

.direct-contact-header h5 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.direct-contact-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.direct-inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

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

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

.direct-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
}

.direct-field:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.direct-form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.direct-submit-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.direct-mailto-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.direct-mailto-link:hover {
    text-decoration: underline;
}

.direct-feedback {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: var(--radius-sm);
    color: var(--accent-green);
    font-size: 0.9rem;
    text-align: center;
}

/* YouTube Section */
.youtube-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.youtube-badge {
    display: inline-block;
    color: #ff0000;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.youtube-info .section-title {
    text-align: left;
}

.youtube-info .section-subtitle {
    text-align: left;
    margin: 0 0 2.5rem 0;
}

.youtube-mockup {
    width: 100%;
}

.mock-player {
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--card-border);
}

.mock-video-canvas {
    aspect-ratio: 16/9;
    width: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%231e293b" opacity="0.4"/><path d="M45 40l15 10-15 10z" fill="%23cbd5e1"/></svg>') center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
    cursor: pointer;
}

.play-btn-circle {
    width: 64px;
    height: 64px;
    background: #ff0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.mock-video-canvas:hover .play-btn-circle {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.8);
}

.play-btn-circle svg {
    width: 24px;
    height: 24px;
    margin-left: 4px;
}

.video-overlay-text {
    text-align: center;
}

.video-overlay-text h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.video-overlay-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.mock-player-controls {
    background: #111827;
    padding: 0.75rem 1.25rem;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 0.75rem;
    position: relative;
}

.progress-bar-fill {
    width: 12%;
    height: 100%;
    background: #ff0000;
    border-radius: 2px;
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer Section */
#main-footer {
    border-top: 1px solid var(--card-border);
    padding: 5rem 0 3rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 450px;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links ul a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links ul a:hover {
    color: var(--accent-cyan);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .youtube-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .youtube-info .section-title,
    .youtube-info .section-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .youtube-actions {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .qualifier-container {
        grid-template-columns: 1fr;
    }
    
    .qualifier-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--card-border);
        padding: 2.5rem 2rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1.5rem;
    }
    
    .steps-progress {
        display: none; /* Hide steps list on mobile to save vertical space */
    }
    
    .qualifier-chat-box {
        padding: 2.5rem 1.5rem;
    }
    
    .gauge-section {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* B2B Outreach Email Dashboard Styles */
#outreach-dashboard {
    padding: 6rem 0;
    position: relative;
}

.dashboard-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    margin-top: 3rem;
    min-height: 500px;
}

.dashboard-sidebar {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    max-height: 600px;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--card-border);
}

.sidebar-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.drafts-badge {
    background-color: var(--accent-purple-glow);
    color: var(--accent-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.drafts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.draft-item {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.draft-item:hover, .draft-item.active {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.draft-item.active {
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px var(--accent-purple-glow);
}

.draft-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.draft-item h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-pill {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
}

.category-pill.ai-engineering {
    background-color: var(--accent-purple-glow);
    color: var(--accent-purple);
    border: 1px solid rgba(192, 132, 252, 0.3);
}

.category-pill.data-analytics {
    background-color: var(--accent-cyan-glow);
    color: var(--accent-cyan);
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.category-pill.general-remote {
    background-color: var(--accent-green-glow);
    color: var(--accent-green);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.draft-item-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.25rem;
}

.dashboard-details {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    max-height: 600px;
    overflow: hidden;
}

.email-details-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 400px;
    color: var(--text-muted);
    padding: 3rem;
    text-align: center;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.email-details-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.panel-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.header-main {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 80%;
}

.header-main h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.panel-divider {
    border: none;
    border-top: 1px solid var(--card-border);
}

.panel-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.email-body-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    line-height: 1.5;
    flex-grow: 1;
    overflow-y: auto;
}

/* Sidebar Scrollbar Styling */
.dashboard-sidebar::-webkit-scrollbar, .panel-body::-webkit-scrollbar, .email-body-text::-webkit-scrollbar {
    width: 6px;
}

.dashboard-sidebar::-webkit-scrollbar-track, .panel-body::-webkit-scrollbar-track, .email-body-text::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-sidebar::-webkit-scrollbar-thumb, .panel-body::-webkit-scrollbar-thumb, .email-body-text::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 3px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover, .panel-body::-webkit-scrollbar-thumb:hover, .email-body-text::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Mobile responsive fixes */
@media (max-width: 992px) {
    .dashboard-wrapper {
        grid-template-columns: 1fr;
    }
    .dashboard-sidebar {
        max-height: 250px;
    }
}

/* ==========================================================================
   Agency Hero Stats Grid
   ========================================================================== */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
    width: 100%;
}

.hero-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.hero-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-purple);
    opacity: 0.8;
}

.hero-stat-card:nth-child(2)::before {
    background: var(--grad-cyan);
}

.hero-stat-card:nth-child(3)::before {
    background: var(--grad-green);
}

.hero-stat-card:nth-child(4)::before {
    background: linear-gradient(135deg, #f59e0b, #ec4899);
}

.hero-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #fff;
    margin-bottom: 0.25rem;
    display: block;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ==========================================================================
   30+ Years Experience & Heritage Section
   ========================================================================== */
.experience-section {
    padding: 5rem 0;
    position: relative;
}

.heritage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.heritage-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    position: relative;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.heritage-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: var(--card-shadow);
}

.heritage-era-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    margin-bottom: 1.25rem;
}

.heritage-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: #fff;
}

.heritage-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.heritage-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
}

.heritage-highlights li {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.heritage-highlights li::before {
    content: "▹";
    color: var(--accent-cyan);
    font-weight: bold;
}

/* ==========================================================================
   Media & Publications Showcase (Amazon Book + YouTube)
   ========================================================================== */
.media-showcase-section {
    padding: 5rem 0;
    position: relative;
}

.media-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}

.media-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.media-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.media-card-book {
    border-top: 4px solid #ff9900;
}

.media-card-youtube {
    border-top: 4px solid #ff0000;
}

.media-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding: 4px 10px;
    border-radius: 4px;
}

.badge-amazon {
    background: rgba(255, 153, 0, 0.15);
    color: #ff9900;
    border: 1px solid rgba(255, 153, 0, 0.3);
}

.badge-yt {
    background: rgba(255, 0, 0, 0.15);
    color: #ff4d4d;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.media-title {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
    line-height: 1.25;
}

.media-subtitle {
    font-size: 0.95rem;
    color: var(--accent-cyan);
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.media-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

/* Responsive Video Embed Wrapper */
.video-thumbnail-redirect-link,
.video-embed-wrapper,
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--card-border);
    background: #090d16;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.video-thumbnail-redirect-link:hover,
.video-embed-wrapper:hover,
.video-wrapper:hover {
    border-color: rgba(255, 0, 0, 0.4);
    box-shadow: 0 15px 35px rgba(255, 0, 0, 0.15), 0 0 25px rgba(0, 0, 0, 0.7);
}

.video-thumbnail-redirect-link iframe,
.video-embed-wrapper iframe,
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: inherit;
    display: block;
}

.video-thumbnail-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    cursor: pointer;
}

.video-thumbnail-redirect-link img,
.video-embed-wrapper img,
.video-wrapper img,
.video-thumbnail-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    transition: transform 0.4s ease;
}

.video-thumbnail-redirect-link:hover img,
.video-embed-wrapper:hover img,
.video-wrapper:hover img,
.video-thumbnail-link:hover .video-thumbnail-img {
    transform: scale(1.03);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.3s ease;
    z-index: 2;
}

.video-thumbnail-link:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.video-play-overlay .play-btn-circle {
    margin-bottom: 0;
}

/* 3D Book Presentation */
.book-showcase-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 153, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.book-cover-mockup {
    width: 90px;
    height: 125px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 4px 8px 8px 4px;
    border: 1px solid rgba(255, 153, 0, 0.5);
    box-shadow: 6px 6px 18px rgba(0, 0, 0, 0.6), inset 3px 0 6px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    flex-shrink: 0;
    text-align: center;
}

.book-cover-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: #ff9900;
    line-height: 1.2;
    text-transform: uppercase;
}

.book-cover-author {
    font-size: 0.5rem;
    color: #cbd5e1;
    font-family: var(--font-mono);
}

.book-meta-details {
    flex-grow: 1;
}

.book-meta-details h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.book-rating {
    color: #ff9900;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.book-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Amazon Button */
.btn-amazon {
    background: linear-gradient(135deg, #ff9900, #e68a00);
    color: #111;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.35);
}

.btn-amazon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.55);
    background: linear-gradient(135deg, #ffaa1a, #ff9900);
}

/* Responsive Overrides for New Sections */
@media (max-width: 992px) {
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .heritage-grid {
        grid-template-columns: 1fr;
    }
    .media-showcase-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .logo-accent {
        font-size: 1.05rem;
        letter-spacing: 0px;
    }
}

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

/* ==========================================================================
   Digital Product Catalog & Product Card Framework
   ========================================================================== */
#catalog,
.catalog-section {
    padding: 6rem 0;
    position: relative;
    width: 100%;
}

.catalog-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.75rem;
    margin-bottom: 2.75rem;
}

.catalog-search-wrapper {
    position: relative;
    width: 100%;
}

.catalog-search-wrapper .search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--accent-cyan);
    pointer-events: none;
}

#catalog-search-input {
    width: 100%;
    padding: 1.1rem 1.25rem 1.1rem 3.4rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: var(--transition);
}

#catalog-search-input::placeholder {
    color: var(--text-muted);
}

#catalog-search-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
    background: rgba(15, 23, 42, 0.95);
}

.catalog-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.catalog-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 0.55rem 1.25rem;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.catalog-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.catalog-filter-btn.active {
    background: var(--grad-purple);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 0 16px var(--accent-purple-glow);
}

.catalog-filter-btn .filter-count {
    opacity: 0.82;
    font-size: 0.82rem;
    margin-left: 0.25rem;
    font-weight: 500;
}

/* Grid Layout */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2.25rem;
    align-items: stretch;
}

/* ==========================================================================
   Product Card Visual Framework (Flex Column & Locked Alignment)
   ========================================================================== */
.product-card,
.catalog-card {
    background: rgba(13, 19, 33, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem 1.75rem 2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 580px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.product-card::before,
.catalog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-cyan);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.product-card:hover,
.catalog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(34, 211, 238, 0.2);
    background: rgba(17, 24, 40, 0.96);
}

.product-card:hover::before,
.catalog-card:hover::before {
    opacity: 1;
    height: 4px;
    background: var(--grad-purple);
}

/* Card Header & Badges */
.product-card-header,
.catalog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.15rem;
    flex-shrink: 0;
}

.product-category-badge,
.catalog-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(34, 211, 238, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.product-item-id,
.catalog-item-id {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-purple);
    font-weight: 700;
    background: rgba(192, 132, 252, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(192, 132, 252, 0.2);
}

.product-card-title,
.catalog-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.85rem;
    line-height: 1.35;
    flex-shrink: 0;
    min-height: 3.6rem;
    display: flex;
    align-items: flex-start;
}

.product-tags-row,
.catalog-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.4rem;
    flex-shrink: 0;
}

.product-tag-pill,
.catalog-tag-pill {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 3px 9px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 500;
}

/* ==========================================================================
   Dedicated Marketing Copy Scroll-Box (High-Contrast Readable White)
   ========================================================================== */
.product-description,
.catalog-description {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-bottom: 1.75rem;
    flex-grow: 1;
    max-height: 290px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-gutter: stable;
}

/* Custom Sleek Scrollbar */
.product-description::-webkit-scrollbar,
.catalog-description::-webkit-scrollbar {
    width: 5px;
}

.product-description::-webkit-scrollbar-track,
.catalog-description::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.product-description::-webkit-scrollbar-thumb,
.catalog-description::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.35);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.product-description::-webkit-scrollbar-thumb:hover,
.catalog-description::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Paragraph Typography with High-Contrast Pure White */
.product-para,
.catalog-para {
    color: #ffffff !important;
    font-size: 0.93rem;
    line-height: 1.65;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.product-para:first-child,
.catalog-para:first-child {
    color: #ffffff !important;
    font-weight: 500;
}

/* Technical Architecture Paragraph Highlight */
.product-para:nth-child(2),
.catalog-para:nth-child(2) {
    color: #f8fafc !important;
    border-left: 3px solid var(--accent-cyan);
    padding-left: 12px;
    background: rgba(34, 211, 238, 0.05);
    border-radius: 0 6px 6px 0;
    padding-top: 8px;
    padding-bottom: 8px;
}

.product-para:nth-child(3),
.catalog-para:nth-child(3) {
    color: #f1f5f9 !important;
}

/* ==========================================================================
   Locked-In Checkout Button Container (Never Compresses or Clips)
   ========================================================================== */
.product-card-footer,
.catalog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 1.25rem;
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    gap: 1rem;
    background: transparent;
}

.product-price-box,
.catalog-price-box {
    display: flex;
    align-items: baseline;
    gap: 3px;
    flex-shrink: 0;
}

.product-currency,
.catalog-currency {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-green);
}

.product-amount,
.catalog-amount {
    font-size: 1.95rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #ffffff;
    letter-spacing: -0.5px;
}

.product-currency-code,
.catalog-currency-code {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-checkout {
    background: linear-gradient(135deg, #22d3ee, #0284c7);
    color: #030d1a;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.35);
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-checkout:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 211, 238, 0.6);
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #000000;
}

.btn-checkout:active:not(:disabled) {
    transform: translateY(0);
}

.btn-checkout:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   Catalog Guarantees & Loading States
   ========================================================================== */
.catalog-guarantee-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.75rem;
    background: rgba(13, 19, 33, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 1.85rem 2rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.guarantee-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guarantee-icon {
    font-size: 1.85rem;
    flex-shrink: 0;
}

.guarantee-badge strong {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 3px;
    font-weight: 700;
}

.guarantee-badge p {
    color: #cbd5e1;
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.45;
}

.catalog-loading-state,
.catalog-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4.5rem 2rem;
    background: rgba(13, 19, 33, 0.85);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
}

.catalog-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.25rem;
}

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

@media (max-width: 992px) {
    .catalog-guarantee-bar {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================================================================
   SEO Technical Articles & Architecture Blueprints Styles
   ============================================================================== */

/* Reading Progress Bar */
#reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Page Container & Layout */
.article-page-main {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 6rem;
    position: relative;
    z-index: 1;
}

.article-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Breadcrumbs */
.article-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.article-breadcrumbs a:hover {
    color: var(--accent-cyan);
}

.crumb-separator {
    color: var(--text-muted);
    font-size: 1rem;
}

.crumb-current {
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

/* Article Header */
.article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
}

.article-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 1.25rem;
}

.article-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.75rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.author-meta-box {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--grad-text);
    color: #0b0f19;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.author-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-icon {
    stroke: var(--accent-cyan);
}

.share-blueprint-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition);
}

.share-blueprint-btn:hover {
    background: rgba(34, 211, 238, 0.16);
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
}

.share-blueprint-btn.copied {
    background: rgba(52, 211, 153, 0.12);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* Table of Contents */
.article-toc-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.75rem 2rem;
    margin: 2.5rem 0 3.5rem 0;
    backdrop-filter: blur(10px);
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.toc-icon {
    stroke: var(--accent-cyan);
}

.article-toc-box .toc > ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.article-toc-box .toc ul ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.4rem;
}

.article-toc-box .toc li {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.article-toc-box .toc a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.article-toc-box .toc a:hover {
    color: var(--accent-cyan);
    transform: translateX(3px);
}

/* Article Prose Typography */
.article-prose {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #cbd5e1;
    margin-bottom: 4rem;
}

.article-prose p {
    margin-bottom: 1.75rem;
}

.article-prose h1,
.article-prose h2,
.article-prose h3,
.article-prose h4 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.article-prose h2 {
    font-size: 1.85rem;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.article-prose h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--grad-text);
}

.article-prose h3 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

.article-prose h4 {
    font-size: 1.15rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-prose hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    margin: 3.5rem 0;
}

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

.article-prose em {
    color: #e2e8f0;
}

.article-prose a {
    color: var(--accent-cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.article-prose a:hover {
    color: var(--accent-purple);
}

.article-prose ul,
.article-prose ol {
    margin: 1.5rem 0 2rem 1.75rem;
}

.article-prose li {
    margin-bottom: 0.75rem;
    padding-left: 0.25rem;
}

.article-prose li::marker {
    color: var(--accent-cyan);
}

/* Blockquotes */
.article-prose blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.75rem;
    background: rgba(34, 211, 238, 0.04);
    border-left: 4px solid var(--accent-cyan);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: #e2e8f0;
}

/* Code Blocks & Inline Code */
.article-prose code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    padding: 0.2em 0.45em;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--accent-cyan);
}

.article-prose pre {
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    position: relative;
}

.article-prose pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: #e2e8f0;
    font-size: 0.88rem;
    line-height: 1.6;
    display: block;
    white-space: pre;
}

/* Scrollbar for code blocks */
.article-prose pre::-webkit-scrollbar {
    height: 8px;
}

.article-prose pre::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.article-prose pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.article-prose pre::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 211, 238, 0.4);
}

/* Enhanced Code Block with Toolbar & Language Badge */
.code-block-wrapper {
    position: relative;
    margin: 2.25rem 0;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #080c14;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.code-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #0d1422;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.code-lang-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.copy-code-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 0.25rem 0.6rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.copy-code-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.copy-code-btn.copied {
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.code-block-wrapper pre {
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 1.25rem 1.5rem !important;
}

/* LaTeX / Math display */
.math-display {
    margin: 2.25rem 0;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    text-align: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.math-display .katex-display {
    margin: 0;
}

/* Responsive Table Styling */
.table-responsive {
    overflow-x: auto;
    margin: 2.5rem 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    background: rgba(15, 23, 42, 0.6);
}

.article-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: left;
}

.article-prose th {
    background: rgba(34, 211, 238, 0.08);
    color: var(--text-primary);
    font-weight: 700;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid rgba(34, 211, 238, 0.3);
    white-space: nowrap;
}

.article-prose td {
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    vertical-align: top;
}

.article-prose tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Author Bio Card */
.author-bio-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    display: flex;
    gap: 1.75rem;
    margin-bottom: 3.5rem;
    align-items: flex-start;
}

.author-bio-avatar {
    width: 68px;
    height: 68px;
    min-width: 68px;
    border-radius: 50%;
    background: var(--grad-text);
    color: #0b0f19;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.25);
}

.author-bio-details h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.author-bio-details p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.author-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.author-link-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition);
}

.author-link-btn:hover {
    color: var(--accent-purple);
    transform: translateX(3px);
}

.author-link-btn.outline {
    color: #ffaa1a;
}

/* Article In-Line Call to Action Card */
.article-cta-box {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.07) 0%, rgba(168, 85, 247, 0.07) 100%);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.article-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad-text);
}

.cta-kicker {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    display: block;
    margin-bottom: 0.75rem;
}

.article-cta-box h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.article-cta-box p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Related Articles Section */
.related-articles-section {
    margin-bottom: 3.5rem;
}

.related-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

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

.related-article-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.related-article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.related-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.08);
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    margin-bottom: 0.85rem;
}

.related-article-card h4 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
    line-height: 1.4;
}

.related-article-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.read-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.article-back-nav {
    text-align: center;
    padding-top: 1.5rem;
}

.back-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--accent-cyan);
}

/* ==============================================================================
   Articles Catalog Hub (/articles)
   ============================================================================== */
.hub-main {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 6rem;
    position: relative;
    z-index: 1;
}

.hub-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hub-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hub-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin: 1rem 0;
    line-height: 1.2;
}

.hub-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.7;
}

.articles-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
}

.article-hub-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.article-hub-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 12px 35px rgba(34, 211, 238, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.hub-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.hub-keyword-badge {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.hub-read-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hub-card-title {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 1rem;
}

.hub-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.hub-card-title a:hover {
    color: var(--accent-cyan);
}

.hub-card-desc {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.hub-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.hub-read-btn {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition);
}

.hub-read-btn:hover {
    color: var(--accent-purple);
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.85rem;
    }
    .article-meta-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .author-bio-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .author-links {
        justify-content: center;
    }
    .articles-hub-grid {
        grid-template-columns: 1fr;
    }
}


