:root {
    --accent-red: #ef233c;
    --accent-red-glow: rgba(239, 35, 60, 0.5);
}

/* Animations */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes border-spin {
    from { --gradient-angle: 0deg; }
    to { --gradient-angle: 360deg; }
}

@keyframes animStar {
    from { transform: translateY(0px); }
    to { transform: translateY(-2000px); }
}

@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

/* Fonts */
.font-manrope { font-family: 'Manrope', sans-serif; }
.font-outfit { font-family: 'Outfit', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* Shiny CTA Button */
.shiny-cta {
    --gradient-angle: 0deg;
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
    padding: 1rem 2.5rem;
    background: linear-gradient(#0a0a0a, #0a0a0a) padding-box,
    conic-gradient(from var(--gradient-angle), transparent 0%, #ef233c 5%, #ef233c 15%, #ef233c 30%, transparent 40%, transparent 100%) border-box;
    border: 2px solid transparent;
    cursor: pointer;
    isolation: isolate;
    animation: border-spin 2.5s linear infinite;
    transition: transform 0.2s ease;
}

.shiny-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, white 0.5px, transparent 0);
    background-size: 4px 4px;
    opacity: 0.1;
    z-index: 0;
}

.shiny-cta:active {
    transform: scale(0.98);
}

/* Parallax Stars */
.stars-1 {
    box-shadow: 234px 124px #fff, 654px 345px #fff, 876px 12px #fff, 1200px 800px #fff,
    400px 1500px #fff, 1800px 200px #fff, 100px 1000px #fff, 900px 1900px #fff,
    500px 600px #fff, 1400px 100px #fff, 300px 400px #fff, 1600px 1200px #fff;
}

.stars-2 {
    box-shadow: 123px 456px #fff, 789px 234px #fff, 456px 890px #fff, 1100px 300px #fff,
    200px 1200px #fff, 1500px 500px #fff, 600px 1700px #fff, 1300px 900px #fff;
}

/* Top blur gradient */
.gradient-blur {
    position: fixed;
    z-index: 40;
    inset: 0 0 auto 0;
    height: 120px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.8), transparent);
    backdrop-filter: blur(8px);
    mask-image: linear-gradient(to bottom, black, transparent);
}

/* Selection */
.selection-red::selection {
    background: #ef233c;
    color: white;
}

.selection-red *::selection {
    background: #ef233c;
    color: white;
}

/* Text stroke watermark */
.text-stroke {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    color: transparent;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Fade-up for hero load animations */
.animate-fade-up {
    animation: fade-in-up 0.8s ease-out forwards;
    opacity: 0;
}

/* Button active state */
button:active {
    transform: scale(0.98);
}

/* Form focus states */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-red) !important;
}

/* Stat number monospace */
.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
}

/* Nav active link */
.nav-link-active {
    color: white !important;
}

/* Mobile nav */
.mobile-nav-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    margin-top: 0.5rem;
    padding: 1.5rem;
    gap: 1rem;
}

/* Sector card hover glow */
.sector-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sector-card:hover {
    border-color: rgba(239, 35, 60, 0.3);
    box-shadow: 0 0 30px rgba(239, 35, 60, 0.08);
}

/* Blog card image hover */
.blog-card img {
    transition: opacity 0.3s ease;
}

.blog-card:hover img {
    opacity: 0.8;
}

/* Article body prose */
.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

/* Smooth scrollbar */
html {
    scroll-behavior: smooth;
}

/* Hide scrollbar for clean look */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
