/* =========================================
   TESTOSIL AUTHORITY LAB - CLINICAL FUTURIST
   Design System & Core Styles
   ========================================= */

/* --- 1. Typography Imports --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,600&family=Space+Mono:wght@400;700&display=swap');

:root {
    /* --- 2. Color Palette: Midnight Lab --- */

    /* Primary: Scientific Authority */
    --color-primary: #020617;
    /* Deepest Void Blue */
    --color-primary-light: #1e293b;
    /* Lab Slate */

    /* Accent: Bioluminescence */
    --color-accent: #0ea5e9;
    /* Clinical Cyan */
    --color-accent-glow: #38bdf8;
    /* Active Glow */
    --color-accent-subtle: #e0f2fe;
    /* Background tint */

    /* Functional Colors */
    --color-success: #10b981;
    /* Validated Green */
    --color-warning: #f59e0b;
    /* Cautious Amber */
    --color-danger: #ef4444;
    /* Critical Red */

    /* Surfaces */
    --color-surface-base: #ffffff;
    --color-surface-subtle: #f8fafc;
    /* Sterile White */
    --color-surface-glass: rgba(255, 255, 255, 0.85);

    /* Typography Colors */
    --color-text-main: #0f172a;
    /* High contrast ink */
    --color-text-muted: #64748b;
    /* Secondary Lab text */
    --color-text-light: #94a3b8;
    /* Tertiary/Meta */

    /* --- 3. Typography System --- */
    --font-heading: 'Fraunces', serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;

    /* --- 4. Spacing & Layout --- */
    --container-width: 1400px;
    /* Wider, modern container */
    --container-padding: clamp(1.5rem, 5vw, 4rem);

    /* --- 5. Effects --- */
    --radius-sm: 4px;
    /* Precise */
    --radius-md: 12px;
    /* Smooth */
    --radius-lg: 24px;
    /* Organic */

    --shadow-glass:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);

    --shadow-floating:
        0 20px 25px -5px rgba(0, 0, 0, 0.05),
        0 8px 10px -6px rgba(0, 0, 0, 0.01);

    /* Animation Timing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   Base Reset & Global Styles
   ========================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-surface-subtle);
    background-image:
        radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 0% 100%, rgba(14, 165, 233, 0.03) 0%, transparent 25%);
    min-height: 100vh;
}

/* --- Typography Defaults --- */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    line-height: 1.1;
    font-weight: 500;
    font-variation-settings: "SOFT" 0, "WONK" 0;
}

h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 300;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease-out-expo);
}

/* --- Global Utilities --- */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.badge {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 0.35em 0.8em;
    border-radius: 99px;
    border: 1px solid currentColor;
    color: var(--color-text-muted);
}

/* =========================================
   Animations
   ========================================= */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s var(--ease-out-expo) forwards;
}

.fade-in-1 {
    animation-delay: 0.1s;
}

.fade-in-2 {
    animation-delay: 0.2s;
}

.fade-in-3 {
    animation-delay: 0.3s;
}

.fade-in-4 {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   COMPONENT: Header (HUD Style)
   ========================================= */

.hud-header {
    position: sticky;
    top: 20px;
    z-index: 100;
    background: rgba(2, 6, 23, 0.65);
    /* Deep transparent dark */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    /* Floating pill shape */
    margin: 20px auto 0;
    max-width: calc(var(--container-width) - 40px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-mark {
    color: var(--color-accent);
    font-size: 0.8em;
    animation: pulse 3s infinite;
}

.logo-sub {
    opacity: 0.5;
    font-size: 0.9em;
    font-weight: 400;
}

.site-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: white;
}

.nav-meta {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-accent);
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.nav-link:hover .nav-meta {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   COMPONENT: Hero (Split & Cinema)
   ========================================= */

.hero-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    min-height: 85vh;
    /* Cinema height */
    padding-top: 60px;
    padding-bottom: 60px;
    position: relative;
    gap: 4rem;
}

.hero-meta {
    font-family: var(--font-mono);
    color: var(--color-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
}

.hero-content h1 {
    margin-bottom: 32px;
    line-height: 1;
}

.d-block {
    display: block;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

.hero-lead {
    font-size: 1.35rem;
    color: var(--color-text-muted);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 24px;
    margin-bottom: 48px;
}

/* Visual HUD */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.product-hud {
    position: relative;
}

.hero-product-float {
    position: relative;
    z-index: 2;
    max-width: 80%;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    animation: float 6s ease-in-out infinite;
}

.hud-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 50%;
    z-index: 1;
}

.hud-ring::after {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px dashed rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

/* =========================================
   COMPONENT: Breadcrumbs (HUD Navigation)
   ========================================= */

.breadcrumbs {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 99px;
    margin: 40px 0 32px;
    color: var(--color-text-muted);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.3s var(--ease-out-expo);
}

.breadcrumbs:hover {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.8);
    box-shadow:
        0 10px 20px -3px rgba(14, 165, 233, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.breadcrumbs a {
    color: var(--color-text-main);
    opacity: 0.6;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.breadcrumbs a:hover {
    color: var(--color-accent);
    opacity: 1;
}

/* =========================================
   COMPONENT: Modules (Grid)
   ========================================= */

.grid-modules {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.module-card {
    grid-column: span 4;
    background: white;
    border: 1px solid var(--color-surface-subtle);
    padding: 32px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: all 0.4s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-floating);
    border-color: var(--color-accent-subtle);
}

.module-featured {
    grid-column: span 8;
    background: var(--color-primary);
    color: white;
}

.module-wide {
    grid-column: span 12;
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 180px;
    gap: 32px;
}

.module-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: auto;
}

.module-id {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    opacity: 0.5;
}

.module-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.module-card h3 {
    font-size: 1.75rem;
    margin-top: 24px;
    margin-bottom: 12px;
}

.module-featured h3,
.module-featured p {
    color: white;
}

.module-featured p {
    opacity: 0.7;
}

.module-meta {
    margin-top: 24px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-accent);
    text-transform: uppercase;
}

/* =========================================
   COMPONENT: Process Line (Methodology)
   ========================================= */

.section-header-center {
    text-align: center;
    margin-bottom: 60px;
}

.process-line {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 80px;
    position: relative;
}

.process-step {
    position: relative;
    padding-top: 40px;
}

.step-marker {
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    background: var(--color-surface-subtle);
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-surface-subtle);
    z-index: 1;
}

.process-step:last-child::before {
    width: 0;
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.cta-panel-wide {
    background: var(--color-primary);
    border-radius: var(--radius-md);
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.cta-panel-wide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, 0.05) 50%),
        linear-gradient(0deg, transparent 95%, rgba(255, 255, 255, 0.05) 50%);
    background-size: 40px 40px;
    opacity: 0.3;
}

.panel-content {
    z-index: 2;
    position: relative;
}

.panel-actions {
    z-index: 2;
    position: relative;
}

.panel-content h3 {
    color: white;
    margin-bottom: 8px;
}

.panel-content p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}


/* =========================================
   COMPONENT: Footer (Reference)
   ========================================= */

.footer-ref {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 80px 0 40px;
    border-top: 1px solid var(--color-surface-subtle);
    margin-top: 100px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.9rem;
    margin-bottom: 24px;
    max-width: 300px;
}

.sys-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-success);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    font-size: 0.9rem;
    color: var(--color-text-main);
    font-weight: 500;
}

.footer-nav a:hover {
    color: var(--color-accent);
}


/* =========================================
   COMPONENT: Buttons (Glow)
   ========================================= */

/* =========================================
   COMPONENT: Buttons (Global Macro-CTA)
   ========================================= */

.cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.2rem;
    /* Big, touch-friendly area */
    border-radius: 99px;
    /* Modern Pill Shape */
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    /* Readable Size */
    letter-spacing: 0.08em;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    position: relative;
    z-index: 10;
}

/* Primary Glow Variant (The "Buy" Button) */
.cta-glow,
.btn--primary {
    background: var(--color-accent);
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    color: white !important;
    border: none;
    box-shadow:
        0 4px 6px -1px rgba(14, 165, 233, 0.3),
        0 10px 15px -3px rgba(14, 165, 233, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-glow:hover,
.btn--primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 20px 25px -5px rgba(14, 165, 233, 0.4),
        0 10px 10px -5px rgba(14, 165, 233, 0.2),
        0 0 40px rgba(14, 165, 233, 0.5);
    /* Super Glow */
    filter: brightness(1.1);
}

.cta-glow:active,
.btn--primary:active {
    transform: translateY(-1px);
}

.cta-arrow {
    display: inline-block;
    margin-left: 10px;
    font-size: 1.1em;
    transition: transform 0.3s ease;
    font-weight: 400;
}

.cta:hover .cta-arrow,
.btn:hover .cta-arrow {
    transform: translateX(6px);
}

/* Secondary / Outline Variant */
.btn--outline {
    background: transparent;
    border: 2px solid var(--color-text-muted);
    color: var(--color-text-main);
}

.btn--outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(14, 165, 233, 0.05);
}

/* Light / White Variant (for dark backgrounds) */
.btn--light {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn--light:hover {
    background: var(--color-surface-subtle);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--color-accent);
}

.link-scifi {
    color: var(--color-text-main);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 16px;
    position: relative;
}

.link-scifi::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 16px;
    right: 16px;
    height: 1px;
    background: var(--color-text-main);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.link-scifi:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* =========================================
   COMPONENT: Content Typography (Articles)
   ========================================= */

.content {
    font-size: 1.15rem;
    /* Larger base */
}

/* "Air" Strategy: Deep separation */
.content>* {
    margin-bottom: 2rem;
}

.content p {
    color: var(--color-text-main);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 68ch;
    text-wrap: pretty;
}

/* Visual Paragraphs: Lead Paragraph */
.content>p:first-of-type {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-primary-light);
    border-left: 4px solid var(--color-accent);
    padding-left: 24px;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.05) 0%, transparent 100%);
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

/* Strong Emphasis */
.content strong {
    color: var(--color-primary);
    font-weight: 700;
}

.content ul,
.content ol {
    margin-bottom: 2.5rem;
    padding-left: 0;
    list-style: none;
}

.content li {
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    line-height: 1.7;
    position: relative;
    color: var(--color-text-main);
}

.content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 800;
}

/* High visibility links */
.content a:not(.cta) {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--color-accent);
    transition: all 0.2s ease;
}

.content a:not(.cta):hover {
    background: var(--color-accent);
    color: white;
    padding: 2px 6px;
    margin: 0 -6px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    border-bottom-color: transparent;
}

.content h2 {
    margin-top: 5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-surface-subtle);
    font-size: 2.5rem;
    color: var(--color-primary);
}

.content h3 {
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--color-primary-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.content h3::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-accent);
}

/* =========================================
   COMPONENT: Data Tables (Clinical Style)
   ========================================= */

.table-wrap {
    overflow-x: auto;
    margin: 2.5rem 0;
    border-radius: var(--radius-md);
    border: 1px solid rgba(2, 6, 23, 0.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05),
        0 4px 6px -2px rgba(0, 0, 0, 0.02);
    background: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: white;
}

thead th {
    background: var(--color-primary);
    color: white;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    padding: 20px 24px;
    text-align: left;
    border-bottom: 3px solid var(--color-accent);
}

tbody td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-surface-subtle);
    color: var(--color-text-main);
    vertical-align: top;
    transition: background-color 0.2s ease;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Zebra Striping */
tbody tr:nth-child(even) {
    background-color: var(--color-surface-subtle);
}

tbody tr:hover td {
    background-color: rgba(14, 165, 233, 0.05);
}

/* Specific styling for comparative tables */
td:first-child {
    font-weight: 700;
    color: var(--color-primary);
    width: 25%;
    background-color: rgba(255, 255, 255, 0.5);
    /* Maintain readability on hover */
}

/* Mobile Tweaks */
@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        padding-top: 20px;
        text-align: center;
        gap: 3rem;
    }

    .hero-lead {
        border-left: none;
        padding-left: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        order: -1;
    }

    .module-card,
    .module-featured,
    .module-wide {
        grid-column: span 12;
    }

    .site-nav {
        display: none;
        /* Add JS toggle later */
    }

    .nav-toggle {
        display: flex;
        /* Show menu toggle */
    }

    .hud-header {
        max-width: calc(100% - 32px);
    }

    .process-line {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-left: 20px;
        border-left: 2px solid var(--color-surface-subtle);
    }

    .process-step::before {
        display: none;
    }

    .step-marker {
        left: -37px;
        /* Align to border */
    }

    .footer-ref {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-panel-wide {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
}

/* =========================================
   COMPONENT: Related Links & References
   ========================================= */

/* 1. Footer Navigation Links */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: var(--color-primary-light);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    padding-left: 0;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-nav a::before {
    content: '›';
    margin-right: 8px;
    color: var(--color-accent);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: var(--color-accent);
    padding-left: 8px;
}

.footer-nav a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* 2. Sources / References Section */
.sources {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--color-surface-subtle);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--color-primary-light);
    font-size: 0.85rem;
    color: var(--color-primary-light);
}

.sources strong {
    display: block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-family: var(--font-mono);
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

.sources p {
    margin-bottom: 0.75rem;
    line-height: 1.5;
    opacity: 0.9;
}

.sources em {
    color: var(--color-primary);
    font-style: italic;
}

/* 3. Utility: Related Links (Flex/Button Style) */
.related-links {
    /* User uses inline flex, but we define defaults just in case */
    display: flex;
    gap: 1.5rem;
    margin: 3rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.related-links a {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: white;
    border: 1px solid var(--color-surface-subtle);
    border-radius: 50px;
    /* Pill shape */
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.related-links a:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.15);
    /* Cyan glow */
    color: var(--color-accent);
}

.related-links a:active {
    transform: translateY(0);
}

/* Optional: if you kept .related-card (for grid layouts), keep it here or remove if unused. 
   Keeping for backward compatibility if needed, but the user seems to prefer the links above. */

/* =========================================
   COMPONENT: Feature Cards (Clickable H3 Enhancement)
   ========================================= */

/* New Grid Layout for Protocols */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    /* Spacious gap */
    margin-bottom: 80px;
}

.full-width-col {
    grid-column: 1 / -1;
}

.feature-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--color-surface-subtle);
    border-radius: var(--radius-md);
    /* Softer radius */
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    height: 100%;
    padding: 2.5rem;
    /* More breathing room inside */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

/* Hover State: The entire card lifts */
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-floating);
    border-color: var(--color-accent-subtle);
}

.feature-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Badge styling adjust */
.feature-card .badge {
    align-self: flex-start;
    margin-bottom: 1.5rem;
    background: var(--color-surface-subtle);
    border: none;
    font-weight: 600;
}

/* H3 Specific Design: Make it obviously clickable */
.feature-card h3 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Effect: H3 becomes active color on card hover */
.feature-card:hover h3 {
    color: var(--color-accent);
}

/* Add a subtle arrow helper after the H3 title on hover */
.feature-card h3::after {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--color-accent);
    font-weight: 300;
}

.feature-card:hover h3::after {
    opacity: 1;
    transform: translateX(0);
}

/* Ensure the link arrow at the bottom also glows */
.feature-card .link-arrow {
    display: inline-block;
    margin-top: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.3s ease;
    padding-top: 2rem;
    /* Space before CTA */
}

.feature-card:hover .link-arrow {
    transform: translateX(5px);
    text-decoration: underline;
}

/* Body text styling inside card - More Space */
.feature-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 0;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}