/* =====================================================
   CRA FOR BROADCAST - Design System
   Adapted from Beam SI Pages | Navy/Steel Blue Theme
   ===================================================== */

/* -----------------------------------------------------
   CSS VARIABLES
   ----------------------------------------------------- */
:root {
    /* Primary accent - steel blue (authority, trust) */
    --accent: #1e3a5f;
    --accent-light: #2a5a8f;
    --accent-dark: #152d4a;
    --accent-bg: #edf2f7;

    /* Secondary - teal (action, compliance) */
    --accent-teal: #0d9488;
    --accent-teal-light: #14b8a6;
    --accent-teal-bg: #f0fdfa;

    /* Alert - amber (deadlines, urgency) */
    --accent-amber: #d97706;
    --accent-amber-light: #f59e0b;
    --accent-amber-bg: #fffbeb;

    /* Success - emerald (completed, compliant) */
    --accent-emerald: #059669;
    --accent-emerald-light: #10b981;
    --accent-emerald-bg: #ecfdf5;

    /* Neutral */
    --accent-slate: #475569;
    --accent-slate-light: #64748b;
    --accent-slate-bg: #f8fafc;

    /* Background colors */
    --bg-page: #ffffff;
    --bg-section: #f8f9fc;
    --bg-section-alt: #f1f4f9;
    --bg-card: #ffffff;
    --bg-card-hover: #fafbfd;
    --bg-dark: #0f1d2e;
    --bg-dark-elevated: #1a2d45;

    /* Borders */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: #cbd5e1;

    /* Text */
    --text-primary: #1a1f36;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-inverse: #ffffff;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 10px 40px -10px rgba(0, 0, 0, 0.12);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;
    --space-5xl: 120px;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Container widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;
    --container-2xl: 1400px;
}

/* -----------------------------------------------------
   RESET
   ----------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Skip to content */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: var(--accent);
    color: var(--text-inverse);
    border-radius: var(--radius-md);
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

/* -----------------------------------------------------
   TYPOGRAPHY
   ----------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

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

.small { font-size: 0.875rem; }
.xs { font-size: 0.75rem; }

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

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-teal) 50%, var(--accent-light) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* -----------------------------------------------------
   UTILITY CLASSES
   ----------------------------------------------------- */
.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;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }
.gap-4 { gap: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mt-5 { margin-top: var(--space-2xl); }
.mt-6 { margin-top: var(--space-3xl); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-2xl); }
.mb-6 { margin-bottom: var(--space-3xl); }

/* -----------------------------------------------------
   CONTAINERS
   ----------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }
.container-2xl { max-width: var(--container-2xl); }

/* -----------------------------------------------------
   NAVIGATION
   ----------------------------------------------------- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 72px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-2xl);
    z-index: 1000;
    transition: all var(--transition-normal);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--border);
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.08);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
}

.nav-logo {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.nav-logo .logo-accent {
    color: var(--accent-teal);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-fast);
}

.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--accent); }
.nav-link.active::after { width: 100%; }

.nav-cta {
    margin-left: var(--space-md);
}

/* Hamburger menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.nav-mobile {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-xl);
    z-index: 999;
    flex-direction: column;
    gap: var(--space-md);
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile .nav-link {
    font-size: 1.125rem;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-light);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--border-light);
    z-index: 999;
    overflow: hidden;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-teal), var(--accent-light));
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
    transition: width 0.1s ease-out;
}

/* -----------------------------------------------------
   HERO SECTION
   ----------------------------------------------------- */
.hero {
    min-height: 100vh;
    padding: 120px var(--space-2xl) var(--space-4xl);
    background: linear-gradient(165deg, #edf2f7 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-inner {
    max-width: var(--container-2xl);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 880px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--accent-bg);
    border: 1px solid rgba(30, 58, 95, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-xl);
    letter-spacing: 0.02em;
}

.hero h1 {
    margin-bottom: var(--space-lg);
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    line-height: 1.1;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.hero-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.hero-stat-badge.amber {
    background: var(--accent-amber-bg);
    color: var(--accent-amber);
    border: 1px solid rgba(217, 119, 6, 0.15);
}

.hero-stat-badge.primary {
    background: var(--accent-bg);
    color: var(--accent);
    border: 1px solid rgba(30, 58, 95, 0.15);
}

.hero-stat-badge.teal {
    background: var(--accent-teal-bg);
    color: var(--accent-teal);
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

/* Hero visual side - countdown and decorative */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Countdown Timer */
.countdown-container {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-2xl);
    box-shadow: none;
    text-align: center;
    position: relative;
    z-index: 2;
}

.countdown-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-amber);
    margin-bottom: var(--space-md);
}

.countdown-timer {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    margin-bottom: var(--space-md);
}

.countdown-unit {
    text-align: center;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    display: block;
}

.countdown-unit-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-xs);
}

.countdown-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

/* Reporting note beneath main countdown */
.countdown-reporting-note {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
    font-size: 0.875rem;
    color: var(--accent-amber);
    font-weight: 500;
}

.countdown-reporting-days {
    font-size: 1.125rem;
    font-weight: 700;
}

.countdown-reporting-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}

/* Hero network graph canvas */
.hero-network-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero:hover .hero-network-canvas {
    pointer-events: auto;
}

/* Page hero (smaller, for inner pages) */
.page-hero {
    padding: 140px var(--space-2xl) var(--space-3xl);
    background: linear-gradient(165deg, #edf2f7 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    text-align: center;
    overflow: hidden;
}

.page-hero h1 {
    margin-bottom: var(--space-md);
}

.page-hero .lead {
    max-width: 600px;
    margin: 0 auto;
}

/* -----------------------------------------------------
   DECORATIVE ELEMENTS
   ----------------------------------------------------- */
.gradient-mesh {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.gradient-mesh::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(30, 58, 95, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(13, 148, 136, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(42, 90, 143, 0.04) 0%, transparent 45%);
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
    bottom: -50px;
    left: 10%;
    animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(42, 90, 143, 0.05) 0%, transparent 70%);
    top: 40%;
    right: 20%;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -10px) rotate(2deg); }
    50% { transform: translate(-5px, 15px) rotate(-1deg); }
    75% { transform: translate(-15px, -5px) rotate(1deg); }
}

/* Noise overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* -----------------------------------------------------
   SECTIONS
   ----------------------------------------------------- */
.section {
    padding: var(--space-5xl) var(--space-2xl);
    position: relative;
}

.section-white { background: var(--bg-page); }
.section-gray { background: var(--bg-section); }
.section-alt { background: var(--bg-section-alt); }

.section-header {
    margin-bottom: var(--space-3xl);
    max-width: 700px;
}

.section-header.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--accent-bg);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.section-eyebrow.teal { background: var(--accent-teal-bg); color: var(--accent-teal); }
.section-eyebrow.amber { background: var(--accent-amber-bg); color: var(--accent-amber); }
.section-eyebrow.emerald { background: var(--accent-emerald-bg); color: var(--accent-emerald); }

.section-title { margin-bottom: var(--space-md); }

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.section-inner {
    max-width: var(--container-xl);
    margin: 0 auto;
}

/* -----------------------------------------------------
   BUTTONS
   ----------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-inverse);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: var(--text-inverse);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 4px 20px -4px rgba(30, 58, 95, 0.4);
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

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

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent-bg);
}

.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* -----------------------------------------------------
   CARDS
   ----------------------------------------------------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-dark);
}

.card-elevated { box-shadow: var(--shadow-card); }

/* Feature cards */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

.feature-card-icon.accent { background: var(--accent-bg); color: var(--accent); }
.feature-card-icon.teal { background: var(--accent-teal-bg); color: var(--accent-teal); }
.feature-card-icon.amber { background: var(--accent-amber-bg); color: var(--accent-amber); }
.feature-card-icon.emerald { background: var(--accent-emerald-bg); color: var(--accent-emerald); }

.feature-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.feature-card-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Value cards - colored top bar */
.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, var(--accent));
}

.value-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.value-card.accent { --card-accent: var(--accent); }
.value-card.teal { --card-accent: var(--accent-teal); }
.value-card.amber { --card-accent: var(--accent-amber); }
.value-card.emerald { --card-accent: var(--accent-emerald); }

.value-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.value-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
}

/* Resource cards (for resources page) */
.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.resource-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--accent);
}

.resource-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    background: var(--accent-bg);
    color: var(--accent);
    line-height: 0;
}

.resource-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.resource-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: var(--space-md);
}

.resource-card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition-normal);
}

.resource-card-link svg {
    flex-shrink: 0;
}

.resource-card-link:hover {
    gap: 10px;
}

/* Resource list layout (horizontal rows instead of card grid) */
.resource-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

.resource-list .resource-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    column-gap: var(--space-lg);
    row-gap: 2px;
    align-items: center;
    padding: var(--space-lg);
    height: auto;
}

.resource-list .resource-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

.resource-list .resource-card-icon {
    grid-row: 1 / 3;
    margin-bottom: 0;
}

.resource-list .resource-card-title {
    grid-column: 2;
    align-self: end;
    margin-bottom: 0;
}

.resource-list .resource-card-desc {
    grid-column: 2;
    align-self: start;
    margin-bottom: 0;
    flex-grow: 0;
}

.resource-list .resource-card-link {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    white-space: nowrap;
}

/* -----------------------------------------------------
   BADGES
   ----------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-primary { background: var(--accent-bg); color: var(--accent); }
.badge-success { background: var(--accent-emerald-bg); color: var(--accent-emerald); }
.badge-warning { background: var(--accent-amber-bg); color: var(--accent-amber); }
.badge-info { background: var(--accent-teal-bg); color: var(--accent-teal); }
.badge-neutral { background: var(--accent-slate-bg); color: var(--accent-slate); }

/* -----------------------------------------------------
   HORIZONTAL TIMELINE
   ----------------------------------------------------- */
.timeline-h {
    position: relative;
    padding-top: var(--space-xl);
}

/* The horizontal track (line + progress + today marker) */
.timeline-h-track {
    position: relative;
    height: 4px;
    margin: 0 calc(100% / 8);
    /* leaves room so first/last markers aren't flush with edge */
}

.timeline-h-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
}

.timeline-h-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-emerald), var(--accent-teal));
    border-radius: 2px;
    width: 0%;
    transition: width 0.8s ease-out;
}

/* "Today" indicator on the track */
.timeline-h-today {
    position: absolute;
    top: -6px;
    width: 16px;
    height: 16px;
    background: var(--accent-teal);
    border: 3px solid var(--bg-section);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 3;
    left: 0%;
    transition: left 0.8s ease-out;
}

.timeline-h-today-label {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-teal);
    white-space: nowrap;
    background: var(--accent-teal-bg);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* Grid of milestone items — 4 equal columns */
.timeline-h-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: 0;
    position: relative;
}

/* Individual milestone */
.timeline-h-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: var(--space-lg);
}

/* Dot marker on the track line */
.timeline-h-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-section);
    border: 3px solid var(--accent);
    position: absolute;
    top: -10px;
    z-index: 2;
}

.timeline-h-item.completed .timeline-h-marker {
    background: var(--accent-emerald);
    border-color: var(--accent-emerald);
}

.timeline-h-item.upcoming .timeline-h-marker {
    border-color: var(--accent-amber);
    background: var(--bg-section);
}

.timeline-h-item.critical .timeline-h-marker {
    border-color: #dc2626;
    background: var(--bg-section);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
}

/* Date label */
.timeline-h-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-amber);
    margin-top: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.timeline-h-item.completed .timeline-h-date {
    color: var(--accent-emerald);
}

.timeline-h-item.critical .timeline-h-date {
    color: #dc2626;
}

/* Card below the marker */
.timeline-h-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    width: 100%;
    transition: all var(--transition-normal);
}

.timeline-h-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.timeline-h-item.critical .timeline-h-card {
    border-color: rgba(220, 38, 38, 0.3);
    background: linear-gradient(135deg, var(--bg-card), rgba(220, 38, 38, 0.02));
}

.timeline-h-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.timeline-h-card-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Article reference badge */
.timeline-h-article-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: var(--space-sm);
    padding: 3px 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--accent-light);
    background: var(--accent-bg);
    border: 1px solid rgba(30, 58, 95, 0.12);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-fast);
    letter-spacing: 0.01em;
}

.timeline-h-article-badge:hover {
    background: var(--accent);
    color: var(--text-inverse);
    border-color: var(--accent);
}

.timeline-h-article-badge svg {
    flex-shrink: 0;
}

/* Connector line from marker to card */
.timeline-h-item::before {
    content: '';
    width: 2px;
    height: var(--space-md);
    background: var(--border);
    position: absolute;
    top: 6px;
    z-index: 1;
}

.timeline-h-item.completed::before {
    background: var(--accent-emerald);
}

.timeline-h-item.critical::before {
    background: rgba(220, 38, 38, 0.3);
}

/* Timeline note */
.timeline-note {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--accent-amber-bg);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* -----------------------------------------------------
   COMPARISON TABLE
   ----------------------------------------------------- */
.table-wrapper {
    max-width: var(--container-xl);
    margin: 0 auto;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-table thead { background: var(--bg-section); }

.comparison-table th {
    padding: var(--space-lg);
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

.comparison-table th:not(:first-child) { text-align: center; }

.comparison-table td {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.comparison-table td:not(:first-child) { text-align: center; }
.comparison-table td:first-child { font-weight: 500; color: var(--text-primary); }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover { background: var(--bg-section); }

/* Callout / Alert card */
.callout {
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid;
}

.callout.amber {
    background: var(--accent-amber-bg);
    border-color: rgba(217, 119, 6, 0.2);
}

.callout.teal {
    background: var(--accent-teal-bg);
    border-color: rgba(13, 148, 136, 0.2);
}

.callout-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

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

/* Stat blocks */
.stat-block {
    text-align: center;
    padding: var(--space-lg);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--bg-section);
    border-radius: var(--radius-lg);
}

/* -----------------------------------------------------
   GRIDS
   ----------------------------------------------------- */
.grid {
    display: grid;
    gap: var(--space-lg);
}

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

.grid-auto-sm { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-auto-md { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-auto-lg { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }

.layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-3xl);
    align-items: start;
}

.layout-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

/* -----------------------------------------------------
   YOUTUBE VIDEO GRID
   ----------------------------------------------------- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: block;
}

.video-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--border-dark);
}

.video-card-thumb-wrapper {
    position: relative;
    overflow: hidden;
}

.video-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background: var(--bg-section);
    transition: transform 0.3s ease;
}

.video-card:hover .video-card-thumb {
    transform: scale(1.05);
}

.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.15);
    transition: background 0.3s ease;
    pointer-events: none;
}

.video-card:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.video-play-overlay svg {
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.video-card:hover .video-play-overlay svg {
    opacity: 1;
    transform: scale(1.1);
}

.video-card-content {
    padding: var(--space-md);
}

.video-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.video-fallback {
    text-align: center;
    padding: var(--space-3xl);
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

/* -----------------------------------------------------
   CTA SECTION
   ----------------------------------------------------- */
.cta-section {
    padding: var(--space-5xl) var(--space-2xl);
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-elevated) 50%, var(--bg-dark) 100%);
    color: var(--text-inverse);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 58, 95, 0.2) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation: float 15s ease-in-out infinite;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.12) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation: float 18s ease-in-out infinite reverse;
}

.cta-section > * {
    position: relative;
    z-index: 1;
}

.cta-section h2 { color: var(--text-inverse); margin-bottom: var(--space-md); }

.cta-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--text-inverse);
    color: var(--bg-dark);
    font-weight: 600;
}

.cta-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.3);
}

.cta-section .btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-inverse);
}

.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-inverse);
}

/* -----------------------------------------------------
   COMMUNITY / NEWSLETTER
   ----------------------------------------------------- */
.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 480px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: inherit;
    background: var(--bg-card);
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--text-light);
}

/* Newsletter form on dark CTA background */
.newsletter-form-dark input[type="email"] {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-inverse);
}

.newsletter-form-dark input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form-dark input[type="email"]:focus {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* HubSpot form on dark CTA background */
.hubspot-form-wrapper {
    text-align: left;
}

.hubspot-form-wrapper label {
    color: rgba(255, 255, 255, 0.85) !important;
}

.hubspot-form-wrapper input[type="text"],
.hubspot-form-wrapper input[type="email"],
.hubspot-form-wrapper textarea,
.hubspot-form-wrapper select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    border-radius: var(--radius-md) !important;
    padding: 10px 14px !important;
}

.hubspot-form-wrapper input::placeholder,
.hubspot-form-wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.hubspot-form-wrapper input:focus,
.hubspot-form-wrapper textarea:focus,
.hubspot-form-wrapper select:focus {
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
    outline: none !important;
}

.hubspot-form-wrapper .hs-submit input[type="submit"],
.hubspot-form-wrapper .hs-button {
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background var(--transition-fast) !important;
}

.hubspot-form-wrapper .hs-submit input[type="submit"]:hover,
.hubspot-form-wrapper .hs-button:hover {
    background: var(--accent-light) !important;
}

.hubspot-form-wrapper .hs-error-msgs,
.hubspot-form-wrapper .hs-error-msg {
    color: var(--accent-amber-light) !important;
}

.hubspot-form-wrapper .submitted-message {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* -----------------------------------------------------
   FOOTER
   ----------------------------------------------------- */
footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-3xl) var(--space-2xl) var(--space-xl);
}

.footer-inner {
    max-width: var(--container-xl);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-top: var(--space-md);
}

.footer-heading {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-md);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-sponsor {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-sponsor a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.footer-sponsor a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: var(--space-md);
    max-width: 600px;
    line-height: 1.5;
}

/* -----------------------------------------------------
   BLOG STYLES
   ----------------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-lg);
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent-teal);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.blog-card-content {
    padding: var(--space-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.blog-card-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: var(--accent-teal-bg);
    color: var(--accent-teal);
}

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

.blog-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.blog-card-excerpt {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

.blog-card-author {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.blog-card-readtime {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Featured blog card */
.blog-featured {
    grid-column: 1 / -1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.blog-featured:hover {
    box-shadow: var(--shadow-lg);
}

.blog-featured .blog-card-content {
    padding: var(--space-2xl);
}

.blog-featured .blog-card-title {
    font-size: 1.5rem;
}

.blog-featured .blog-card-excerpt {
    -webkit-line-clamp: 4;
}

/* Blog post (single) */
.blog-post {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

.blog-post-header {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border);
}

.blog-post-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--text-muted);
    font-size: 0.875rem;
    flex-wrap: wrap;
}

/* Blog post content styling */
.blog-post-content h2 {
    font-size: 1.5rem;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.blog-post-content h3 {
    font-size: 1.25rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.blog-post-content p {
    margin-bottom: var(--space-md);
    font-size: 1.0625rem;
    line-height: 1.8;
}

.blog-post-content ul, .blog-post-content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-xl);
    color: var(--text-secondary);
}

.blog-post-content li {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.blog-post-content blockquote {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    padding-left: var(--space-xl);
    border-left: 3px solid var(--accent);
    background: var(--bg-section);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Blog sidebar */
.blog-sidebar {
    position: sticky;
    top: 96px;
}

.blog-sidebar-section {
    margin-bottom: var(--space-xl);
}

.blog-sidebar-title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

/* Category filter chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.filter-chip {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-card);
}

.filter-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-chip.active {
    background: var(--accent);
    color: var(--text-inverse);
    border-color: var(--accent);
}

/* -----------------------------------------------------
   NEWS STYLES
   ----------------------------------------------------- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
    text-decoration: none;
    display: block;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-dark);
}

.news-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.news-card-source {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: var(--accent-bg);
    color: var(--accent);
}

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

.news-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.news-card-summary {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.news-card-read-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* -----------------------------------------------------
   GLOSSARY / ACCORDION
   ----------------------------------------------------- */
.glossary-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 var(--space-2xl);
    margin: 0 auto;
}

/* FAQ reference links (inline within answers) */
.faq-ref-link {
    color: var(--accent-light);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(42, 90, 143, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color var(--transition-fast);
}

.faq-ref-link:hover {
    text-decoration-color: var(--accent);
}

.glossary-item {
    border-bottom: 1px solid var(--border);
}

.glossary-term {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.glossary-term:hover {
    color: var(--accent);
}

.glossary-arrow {
    display: inline-flex;
    transition: transform var(--transition-normal);
    color: var(--text-muted);
    line-height: 0;
}

.glossary-item.open .glossary-arrow {
    transform: rotate(180deg);
}

.glossary-definition {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.glossary-definition-inner {
    padding: 0 0 var(--space-lg) 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* -----------------------------------------------------
   SCROLL ANIMATIONS
   ----------------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-fade { transform: translateY(0); }
.animate-on-scroll.animate-scale { transform: scale(0.95); }
.animate-on-scroll.animate-slide-left { transform: translateX(-30px); }
.animate-on-scroll.animate-slide-right { transform: translateX(30px); }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.stagger-children > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children > *:nth-child(2) { transition-delay: 80ms; }
.stagger-children > *:nth-child(3) { transition-delay: 160ms; }
.stagger-children > *:nth-child(4) { transition-delay: 240ms; }
.stagger-children > *:nth-child(5) { transition-delay: 320ms; }
.stagger-children > *:nth-child(6) { transition-delay: 400ms; }
.stagger-children > *:nth-child(7) { transition-delay: 480ms; }
.stagger-children > *:nth-child(8) { transition-delay: 560ms; }

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Pulse animations */
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(30, 58, 95, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(30, 58, 95, 0); }
}

/* Requirements list styling */
.requirements-list {
    list-style: none;
    padding: 0;
}

.requirements-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: var(--space-sm) 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.requirements-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--card-accent, var(--accent-teal));
    flex-shrink: 0;
    margin-top: 8px;
}

/* Load more button */
.load-more-container {
    text-align: center;
    margin-top: var(--space-xl);
}

/* Share links */
.share-links {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.share-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.share-link:hover {
    background: var(--accent);
    color: var(--text-inverse);
}

/* Related posts */
.related-posts {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border);
}

.related-posts-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

/* -----------------------------------------------------
   START HERE SECTION
   ----------------------------------------------------- */
.start-here-questions {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.start-here-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.start-here-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-emerald-bg);
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.start-here-item h4 {
    margin-bottom: var(--space-xs);
}

.start-here-item p {
    font-size: 0.9375rem;
}

/* -----------------------------------------------------
   REQUIREMENTS LIFECYCLE CARDS
   ----------------------------------------------------- */
.req-lifecycle-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
}

.req-lifecycle-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.req-lifecycle-phase {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.req-lifecycle-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-teal);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.req-lifecycle-summary {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.req-lifecycle-card .requirements-list {
    margin-top: 0;
    font-size: 0.875rem;
}

/* Classification standout block */
.req-classification-block {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

/* -----------------------------------------------------
   COMPACT PENALTIES ROW
   ----------------------------------------------------- */
.req-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.req-penalties-compact {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.req-penalties-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.req-penalties-label svg {
    flex-shrink: 0;
}

.req-penalties-tiers {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.req-penalty-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
}

.req-penalty-badge.high {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}

.req-penalty-badge.mid {
    background: var(--accent-amber-bg);
    color: var(--accent-amber);
}

.req-penalty-badge.low {
    background: rgba(245, 158, 11, 0.06);
    color: var(--accent-amber-light);
}

.req-penalty-pct {
    font-weight: 500;
    opacity: 0.7;
}

.req-penalty-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
}

/* -----------------------------------------------------
   MODAL
   ----------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 29, 46, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-page);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-2xl);
    position: relative;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.25s ease;
}

.modal-overlay.is-open .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-section);
    color: var(--text-primary);
    border-color: var(--border-dark);
}

.modal-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* -----------------------------------------------------
   ASSESSMENT
   ----------------------------------------------------- */
.assessment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.assessment-question {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
}

.assessment-question-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-bg);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.assessment-question-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.assessment-options {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.assessment-chip {
    padding: 8px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-card);
}

.assessment-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.assessment-chip.selected-yes {
    background: var(--accent-teal-bg);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.assessment-chip.selected-no {
    background: var(--accent-amber-bg);
    border-color: var(--accent-amber);
    color: var(--accent-amber);
}

.assessment-result {
    animation: fadeSlideUp 0.4s ease-out;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -----------------------------------------------------
   CRA COMPLIANCE LIFECYCLE
   ----------------------------------------------------- */
.lifecycle-section {
    background: linear-gradient(165deg, #0f1d2e 0%, #162842 50%, #0f1d2e 100%);
    position: relative;
    overflow: hidden;
}

.lifecycle-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.lifecycle-section .section-header { position: relative; z-index: 1; }
.lifecycle-section .section-title { color: rgba(255, 255, 255, 0.95); }
.lifecycle-section .section-description { color: rgba(255, 255, 255, 0.6); }
.lifecycle-section .section-eyebrow.teal {
    background: rgba(13, 148, 136, 0.15);
    border: 1px solid rgba(13, 148, 136, 0.25);
}

/* Horizontal flow container */
.lifecycle-flow {
    display: flex;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.lifecycle-phase {
    flex: 1;
    min-width: 0;
}

.lifecycle-phase-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    height: 100%;
    position: relative;
    transition: all var(--transition-normal);
    border-top: 3px solid var(--phase-color, var(--accent-teal));
}

.lifecycle-phase-card:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.5);
}

.lifecycle-phase-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-md);
}

.lifecycle-phase-num.c1 { background: var(--accent-light); }
.lifecycle-phase-num.c2 { background: var(--accent-teal); }
.lifecycle-phase-num.c3 { background: var(--accent-amber); }
.lifecycle-phase-num.c4 { background: var(--accent-emerald); }

.lifecycle-phase-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: rgba(255, 255, 255, 0.95);
}

.lifecycle-phase-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lifecycle-phase-items {
    list-style: none;
    padding: 0;
}

.lifecycle-phase-items li {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
    padding: 4px 0 4px 16px;
    position: relative;
    line-height: 1.5;
}

.lifecycle-phase-items li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--phase-color, var(--accent-teal));
    position: absolute;
    left: 0;
    top: 10px;
}

/* Animated connectors between phases */
.lifecycle-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    flex-shrink: 0;
    position: relative;
}

.lifecycle-connector-line {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.lifecycle-connector-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.6), transparent);
    animation: lifecycle-flow-h 2.5s ease-in-out infinite;
}

.lifecycle-connector:nth-child(4) .lifecycle-connector-line::after { animation-delay: 0.4s; }
.lifecycle-connector:nth-child(6) .lifecycle-connector-line::after { animation-delay: 0.8s; }

@keyframes lifecycle-flow-h {
    0% { left: -60%; }
    100% { left: 100%; }
}

.lifecycle-connector-arrow {
    position: absolute;
    right: -1px;
    color: rgba(255, 255, 255, 0.2);
}

/* Device relationship callout */
.lifecycle-devices {
    margin-top: var(--space-3xl);
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.lifecycle-devices-inner {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-2xl);
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.lifecycle-devices-visual {
    display: flex;
    justify-content: center;
}

.lifecycle-devices-visual svg {
    width: 100%;
    max-width: 240px;
    height: auto;
}

.lifecycle-devices-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-md);
}

.lifecycle-devices-content p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.lifecycle-devices-content p:last-child {
    margin-bottom: 0;
}

.lifecycle-devices-highlight {
    display: inline;
    color: var(--accent-teal-light);
    font-weight: 500;
}

/* Broad strokes summary (2x2 grid, bigger text) */
.lifecycle-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl) var(--space-2xl);
    max-width: 1100px;
    margin: 0 auto var(--space-3xl);
    position: relative;
    z-index: 1;
}

.lifecycle-summary-item {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.lifecycle-summary-item .lifecycle-phase-num {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    flex-shrink: 0;
}

.lifecycle-summary-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.lifecycle-summary-item p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

/* Separator before detailed workflow */
.lifecycle-detail-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.lifecycle-detail-label::before,
.lifecycle-detail-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

/* Penalties row for dark background */
.lifecycle-penalties {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.lifecycle-penalties-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.lifecycle-penalties-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.lifecycle-penalties-label svg {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.35);
}

.lifecycle-penalties-tiers {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.lifecycle-penalty-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
}

.lifecycle-penalty-badge.high {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
}

.lifecycle-penalty-badge.mid {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-amber-light);
}

.lifecycle-penalty-badge.low {
    background: rgba(245, 158, 11, 0.08);
    color: rgba(245, 158, 11, 0.7);
}

.lifecycle-penalty-pct {
    font-weight: 500;
    opacity: 0.7;
}

.lifecycle-penalty-note {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

/* Button styling for dark section */
.lifecycle-section .btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.lifecycle-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

/* Decorative gradient blobs for lifecycle section */
.lifecycle-section .lifecycle-glow-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.lifecycle-section .lifecycle-glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30, 58, 95, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -80px;
    pointer-events: none;
}

/* -----------------------------------------------------
   RESPONSIVE - TABLET (1200px)
   ----------------------------------------------------- */
@media (max-width: 1200px) {
    .hero-inner {
        gap: var(--space-2xl);
    }

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

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-featured {
        grid-template-columns: 1fr;
    }

    .lifecycle-connector {
        width: 36px;
    }
}

/* -----------------------------------------------------
   RESPONSIVE - TABLET PORTRAIT (768px)
   ----------------------------------------------------- */
@media (max-width: 768px) {
    .section {
        padding: var(--space-3xl) var(--space-md);
    }

    .hero {
        padding: 100px var(--space-md) var(--space-2xl);
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .hero-visual {
        order: -1;
    }

    .page-hero {
        padding: 120px var(--space-md) var(--space-2xl);
    }

    /* Navigation */
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; }

    nav {
        padding: 0 var(--space-md);
    }

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

    .layout-split {
        grid-template-columns: 1fr;
    }

    .layout-sidebar {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
    }

    .countdown-timer {
        gap: var(--space-md);
    }

    .countdown-value {
        font-size: 2rem;
    }

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

    .newsletter-form {
        flex-direction: column;
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.8125rem;
    }

    /* Horizontal timeline collapses to vertical on mobile */
    .timeline-h-track {
        display: none;
    }

    .timeline-h-items {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding-left: var(--space-2xl);
        position: relative;
    }

    /* Vertical line on left */
    .timeline-h-items::before {
        content: '';
        position: absolute;
        left: 7px;
        top: 8px;
        bottom: 8px;
        width: 2px;
        background: var(--border);
    }

    .timeline-h-item {
        align-items: flex-start;
        text-align: left;
        padding-top: 0;
    }

    .timeline-h-item::before {
        display: none;
    }

    .timeline-h-marker {
        position: absolute;
        left: calc(-1 * var(--space-2xl) + -1px);
        top: 4px;
    }

    .timeline-h-date {
        margin-top: 0;
    }

    .modal {
        padding: var(--space-lg);
        max-height: 95vh;
    }

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

    .req-bottom-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .req-penalties-compact {
        flex-direction: column;
        align-items: flex-start;
    }

    .req-penalties-tiers {
        flex-wrap: wrap;
    }

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

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

    .glossary-list {
        grid-template-columns: 1fr;
    }

    .resource-list .resource-card {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
    }

    .resource-list .resource-card-link {
        grid-column: 2;
        grid-row: 3;
        justify-self: start;
        margin-top: var(--space-sm);
    }

    .filter-chips {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: var(--space-sm);
    }

    /* Lifecycle: stack vertically on mobile */
    .lifecycle-summary {
        grid-template-columns: 1fr;
    }

    .lifecycle-flow {
        flex-direction: column;
    }

    .lifecycle-connector {
        width: auto;
        height: 32px;
    }

    .lifecycle-connector-line {
        width: 2px;
        height: 100%;
    }

    .lifecycle-connector-line::after {
        width: 100%;
        height: 60%;
        left: 0;
        top: -60%;
        background: linear-gradient(180deg, transparent, rgba(20, 184, 166, 0.6), transparent);
        animation: lifecycle-flow-v 2.5s ease-in-out infinite;
    }

    .lifecycle-connector-arrow {
        display: none;
    }

    .lifecycle-devices-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .lifecycle-devices-visual {
        order: -1;
    }

    .lifecycle-penalties {
        flex-direction: column;
        align-items: flex-start;
    }

    .lifecycle-penalties-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

@keyframes lifecycle-flow-v {
    0% { top: -60%; }
    100% { top: 100%; }
}

/* -----------------------------------------------------
   RESPONSIVE - MOBILE (480px)
   ----------------------------------------------------- */
@media (max-width: 480px) {
    .section {
        padding: var(--space-2xl) var(--space-md);
    }

    .hero {
        min-height: auto;
        padding-top: 96px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero-subtitle {
        font-size: 1.0625rem;
    }

    .countdown-value {
        font-size: 1.5rem;
    }

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

    .stat-value {
        font-size: 1.5rem;
    }

    .blog-post-title {
        font-size: 1.5rem;
    }
}

/* -----------------------------------------------------
   PRINT STYLES
   ----------------------------------------------------- */
@media print {
    nav, .scroll-progress, .noise-overlay, .floating-shapes,
    .gradient-mesh, .grid-pattern, .cta-section, .hero-visual,
    .newsletter-form, .nav-toggle, .video-grid, .btn {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 20px;
    }

    .section {
        padding: 20px 0;
    }

    body {
        color: #000;
        background: #fff;
    }

    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }

    a { color: #000; text-decoration: underline; }
    a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
