/* ===== ICONS ===== */
@import url('phosphor/phosphor-duotone.css');

/* ===== FONTS ===== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/Inter-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/Inter-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/Inter-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/Inter-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/Inter-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('fonts/Inter-ExtraBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/Sora-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('fonts/Sora-ExtraBold.ttf') format('truetype');
}

/* ===== CSS RESET & VARIABLES ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Dark theme colors */
    --bg-primary: #030712;
    --bg-secondary: #0a0f1a;
    --bg-card: rgba(15, 23, 42, 0.6);
    --bg-card-hover: rgba(30, 41, 59, 0.8);

    /* Text colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Accent colors — Vivid Cobalt primary, cyan reserved for interactive */
    --accent-blue: #3472c8;
    --accent-blue-dim: rgba(52, 114, 200, 0.15);
    --accent-blue-dark: #1b3a7d;
    --accent-cyan: #00e5ff;              /* Reserved for hover/focus/active states */
    --accent-cyan-dim: rgba(0, 229, 255, 0.15);
    --accent-green: #10b981;
    --accent-green-dim: rgba(16, 185, 129, 0.15);
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;
    /* For careers/warnings */

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #48a06a 0%, #00e5ff 50%, #2248a8 100%);
    --gradient-logo: linear-gradient(135deg, #00e5ff 0%, #00ff88 50%, #a855f7 100%);
    --gradient-card: linear-gradient(135deg, rgba(52, 114, 200, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    --gradient-glow: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(52, 114, 200, 0.3) 0%, transparent 70%);
    --gradient-underline: linear-gradient(90deg, #48a06a, #00e5ff, #2248a8, #00e5ff, #48a06a);

    /* Typography */
    --font-heading: 'Sora', 'Inter', sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-max: 1400px;

    /* Effects */
    --blur-glass: blur(20px);
    --border-radius: 16px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(52, 114, 200, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 114, 200, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -2;
}

.bg-glow {
    position: fixed;
    inset: 0;
    background: var(--gradient-glow);
    z-index: -1;
    animation: glowPulse 8s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% {
        opacity: 0.6;
        transform: translateY(0);
    }

    100% {
        opacity: 1;
        transform: translateY(-5%);
    }
}

/* Grid Energy Network canvas */
#grid-energy-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    will-change: contents;
}

@media (prefers-reduced-motion: reduce) {
    #grid-energy-canvas {
        display: none;
    }
}

/* ===== BRANDING UTILS ===== */
.brand-text {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.brand-text .ai {
    background: var(--gradient-logo);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* FidelID product name — Sora for l/I distinction */
.fidelid {
    font-family: var(--font-heading);
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.nav.scrolled {
    padding: 0.75rem 2rem;
    background: rgba(3, 7, 18, 0.95);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.nav-logo .ai {
    background: var(--gradient-logo);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-logo .tm {
    font-size: 0.6em;
    vertical-align: super;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 2px;
    -webkit-text-fill-color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--accent-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-underline);
    background-size: 200% 100%;
    transition: width var(--transition-fast);
    animation: gradientSlide 3s linear infinite paused;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    animation-play-state: running;
}

.nav-cta {
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(52, 114, 200, 0.5);
    color: var(--accent-blue) !important;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.nav-cta:hover {
    background: var(--accent-blue-dim);
    border-color: var(--accent-blue);
    box-shadow: 0 0 30px rgba(52, 114, 200, 0.3);
}

.nav-cta::after {
    display: none !important;
}

/* Dropdowns */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-toggle {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.dropdown-toggle:hover,
.dropdown:hover .dropdown-toggle {
    color: var(--text-primary);
}

.dropdown-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.dropdown:hover .dropdown-toggle svg {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    white-space: nowrap;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-blue);
}

/* Mega-menu (PRODUCT dropdown) */
.dropdown-mega {
    min-width: 580px;
    padding: 1.25rem;
}

.dropdown-mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.dropdown-mega-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-mega-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-green);
    font-weight: 600;
    padding: 0 1rem 0.4rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dropdown-mega .dropdown-item {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.dropdown-mega-footer {
    display: flex;
    gap: 0.25rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-mega-footer .dropdown-item {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
    transform-origin: center;
}

.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);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.btn-primary {
    background: var(--gradient-hero);
    color: var(--bg-primary);
    box-shadow: 0 4px 30px rgba(52, 114, 200, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(52, 114, 200, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: var(--blur-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ===== THREE PILLARS ===== */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}
.pillar-card {
    position: relative;
    border-top: 3px solid var(--accent-blue);
    border-radius: 0 0 12px 12px;
    background: rgba(6, 9, 15, 0.5);
    padding: 2.5rem 2rem 2rem;
    transition: var(--transition-base);
}
/* Glass sheen — matches feature-card ::before */
.pillar-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 40%, rgba(255, 255, 255, 0.025) 100%),
        rgba(10, 14, 26, 0.08);
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    border-radius: 0 0 12px 12px;
    pointer-events: none;
    z-index: 0;
}
.pillar-card > * {
    position: relative;
    z-index: 1;
}
/* Top glow */
.pillar-card::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 10%;
    right: 10%;
    height: 24px;
    background: radial-gradient(ellipse at center top, rgba(52, 114, 200, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
}
a.pillar-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.pillar-card:hover {
    border-top-color: #00e5ff;
    box-shadow: 0 -4px 20px rgba(52, 114, 200, 0.12);
    transform: translateY(-2px);
}
.pillar-card:hover::after {
    background: radial-gradient(ellipse at center top, rgba(0, 229, 255, 0.2) 0%, transparent 70%);
}
.pillar-card .pillar-abbr {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.03em;
    text-align: center;
}
.pillar-card .pillar-full-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.25rem;
    letter-spacing: 0.01em;
    text-align: center;
}
.pillar-card .pillar-positioning {
    font-size: 0.9rem;
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 1rem;
    font-style: italic;
    text-align: center;
}
.pillar-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    text-align: center;
}
@media (max-width: 768px) {
    .pillars-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .pillar-card { padding: 2rem 1.5rem 1.5rem; }
}

/* ===== FOOTER ===== */
.footer {
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand .footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-decoration: none;
    color: #fff;
    display: block;
}

.footer-brand .footer-logo .ai {
    background: var(--gradient-logo);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-blue);
}

/* Newsletter form in footer */
.footer-newsletter {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}
.footer-newsletter-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(52, 114, 200, 0.2);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-width: 0;
}
.footer-newsletter-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}
.footer-newsletter-input::placeholder {
    color: var(--text-muted);
}
.footer-newsletter-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition-fast);
    white-space: nowrap;
}
.footer-newsletter-btn:hover {
    background: #00e5ff;
    color: #030712;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent-blue-dim);
    color: var(--accent-blue);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

/* ===== COMPONENT UTILS ===== */
.icon-container {
    width: 120px;
    height: 120px;
    background: var(--bg-card);
    border: 1px solid rgba(52, 114, 200, 0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: var(--blur-glass);
}

.icon-container svg {
    width: 60px;
    height: 60px;
    stroke: var(--accent-blue);
}

.icon-container.green {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

.icon-container.green svg {
    stroke: var(--accent-green);
}

.icon-container.orange {
    border-color: rgba(249, 115, 22, 0.3);
}

.icon-container.orange svg {
    stroke: var(--accent-orange);
}

.icon-container.purple {
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.1);
}

.icon-container.purple svg {
    stroke: var(--accent-purple);
}

.icon-container.pink {
    border-color: rgba(236, 72, 153, 0.3);
    background: rgba(236, 72, 153, 0.05);
    /* Lighter bg for pink */
}

.icon-container.pink svg {
    stroke: var(--accent-pink);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-green);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-badge.orange {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
    color: var(--accent-orange);
}

.status-badge.purple {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: var(--accent-purple);
}

.status-badge.pink {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.3);
    color: var(--accent-pink);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Code Preview (API) */
.code-preview {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 500px;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
}

.code-preview .comment {
    color: var(--text-muted);
}

.code-preview .keyword {
    color: var(--accent-purple);
}

.code-preview .string {
    color: var(--accent-green);
}

/* Topics (Blog) */
.topics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.topic-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Contact Response Time */
.response-time {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    color: var(--accent-green);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.response-time svg {
    width: 18px;
    height: 18px;
}

/* ===== PAGE STRUCTURE & TYPOGRAPHY ===== */
.page-header {
    padding: 8rem 2rem 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.page-header .updated,
.page-header .tagline {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem 4rem;
    position: relative;
    z-index: 1;
    /* Flex content centering fallback */
    display: flex;
    flex-direction: column;
}

.content.centered {
    align-items: center;
    text-align: center;
    padding-top: 8rem;
    /* If no page-header */
}

/* Legal/Doc Content Typography */
h1,
.content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.description {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--accent-blue);
}

.content p,
.content li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content a {
    color: var(--accent-blue);
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

.content a.btn {
    text-decoration: none;
}

.content a.btn-primary {
    color: var(--bg-primary);
}

.content a.btn-secondary {
    color: var(--text-primary);
}

.contact-section {
    margin: 3rem auto 0;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(52, 114, 200, 0.2);
    border-radius: 24px;
    backdrop-filter: var(--blur-glass);
    width: 100%;
    max-width: 500px;
}

.contact-section h2,
.contact-section h3 {
    margin-top: 0;
    text-align: center;
    color: var(--text-primary);
}

.contact-section p {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== FORMS ===== */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px var(--accent-cyan-dim);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: var(--gradient-hero);
    color: var(--bg-primary);
    box-shadow: 0 4px 30px rgba(52, 114, 200, 0.3);
    transition: var(--transition-fast);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(52, 114, 200, 0.5);
}

.file-input-wrapper {
    position: relative;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.file-input-label:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.file-input-label svg {
    width: 20px;
    height: 20px;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

.file-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-align: center;
}

/* ===== SHARED MEDIA QUERIES ===== */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(3, 7, 18, 0.98);
        padding: 1.5rem 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Mobile Dropdown Overrides */
    .dropdown {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        height: auto;
    }

    .dropdown-toggle {
        font-size: 1rem;
        padding: 0.5rem 0;
        width: 100%;
        justify-content: space-between;
        color: var(--text-primary);
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        transform: none !important;
        background: transparent;
        border: none;
        backdrop-filter: none;
        padding: 0 0 0 1rem;
        min-width: unset;
        box-shadow: none;
        display: none;
    }

    .dropdown.open > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .dropdown-toggle svg {
        transition: transform 0.2s ease;
    }

    .dropdown.open > .dropdown-toggle svg {
        transform: rotate(180deg);
    }

    .dropdown-mega {
        min-width: unset;
        padding: 0 0 0 1rem;
    }

    .dropdown-mega-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .dropdown-mega-footer {
        flex-direction: column;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: none;
    }
}

/* ===== LANDING PAGE SPECIFIC ===== */
/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--section-padding) + 80px) 2rem var(--section-padding);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -3;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(3, 7, 18, 0.7) 0%,
            rgba(3, 7, 18, 0.5) 50%,
            rgba(3, 7, 18, 0.85) 100%);
    z-index: -2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(52, 114, 200, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    backdrop-filter: var(--blur-glass);
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-title .graphn {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
}

.hero-title .ai {
    background: var(--gradient-logo);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-title .ai::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: var(--gradient-logo);
    filter: blur(40px);
    opacity: 0.4;
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite alternate;
}

.hero-tagline {
    font-size: clamp(1rem, 4.5vw, 2rem);
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 100%;
    margin: 0 auto 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    white-space: nowrap;
    text-align: center;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.hero-description strong {
    color: var(--accent-blue);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

@keyframes glowPulse {
    0% {
        opacity: 0.4;
        filter: blur(40px);
    }

    100% {
        opacity: 0.6;
        filter: blur(50px);
    }
}

@keyframes scrollDown {

    0%,
    100% {
        opacity: 1;
        top: 8px;
    }

    50% {
        opacity: 0.3;
        top: 20px;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 2px;
    animation: scrollDown 1.5s ease-in-out infinite;
}

/* Trust Bar */
.trust-bar {
    padding: 3rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-container {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.trust-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.6;
}

.trust-logos span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    letter-spacing: 2px;
}

/* Section Components */
.section {
    padding: var(--section-padding) 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: var(--accent-blue-dim);
    border-radius: 100px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-title .highlight {
    color: var(--accent-blue);
}

.section-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    position: relative;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    transition: var(--transition-smooth);
    overflow: visible;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(52, 114, 200, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(52, 114, 200, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card>* {
    position: relative;
    z-index: 1;
}

.feature-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.feature-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-blue-dim);
    border-radius: 12px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-blue);
}

.feature-icon .ph-duotone {
    font-size: 28px;
    color: var(--accent-blue);
}

.feature-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-green);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Powered By */
.powered-by {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--section-padding) 2rem;
}

.powered-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.powered-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.powered-text h2 span {
    color: var(--accent-blue);
}

.powered-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.powered-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.powered-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graph-visual {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    position: relative;
}

/* Animated Graph Nodes */
.node {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 2px solid rgba(52, 114, 200, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: nodeFloat 6s ease-in-out infinite;
    backdrop-filter: var(--blur-glass);
}

.node-1 {
    top: 10%;
    left: 45%;
    animation-delay: 0s;
}

.node-2 {
    top: 35%;
    left: 15%;
    animation-delay: -1s;
}

.node-3 {
    top: 35%;
    right: 15%;
    animation-delay: -2s;
}

.node-4 {
    top: 60%;
    left: 30%;
    animation-delay: -3s;
}

.node-5 {
    top: 60%;
    right: 30%;
    animation-delay: -4s;
}

.node-6 {
    bottom: 10%;
    left: 45%;
    animation-delay: -5s;
    border-color: var(--accent-green);
}

@keyframes nodeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.graph-lines {
    position: absolute;
    inset: 0;
    overflow: visible;
}

.graph-lines line {
    stroke: rgba(52, 114, 200, 0.2);
    stroke-width: 2;
}

/* CTA Section */
.cta-section {
    padding: var(--section-padding) 2rem;
    text-align: center;
}

.cta-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    background: var(--bg-card);
    border: 1px solid rgba(52, 114, 200, 0.2);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--blur-glass);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 1px;
    background: var(--gradient-hero);
}

.cta-card h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Signup Form */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.signup-form .form-input {
    width: 100%;
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.signup-form .form-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(3, 7, 18, 0.9);
}

.signup-form .btn {
    align-self: center;
    margin-top: 0.5rem;
}

/* Animate on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Media Queries */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .powered-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .powered-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .signup-form {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .powered-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-card {
        padding: 2.5rem 1.5rem;
    }

    .hero-tagline {
        font-size: clamp(0.9rem, 5vw, 1.25rem);
    }

    .graph-visual {
        max-width: 280px;
    }

    .node {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .node-1 {
        top: 5%;
        left: 42%;
    }

    .node-2 {
        top: 25%;
        left: 10%;
    }

    .node-3 {
        top: 25%;
        right: 10%;
    }

    .node-4 {
        top: 50%;
        left: 20%;
    }

    .node-5 {
        top: 50%;
        right: 20%;
    }

    .node-6 {
        bottom: 5%;
        left: 42%;
    }
}

/* ===== SUCCESS PAGE SPECIFIC ===== */
.success-card {
    background: var(--bg-card);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: var(--blur-glass);
    max-width: 500px;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
}

.success-card h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.success-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    color: var(--bg-primary) !important;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-fast);
    box-shadow: 0 4px 30px rgba(52, 114, 200, 0.3);
    border: none;
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(52, 114, 200, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SECURITY PAGE SPECIFIC ===== */
.security-card {
    background: var(--bg-card);
    border: 1px solid rgba(52, 114, 200, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    backdrop-filter: blur(10px);
}

.security-card h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.security-card .icon {
    font-size: 1.5rem;
}

.cta-box {
    background: linear-gradient(135deg, rgba(52, 114, 200, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(52, 114, 200, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.cta-box p {
    margin-bottom: 1.5rem;
}

.cta-box a.btn {
    display: inline-block;
    background: var(--gradient-hero);
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-box a.btn:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

/* ===== ABOUT PAGE SPECIFIC ===== */
.page-header {
    padding: calc(var(--section-padding) + 100px) 2rem var(--section-padding);
}

.header-banner {
    width: 100%;
    max-width: 1280px;
    height: auto;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.page-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.page-header .subtitle {
    font-size: clamp(0.5rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 100%;
    margin: 0 auto;
    white-space: nowrap;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem var(--section-padding);
    position: relative;
    z-index: 1;
}

.story-section {
    max-width: var(--container-max);
    margin: 0 auto 5rem;
}

.story-section h2,
.leadership-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.story-section h2 span,
.leadership-section h2 span {
    color: var(--accent-blue);
}

.story-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.story-section strong {
    color: var(--accent-blue);
    font-weight: 600;
}

.story-section .highlight-box {
    background: var(--bg-card);
    border: 1px solid rgba(52, 114, 200, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: var(--blur-glass);
}

.story-section .highlight-box p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
    margin: 0;
}

/* ===== LEADERSHIP SECTION ===== */
.leadership-section h2 {
    margin-bottom: 3rem;
}

.leader-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    background: var(--bg-card);
    border: 1px solid rgba(52, 114, 200, 0.15);
    border-radius: var(--border-radius);
    padding: 3rem;
    backdrop-filter: var(--blur-glass);
}

.leader-photo {
    position: relative;
}

.leader-photo img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 1;
}

.leader-photo::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 16px;
    background: var(--gradient-hero);
    z-index: -1;
    opacity: 0.3;
    filter: blur(20px);
}

.leader-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.leader-info .title {
    font-size: 1.1rem;
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.leader-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.leader-info .experience-tag {
    display: inline-block;
    background: var(--accent-blue-dim);
    color: var(--accent-blue);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.leader-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.leader-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.leader-social a:hover {
    background: var(--accent-blue-dim);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.leader-social svg {
    width: 20px;
    height: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .leader-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .leader-photo {
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .leader-card {
        padding: 2rem;
    }

    .page-header {
        padding: calc(var(--section-padding) + 80px) 1rem var(--section-padding);
    }
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CAREERS PAGE SPECIFIC ===== */
.careers-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.careers-icon {
    width: 120px;
    height: 120px;
    background: var(--bg-card);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    backdrop-filter: var(--blur-glass);
}

.careers-icon svg {
    width: 60px;
    height: 60px;
    stroke: var(--accent-orange);
}

.careers-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.careers-content .tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2rem;
}

.careers-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--accent-orange);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.careers-status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-orange);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.careers-content .description {
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.careers-values {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    max-width: 600px;
}

.careers-value-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.careers-value-card span {
    font-size: 1.1rem;
}

.careers-contact {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(52, 114, 200, 0.2);
    border-radius: 24px;
    backdrop-filter: var(--blur-glass);
    width: 100%;
    max-width: 500px;
}

.careers-contact h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.careers-contact>p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-submit {
    background: var(--gradient-hero);
    color: var(--bg-primary);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 30px rgba(52, 114, 200, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(52, 114, 200, 0.5);
}

/* ===== ISPM REPORT PAGE SPECIFIC ===== */
.ispm-report {
    position: relative;
    z-index: 1;
}

/* Report Hero / Header */
.ispm-hero {
    padding: calc(var(--section-padding) + 100px) 2rem var(--section-padding);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ispm-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.1;
}

/* ISPM-specific accent for section titles */
.ispm-report .section-title .highlight {
    color: var(--accent-blue);
}

.ispm-report .ispm-section-header h2 {
    color: var(--text-primary);
}

.ispm-hero .subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.ispm-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.ispm-pill {
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: var(--blur-glass);
}

.ispm-pill.cyan {
    background: var(--accent-blue-dim);
    border: 1px solid rgba(52, 114, 200, 0.5);
    color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(52, 114, 200, 0.2);
}

.ispm-pill.green {
    background: var(--accent-green-dim);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: var(--accent-green);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.ispm-pill.orange {
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.5);
    color: var(--accent-orange);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
}

/* Main Report Content */
.ispm-main {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

/* Report Sections */
.ispm-section {
    position: relative;
}

.ispm-section-header {
    margin-bottom: 2rem;
    padding-left: 1.25rem;
    border-left: 4px solid var(--accent-blue);
}

.ispm-section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ispm-section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.ispm-section-header strong {
    color: var(--accent-blue);
    font-weight: 600;
}

.ispm-section-header em {
    font-style: italic;
    color: var(--text-muted);
}

/* Glass Card */
.ispm-glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.ispm-glass-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Chart Container */
.ispm-chart-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    height: 350px;
    max-height: 400px;
}

@media (min-width: 768px) {
    .ispm-chart-container {
        height: 400px;
    }
}

.ispm-chart-source {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

/* Info Cards Grid */
.ispm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .ispm-grid {
        grid-template-columns: 1fr;
    }
}

.ispm-info-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ispm-info-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.ispm-info-card:hover {
    border-color: var(--accent-blue);
}

.ispm-info-card.cyan:hover {
    border-color: var(--accent-blue);
}

.ispm-info-card .icon {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    display: block;
}

.ispm-info-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.ispm-info-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.ispm-info-card br {
    display: block;
    margin-bottom: 0.5rem;
    content: "";
}

/* Timeline Section */
.ispm-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.ispm-timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-hero);
    transform: translateX(-50%);
    display: none;
}

@media (min-width: 768px) {
    .ispm-timeline-line {
        display: block;
    }
}

.ispm-timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

@media (min-width: 768px) {
    .ispm-timeline-item {
        flex-direction: row;
        justify-content: space-between;
    }
}

.ispm-timeline-card {
    width: 100%;
    max-width: 400px;
    padding: 1.5rem;
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border-radius: 12px;
    text-align: center;
}

@media (min-width: 768px) {
    .ispm-timeline-card {
        width: 45%;
        text-align: left;
    }

    .ispm-timeline-card.left {
        text-align: right;
        border-right: 4px solid var(--accent-blue);
        margin-right: 2rem;
    }

    .ispm-timeline-card.right {
        text-align: left;
        border-left: 4px solid var(--accent-purple);
        margin-left: 2rem;
    }
}

.ispm-timeline-card.cyan {
    border-color: var(--accent-blue);
}

.ispm-timeline-card.purple {
    border-color: var(--accent-purple);
}

.ispm-timeline-card.green {
    border-color: var(--accent-green);
}

.ispm-timeline-card.orange {
    border-color: var(--accent-orange);
}

.ispm-timeline-card.white {
    border-color: var(--text-primary);
}

.ispm-timeline-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.ispm-timeline-card h3.cyan {
    color: var(--accent-blue);
}

.ispm-timeline-card h3.green {
    color: var(--accent-green);
}

.ispm-timeline-card h3.orange {
    color: var(--accent-orange);
}

.ispm-timeline-card h3.white {
    color: var(--text-primary);
}

.ispm-timeline-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ispm-timeline-dot {
    width: 2rem;
    height: 2rem;
    background: var(--bg-primary);
    border-width: 4px;
    border-style: solid;
    border-radius: 50%;
    flex-shrink: 0;
    display: none;
}

@media (min-width: 768px) {
    .ispm-timeline-dot {
        display: block;
    }
}

.ispm-timeline-dot.cyan {
    border-color: var(--accent-blue);
}

.ispm-timeline-dot.green {
    border-color: var(--accent-green);
}

.ispm-timeline-dot.orange {
    border-color: var(--accent-orange);
}

.ispm-timeline-dot.white {
    border-color: var(--text-primary);
}

.ispm-timeline-spacer {
    width: 45%;
    padding: 1rem;
    display: none;
}

@media (min-width: 768px) {
    .ispm-timeline-spacer {
        display: block;
    }
}

/* Capabilities Section */
.ispm-capabilities-section {
    background: rgba(15, 23, 42, 0.5);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ispm-capabilities-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .ispm-capabilities-content {
        grid-template-columns: 1fr;
    }
}

.ispm-capabilities-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.ispm-capabilities-text>p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.ispm-capabilities-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ispm-capabilities-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ispm-capabilities-list .icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.ispm-capabilities-list strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ispm-capabilities-list strong.cyan {
    color: var(--accent-blue);
}

.ispm-capabilities-list strong.green {
    color: var(--accent-green);
}

.ispm-capabilities-list strong.orange {
    color: var(--accent-orange);
}

.ispm-capabilities-list span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Comparison Section */
.ispm-comparison {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .ispm-comparison {
        grid-template-columns: 1fr;
    }
}

.ispm-comparison-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ispm-comparison-card {
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.ispm-comparison-card.slate {
    border-left: 4px solid var(--text-muted);
}

.ispm-comparison-card.cyan {
    border-left: 4px solid var(--accent-blue);
}

.ispm-comparison-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.ispm-comparison-card h4.slate {
    color: var(--text-secondary);
}

.ispm-comparison-card h4.cyan {
    color: var(--accent-blue);
}

.ispm-comparison-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.25rem 0;
}

.ispm-comparison-chart {
    padding: 1.5rem;
}

/* Stats Grid */
.ispm-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 600px) {
    .ispm-stats-grid {
        grid-template-columns: 1fr;
    }
}

.ispm-stat-card {
    padding: 1.5rem;
    background: var(--accent-green-dim);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    text-align: center;
}

.ispm-stat-card.cyan {
    background: var(--accent-blue-dim);
    border-color: rgba(52, 114, 200, 0.2);
}

.ispm-stat-card .value {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.ispm-stat-card .value.green {
    color: var(--accent-green);
}

.ispm-stat-card .value.cyan {
    color: var(--accent-blue);
}

.ispm-stat-card .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Report Footer */
.ispm-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 3rem;
    text-align: center;
}

.ispm-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Custom Scrollbar for ISPM */
.ispm-report ::-webkit-scrollbar {
    width: 10px;
}

.ispm-report ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.ispm-report ::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 5px;
}

.ispm-report ::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Utility for hidden elements (CSP compliance) */
.hidden {
    display: none !important;
}

/* -------------------------------------------------------------------------- */
/*                                BLOG STYLES                                 */
/* -------------------------------------------------------------------------- */

/* --- Blog Frontpage (blog.html) --- */

.blog-main-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 4rem;
}

.blog-subtitle {
    max-width: 600px;
    margin: 1rem auto;
    color: var(--text-secondary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Featured Post Card */
.blog-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.blog-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-pills {
    margin-bottom: 1rem;
}

.blog-card-pill-tag {
    font-size: 0.75rem;
}

.blog-card .blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.blog-card-title .highlight {
    color: var(--accent-blue);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.blog-card-link {
    color: var(--accent-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.blog-card-icon {
    width: 16px;
    height: 16px;
    margin-left: 0.5rem;
}

/* Placeholder Card */
.blog-card-placeholder {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    border-style: dashed;
}

.blog-placeholder-content {
    text-align: center;
}

.blog-placeholder-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.blog-placeholder-title {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.blog-placeholder-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.blog-subscribe-wrapper {
    text-align: center;
    margin-top: 5rem;
    margin-bottom: 2rem;
}


/* --- Blog Post Article (defining-active-ispm.html) --- */

/* Page container overrides */
.blog-post .content {
    padding-top: 120px;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.blog-article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.blog-header-pills {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.blog-title-subtitle {
    margin-top: 1rem;
}

/* Typography & Content */
.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content h3,
.section-title-small {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.blog-content strong {
    color: var(--text-primary);
}

.blog-content .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

/* Components */
.text-link {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.text-link:hover {
    color: var(--accent-green);
}

.ispm-info-card {
    margin: 2rem 0;
}

.ispm-info-card p:first-child {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.ispm-info-card p:last-child {
    margin-top: 0.5rem;
}

.ispm-callout {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-align: center;
    margin: 2rem 0;
}

.ispm-capabilities-list {
    margin: 2rem 0;
}

.ispm-grid-blog {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Fix for nested Glass Cards being too dark or weirdly bordered if needed, 
   but for now assuming ispm-glass-card style is sufficient */

.ispm-glass-card h4 {
    margin-bottom: 0.5rem;
}

/* List adjustments inside cards */
.ispm-glass-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.ispm-glass-card li {
    margin-bottom: 0.5rem;
}

.blog-cta-wrapper {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .blog-post .content {
        padding-top: 100px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Form Utilities */
.form-group {
    margin-bottom: 1rem;
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

/* Lead Magnet Section */
.lead-magnet-card {
    display: flex;
    flex-direction: column;
    max-width: 825px;
    margin: 0 auto;
}

.lead-magnet-card .ispm-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lead-magnet-form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.lead-magnet-form {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
}

.lead-magnet-form .form-group {
    width: 250px;
    margin-bottom: 0;
}

.lead-magnet-form .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.lead-magnet-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.lead-magnet-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.lead-magnet-list .icon {
    flex-shrink: 0;
}

/* Form Message Utilities */
.form-message {
    margin-top: 1rem;
}

.form-message.error {
    color: var(--accent-orange);
}

.form-message.success {
    color: var(--accent-green);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.my-3 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.text-muted-italic {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.text-secondary-lg {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== MOBILE RESPONSIVE FIXES ===== */
@media (max-width: 480px) {

    /* Blog page fixes */
    .blog-card {
        max-width: 100%;
    }

    .blog-card-content {
        padding: 1.25rem;
    }

    .blog-card-title {
        font-size: 1.15rem;
        line-height: 1.4;
    }

    .blog-card-excerpt {
        font-size: 0.9rem;
    }

    .ispm-grid-blog {
        gap: 1rem;
    }

    /* Page header title sizing */
    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header .subtitle {
        font-size: 0.95rem;
    }

    /* ISPM Infographic fixes */
    .ispm-glass-card {
        padding: 1.25rem;
    }

    .ispm-section .section-title {
        font-size: 1.5rem;
    }

    .ispm-section .section-description {
        font-size: 0.95rem;
    }

    /* Chart container - give more height on mobile */
    .ispm-chart-container {
        min-height: 280px;
        padding: 0.75rem;
    }

    /* Timeline cards */
    .ispm-timeline-card {
        padding: 1rem;
    }

    .ispm-timeline-card .year {
        font-size: 1.25rem;
    }

    /* Lead magnet section */
    .lead-magnet-card {
        padding: 1.25rem;
    }

    .lead-magnet-card .section-title {
        font-size: 1.25rem;
    }

    .lead-magnet-list {
        font-size: 0.9rem;
    }

    /* Form inputs on mobile */
    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-row .form-input {
        width: 100%;
    }

    /* Footer padding fix */
    .footer-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .footer-brand {
        padding-left: 0;
    }

    /* Pills/tags spacing */
    .ispm-pills {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .ispm-pill {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
}

/* Tablet breakpoint adjustments */
@media (max-width: 768px) and (min-width: 481px) {
    .blog-card-title {
        font-size: 1.25rem;
    }

    .ispm-section .section-title {
        font-size: 1.75rem;
    }

    .lead-magnet-card {
        padding: 1.5rem;
    }
}

/* ===== PRODUCT PREVIEW SECTION ===== */
.product-preview {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.product-preview .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.product-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-preview-item {
    border: 1px solid rgba(52, 114, 200, 0.15);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    backdrop-filter: var(--blur-glass);
    transition: var(--transition-base);
}

.product-preview-item:hover {
    border-color: rgba(52, 114, 200, 0.35);
    box-shadow: 0 0 30px rgba(52, 114, 200, 0.1);
}

.product-preview-item img {
    width: 100%;
    display: block;
}

.product-preview-caption {
    padding: 1rem 1.25rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .product-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== SCREENSHOT LIGHTBOX ===== */
.lightbox-target {
    cursor: zoom-in;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background 0.3s ease;
}

.lightbox-overlay.active {
    background: rgba(0, 0, 0, 0.85);
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-img {
    opacity: 1;
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 10, 15, 0.7);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease, color 0.2s ease;
}

.lightbox-overlay.active .lightbox-close {
    opacity: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.lightbox-close svg {
    width: 20px;
    height: 20px;
}

/* ===== FEATURE CARD LINKS ===== */
a.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

a.feature-card-link:hover .feature-card {
    border-color: rgba(52, 114, 200, 0.4);
    transform: translateY(-4px);
}

a.feature-card-link .feature-card {
    transition: border-color 0.3s ease, transform 0.3s ease;
}

/* ===== FEATURE DETAIL PAGE SCREENSHOTS ===== */
.blog-content .ispm-glass-card img {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
}

.blog-content .ispm-glass-card {
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
}

/* ===== PHASE 3 ANIMATIONS ===== */

/* Nav underline gradient cycling */
@keyframes gradientSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Card glow rotation via CSS @property */
@property --glow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes glowRotate {
    from { --glow-angle: 0deg; }
    to { --glow-angle: 360deg; }
}

/* Feature card animated gradient border on hover */
.feature-card {
    --glow-angle: 0deg;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--border-radius) + 2px);
    background: conic-gradient(from var(--glow-angle), #48a06a, #00e5ff, #2248a8, #00e5ff, #48a06a);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    animation: glowRotate 4s linear infinite;
    /* Mask out the interior — only the 2px border ring is visible */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 2px;
}

.feature-card:hover {
    border-color: transparent;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(52, 114, 200, 0.15);
}

.feature-card:hover::after {
    opacity: 1;
}

/* ===== PHASE 4: SURFACE & TEXTURE ===== */
/* Feature card depth layering (bottom to top):
   Glass: ::before with subtle blur + angled gradient sheen (clear-coat)
   Icon + Text: both z-index: 2, crisp above the glass
   Row 1 (cards 1-3): Solid piano black (#06090f)
   Row 2 (cards 4-6): Half-opacity (rgba 0.5) — transitional
   Row 3 (cards 7-9): Transparent — glass-only over page background
   Plus: cobalt left accent border, rotating glow ::after on hover
   Secondary surfaces (info cards, careers): solid with left accent border */

/* --- Layer 1: Piano black card surface --- */
.feature-card {
    background: #06090f;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-left: 3px solid var(--accent-blue);
}

.feature-card:hover {
    border-left-color: var(--accent-cyan);
}

a.feature-card-link:hover .feature-card {
    border-left-color: var(--accent-cyan);
}

/* --- Icon + row-specific treatments --- */
/* Break feature-header out of the shared z-index: 1 stacking context
   so icon and text-group can sit at different z-levels */
.feature-card > .feature-header {
    z-index: auto;
}

.feature-icon {
    position: relative;
    z-index: 2;
}

/* Row 2 (cards 4-6): half-opacity background — transitional */
.feature-card-link:nth-child(n+4):nth-child(-n+6) .feature-card {
    background: rgba(6, 9, 15, 0.5);
}

/* Row 3 (cards 7-9): transparent card, glass-only over page background */
.feature-card-link:nth-child(n+7) .feature-card {
    background: transparent;
}

/* --- Layer 3: Glass overlay via ::before --- */
.feature-card::before {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 40%, rgba(255, 255, 255, 0.025) 100%),
        rgba(10, 14, 26, 0.08);
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    border-radius: var(--border-radius);
    z-index: 1;
    opacity: 1;
}

.feature-card:hover::before {
    background:
        var(--gradient-card),
        rgba(15, 23, 42, 0.3);
    background-size: 100% 100%, 100% 100%;
    opacity: 1;
}

/* --- Layer 4: Text above glass --- */
.feature-text-group {
    position: relative;
    z-index: 2;
}

.feature-card > p {
    z-index: 2;
}

/* --- Info Cards: Solid with left accent --- */
.blog-content .ispm-info-card {
    background: rgba(10, 15, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--accent-blue);
}

.blog-content .ispm-info-card:hover {
    border-color: rgba(52, 114, 200, 0.12);
    border-left: 3px solid var(--accent-cyan);
}

/* --- Careers value cards: Solid --- */
.careers-value-card {
    background: rgba(10, 15, 28, 0.9);
}
