:root {
    /* Primary palette (Green - Linode inspired) */
    --md-sys-color-primary: #4CAF50;
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #1B5E20;
    --md-sys-color-on-primary-container: #A5D6A7;

    /* Secondary palette */
    --md-sys-color-secondary: #81C784;
    --md-sys-color-on-secondary: #1B5E20;
    --md-sys-color-secondary-container: #0D3320;
    --md-sys-color-on-secondary-container: #A5D6A7;

    /* Tertiary palette */
    --md-sys-color-tertiary: #FFB74D;
    --md-sys-color-on-tertiary: #4E342E;
    --md-sys-color-tertiary-container: #3E2723;
    --md-sys-color-on-tertiary-container: #FFE0B2;

    /* Error palette */
    --md-sys-color-error: #EF5350;
    --md-sys-color-on-error: #FFFFFF;
    --md-sys-color-error-container: #B71C1C;
    --md-sys-color-on-error-container: #FFCDD2;

    /* Neutral / Surface — deep dark theme */
    --md-sys-color-surface: #0A0E14;
    --md-sys-color-on-surface: #E6EDF3;
    --md-sys-color-surface-variant: #111820;
    --md-sys-color-on-surface-variant: #8B949E;
    --md-sys-color-surface-container-low: #0E131B;
    --md-sys-color-surface-container: #131922;
    --md-sys-color-surface-container-high: #181F2A;
    --md-sys-color-surface-container-highest: #1E2633;
    --md-sys-color-outline: #30363D;
    --md-sys-color-outline-variant: #21262D;

    /* Typography scale (M3 Expressive) */
    --md-sys-typescale-display-large: 400 4rem/4.5rem "Outfit", "Inter", system-ui, sans-serif;
    --md-sys-typescale-headline-large: 600 2.75rem/3.25rem "Outfit", "Inter", system-ui, sans-serif;
    --md-sys-typescale-headline-medium: 500 2rem/2.5rem "Outfit", "Inter", system-ui, sans-serif;
    --md-sys-typescale-headline-small: 500 1.5rem/2rem "Outfit", "Inter", system-ui, sans-serif;
    --md-sys-typescale-title-large: 500 1.25rem/1.5rem "Outfit", "Inter", system-ui, sans-serif;
    --md-sys-typescale-title-medium: 500 1.125rem/1.5rem "Outfit", "Inter", system-ui, sans-serif;
    --md-sys-typescale-title-small: 500 0.875rem/1.25rem "Outfit", "Inter", system-ui, sans-serif;
    --md-sys-typescale-body-large: 400 1.125rem/1.75rem "Inter", system-ui, sans-serif;
    --md-sys-typescale-body-medium: 400 1rem/1.5rem "Inter", system-ui, sans-serif;
    --md-sys-typescale-body-small: 400 0.8125rem/1.25rem "Inter", system-ui, sans-serif;
    --md-sys-typescale-label-large: 500 0.875rem/1.25rem "Inter", system-ui, sans-serif;
    --md-sys-typescale-label-medium: 500 0.75rem/1rem "Inter", system-ui, sans-serif;
    --md-sys-typescale-label-small: 500 0.6875rem/1rem "Inter", system-ui, sans-serif;

    /* Shapes */
    --md-sys-shape-corner-none: 0;
    --md-sys-shape-corner-extra-small: 0.25rem;
    --md-sys-shape-corner-small: 0.5rem;
    --md-sys-shape-corner-medium: 0.75rem;
    --md-sys-shape-corner-large: 1rem;
    --md-sys-shape-corner-extra-large: 1.75rem;
    --md-sys-shape-corner-full: 9999px;

    /* Elevation shadows */
    --md-sys-elevation-0: none;
    --md-sys-elevation-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 3px 1px rgba(0, 0, 0, 0.2);
    --md-sys-elevation-2: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 6px 2px rgba(0, 0, 0, 0.2);
    --md-sys-elevation-3: 0 4px 8px 3px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.4);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 5rem;
    --spacing-4xl: 8rem;

    /* Transitions */
    --transition-short: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-long: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font: var(--md-sys-typescale-body-medium);
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--md-sys-color-primary);
    text-decoration: none;
    transition: color var(--transition-short);
}

a:hover {
    color: var(--md-sys-color-secondary);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
}

.m3-body {
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
}

.m3-surface {
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
}

.m3-surface-variant {
    background-color: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface-variant);
}

.m3-headline-large {
    font: var(--md-sys-typescale-headline-large);
    color: var(--md-sys-color-on-surface);
    letter-spacing: -0.02em;
}

.m3-headline-medium {
    font: var(--md-sys-typescale-headline-medium);
    color: var(--md-sys-color-on-surface);
    letter-spacing: -0.01em;
}

.m3-headline-small {
    font: var(--md-sys-typescale-headline-small);
    color: var(--md-sys-color-on-surface);
}

.m3-title-large {
    font: var(--md-sys-typescale-title-large);
}

.m3-title-medium {
    font: var(--md-sys-typescale-title-medium);
}

.m3-title-small {
    font: var(--md-sys-typescale-title-small);
}

.m3-body-large {
    font: var(--md-sys-typescale-body-large);
}

.m3-body-medium {
    font: var(--md-sys-typescale-body-medium);
}

.m3-body-small {
    font: var(--md-sys-typescale-body-small);
}

.m3-label-large {
    font: var(--md-sys-typescale-label-large);
}

.m3-label-medium {
    font: var(--md-sys-typescale-label-medium);
}

.m3-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.75rem;
    padding: 0 1.5rem;
    border-radius: var(--md-sys-shape-corner-full);
    font: var(--md-sys-typescale-label-large);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-short);
    border: none;
    white-space: nowrap;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.m3-button__label {
    position: relative;
    z-index: 1;
}

.m3-button__icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.filled-button {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    box-shadow: var(--md-sys-elevation-1);
}

.filled-button:hover {
    background-color: #43A047;
    box-shadow: var(--md-sys-elevation-2);
    color: var(--md-sys-color-on-primary);
}

.filled-button:active {
    background-color: #388E3C;
    box-shadow: var(--md-sys-elevation-0);
    transform: scale(0.97);
}

.filled-tonal-button {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.filled-tonal-button:hover {
    background-color: #154A2E;
    color: #C8E6C9;
}

.filled-tonal-button:active {
    background-color: #1B5E20;
    transform: scale(0.97);
}

.outlined-button {
    background-color: transparent;
    color: var(--md-sys-color-primary);
    border: 1px solid var(--md-sys-color-outline);
}

.outlined-button:hover {
    background-color: rgba(76, 175, 80, 0.08);
    border-color: var(--md-sys-color-primary);
}

.outlined-button:active {
    background-color: rgba(76, 175, 80, 0.12);
    transform: scale(0.97);
}

.header-download-btn {
    height: 2.25rem;
    padding: 0 1.125rem;
    font: var(--md-sys-typescale-label-medium);
}

.m3-card {
    background-color: var(--md-sys-color-surface-container);
    border-radius: var(--md-sys-shape-corner-large);
    border: 1px solid var(--md-sys-color-outline-variant);
    overflow: hidden;
}

.m3-card__content {
    padding: var(--spacing-xl);
}

.elevated-card {
    background-color: var(--md-sys-color-surface-container-high);
    box-shadow: var(--md-sys-elevation-1);
    border-color: rgba(76, 175, 80, 0.15);
}

.m3-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--md-sys-shape-corner-full);
    background-color: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface);
    border: 1px solid var(--md-sys-color-outline-variant);
    cursor: pointer;
    transition: all var(--transition-short);
    text-decoration: none;
    flex-shrink: 0;
}

.m3-icon-button:hover {
    background-color: var(--md-sys-color-surface-container-highest);
    color: var(--md-sys-color-primary);
    border-color: var(--md-sys-color-outline);
}

.m3-icon-button:active {
    background-color: var(--md-sys-color-surface-container-highest);
    transform: scale(0.93);
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(8, 12, 18, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    gap: var(--spacing-xl);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--md-sys-color-on-surface);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-link:hover {
    color: var(--md-sys-color-on-surface);
}

.logo-img {
    height: 2rem;
    width: auto;
}

.logo-text {
    font: var(--md-sys-typescale-title-medium);
    letter-spacing: -0.01em;
}

.main-nav {
    flex: 1;
}

.footer {
    border-top: 1px solid var(--md-sys-color-outline-variant);
    padding-top: var(--spacing-3xl);
    padding-bottom: var(--spacing-xl);
    background-color: var(--md-sys-color-surface-container-low);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.footer-brand-top {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    height: 2.25rem;
    width: auto;
}

.footer-brand-name {
    font: var(--md-sys-typescale-title-medium);
    color: var(--md-sys-color-on-surface);
    margin-bottom: 0.125rem;
}

.footer-tagline {
    font: var(--md-sys-typescale-label-medium);
    color: var(--md-sys-color-primary);
}

.footer-description {
    font: var(--md-sys-typescale-body-small);
    color: var(--md-sys-color-on-surface-variant);
    max-width: 20rem;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--md-sys-shape-corner-full);
    border: 1px solid var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-on-surface-variant);
}

.footer-social-link:hover {
    color: var(--md-sys-color-primary);
    border-color: var(--md-sys-color-outline);
}

.footer-heading {
    font: var(--md-sys-typescale-title-small);
    color: var(--md-sys-color-on-surface);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    font: var(--md-sys-typescale-body-small);
    color: var(--md-sys-color-on-surface-variant);
}

.footer-links a:hover {
    color: var(--md-sys-color-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-lg);
}

.footer-bottom-text {
    font: var(--md-sys-typescale-body-small);
    color: var(--md-sys-color-on-surface-variant);
}

.footer-bottom a {
    color: var(--md-sys-color-on-surface);
}

.footer-bottom a:hover {
    color: var(--md-sys-color-primary);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-description {
    text-align: center;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: var(--spacing-2xl);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.section-cta {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

@media (max-width: 768px) {
    .container {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }

    .header-inner {
        height: 3.5rem;
        gap: var(--spacing-md);
    }

    .logo-text {
        font: var(--md-sys-typescale-title-small);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer-brand-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-description {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}