@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --kojin-red: #ff4757;
    --kojin-gold: #ffd93d;
    --kojin-dark-red: #ee5a6f;
    --kojin-dark-gold: #feca57;
    --dark-navy: #1e272e;
    --darker-navy: #151a1e;
    --darkest-navy: #0a0e12;
    --text-primary: #ffffff;
    --text-secondary: #b2bec3;
    --text-muted: #636e72;
    --accent-blue: #6c5ce7;
    --success-green: #00b894;
    --status-operational: #22c55e;
    --status-degraded: #f59e0b;
    --status-outage: #ef4444;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--darkest-navy);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dynamic Background */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 20% 30%, rgba(34, 197, 94, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 217, 61, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(108, 92, 231, 0.08) 0%, transparent 60%),
        linear-gradient(135deg, var(--darkest-navy) 0%, var(--darker-navy) 50%, var(--dark-navy) 100%);
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-sword {
    position: absolute;
    width: 250px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.3), transparent);
    transform-origin: left center;
    animation: floatSword 25s ease-in-out infinite;
    filter: blur(1px);
}

.sword-1 { top: 15%; left: 5%; animation-delay: 0s; }
.sword-2 { top: 65%; right: 5%; animation-delay: 8s; }
.sword-3 { top: 40%; left: 25%; animation-delay: 16s; }

@keyframes floatSword {
    0%, 100% { transform: translateY(0) rotate(15deg); opacity: 0.4; }
    25% { transform: translateY(-40px) rotate(25deg); opacity: 0.7; }
    50% { transform: translateY(-20px) rotate(10deg); opacity: 0.5; }
    75% { transform: translateY(20px) rotate(30deg); opacity: 0.8; }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--success-green);
    border-radius: 50%;
    animation: floatParticle 18s linear infinite;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) translateX(0) scale(0); opacity: 0; }
    10% { opacity: 1; transform: scale(1); }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(100px) scale(0); opacity: 0; }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.25rem 2rem;
    background: rgba(10, 14, 18, 0.85);
    backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(255, 217, 61, 0.2);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    background: rgba(10, 14, 18, 0.95);
    border-bottom-color: rgba(255, 71, 87, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 1rem 2rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 71, 87, 0.6);
    animation: logoGlow 3s ease-in-out infinite;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes logoGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 71, 87, 0.6); }
    50% { box-shadow: 0 0 50px rgba(255, 71, 87, 0.9), 0 0 70px rgba(255, 217, 61, 0.5); }
}

.logo:hover {
    transform: translateY(-2px);
}

.logo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    background: rgba(30, 39, 46, 0.6);
    border-radius: 16px;
    padding: 0.5rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.625rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(255, 217, 61, 0.15));
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    z-index: -1;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    opacity: 1;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

/* Page Header */
.page-header {
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10rem 2rem 4rem;
    position: relative;
}

.page-header-content {
    max-width: 900px;
    animation: heroEntrance 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes heroEntrance {
    0% { opacity: 0; transform: translateY(50px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--success-green);
    margin-bottom: 2rem;
}

.badge-icon {
    font-size: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.page-header h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--success-green) 0%, var(--kojin-gold) 50%, var(--success-green) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease-in-out infinite;
    letter-spacing: -2px;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.overall-status {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--success-green);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success-green);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.8);
    animation: pulse 2s ease-in-out infinite;
}

/* Status Section */
.status-section {
    padding: 4rem 2rem 8rem;
}

.status-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--kojin-red), var(--kojin-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(30, 39, 46, 0.7), rgba(21, 26, 30, 0.5));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 20px 50px rgba(34, 197, 94, 0.2);
}

.service-card.featured {
    border-color: rgba(255, 217, 61, 0.4);
    box-shadow: 0 0 30px rgba(255, 217, 61, 0.15);
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, var(--kojin-red), var(--kojin-gold));
    color: var(--darkest-navy);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 217, 61, 0.4);
    z-index: 10;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.service-avatar {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(34, 197, 94, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.service-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card:hover .service-avatar {
    transform: scale(1.1) rotate(-5deg);
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.service-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.service-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.service-status.operational {
    background: rgba(34, 197, 94, 0.2);
    color: var(--status-operational);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.service-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.metric {
    text-align: center;
    padding: 1rem;
    background: rgba(10, 14, 18, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    transition: all 0.3s ease;
}

.metric:hover {
    background: rgba(10, 14, 18, 0.8);
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-2px);
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--success-green), #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Uptime Chart */
.uptime-chart {
    background: rgba(10, 14, 18, 0.4);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    margin: 4rem 0;
}

.chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 120px;
    padding: 1.5rem 0;
    margin: 2rem 0;
}

.chart-bar {
    width: 6px;
    background: var(--status-operational);
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.chart-bar:hover {
    background: var(--kojin-gold);
    transform: scaleY(1.1);
    filter: brightness(1.2);
}

.chart-bar.degraded {
    background: var(--status-degraded);
}

.chart-bar.outage {
    background: var(--status-outage);
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.operational {
    background: var(--status-operational);
}

.legend-color.degraded {
    background: var(--status-degraded);
}

.legend-color.outage {
    background: var(--status-outage);
}

/* Performance Stats */
.performance-stats {
    margin: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(30, 39, 46, 0.7), rgba(21, 26, 30, 0.5));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--kojin-gold), var(--kojin-dark-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Incidents Section */
.incidents-section {
    background: rgba(10, 14, 18, 0.4);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    margin: 4rem 0;
}

.no-incidents {
    text-align: center;
    padding: 3rem 2rem;
}

.no-incidents-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.no-incidents h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--success-green);
    margin-bottom: 1rem;
}

.no-incidents p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.no-incidents-subtext {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Footer */
footer {
    background: rgba(10, 14, 18, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-links a:hover,
.footer-links a.active {
    color: var(--kojin-gold);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .page-header {
        padding: 8rem 1.5rem 3rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-metrics {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-legend {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}