/* Montrose Custom Fonts */

/* Montrose Sans Neue - Primary sans-serif (variable font) */
@font-face {
    font-family: 'Montrose Sans Neue';
    src: url('fonts/MontroseSansNeue.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Nicephore Montrose - Brand serif font for headings */
@font-face {
    font-family: 'Nicephore Montrose';
    src: url('fonts/NicephoreMontrose-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nicephore Montrose';
    src: url('fonts/NicephoreMontrose-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nicephore Montrose';
    src: url('fonts/NicephoreMontrose-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Font families */
    --font-brand: 'Nicephore Montrose', Georgia, 'Times New Roman', serif;
    --font-sans: 'Montrose Sans Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Background colors */
    --bg-100: #0f0107;
    --bg-200: #1c020c;
    --bg-300: #350619;
    
    /* Foreground colors */
    --fg-primary: white;
    --fg-secondary: rgba(255, 217, 223, 0.9);
    --fg-tertiary: rgba(255, 217, 223, 0.75);
    --fg-quarternary: rgba(255, 242, 244, 0.6);
    --fg-disabled: rgba(255, 247, 249, 0.45);
    
    /* Border colors */
    --border: rgba(255, 128, 191, 0.08);
    --border-default: 0.5px;
    
    /* State colors */
    --state-positive: #5dda91;
    --state-positive-15: rgba(93, 218, 145, 0.15);
    --state-semi-negative: #ff7f31;
    --state-semi-negative-15: rgba(255, 127, 49, 0.15);
    --state-negative: #ff4767;
    --state-negative-15: rgba(255, 71, 103, 0.15);
    
    /* Button colors */
    --button-primary: rgba(229, 34, 116, 0.2);
    --button-border: rgba(255, 128, 191, 0.08);
    
    /* Link color */
    --link-color: #FF92A5;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-100);
    color: var(--fg-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main container */
.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 8px;
}

/* Top Navigation */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    height: 64px;
    gap: 24px;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.nav-right {
    justify-content: flex-end;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo {
    font-size: 24px;
    font-weight: 600;
    color: var(--fg-primary);
    letter-spacing: 2px;
}

.nav-logo-link {
    display: flex;
    align-items: center;
}

.nav-logo-svg {
    height: 17px;
    width: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    background: var(--button-primary);
    border: 1px solid var(--button-border);
    border-radius: 9999px;
    color: var(--fg-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(4px);
    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.04);
    transition: background 0.2s, transform 0.1s;
    letter-spacing: -0.2px;
}

.btn .btn-icon {
    display: none;
}

.btn .btn-text {
    display: inline;
}

.btn:hover {
    background: rgba(229, 34, 116, 0.3);
}

.btn:active {
    transform: scale(0.98);
}

.partner-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    color: var(--fg-tertiary);
    line-height: 12px;
}

.partner-logo {
    height: 29px;
    width: auto;
}

/* Content Wrapper */
.content-wrapper {
    flex: 1;
    background: var(--bg-200);
    border: 0.5px solid var(--border);
    border-radius: 24px;
    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#app {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 88px 24px 40px;
    max-width: 1440px;
    width: 100%;
}

.page-title {
    font-family: var(--font-brand);
    font-size: 40px;
    font-weight: 500;
    color: var(--fg-primary);
    letter-spacing: 0.4px;
    line-height: 48px;
}

/* Status Banner */
.status-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.04);
}

.status-icon.positive {
    border: 1px solid var(--state-positive-15);
    background: radial-gradient(circle at center, rgba(93, 218, 145, 0) 0%, var(--state-positive-15) 100%);
}

.status-icon.semi-negative {
    border: 1px solid var(--state-semi-negative-15);
    background: radial-gradient(circle at center, rgba(255, 127, 49, 0) 0%, var(--state-semi-negative-15) 100%);
}

.status-icon.negative {
    border: 1px solid var(--state-negative-15);
    background: radial-gradient(circle at center, rgba(255, 71, 103, 0) 0%, var(--state-negative-15) 100%);
}

.status-icon svg {
    width: 20px;
    height: 20px;
}

.status-icon.positive svg {
    color: var(--state-positive);
}

.status-icon.semi-negative svg {
    color: var(--state-semi-negative);
}

.status-icon.negative svg {
    color: var(--state-negative);
}

.status-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    max-width: 540px;
}

.status-title {
    font-size: 18px;
    font-weight: 400;
    color: var(--fg-primary);
    letter-spacing: -0.2px;
    line-height: 24px;
}

.status-description {
    font-size: 15px;
    font-weight: 400;
    color: var(--fg-secondary);
    line-height: 24px;
}

.status-description a {
    color: var(--link-color);
}

/* Services Section */
.services-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0 24px 64px;
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 540px;
    width: 100%;
}

/* Service Group */
.service-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.group-header {
    padding-bottom: 8px;
}

.group-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--fg-quarternary);
    line-height: 24px;
}

/* Service Item */
.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-300);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.service-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--fg-primary);
    letter-spacing: -0.2px;
    line-height: 16px;
}

.service-footer {
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
}

.service-status {
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
}

.service-status.operational {
    color: var(--state-positive);
}

.service-status.degraded {
    color: var(--state-semi-negative);
}

.service-status.outage {
    color: var(--state-negative);
}

.service-description {
    font-size: 13px;
    font-weight: 400;
    line-height: 16px;
    color: var(--fg-secondary);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.service-icon.positive {
    border: 1px solid var(--state-positive-15);
    background: radial-gradient(circle at center, rgba(93, 218, 145, 0) 0%, var(--state-positive-15) 100%);
}

.service-icon.semi-negative {
    border: 1px solid var(--state-semi-negative-15);
    background: radial-gradient(circle at center, rgba(255, 127, 49, 0) 0%, var(--state-semi-negative-15) 100%);
}

.service-icon.negative {
    border: 1px solid var(--state-negative-15);
    background: radial-gradient(circle at center, rgba(255, 71, 103, 0) 0%, var(--state-negative-15) 100%);
}

.service-icon svg {
    width: 16px;
    height: 16px;
}

.service-icon.positive svg {
    color: var(--state-positive);
}

.service-icon.semi-negative svg {
    color: var(--state-semi-negative);
}

.service-icon.negative svg {
    color: var(--state-negative);
}

/* Loading state */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 80px 24px;
    color: var(--fg-disabled);
    font-size: 14px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--fg-disabled);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Error state */
.error {
    background: var(--bg-300);
    border: 1px solid var(--state-negative);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    color: var(--state-negative);
    margin: 24px;
}

/* Responsive */
@media (max-width: 640px) {
    .main-container {
        padding: 4px;
    }

    .top-nav {
        padding: 8px 12px;
        height: auto;
        flex-wrap: wrap;
    }

    .nav-left, .nav-right {
        flex: unset;
    }

    .partner-badge {
        display: none;
    }

    /* Hide login button on mobile */
    .btn-login {
        display: none;
    }

    /* Show icons and hide text on mobile for contact and back buttons */
    .btn-contact .btn-icon,
    .btn-back .btn-icon {
        display: block;
    }

    .btn-contact .btn-text,
    .btn-back .btn-text {
        display: none;
    }

    /* Adjust button padding for icon-only buttons */
    .btn-contact,
    .btn-back {
        padding: 0;
        width: 40px;
        height: 40px;
    }

    .hero-section {
        padding: 48px 16px 24px;
        gap: 24px;
    }

    .page-title {
        font-size: 32px;
        line-height: 40px;
    }

    .services-section {
        padding: 0 16px 24px;
    }

    .services-container {
        gap: 24px;
    }

    .service-item {
        padding: 12px;
    }

    .service-name {
        font-size: 14px;
    }

    .service-status {
        font-size: 12px;
    }

    .service-description {
        font-size: 12px;
    }
}
