/* Microsoft 365 / Fluent Design Inspired Theme */
/* View Hamnus - RustDesk Corporate Portal */

:root {
    /* Microsoft Brand Colors */
    --ms-blue: #0078D4;
    --ms-blue-dark: #106EBE;
    --ms-blue-light: #50E6FF;
    --ms-blue-hover: #005A9E;

    /* Neutral Palette */
    --neutral-white: #FFFFFF;
    --neutral-lightest: #FAF9F8;
    --neutral-lighter: #F3F2F1;
    --neutral-light: #EDEBE9;
    --neutral-tertiary: #C8C6C4;
    --neutral-secondary: #605E5C;
    --neutral-primary: #323130;
    --neutral-dark: #201F1E;

    /* Semantic Colors */
    --success: #107C10;
    --warning: #F7630C;
    --error: #D13438;

    /* Shadows */
    --depth-4: 0 1.6px 3.6px rgba(0, 0, 0, 0.13), 0 0.3px 0.9px rgba(0, 0, 0, 0.11);
    --depth-8: 0 3.2px 7.2px rgba(0, 0, 0, 0.13), 0 0.6px 1.8px rgba(0, 0, 0, 0.11);
    --depth-16: 0 6.4px 14.4px rgba(0, 0, 0, 0.13), 0 1.2px 3.6px rgba(0, 0, 0, 0.11);
    --depth-64: 0 25.6px 57.6px rgba(0, 0, 0, 0.22), 0 4.8px 14.4px rgba(0, 0, 0, 0.18);

    /* Transitions */
    --transition-fast: 0.1s cubic-bezier(0.1, 0.9, 0.2, 1);
    --transition-standard: 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
}

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

body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--neutral-primary);
    background-color: var(--neutral-lightest);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--neutral-dark);
}

h1 { font-size: 42px; margin-bottom: 16px; }
h2 { font-size: 32px; margin-bottom: 12px; }
h3 { font-size: 24px; margin-bottom: 10px; }
h4 { font-size: 20px; margin-bottom: 8px; }
h5 { font-size: 16px; margin-bottom: 8px; }
h6 { font-size: 14px; margin-bottom: 8px; }

p {
    margin-bottom: 12px;
    color: var(--neutral-secondary);
    font-size: 14px;
}

a {
    color: var(--ms-blue);
    text-decoration: none;
    transition: color var(--transition-standard);
}

a:hover {
    color: var(--ms-blue-hover);
    text-decoration: underline;
}

/* Layout Container */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
}

/* Header - Microsoft 365 Style */
header {
    background-color: var(--neutral-white);
    border-bottom: 1px solid var(--neutral-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--depth-4);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    height: 48px;
    max-width: 1440px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo h1::before {
    content: "◉";
    color: var(--ms-blue);
    font-size: 20px;
}

.logo .subtitle {
    display: none; /* Hidden in M365 style compact nav */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
}

.nav-links li a {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 48px;
    color: var(--neutral-primary);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-standard);
}

.nav-links li a:hover {
    background-color: var(--neutral-lighter);
    border-bottom-color: var(--ms-blue);
    text-decoration: none;
}

.nav-links li a:active {
    background-color: var(--neutral-light);
}

/* Hero Section - M365 Acrylic Style */
.hero {
    background: linear-gradient(135deg, var(--ms-blue) 0%, #0063B1 100%);
    color: var(--neutral-white);
    padding: 64px 48px;
    margin: 0;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 640px;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ms-blue-light);
    margin-bottom: 16px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    backdrop-filter: blur(10px);
}

.hero h2 {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--neutral-white);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Microsoft Fluent Buttons */
.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition-standard);
    border: none;
    text-decoration: none;
    min-width: 96px;
}

.primary-button {
    background-color: var(--neutral-white);
    color: var(--ms-blue);
    box-shadow: var(--depth-4);
}

.primary-button:hover {
    background-color: var(--neutral-lighter);
    box-shadow: var(--depth-8);
    transform: translateY(-1px);
    text-decoration: none;
}

.primary-button:active {
    transform: translateY(0);
    box-shadow: var(--depth-4);
}

.secondary-button {
    background-color: transparent;
    color: var(--neutral-white);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--neutral-white);
    text-decoration: none;
}

/* Hero Stats Cards */
.hero-stats {
    display: grid;
    gap: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 20px;
    transition: all var(--transition-standard);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(4px);
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--neutral-white);
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Content Sections */
main {
    padding: 0;
}

.overview,
.benefits,
.connect,
.performance,
.faq,
.contact {
    padding: 80px 48px;
    background-color: var(--neutral-white);
    border-bottom: 1px solid var(--neutral-light);
}

.overview {
    background-color: var(--neutral-lightest);
}

.section-heading {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 56px;
}

.section-heading h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 16px;
}

.section-heading p {
    font-size: 16px;
    color: var(--neutral-secondary);
    line-height: 1.6;
}

/* Card Grids - M365 Card Style */
.metrics-grid,
.card-grid,
.performance-grid,
.faq-grid {
    display: grid;
    gap: 20px;
    max-width: 1440px;
    margin: 0 auto;
}

.metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-grid,
.faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.performance-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Microsoft Fluent Cards */
.metric-card,
.benefit-card,
.performance-card,
.faq-card {
    background: var(--neutral-white);
    border: 1px solid var(--neutral-light);
    border-radius: 4px;
    padding: 24px;
    transition: all var(--transition-standard);
    box-shadow: var(--depth-4);
}

.metric-card:hover,
.benefit-card:hover,
.performance-card:hover,
.faq-card:hover {
    box-shadow: var(--depth-16);
    transform: translateY(-2px);
    border-color: var(--neutral-tertiary);
}

.metric-card h3,
.benefit-card h3,
.performance-card h3,
.faq-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 12px;
}

.metric-card h3::before {
    content: "▸";
    color: var(--ms-blue);
    margin-right: 8px;
    font-weight: 700;
}

.metric-card p,
.benefit-card p,
.performance-card p,
.faq-card p {
    font-size: 14px;
    color: var(--neutral-secondary);
    line-height: 1.6;
}

/* Setup Steps */
.stepper {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 28px;
    background: var(--neutral-white);
    border: 1px solid var(--neutral-light);
    border-left: 3px solid var(--ms-blue);
    border-radius: 4px;
    box-shadow: var(--depth-4);
    transition: all var(--transition-standard);
}

.step:hover {
    box-shadow: var(--depth-16);
    transform: translateX(4px);
}

.step-index {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ms-blue);
    color: var(--neutral-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    box-shadow: var(--depth-8);
}

.step h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--neutral-secondary);
    line-height: 1.6;
}

/* Performance Lists */
.performance-card ul {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.performance-card li {
    font-size: 14px;
    color: var(--neutral-secondary);
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.performance-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 16px;
}

/* Info Banner */
.location-banner {
    margin-top: 32px;
    padding: 20px 24px;
    background: linear-gradient(90deg, #EFF6FC 0%, #DEECF9 100%);
    border-left: 4px solid var(--ms-blue);
    border-radius: 2px;
}

.location-banner p {
    color: var(--neutral-primary);
    margin: 0;
}

.location-banner strong {
    color: var(--neutral-dark);
    font-weight: 600;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--ms-blue) 0%, #0063B1 100%);
    color: var(--neutral-white);
    text-align: center;
    border-bottom: none;
}

.contact-card {
    max-width: 800px;
    margin: 0 auto;
}

.contact-card h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--neutral-white);
    margin-bottom: 16px;
}

.contact-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.contact-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.server-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
footer {
    background-color: var(--neutral-lightest);
    border-top: 1px solid var(--neutral-light);
    padding: 40px 48px;
    text-align: center;
}

.footer-meta {
    margin-bottom: 16px;
}

.footer-meta p {
    font-size: 12px;
    color: var(--neutral-secondary);
    margin-bottom: 4px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px;
    color: var(--ms-blue);
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--ms-blue-hover);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero {
        padding: 48px 32px;
    }

    .overview, .benefits, .connect, .performance, .faq, .contact {
        padding: 64px 32px;
    }

    nav {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 12px 20px;
        gap: 12px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-links li a {
        padding: 8px 12px;
        height: auto;
    }

    .hero h2 {
        font-size: 28px;
    }

    .section-heading h2 {
        font-size: 24px;
    }

    .hero, .overview, .benefits, .connect, .performance, .faq, .contact {
        padding: 40px 24px;
    }

    .step {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .step-index {
        margin: 0 auto;
    }

    .metrics-grid,
    .card-grid,
    .performance-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 32px; }
    h2 { font-size: 24px; }

    .hero h2 {
        font-size: 24px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .contact-actions {
        flex-direction: column;
    }
}

/* Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--ms-blue);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    header {
        position: static;
        box-shadow: none;
    }

    .nav-links {
        display: none;
    }

    .hero {
        background: var(--neutral-white);
        color: var(--neutral-dark);
        border: 1px solid var(--neutral-light);
    }

    .hero h2,
    .hero-subtitle,
    .stat-value,
    .stat-label {
        color: var(--neutral-dark);
    }
}
