/* Y2Q — Dynamic, Animated, Research-Grade */

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

:root {
    --bg-primary: #080808;
    --bg-secondary: #111111;
    --bg-card: #0f0f0f;
    --text-primary: #f0f0f0;
    --text-secondary: #a8a8a8;
    --text-dim: #555555;
    --accent: #c82828;
    --accent-light: #ff5050;
    --accent-glow: rgba(200, 40, 40, 0.35);
    --blue-accent: #4a9eff;
    --blue-light: #6bb5ff;
    --blue-glow: rgba(74, 158, 255, 0.25);
    --green: #22c55e;
    --orange: #f97316;
    --yellow: #eab308;
    --border: #1e1e1e;
    --border-bright: #2d2d2d;
    --font-serif: 'Georgia', 'Garamond', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Consolas', 'Fira Code', 'Monaco', monospace;
    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --glow-red: 0 0 25px rgba(200,40,40,0.3), 0 0 50px rgba(200,40,40,0.1);
    --glow-blue: 0 0 25px rgba(74,158,255,0.3), 0 0 50px rgba(74,158,255,0.1);
}

/* ======== RESET ======== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* ======== KEYFRAMES ======== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.85); }
}
@keyframes pulseRing {
    0%   { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2.4); opacity: 0; }
}
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}
@keyframes borderGlow {
    0%, 100% { border-color: rgba(200,40,40,0.3); box-shadow: 0 0 8px rgba(200,40,40,0.1); }
    50%       { border-color: rgba(200,40,40,0.65); box-shadow: 0 0 22px rgba(200,40,40,0.3); }
}
@keyframes glitchTop {
    0%, 74%, 100%  { opacity: 0; transform: translateX(0); }
    75%            { opacity: 1; transform: translateX(-6px); }
    80%            { opacity: 1; transform: translateX(5px); }
    85%            { opacity: 0; }
}
@keyframes glitchBot {
    0%, 82%, 100%  { opacity: 0; transform: translateX(0); }
    83%            { opacity: 1; transform: translateX(5px); }
    88%            { opacity: 1; transform: translateX(-5px); }
    92%            { opacity: 0; }
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}
@keyframes scanline {
    0%   { top: -5%; }
    100% { top: 105%; }
}
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes progressFill {
    from { width: 0; }
}

/* ======== SCROLL REVEAL ======== */
.reveal, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal       { transform: translateY(24px); }
.reveal-left  { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }
.reveal.revealed, .reveal-left.revealed, .reveal-right.revealed {
    opacity: 1;
    transform: none;
}

/* ======== SCANLINE OVERLAY ======== */
.scanline-overlay {
    pointer-events: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
}
.scanline-overlay::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.04);
    top: 0;
    animation: scanline 10s linear infinite;
}

/* ======== TYPOGRAPHY ======== */
h1 { font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
p  { line-height: 1.75; color: var(--text-secondary); margin-bottom: 1.2rem; }
a  { color: var(--blue-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }
strong { color: var(--text-primary); font-weight: 600; }
.highlight { color: var(--accent-light); font-weight: 600; }

/* ======== HEADER / NAV ======== */
.site-header {
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    background: rgba(8,8,8,0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 1000;
    transition: box-shadow 0.4s;
}
.site-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.6); }
.nav-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.4rem; font-weight: 900; text-decoration: none;
    letter-spacing: 3px; color: var(--text-primary);
    transition: all var(--transition);
    position: relative;
}
.logo::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 2px; background: var(--accent);
    transition: width var(--transition);
}
.logo:hover { color: var(--accent-light); }
.logo:hover::after { width: 100%; }
.nav-links { list-style: none; display: flex; gap: 0.2rem; align-items: center; }
.nav-links a {
    font-size: 0.76rem; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: var(--text-secondary);
    text-decoration: none; padding: 0.5rem 0.85rem; border-radius: 2px;
    transition: all var(--transition);
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-links a.cta-link {
    color: var(--accent-light); border: 1px solid var(--accent);
    padding: 0.5rem 1.1rem;
}
.nav-links a.cta-link:hover {
    background: var(--accent); color: #000; box-shadow: var(--glow-red);
}

/* ======== HERO ======== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 20% 60%, rgba(25,8,8,0.9), var(--bg-primary) 65%);
}
#hero-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0.65;
}
.hero-content {
    position: relative; z-index: 10;
    max-width: 1200px; margin: 0 auto;
    padding: 7rem 2rem 5rem;
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 4rem; align-items: center; width: 100%;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(200,40,40,0.1); border: 1px solid rgba(200,40,40,0.4);
    padding: 0.35rem 0.85rem; border-radius: 2px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--accent-light);
    margin-bottom: 1.5rem;
    animation: fadeIn 0.6s ease both;
}
.badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-light);
    animation: pulseDot 1.5s ease infinite;
    box-shadow: 0 0 8px var(--accent-light);
}
.hero-tagline {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px;
    color: var(--text-dim); font-weight: 500; margin-bottom: 1rem;
    animation: fadeIn 0.6s 0.15s ease both;
}
.hero h1 {
    margin-bottom: 1.5rem; color: var(--text-primary);
    animation: fadeUp 0.8s 0.25s ease both;
}
.glitch-text { position: relative; display: inline; }
.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; pointer-events: none;
}
.glitch-text::before { color: var(--accent); animation: glitchTop 9s infinite; }
.glitch-text::after  { color: var(--blue-accent); animation: glitchBot 9s infinite; }
.hero-subtitle {
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 3px;
    color: var(--text-dim); margin-bottom: 1.5rem; font-weight: 500;
    animation: fadeIn 0.6s 0.4s ease both;
}
.hero-description {
    font-size: 1.05rem; line-height: 1.85;
    color: var(--text-secondary); margin-bottom: 2.5rem; max-width: 520px;
    animation: fadeUp 0.8s 0.5s ease both;
}
.hero-challenge { animation: fadeUp 0.8s 0.65s ease both; }
.hero-cta {
    display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem;
    animation: fadeUp 0.8s 0.8s ease both;
}
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 2rem; background: var(--accent);
    color: #000; font-size: 0.8rem; font-weight: 800;
    letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none;
    border: none; cursor: pointer; transition: all var(--transition);
    box-shadow: var(--glow-red); position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: translateX(-100%); transition: transform 0.4s ease;
}
.btn-primary:hover {
    background: var(--accent-light); color: #000;
    box-shadow: 0 0 35px rgba(200,40,40,0.55); transform: translateY(-2px);
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-secondary {
    display: inline-flex; align-items: center; padding: 0.9rem 2rem;
    border: 1px solid var(--border-bright); color: var(--text-secondary);
    font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; text-decoration: none; transition: all var(--transition);
}
.btn-secondary:hover { border-color: var(--text-primary); color: var(--text-primary); background: rgba(255,255,255,0.03); }
.hero-visual {
    position: relative; display: flex;
    justify-content: center; align-items: center;
    animation: fadeIn 1.2s 1s ease both;
}
.hero-graphic {
    width: 100%; max-width: 400px; height: auto;
    filter: drop-shadow(0 0 30px rgba(200,40,40,0.18));
    animation: floatY 5s ease-in-out infinite;
}
.hero-scroll-hint {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    z-index: 10; animation: fadeIn 1s 1.8s ease both;
}
.hero-scroll-hint span { font-size: 0.62rem; letter-spacing: 3px; text-transform: uppercase; color: var(--text-dim); }
.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--text-dim), transparent);
    animation: floatY 2s ease-in-out infinite;
}

/* ======== THREAT TICKER ======== */
.threat-ticker {
    background: rgba(200,40,40,0.05);
    border-top: 1px solid rgba(200,40,40,0.2);
    border-bottom: 1px solid rgba(200,40,40,0.2);
    height: 44px; display: flex; align-items: stretch; overflow: hidden;
}
.ticker-label {
    background: var(--accent); color: #000;
    font-size: 0.68rem; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 0 1.5rem; display: flex; align-items: center; flex-shrink: 0; white-space: nowrap;
}
.ticker-wrap { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-move {
    display: inline-flex; gap: 0; white-space: nowrap;
    animation: tickerScroll 80s linear infinite;
    font-size: 0.76rem; color: var(--text-secondary);
}
.ticker-item { padding: 0 2rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.ticker-item.critical { color: var(--accent-light); font-weight: 600; }
.ticker-sep { color: var(--accent); opacity: 0.4; }

/* ======== QUANTUM STATS SECTION ======== */
.quantum-stats { padding: 5rem 2rem; background: var(--bg-primary); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-label {
    display: inline-block; font-size: 0.68rem; font-weight: 800;
    letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent);
    border: 1px solid rgba(200,40,40,0.35); padding: 0.28rem 0.7rem;
    border-radius: 2px; margin-bottom: 0.75rem;
}
.section-header h2 { color: var(--text-primary); margin-bottom: 0.75rem; text-align: center; }
.section-header p { font-size: 1.05rem; color: var(--text-secondary); margin: 0; }
.stats-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem;
}
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 2rem; position: relative; overflow: hidden;
    transition: all var(--transition);
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0); transform-origin: left; transition: transform 0.45s ease;
}
.stat-card:hover { border-color: var(--border-bright); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.stat-card:hover::before { transform: scaleX(1); }
.stat-card.blue::before { background: linear-gradient(90deg, var(--blue-accent), var(--blue-light)); }
.stat-number {
    display: block; font-size: 2.8rem; font-weight: 900;
    color: var(--accent-light); line-height: 1; margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    animation: countUp 0.6s ease both;
}
.stat-card.blue .stat-number { color: var(--blue-light); }
.stat-label {
    font-size: 0.82rem; font-weight: 700; color: var(--text-primary);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.4rem;
}
.stat-desc { font-size: 0.8rem; color: var(--text-dim); line-height: 1.6; margin: 0; }

/* ======== ABOUT SECTION ======== */
.about { max-width: 1200px; margin: 4rem auto; padding: 0 2rem; }
.about h2 {
    font-size: 2.2rem; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 1.5rem;
    font-family: var(--font-serif); text-transform: uppercase; text-align: center;
    color: var(--text-primary);
}
.about-content {
    background: var(--bg-card); padding: 3rem;
    border: 1px solid var(--border); border-left: 3px solid var(--accent);
}
.about-content p { margin-bottom: 1.5rem; }
.about-list { list-style: none; margin: 1.5rem 0 2rem; padding: 0; }
.about-list li {
    margin-bottom: 1rem; padding-left: 1.5rem;
    position: relative; line-height: 1.7; color: var(--text-secondary); font-size: 0.95rem;
}
.about-list li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

/* ======== SERVICES SECTION ======== */
.services { max-width: 1200px; margin: 4rem auto; padding: 0 2rem; }
.services h2 {
    font-size: 2.2rem; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 1.5rem;
    font-family: var(--font-serif); text-transform: uppercase; text-align: center;
    color: var(--text-primary);
}
.services-intro { text-align: center; font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 3rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.service-card {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 2.25rem; transition: all var(--transition);
    position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0; transition: opacity var(--transition);
}
.service-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(200,40,40,0.03), transparent);
    opacity: 0; transition: opacity var(--transition);
}
.service-card:hover { border-color: rgba(200,40,40,0.35); transform: translateY(-5px); box-shadow: 0 12px 35px rgba(0,0,0,0.45); }
.service-card:hover::before, .service-card:hover::after { opacity: 1; }
.service-icon { margin-bottom: 1.5rem; display: flex; justify-content: center; height: 80px; }
.service-icon svg { width: 80px; height: 80px; opacity: 0.8; transition: opacity var(--transition), filter var(--transition); }
.service-card:hover .service-icon svg { opacity: 1; filter: drop-shadow(0 0 8px rgba(200,40,40,0.5)); }
.service-card h3 {
    font-size: 1rem; font-weight: 700; margin-bottom: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-primary);
    position: relative; z-index: 1;
}
.service-card p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.7; position: relative; z-index: 1; }
.service-link {
    color: var(--blue-light); font-weight: 700; font-size: 0.82rem;
    border-bottom: 1px solid transparent; transition: all var(--transition);
    text-transform: uppercase; letter-spacing: 0.5px; position: relative; z-index: 1;
}
.service-link:hover { color: var(--accent-light); border-bottom-color: var(--accent-light); }

/* ======== MATURITY MODEL ======== */
.maturity { max-width: 1200px; margin: 4rem auto; padding: 3rem 2rem; background: var(--bg-card); border: 1px solid var(--border); }
.maturity h2 {
    font-size: 2.2rem; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 0.5rem;
    font-family: var(--font-serif); text-transform: uppercase; text-align: center; color: var(--text-primary);
}
.maturity-subtitle {
    text-align: center; font-size: 0.9rem; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2.5rem; font-weight: 500;
}
.maturity-timeline {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem;
    overflow-x: auto; padding-bottom: 1rem;
}
.timeline-stage { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.stage-name {
    padding: 8px 18px; background: var(--bg-primary); border: 1px solid var(--accent);
    color: var(--accent); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.5px;
    border-radius: 2px; cursor: default; transition: all var(--transition);
}
.stage-name:hover { background: rgba(200,40,40,0.12); color: var(--accent-light); box-shadow: var(--glow-red); }
.arrow { color: var(--accent); font-weight: bold; font-size: 1.2rem; opacity: 0.6; }
.maturity-caption { text-align: center; font-size: 0.88rem; color: var(--text-dim); margin-bottom: 0; }

/* ======== QUANTUM THREAT TIMELINE (NEW) ======== */
.quantum-timeline-section { padding: 5rem 2rem; background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.quantum-timeline-section h2 { text-align: center; color: var(--text-primary); margin-bottom: 0.75rem; }
.quantum-timeline-section .section-sub { text-align: center; font-size: 1rem; color: var(--text-secondary); margin-bottom: 3.5rem; }
.qt-inner { max-width: 900px; margin: 0 auto; position: relative; }
.qt-inner::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--border-bright); transform: translateX(-50%); }
.qt-item {
    display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: center; margin-bottom: 2.5rem;
}
.qt-item:last-child { margin-bottom: 0; }
.qt-content {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 1.25rem 1.5rem; transition: all var(--transition);
}
.qt-content:hover { border-color: var(--border-bright); }
.qt-item.right .qt-content { grid-column: 3; }
.qt-item.left  .qt-content { grid-column: 1; }
.qt-year {
    font-size: 1.1rem; font-weight: 900; color: var(--accent-light);
    letter-spacing: -0.02em; margin-bottom: 0.3rem;
}
.qt-content h4 { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.35rem; }
.qt-content p { font-size: 0.8rem; line-height: 1.6; color: var(--text-secondary); margin: 0; }
.qt-node {
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid var(--accent); background: var(--bg-primary);
    grid-column: 2; position: relative; z-index: 1;
    box-shadow: 0 0 10px rgba(200,40,40,0.4);
}
.qt-node.active {
    background: var(--accent);
    animation: pulseDot 1.5s ease infinite;
    box-shadow: 0 0 15px rgba(200,40,40,0.7);
}
.qt-spacer { grid-column: 1; }

/* ======== CTA SECTION ======== */
.cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(200,40,40,0.09) 0%, var(--bg-primary) 55%);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    margin: 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(200,40,40,0.07), transparent 65%);
    pointer-events: none;
}
.cta-content { max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }
.cta-content h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--text-primary); margin-bottom: 1rem; text-align: center; }
.cta-content p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2.5rem; line-height: 1.8; }
.cta-button {
    padding: 1rem 2.5rem; background: var(--accent); color: #000;
    border: none; font-family: var(--font-sans); font-size: 0.82rem; font-weight: 900;
    letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer;
    transition: all var(--transition); box-shadow: var(--glow-red);
}
.cta-button:hover { background: var(--accent-light); box-shadow: 0 0 45px rgba(200,40,40,0.55); transform: translateY(-3px); }

/* ======== FOOTER AREA ======== */
.philosophy-footer {
    max-width: 1200px; margin: 3rem auto; padding: 3rem 2rem;
    text-align: center; border: 1px solid var(--border); background: var(--bg-card);
}
.philosophy-footer h3 { font-size: 1.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-primary); margin-bottom: 1rem; }
.philosophy-footer p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.25rem; }
.footer-contact { margin-bottom: 0 !important; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dim); }
.site-footer { border-top: 1px solid var(--border); padding: 2rem; text-align: center; background: var(--bg-primary); }
.site-footer p { margin: 0; font-size: 0.8rem; color: var(--text-dim); letter-spacing: 0.5px; }

/* ======== INNER PAGE HERO ======== */
.page-hero {
    position: relative; padding: 5rem 2rem 4rem;
    overflow: hidden; border-bottom: 1px solid var(--border);
    background: linear-gradient(160deg, rgba(25,8,8,0.7) 0%, var(--bg-primary) 60%);
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 110%, rgba(200,40,40,0.08), transparent 65%);
    pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; text-align: center; }
.page-badge {
    display: inline-block; font-size: 0.68rem; font-weight: 800;
    letter-spacing: 3px; text-transform: uppercase; color: var(--accent);
    border: 1px solid rgba(200,40,40,0.4); padding: 0.28rem 0.8rem; border-radius: 2px;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.6s ease both;
}
.page-hero-content h1 {
    font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 900; color: var(--text-primary);
    margin-bottom: 1.5rem; line-height: 1;
    animation: fadeUp 0.8s 0.2s ease both;
}
.page-intro {
    font-size: 1.1rem; color: var(--text-secondary); line-height: 1.8;
    max-width: 680px; margin: 0 auto 2rem;
    animation: fadeUp 0.8s 0.4s ease both;
}
.page-meta {
    display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
    animation: fadeIn 0.8s 0.6s ease both;
}
.meta-tag {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text-dim); background: rgba(255,255,255,0.04);
    border: 1px solid var(--border); padding: 0.28rem 0.7rem; border-radius: 2px;
}

/* ======== THREAT ALERT BANNER ======== */
.threat-alert {
    background: rgba(200,40,40,0.06); border: 1px solid rgba(200,40,40,0.3);
    margin: 3rem auto; max-width: 1200px; padding: 0 2rem;
    animation: borderGlow 3.5s ease infinite;
}
.alert-inner {
    display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem 0;
    border-left: 4px solid var(--accent); padding-left: 1.5rem;
}
.alert-icon { font-size: 1.8rem; flex-shrink: 0; animation: pulseDot 1.5s ease infinite; }
.alert-content strong { display: block; font-size: 0.82rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-light); margin-bottom: 0.35rem; }
.alert-content p { font-size: 0.86rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* ======== RESEARCH ARTICLES ======== */
.research-article { max-width: 1200px; margin: 0 auto 3.5rem; padding: 0 2rem 3rem; border-bottom: 1px solid var(--border); }
.research-article:last-of-type { border-bottom: none; }
.research-article h2 { text-align: left; font-size: 1.7rem; font-weight: 700; margin-bottom: 1.5rem; text-transform: capitalize; letter-spacing: -0.01em; color: var(--text-primary); }
.research-article p { font-size: 0.95rem; line-height: 1.85; margin-bottom: 1.3rem; }
.research-list { margin-left: 1.5rem; margin-bottom: 1.5rem; list-style: none; padding: 0; }
.research-list li { margin-bottom: 1rem; color: var(--text-secondary); line-height: 1.7; padding-left: 1.5rem; position: relative; font-size: 0.93rem; }
.research-list li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); font-weight: bold; }
.research-list li strong { color: var(--text-primary); }
.uncertainty-note {
    margin-top: 1.5rem; padding: 1rem 1.5rem;
    border-left: 3px solid var(--accent); background: rgba(200,40,40,0.04);
    color: var(--text-secondary); font-size: 0.9rem; font-style: italic; line-height: 1.7;
}
.uncertainty-note strong { color: var(--accent); font-style: normal; }
.research-status {
    max-width: 1200px; margin: 3rem auto; padding: 2rem;
    background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent); text-align: center;
}
.research-status p { margin: 0; color: var(--text-secondary); line-height: 1.8; font-size: 0.92rem; }

/* ======== QUANTUM RESEARCH CARDS ======== */
.quantum-research { padding: 5rem 2rem; background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.quantum-research-inner { max-width: 1200px; margin: 0 auto; }
.research-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.research-card {
    background: var(--bg-primary); border: 1px solid var(--border);
    padding: 1.75rem; position: relative; transition: all var(--transition);
}
.research-card:hover { border-color: var(--border-bright); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.4); }
.rc-type {
    font-size: 0.63rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 0.75rem; padding: 0.22rem 0.6rem; border-radius: 2px; display: inline-block;
}
.rc-type.critical { color: var(--accent-light); background: rgba(200,40,40,0.12); border: 1px solid rgba(200,40,40,0.3); }
.rc-type.warning  { color: var(--orange);       background: rgba(249,115,22,0.1);  border: 1px solid rgba(249,115,22,0.3); }
.rc-type.info     { color: var(--blue-light);   background: rgba(74,158,255,0.1);  border: 1px solid rgba(74,158,255,0.3); }
.rc-type.milestone{ color: var(--green);        background: rgba(34,197,94,0.1);   border: 1px solid rgba(34,197,94,0.3); }
.research-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; line-height: 1.3; }
.research-card p  { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }
.card-source { font-size: 0.68rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-top: 1rem; padding-top: 0.7rem; border-top: 1px solid var(--border); }

/* ======== ALGORITHM TABLE ======== */
.algo-table-section { padding: 5rem 2rem; background: var(--bg-primary); }
.algo-table-inner { max-width: 1200px; margin: 0 auto; }
.table-wrapper { overflow-x: auto; margin-top: 2.5rem; border: 1px solid var(--border); }
.algo-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.algo-table th {
    text-align: left; padding: 0.85rem 1.2rem;
    font-size: 0.7rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text-dim); border-bottom: 1px solid var(--border); background: var(--bg-secondary);
}
.algo-table td { padding: 1rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--text-secondary); vertical-align: middle; }
.algo-table tr:hover td { background: rgba(255,255,255,0.015); }
.algo-table td:first-child { font-weight: 700; color: var(--text-primary); font-family: var(--font-mono); font-size: 0.9rem; }
.threat-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.68rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    padding: 0.22rem 0.6rem; border-radius: 2px;
}
.threat-badge.critical { color: var(--accent-light); background: rgba(200,40,40,0.12); }
.threat-badge.high     { color: var(--orange);       background: rgba(249,115,22,0.1);  }
.threat-badge.medium   { color: var(--yellow);       background: rgba(234,179,8,0.1);   }
.threat-badge.safe     { color: var(--green);        background: rgba(34,197,94,0.1);   }

/* ======== TOOL SHOWCASE ======== */
.tool-showcase { padding: 5rem 2rem; background: var(--bg-secondary); border-top: 1px solid var(--border); }
.tool-showcase-inner { max-width: 1200px; margin: 0 auto; }
.tool-header { max-width: 820px; margin-bottom: 3.5rem; }
.tool-badges { display: flex; gap: 0.6rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.tool-badge {
    font-size: 0.67rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 0.25rem 0.65rem; border-radius: 2px;
}
.tool-badge.open-source { color: var(--green);        border: 1px solid rgba(34,197,94,0.35);   background: rgba(34,197,94,0.07); }
.tool-badge.enterprise  { color: var(--accent-light); border: 1px solid rgba(200,40,40,0.35);   background: rgba(200,40,40,0.07); }
.tool-badge.python      { color: var(--blue-light);   border: 1px solid rgba(74,158,255,0.35);  background: rgba(74,158,255,0.07); }
.tool-badge.version     { color: var(--text-dim);     border: 1px solid var(--border);          background: transparent; }
.tool-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--text-primary);
    margin-bottom: 1rem; text-transform: none; letter-spacing: -0.02em; text-align: left; line-height: 1.2;
}
.tool-header > p { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; margin: 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.feature-card {
    background: var(--bg-primary); border: 1px solid var(--border);
    padding: 1.4rem; display: flex; gap: 1rem; align-items: flex-start;
    transition: all var(--transition);
}
.feature-card:hover { border-color: var(--border-bright); background: rgba(255,255,255,0.01); }
.feature-icon { font-size: 1.3rem; flex-shrink: 0; line-height: 1; margin-top: 0.1rem; }
.feature-text h4 { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.25rem; }
.feature-text p  { font-size: 0.79rem; color: var(--text-dim); line-height: 1.55; margin: 0; }
.interfaces-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 3rem; }
.interface-card {
    background: var(--bg-primary); border: 1px solid var(--border);
    padding: 2rem; text-align: center; transition: all var(--transition);
}
.interface-card:hover { border-color: rgba(200,40,40,0.3); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.35); }
.if-icon { font-size: 2.8rem; margin-bottom: 1rem; }
.interface-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.35rem; }
.interface-card p  { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }
.if-cmd { display: block; font-family: var(--font-mono); font-size: 0.76rem; background: var(--bg-secondary); border: 1px solid var(--border); padding: 0.45rem 0.75rem; border-radius: 2px; color: var(--green); text-align: left; }

/* Code Terminal */
.code-block-section { margin-bottom: 3rem; }
.code-block-section h3 { font-size: 0.85rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 1rem; }
.code-terminal { background: #0c0c0c; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.terminal-bar { background: #161616; padding: 0.7rem 1rem; display: flex; align-items: center; gap: 0.45rem; border-bottom: 1px solid var(--border); }
.term-dot { width: 12px; height: 12px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #febc2e; }
.term-dot.g { background: #28c840; }
.terminal-title { margin-left: 0.5rem; font-size: 0.7rem; color: var(--text-dim); font-family: var(--font-mono); }
.terminal-body { padding: 1.5rem; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.8; overflow-x: auto; color: #c3c8c8; }
.terminal-body .cmt  { color: #4a5568; }
.terminal-body .kw   { color: #a78bfa; }
.terminal-body .str  { color: #86efac; }
.terminal-body .fn   { color: #7dd3fc; }
.terminal-body .num  { color: #fbbf24; }
.terminal-body .out  { color: var(--green); margin-top: 0.25rem; }
.terminal-body .prompt { color: var(--accent-light); }

/* Risk Levels */
.risk-section { margin-top: 0; }
.risk-section h3 { font-size: 0.85rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 1.5rem; }
.risk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.risk-card { background: var(--bg-primary); border: 1px solid var(--border); padding: 1.5rem; text-align: center; }
.risk-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.risk-card h4 { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.35rem; }
.risk-card p  { font-size: 0.77rem; color: var(--text-dim); line-height: 1.5; margin: 0; }
.risk-card.critical h4 { color: var(--accent-light); }
.risk-card.high     h4 { color: var(--orange); }
.risk-card.medium   h4 { color: var(--yellow); }
.risk-card.low      h4 { color: var(--green); }

/* ======== BACKWARD COMPAT (existing inner pages) ======== */
.page-header { padding: 3rem 2rem; border-bottom: 1px solid var(--border); margin-bottom: 3rem; max-width: 1200px; margin-left: auto; margin-right: auto; }
.page-icon { margin-bottom: 2rem; display: flex; justify-content: center; }
.page-icon svg { width: 100px; height: 100px; opacity: 0.6; transition: opacity var(--transition); }
.page-header:hover .page-icon svg { opacity: 0.9; }
.page-header h1 { margin-bottom: 0.8rem; }
.philosophy-article { max-width: 1200px; margin: 0 auto 3rem; padding: 0 2rem; }
.philosophy-article h2 { text-align: left; font-size: 1.7rem; font-weight: 700; text-transform: none; margin-bottom: 1.25rem; }
.philosophy-list, .refuses-list, .philosophy-reasons { margin-left: 1.5rem; margin-bottom: 1.5rem; }
.philosophy-list li, .refuses-list li, .philosophy-reasons li { margin-bottom: 1rem; color: var(--text-secondary); line-height: 1.75; }
.philosophy-closing { max-width: 1200px; margin: 3rem auto; padding: 2rem; text-align: center; background: var(--bg-card); border: 1px solid var(--border); }
.philosophy-closing p { color: var(--text-secondary); }

/* ======== RESPONSIVE ======== */
@media (max-width: 1024px) {
    .interfaces-grid { grid-template-columns: 1fr 1fr; }
    .risk-grid { grid-template-columns: repeat(2, 1fr); }
    .qt-inner::before { left: 20px; }
    .qt-item { grid-template-columns: auto auto 1fr; margin-left: 10px; }
    .qt-item .qt-content { grid-column: 3; }
    .qt-spacer { display: none; }
    .qt-node { grid-column: 2; }
}
@media (max-width: 768px) {
    .hero-content { grid-template-columns: 1fr; padding: 5rem 1.5rem 3rem; gap: 2rem; }
    .hero-visual { display: none; }
    .hero { min-height: auto; }
    .nav-links a { padding: 0.4rem 0.6rem; font-size: 0.68rem; }
    .nav-links { gap: 0; }
    .services-grid, .features-grid { grid-template-columns: 1fr; }
    .maturity-timeline { flex-direction: column; gap: 0.; }
    .arrow { transform: rotate(90deg); display: block; text-align: center; margin: 0.25rem 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .research-cards { grid-template-columns: 1fr; }
    .interfaces-grid { grid-template-columns: 1fr; }
    .risk-grid { grid-template-columns: repeat(2, 1fr); }
    .qt-inner::before { display: none; }
    .qt-item { grid-template-columns: 1fr; }
    .qt-node { display: none; }
    .qt-spacer { display: none; }
    .qt-item .qt-content { grid-column: 1; }
    .threat-ticker { height: auto; flex-direction: column; min-height: 0; }
    .ticker-label { justify-content: center; padding: 0.5rem 1rem; width: 100%; }
    .ticker-wrap { padding: 0.4rem 1rem; }
    .hero-cta { flex-direction: column; align-items: flex-start; }
    .alert-inner { flex-direction: column; gap: 0.75rem; }
}
@media (max-width: 480px) {
    .stats-grid  { grid-template-columns: 1fr; }
    .risk-grid   { grid-template-columns: 1fr; }
    .research-article { padding: 0 1rem 2rem; }
    .tool-showcase, .quantum-research, .algo-table-section { padding: 3rem 1rem; }
    .services { padding: 0 1rem; }
    .page-hero { padding: 4rem 1.5rem 3rem; }
    .about { padding: 0 1.5rem; }
    .maturity { padding: 2rem 1.5rem; }
}


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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 16px;
}

/* Typography */

h1 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
    text-transform: uppercase;
    text-align: center;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    line-height: 1.7;
}

a {
    color: var(--blue-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Header & Navigation */

.site-header {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.nav-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.85rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    border-bottom-color: var(--accent);
    color: var(--accent);
}

.nav-links a.cta-link {
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 8px 16px;
    border-radius: 2px;
    font-weight: 600;
}

.nav-links a.cta-link:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* Main Layout */

main {
    width: 100%;
}

/* Hero Section */

.hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(10, 10, 10, 1) 0%, rgba(15, 20, 25, 0.8) 100%);
    border-bottom: 1px solid var(--border);
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    z-index: 10;
}

.hero-tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-challenge {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.highlight {
    color: var(--accent-light);
    font-weight: 600;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    width: 100%;
    max-width: 400px;
    height: auto;
    opacity: 0.95;
}

/* About Section */

.about {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.about-content {
    background-color: var(--bg-secondary);
    padding: 3rem;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about-list {
    list-style: none;
    margin: 1.5rem 0 2rem 0;
    padding: 0;
}

.about-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
}

.about-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Services Section */

.services {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.services-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent);
    background-color: rgba(204, 51, 51, 0.05);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    height: 80px;
}

.service-icon svg {
    width: 80px;
    height: 80px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon svg {
    opacity: 1;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-link {
    color: var(--blue-accent);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.service-link:hover {
    color: var(--accent-light);
    border-bottom-color: var(--accent-light);
}

/* Maturity Model Section */

.maturity {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
}

.maturity h2 {
    margin-bottom: 0.5rem;
}

.maturity-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    font-weight: 500;
}

.maturity-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.timeline-stage {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.stage-name {
    padding: 8px 16px;
    background-color: var(--bg-primary);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-radius: 2px;
}

.arrow {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.maturity-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* CTA Section */

.cta-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(204, 51, 51, 0.1) 0%, rgba(15, 20, 25, 1) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 3rem 0;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-button {
    padding: 12px 32px;
    background-color: var(--accent);
    color: var(--bg-primary);
    border: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(204, 51, 51, 0.3);
}

.cta-button:hover {
    background-color: var(--accent-light);
    box-shadow: 0 0 30px rgba(204, 51, 51, 0.5);
    transform: translateY(-2px);
}

/* Philosophy Footer */

.philosophy-footer {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--border);
    background-color: var(--bg-secondary);
}

.philosophy-footer h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.philosophy-footer p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-contact {
    margin-bottom: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* Site Footer */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    background-color: var(--bg-primary);
}

.site-footer p {
    margin: 0;
}

/* Research Pages */

.page-header {
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.page-icon svg {
    width: 100px;
    height: 100px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.page-header:hover .page-icon svg {
    opacity: 0.9;
}

.page-header h1 {
    margin-bottom: 0.8rem;
    font-size: 2.8rem;
}

.page-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.research-article {
    max-width: 1200px;
    margin: 0 auto 3.5rem;
    padding: 0 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2.5rem;
}

.research-article:last-of-type {
    border-bottom: none;
}

.research-article h2 {
    text-align: left;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
}

.research-article p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.3rem;
}

.research-list {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    list-style: none;
}

.research-list li {
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.7;
    padding-left: 1.5rem;
    position: relative;
}

.research-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.research-list li strong {
    color: var(--text-primary);
}

.uncertainty-note {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--accent);
    background-color: rgba(204, 51, 51, 0.05);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-style: italic;
}

.uncertainty-note strong {
    color: var(--accent);
}

.research-status {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    text-align: center;
}

.research-status p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

.philosophy-list {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.philosophy-list li {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.philosophy-list li strong {
    color: var(--text-primary);
}

.refuses-list {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.refuses-list li {
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.refuses-list li strong {
    color: var(--text-primary);
}

.philosophy-reasons {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.philosophy-reasons li {
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.philosophy-closing {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
}

.philosophy-closing p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Responsive */

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero {
        min-height: auto;
        padding: 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.8rem;
    }

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

    .maturity-timeline {
        flex-direction: column;
        gap: 1rem;
    }

    .arrow {
        transform: rotate(90deg);
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .nav-links {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .hero {
        padding: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .research-article {
        padding: 0 1rem;
    }

    .page-header {
        padding: 1.5rem;
    }
}
