/* Material Design 3 - Google-Inspired Landing Page Theme */

/* Material Design 3 Design System Tokens */
:root {
    /* Primary Palette - Ouwaler Blue */
    --md-sys-color-primary: #3391ac;
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-primary-container: #c2e8ff;
    --md-sys-color-on-primary-container: #001e2d;

    /* Accent Palette - Ouwaler Orange */
    --md-sys-color-accent: #f39200;
    --md-sys-color-on-accent: #ffffff;
    --md-sys-color-accent-container: #ffecc2;
    --md-sys-color-on-accent-container: #2d1600;

    /* Secondary Palette */
    --md-sys-color-secondary: #6f5b40;
    --md-sys-color-on-secondary: #ffffff;
    --md-sys-color-secondary-container: #f9ddbc;
    --md-sys-color-on-secondary-container: #271904;

    /* Tertiary Palette */
    --md-sys-color-tertiary: #51643f;
    --md-sys-color-on-tertiary: #ffffff;
    --md-sys-color-tertiary-container: #d4eabb;
    --md-sys-color-on-tertiary-container: #102004;

    /* Error Palette */
    --md-sys-color-error: #ba1a1a;
    --md-sys-color-on-error: #ffffff;
    --md-sys-color-error-container: #ffdad6;
    --md-sys-color-on-error-container: #410002;

    /* Neutral Palette */
    --md-sys-color-background: #fffbf7;
    --md-sys-color-on-background: #1f1b16;
    --md-sys-color-surface: #fffbf7;
    --md-sys-color-on-surface: #1f1b16;
    --md-sys-color-surface-variant: #f0e0cf;
    --md-sys-color-on-surface-variant: #4f4539;
    --md-sys-color-surface-container-lowest: #ffffff;
    --md-sys-color-surface-container-low: #faf5f0;
    --md-sys-color-surface-container: #f4efea;
    --md-sys-color-surface-container-high: #eee9e4;
    --md-sys-color-surface-container-highest: #e8e3de;

    /* Outline */
    --md-sys-color-outline: #817567;
    --md-sys-color-outline-variant: #d3c4b4;

    /* Shadow and Elevation */
    --md-sys-color-shadow: #000000;
    --md-sys-color-surface-tint: #f39200;

    /* Inverse Colors */
    --md-sys-color-inverse-surface: #362f2a;
    --md-sys-color-inverse-on-surface: #f9efe7;
    --md-sys-color-inverse-primary: #ffb951;

    /* Typography Scale */
    --md-sys-typescale-display-large-font: "Google Sans", "Roboto", sans-serif;
    --md-sys-typescale-display-large-size: 3.5rem;
    --md-sys-typescale-display-large-weight: 400;
    --md-sys-typescale-display-large-line-height: 4rem;

    --md-sys-typescale-display-medium-font: "Google Sans", "Roboto", sans-serif;
    --md-sys-typescale-display-medium-size: 2.8125rem;
    --md-sys-typescale-display-medium-weight: 400;
    --md-sys-typescale-display-medium-line-height: 3.25rem;

    --md-sys-typescale-headline-large-font: "Google Sans", "Roboto", sans-serif;
    --md-sys-typescale-headline-large-size: 2rem;
    --md-sys-typescale-headline-large-weight: 400;
    --md-sys-typescale-headline-large-line-height: 2.5rem;

    --md-sys-typescale-headline-medium-font: "Google Sans", "Roboto", sans-serif;
    --md-sys-typescale-headline-medium-size: 1.75rem;
    --md-sys-typescale-headline-medium-weight: 400;
    --md-sys-typescale-headline-medium-line-height: 2.25rem;

    --md-sys-typescale-headline-small-font: "Google Sans", "Roboto", sans-serif;
    --md-sys-typescale-headline-small-size: 1.5rem;
    --md-sys-typescale-headline-small-weight: 400;
    --md-sys-typescale-headline-small-line-height: 2rem;

    --md-sys-typescale-title-large-font: "Roboto", sans-serif;
    --md-sys-typescale-title-large-size: 1.375rem;
    --md-sys-typescale-title-large-weight: 400;
    --md-sys-typescale-title-large-line-height: 1.75rem;

    --md-sys-typescale-body-large-font: "Roboto", sans-serif;
    --md-sys-typescale-body-large-size: 1rem;
    --md-sys-typescale-body-large-weight: 400;
    --md-sys-typescale-body-large-line-height: 1.5rem;

    --md-sys-typescale-body-medium-font: "Roboto", sans-serif;
    --md-sys-typescale-body-medium-size: 0.875rem;
    --md-sys-typescale-body-medium-weight: 400;
    --md-sys-typescale-body-medium-line-height: 1.25rem;

    --md-sys-typescale-label-large-font: "Roboto", sans-serif;
    --md-sys-typescale-label-large-size: 0.875rem;
    --md-sys-typescale-label-large-weight: 500;
    --md-sys-typescale-label-large-line-height: 1.25rem;

    /* Shape Tokens */
    --md-sys-shape-corner-none: 0px;
    --md-sys-shape-corner-extra-small: 4px;
    --md-sys-shape-corner-small: 8px;
    --md-sys-shape-corner-medium: 12px;
    --md-sys-shape-corner-large: 16px;
    --md-sys-shape-corner-extra-large: 28px;
    --md-sys-shape-corner-full: 50%;

    /* Motion Tokens */
    --md-sys-motion-duration-short1: 50ms;
    --md-sys-motion-duration-short2: 100ms;
    --md-sys-motion-duration-short3: 150ms;
    --md-sys-motion-duration-short4: 200ms;
    --md-sys-motion-duration-medium1: 250ms;
    --md-sys-motion-duration-medium2: 300ms;
    --md-sys-motion-duration-medium3: 350ms;
    --md-sys-motion-duration-medium4: 400ms;
    --md-sys-motion-duration-long1: 450ms;
    --md-sys-motion-duration-long2: 500ms;
    --md-sys-motion-duration-long3: 550ms;
    --md-sys-motion-duration-long4: 600ms;

    --md-sys-motion-easing-linear: cubic-bezier(0, 0, 1, 1);
    --md-sys-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
    --md-sys-motion-easing-standard-accelerate: cubic-bezier(0.3, 0, 1, 1);
    --md-sys-motion-easing-standard-decelerate: cubic-bezier(0, 0, 0, 1);
    --md-sys-motion-easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
    --md-sys-motion-easing-emphasized-accelerate: cubic-bezier(
        0.3,
        0,
        0.8,
        0.15
    );
    --md-sys-motion-easing-emphasized-decelerate: cubic-bezier(
        0.05,
        0.7,
        0.1,
        1
    );

    /* Elevation Tokens */
    --md-sys-elevation-level0: 0px 0px 0px 0px rgba(0, 0, 0, 0),
        0px 0px 0px 0px rgba(0, 0, 0, 0);
    --md-sys-elevation-level1: 0px 1px 2px 0px rgba(0, 0, 0, 0.3),
        0px 1px 3px 1px rgba(0, 0, 0, 0.15);
    --md-sys-elevation-level2: 0px 1px 2px 0px rgba(0, 0, 0, 0.3),
        0px 2px 6px 2px rgba(0, 0, 0, 0.15);
    --md-sys-elevation-level3: 0px 1px 3px 0px rgba(0, 0, 0, 0.3),
        0px 4px 8px 3px rgba(0, 0, 0, 0.15);
    --md-sys-elevation-level4: 0px 2px 3px 0px rgba(0, 0, 0, 0.3),
        0px 6px 10px 4px rgba(0, 0, 0, 0.15);
    --md-sys-elevation-level5: 0px 4px 4px 0px rgba(0, 0, 0, 0.3),
        0px 8px 12px 6px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--md-sys-typescale-body-large-font);
    font-size: var(--md-sys-typescale-body-large-size);
    font-weight: var(--md-sys-typescale-body-large-weight);
    line-height: var(--md-sys-typescale-body-large-line-height);
    color: var(--md-sys-color-on-background);
    background-color: var(--md-sys-color-background);
}

/* Material Web Components Theming */
md-filled-button {
    --md-filled-button-container-color: var(--md-sys-color-primary);
    --md-filled-button-label-text-color: var(--md-sys-color-on-primary);
    --md-filled-button-container-shape: var(--md-sys-shape-corner-large);
    --md-filled-button-container-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    font-weight: 500;
    text-transform: none;
    white-space: nowrap;
}

md-filled-button md-icon {
    font-size: 18px;
}

md-outlined-button {
    --md-outlined-button-outline-color: var(--md-sys-color-primary);
    --md-outlined-button-label-text-color: var(--md-sys-color-primary);
    --md-outlined-button-container-shape: var(--md-sys-shape-corner-large);
    --md-outlined-button-container-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    font-weight: 500;
    text-transform: none;
    white-space: nowrap;
}

md-outlined-button md-icon {
    font-size: 18px;
}

md-text-button {
    --md-text-button-label-text-color: var(--md-sys-color-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    font-weight: 500;
    text-transform: none;
    white-space: nowrap;
}

md-icon-button {
    --md-icon-button-icon-color: var(--md-sys-color-on-surface-variant);
    --md-icon-button-state-layer-shape: var(--md-sys-shape-corner-full);
}

/* Material Icons Styles */
md-icon {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "liga";
}

/* Ensure Material Icons load properly */
.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "liga";
}

md-outlined-text-field {
    --md-outlined-text-field-outline-color: var(--md-sys-color-outline);
    --md-outlined-text-field-focus-outline-color: var(--md-sys-color-primary);
    --md-outlined-text-field-label-text-color: var(
        --md-sys-color-on-surface-variant
    );
    --md-outlined-text-field-input-text-color: var(--md-sys-color-on-surface);
}

md-outlined-select {
    --md-outlined-select-text-field-outline-color: var(--md-sys-color-outline);
    --md-outlined-select-text-field-focus-outline-color: var(
        --md-sys-color-primary
    );
}

md-checkbox {
    --md-checkbox-selected-container-color: var(--md-sys-color-primary);
    --md-checkbox-selected-icon-color: var(--md-sys-color-on-primary);
}

md-radio {
    --md-radio-selected-icon-color: var(--md-sys-color-primary);
}

md-fab {
    --md-fab-container-color: var(--md-sys-color-primary-container);
    --md-fab-icon-color: var(--md-sys-color-on-primary-container);
}

/* Typography Classes */
.md-typescale-display-large {
    font-family: var(--md-sys-typescale-display-large-font);
    font-size: var(--md-sys-typescale-display-large-size);
    font-weight: var(--md-sys-typescale-display-large-weight);
    line-height: var(--md-sys-typescale-display-large-line-height);
    color: var(--md-sys-color-on-surface);
    margin: 0;
}

.md-typescale-display-medium {
    font-family: var(--md-sys-typescale-display-medium-font);
    font-size: var(--md-sys-typescale-display-medium-size);
    font-weight: var(--md-sys-typescale-display-medium-weight);
    line-height: var(--md-sys-typescale-display-medium-line-height);
    color: var(--md-sys-color-on-surface);
    margin: 0;
}

.md-typescale-headline-large {
    font-family: var(--md-sys-typescale-headline-large-font);
    font-size: var(--md-sys-typescale-headline-large-size);
    font-weight: var(--md-sys-typescale-headline-large-weight);
    line-height: var(--md-sys-typescale-headline-large-line-height);
    color: var(--md-sys-color-on-surface);
    margin: 0;
}

.md-typescale-headline-medium {
    font-family: var(--md-sys-typescale-headline-medium-font);
    font-size: var(--md-sys-typescale-headline-medium-size);
    font-weight: var(--md-sys-typescale-headline-medium-weight);
    line-height: var(--md-sys-typescale-headline-medium-line-height);
    color: var(--md-sys-color-on-surface);
    margin: 0;
}

.md-typescale-headline-small {
    font-family: var(--md-sys-typescale-headline-small-font);
    font-size: var(--md-sys-typescale-headline-small-size);
    font-weight: var(--md-sys-typescale-headline-small-weight);
    line-height: var(--md-sys-typescale-headline-small-line-height);
    color: var(--md-sys-color-on-surface);
    margin: 0;
}

.md-typescale-title-large {
    font-family: var(--md-sys-typescale-title-large-font);
    font-size: var(--md-sys-typescale-title-large-size);
    font-weight: var(--md-sys-typescale-title-large-weight);
    line-height: var(--md-sys-typescale-title-large-line-height);
    color: var(--md-sys-color-on-surface);
    margin: 0;
}

.md-typescale-body-large {
    font-family: var(--md-sys-typescale-body-large-font);
    font-size: var(--md-sys-typescale-body-large-size);
    font-weight: var(--md-sys-typescale-body-large-weight);
    line-height: var(--md-sys-typescale-body-large-line-height);
    color: var(--md-sys-color-on-surface);
    margin: 0;
}

.md-typescale-body-medium {
    font-family: var(--md-sys-typescale-body-medium-font);
    font-size: var(--md-sys-typescale-body-medium-size);
    font-weight: var(--md-sys-typescale-body-medium-weight);
    line-height: var(--md-sys-typescale-body-medium-line-height);
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
}

.md-typescale-label-large {
    font-family: var(--md-sys-typescale-label-large-font);
    font-size: var(--md-sys-typescale-label-large-size);
    font-weight: var(--md-sys-typescale-label-large-weight);
    line-height: var(--md-sys-typescale-label-large-line-height);
    color: var(--md-sys-color-on-surface);
    margin: 0;
}

/* Utility Classes */
.text-primary {
    color: var(--md-sys-color-primary) !important;
}

.text-accent {
    color: var(--md-sys-color-accent) !important;
    font-weight: 600;
}

.text-on-surface {
    color: var(--md-sys-color-on-surface) !important;
}

.text-on-surface-variant {
    color: var(--md-sys-color-on-surface-variant) !important;
}

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

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

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

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

.primary-container {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

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

.tertiary-container {
    background-color: var(--md-sys-color-tertiary-container);
    color: var(--md-sys-color-on-tertiary-container);
}

/* Google-Inspired Material Design 3 Layout System */

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

@media (max-width: 599px) {
    .container {
        padding: 0 16px;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 40px;
    }
}

/* Material Design 3 Grid System */
.md-grid {
    display: grid;
    gap: 24px;
}

.md-grid-cols-1 {
    grid-template-columns: 1fr;
}

.md-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.md-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.md-grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Features Section Specific Grid */
#features .md-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Responsive Grid Adjustments */
@media (max-width: 1200px) {
    #features .md-grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    #features .md-grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .md-grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .md-grid-cols-3,
    .md-grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Responsive Grid Breakpoints */
@media (max-width: 599px) {
    .md-grid-cols-2,
    .md-grid-cols-3,
    .md-grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 600px) and (max-width: 904px) {
    .md-grid-cols-3,
    .md-grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 905px) and (max-width: 1239px) {
    .md-grid-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Material Design 3 Flexbox */
.md-flex {
    display: flex;
}

.md-flex-col {
    flex-direction: column;
}

.md-flex-row {
    flex-direction: row;
}

.md-items-center {
    align-items: center;
}

.md-items-start {
    align-items: flex-start;
}

.md-justify-center {
    justify-content: center;
}

.md-justify-between {
    justify-content: space-between;
}

.md-justify-start {
    justify-content: flex-start;
}

/* Material Design 3 Spacing */
.md-gap-8 {
    gap: 8px;
}

.md-gap-16 {
    gap: 16px;
}

.md-gap-24 {
    gap: 24px;
}

.md-gap-32 {
    gap: 32px;
}

.md-gap-48 {
    gap: 48px;
}

.md-p-16 {
    padding: 16px;
}

.md-p-24 {
    padding: 24px;
}

.md-p-32 {
    padding: 32px;
}

.md-py-48 {
    padding-top: 48px;
    padding-bottom: 48px;
}

.md-py-64 {
    padding-top: 64px;
    padding-bottom: 64px;
}

.md-py-80 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.md-mb-16 {
    margin-bottom: 16px;
}

.md-mb-24 {
    margin-bottom: 24px;
}

.md-mb-32 {
    margin-bottom: 32px;
}

.md-mb-48 {
    margin-bottom: 48px;
}

/* Text Alignment */
.md-text-center {
    text-align: center;
}

.md-text-left {
    text-align: left;
}

/* Material Design 3 Cards */
.md-card {
    background-color: var(--md-sys-color-surface-container-low);
    border-radius: var(--md-sys-shape-corner-medium);
    box-shadow: var(--md-sys-elevation-level1);
    padding: 24px;
    transition: all var(--md-sys-motion-duration-medium2)
        var(--md-sys-motion-easing-standard);
}

.md-card:hover {
    box-shadow: var(--md-sys-elevation-level2);
}

.md-card-elevated {
    background-color: var(--md-sys-color-surface-container);
    border-radius: var(--md-sys-shape-corner-large);
    box-shadow: var(--md-sys-elevation-level2);
    padding: 32px;
    transition: all var(--md-sys-motion-duration-medium2)
        var(--md-sys-motion-easing-standard);
}

.md-card-elevated:hover {
    box-shadow: var(--md-sys-elevation-level4);
    transform: translateY(-2px);
}

/* Hero Section - Google Style */
/* Enhanced Hero Section */
.md-hero-enhanced {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.md-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.md-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        var(--md-sys-color-primary-container) 0%,
        var(--md-sys-color-surface-container-lowest) 50%,
        var(--md-sys-color-tertiary-container) 100%
    );
    opacity: 0.1;
}

.md-hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.md-hero-shape {
    position: absolute;
    border-radius: var(--md-sys-shape-corner-extra-large);
    background: linear-gradient(
        45deg,
        var(--md-sys-color-primary),
        var(--md-sys-color-tertiary)
    );
    opacity: 0.05;
    animation: float 6s ease-in-out infinite;
}

.md-hero-shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.md-hero-shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.md-hero-shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.md-hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    min-height: 700px;
}

.md-hero-content {
    max-width: 580px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.md-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    padding: 10px 20px;
    border-radius: var(--md-sys-shape-corner-full);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    box-shadow: var(--md-sys-elevation-level1);
    align-self: flex-start;
}

.md-hero-badge md-icon {
    font-size: 16px;
    color: var(--md-sys-color-primary);
}

.md-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--md-sys-color-on-surface);
    font-family: "Google Sans", sans-serif;
}

.md-hero-highlight {
    color: var(--md-sys-color-accent);
    background: linear-gradient(
        135deg,
        var(--md-sys-color-accent),
        var(--md-sys-color-primary)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.md-hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 32px;
    font-family: "Roboto", sans-serif;
}

.md-hero-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.md-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--md-sys-color-surface-container);
    padding: 12px 16px;
    border-radius: var(--md-sys-shape-corner-large);
    box-shadow: var(--md-sys-elevation-level1);
    min-width: 90px;
    flex: 0 0 auto;
}

.md-hero-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--md-sys-color-primary);
    font-family: "Google Sans", sans-serif;
}

.md-hero-stat-label {
    font-size: 0.875rem;
    color: var(--md-sys-color-on-surface-variant);
    text-align: center;
}

.md-hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.md-hero-cta-primary {
    --md-filled-button-container-color: var(--md-sys-color-accent);
    --md-filled-button-label-text-color: white;
    font-size: 1rem;
    padding: 14px 28px;
    font-weight: 600;
    height: 48px;
    box-shadow: var(--md-sys-elevation-level2);
}

.md-hero-cta-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: var(--md-sys-elevation-level3);
}

.md-hero-cta-secondary {
    --md-outlined-button-outline-color: var(--md-sys-color-primary);
    --md-outlined-button-label-text-color: var(--md-sys-color-primary);
    font-size: 1rem;
    padding: 14px 28px;
}

.md-hero-proof-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-top: 48px;
}

.md-hero-social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
}

.md-hero-avatars {
    display: flex;
}

.md-hero-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--md-sys-color-surface-container-highest);
    color: var(--md-sys-color-on-surface-variant);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--md-sys-color-surface);
    margin-left: -10px;
    font-size: 14px;
    font-weight: 500;
}

.md-hero-avatar:first-child {
    margin-left: 0;
}

.md-hero-avatar md-icon {
    font-size: 20px;
}

.md-hero-social-text {
    font-family: var(--md-sys-typescale-body-large-font-family-name);
    font-size: var(--md-sys-typescale-body-large-font-size);
    font-weight: var(--md-sys-typescale-body-large-font-weight);
    line-height: var(--md-sys-typescale-body-large-line-height);
    color: var(--md-sys-color-on-surface-variant);
}

.md-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-top: 80px;
}

.md-hero-phone-mockup {
    position: relative;
    z-index: 2;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.md-hero-phone-mockup:hover {
    transform: rotate(0deg) scale(1.02);
}

.md-hero-phone {
    width: 260px;
    height: 520px;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 32px;
    padding: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.md-hero-phone-screen {
    width: 100%;
    height: 100%;
    background: var(--md-sys-color-surface);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.md-hero-app-preview {
    padding: 24px 16px;
    height: 100%;
}

.md-hero-app-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.md-hero-app-logo {
    width: 32px;
    height: 32px;
    background: var(--md-sys-color-primary);
    border-radius: var(--md-sys-shape-corner-medium);
}

.md-hero-app-header span {
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    font-size: 18px;
}

.md-hero-app-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.md-hero-app-card {
    display: flex;
    background: var(--md-sys-color-surface-container-low);
    border-radius: var(--md-sys-shape-corner-large);
    padding: 12px;
    gap: 12px;
}

.md-hero-app-card-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(
        135deg,
        var(--md-sys-color-primary),
        var(--md-sys-color-tertiary)
    );
    border-radius: var(--md-sys-shape-corner-medium);
    flex-shrink: 0;
}

.md-hero-app-card-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
}

.md-hero-app-card-content p {
    margin: 0;
    font-size: 12px;
    color: var(--md-sys-color-on-surface-variant);
}

/* Floating Elements */
.md-hero-floating {
    position: absolute;
    background: var(--md-sys-color-surface-container);
    border-radius: var(--md-sys-shape-corner-large);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--md-sys-elevation-level3);
    font-size: 14px;
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
    animation: floatElement 4s ease-in-out infinite;
}

.md-hero-floating md-icon {
    font-size: 18px;
    color: var(--md-sys-color-primary);
}

.md-hero-floating-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.md-hero-floating-2 {
    bottom: 30%;
    left: -30px;
    animation-delay: 2s;
}

.md-hero-floating-3 {
    top: 60%;
    right: -10px;
    animation-delay: 1s;
}

@keyframes floatElement {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .md-hero-layout {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .md-hero-phone {
        width: 240px;
        height: 480px;
    }

    .md-hero-floating {
        display: none;
    }
}

@media (max-width: 768px) {
    .md-hero-enhanced {
        min-height: auto;
        padding: 60px 0;
    }

    .md-hero-stats {
        justify-content: center;
    }

    .md-hero-actions {
        justify-content: center;
    }

    .md-hero-social-proof {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .md-hero-title {
        font-size: 2rem;
    }

    .md-hero-description {
        font-size: 1rem;
    }

    .md-hero-stats {
        gap: 12px;
    }

    .md-hero-stat {
        min-width: 80px;
        padding: 12px 16px;
    }
}

/* Feature Section */
.md-features {
    padding: 80px 0;
}

.md-feature-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--md-sys-shape-corner-large);
    background-color: var(--md-sys-color-surface-container);
    box-shadow: var(--md-sys-elevation-level1);
    transition: all var(--md-sys-motion-duration-medium2)
        var(--md-sys-motion-easing-standard);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.md-feature-card:hover {
    box-shadow: var(--md-sys-elevation-level3);
    transform: translateY(-4px);
}

.md-feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    padding: 16px;
    border-radius: var(--md-sys-shape-corner-full);
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    display: flex;
    align-items: center;
    justify-content: center;
}

.md-feature-title {
    margin-bottom: 16px;
}

.md-feature-description {
    flex-grow: 1;
    opacity: 0.8;
}

/* Stats Section */
.md-stats {
    padding: 80px 0;
    background: linear-gradient(
        135deg,
        var(--md-sys-color-primary-container) 0%,
        var(--md-sys-color-surface-container-lowest) 100%
    );
    position: relative;
}

.md-stats::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%233391ac" opacity="0.1"/><circle cx="80" cy="40" r="2" fill="%23f39200" opacity="0.1"/><circle cx="40" cy="80" r="2" fill="%233391ac" opacity="0.1"/></svg>');
    pointer-events: none;
}

.md-stat-item {
    text-align: center;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--md-sys-shape-corner-large);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.md-stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--md-sys-elevation-level3);
}

.md-stat-number {
    display: block;
    font-family: var(--md-sys-typescale-display-large-font);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--md-sys-color-primary);
    line-height: 1;
    margin-bottom: 12px;
    background: linear-gradient(
        135deg,
        var(--md-sys-color-primary),
        var(--md-sys-color-accent)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.md-stat-label {
    color: var(--md-sys-color-on-surface);
    margin: 0;
    font-weight: 500;
    font-size: 1.1rem;
}

/* CTA Section */
.md-cta {
    background: linear-gradient(
        135deg,
        var(--md-sys-color-primary) 0%,
        var(--md-sys-color-secondary) 100%
    );
    padding: 80px 0;
    text-align: center;
    color: var(--md-sys-color-on-primary);
}

.md-cta * {
    color: var(--md-sys-color-on-primary) !important;
}

/* Navigation */
.md-navbar {
    background-color: var(--md-sys-color-surface);
    box-shadow: var(--md-sys-elevation-level2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

.md-navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.md-navbar-brand {
    font-family: var(--md-sys-typescale-title-large-font);
    font-size: var(--md-sys-typescale-title-large-size);
    font-weight: 600;
    color: var(--md-sys-color-primary);
    text-decoration: none;
}

.md-navbar-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.md-nav-link {
    color: var(--md-sys-color-on-surface);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: var(--md-sys-shape-corner-small);
    transition: background-color var(--md-sys-motion-duration-short4)
        var(--md-sys-motion-easing-standard);
    font-weight: 500;
}

.md-nav-link:hover {
    background-color: var(--md-sys-color-surface-container);
}

/* Footer */
.md-footer {
    background-color: var(--md-sys-color-surface-container-high);
    padding: 32px 0 24px;
    color: var(--md-sys-color-on-surface-variant);
}

.md-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
}

.md-footer-section h3 {
    font-family: var(--md-sys-typescale-title-large-font);
    font-size: var(--md-sys-typescale-title-large-size);
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 16px;
}

.md-footer-section a {
    color: var(--md-sys-color-on-surface-variant);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color var(--md-sys-motion-duration-short4)
        var(--md-sys-motion-easing-standard);
}

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

.md-footer-bottom {
    border-top: 1px solid var(--md-sys-color-outline-variant);
    padding-top: 24px;
    text-align: center;
    color: var(--md-sys-color-on-surface-variant);
}

/* Mobile Responsive */
@media (max-width: 599px) {
    .md-hero {
        padding: 48px 0 64px;
    }

    .md-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .md-hero-actions md-filled-button,
    .md-hero-actions md-outlined-button {
        width: 100%;
        max-width: 280px;
    }

    .md-navbar-nav {
        display: none;
    }

    .md-stat-number {
        font-size: 2.5rem;
    }
}

/* Layout Components */
.md-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #fffbff 0%, #f8f4f0 100%);
}

.md-hero-content {
    max-width: 580px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.md-hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.md-hero-actions {
    margin-top: 2rem;
}

.md-hero-image img {
    width: 100%;
    height: auto;
    max-width: 500px;
}

.md-section {
    padding: 60px 0;
}

.md-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.md-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.md-feature-card {
    background: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.2s ease;
}

.md-feature-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.md-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.md-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-primary);
}

.md-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    margin: 0;
}

.md-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.md-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.md-feature-item .material-symbols-outlined {
    color: var(--md-sys-color-primary);
    font-size: 20px;
    margin-top: 2px;
}

/* Form Styles */
.md-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.md-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.md-form-field {
    display: flex;
    flex-direction: column;
}

.md-form-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .md-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .md-card-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .md-headline-large {
        font-size: 2rem;
        line-height: 2.5rem;
    }

    .md-headline-medium {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

/* Cards */
.md-card {
    background: var(--md-sys-color-surface-container-low);
    border-radius: var(--md-sys-shape-corner-large);
    padding: 24px;
    box-shadow: var(--md-sys-elevation-level1);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.md-card:hover {
    box-shadow: var(--md-sys-elevation-level2);
    transform: translateY(-2px);
}

.md-card-elevated {
    background: var(--md-sys-color-surface-container);
    border-radius: var(--md-sys-shape-corner-large);
    padding: 32px;
    box-shadow: var(--md-sys-elevation-level2);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    width: 100%;
    min-height: 400px;
}

.md-card-elevated:hover {
    box-shadow: var(--md-sys-elevation-level3);
    transform: translateY(-2px);
}

.md-card-filled {
    background-color: var(--md-sys-color-surface-variant);
    border-radius: var(--md-sys-shape-corner-medium);
    padding: 24px;
    margin-bottom: 16px;
}

.md-card-outlined {
    background-color: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-medium);
    padding: 24px;
    margin-bottom: 16px;
}

/* Buttons */
.md-button-filled {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border: none;
    border-radius: var(--md-sys-shape-corner-small);
    padding: 10px 24px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.md-button-filled:hover {
    background-color: #e08600; /* Slightly darker shade of primary */
}

.md-button-outlined {
    background-color: transparent;
    color: var(--md-sys-color-primary);
    border: 1px solid var(--md-sys-color-primary);
    border-radius: var(--md-sys-shape-corner-small);
    padding: 10px 24px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.md-button-outlined:hover {
    background-color: rgba(243, 146, 0, 0.1);
}

.md-button-text {
    background-color: transparent;
    color: var(--md-sys-color-primary);
    border: none;
    padding: 10px 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.md-button-text:hover {
    background-color: rgba(243, 146, 0, 0.1);
}

/* Typography */
.md-headline-large {
    font-family: var(--md-sys-typescale-headline-large-font-family-name);
    font-weight: var(--md-sys-typescale-headline-large-font-weight);
    font-size: var(--md-sys-typescale-headline-large-font-size);
    line-height: var(--md-sys-typescale-headline-large-line-height);
    margin-bottom: 16px;
}

.md-headline-medium {
    font-family: var(--md-sys-typescale-headline-medium-font-family-name);
    font-weight: var(--md-sys-typescale-headline-medium-font-weight);
    font-size: var(--md-sys-typescale-headline-medium-font-size);
    line-height: var(--md-sys-typescale-headline-medium-line-height);
    margin-bottom: 16px;
}

.md-headline-small {
    font-family: var(--md-sys-typescale-headline-small-font-family-name);
    font-weight: var(--md-sys-typescale-headline-small-font-weight);
    font-size: var(--md-sys-typescale-headline-small-font-size);
    line-height: var(--md-sys-typescale-headline-small-line-height);
    margin-bottom: 16px;
}

.md-body-large {
    font-family: var(--md-sys-typescale-body-large-font-family-name);
    font-weight: var(--md-sys-typescale-body-large-font-weight);
    font-size: var(--md-sys-typescale-body-large-font-size);
    line-height: var(--md-sys-typescale-body-large-line-height);
}

.md-body-medium {
    font-family: var(--md-sys-typescale-body-medium-font-family-name);
    font-weight: var(--md-sys-typescale-body-medium-font-weight);
    font-size: var(--md-sys-typescale-body-medium-font-size);
    line-height: var(--md-sys-typescale-body-medium-line-height);
}

/* Container */
.md-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .md-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .md-headline-large {
        font-size: 2rem;
        line-height: 2.5rem;
    }

    .md-headline-medium {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

/* Form Elements */
.md-input-outlined {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-sys-shape-corner-small);
    background-color: transparent;
    color: var(--md-sys-color-on-surface);
    font-family: var(--md-sys-typescale-body-large-font-family-name);
    font-size: var(--md-sys-typescale-body-large-font-size);
    transition: border-color 0.3s ease;
}

.md-input-outlined:focus {
    outline: none;
    border-color: var(--md-sys-color-primary);
}

.md-input-filled {
    width: 100%;
    padding: 16px;
    border: none;
    border-bottom: 1px solid var(--md-sys-color-outline);
    background-color: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface);
    font-family: var(--md-sys-typescale-body-large-font-family-name);
    font-size: var(--md-sys-typescale-body-large-font-size);
    transition: border-color 0.3s ease;
}

.md-input-filled:focus {
    outline: none;
    border-bottom-color: var(--md-sys-color-primary);
}

/* Navigation */
.md-navbar {
    background-color: var(--md-sys-color-surface);
    box-shadow: var(--md-sys-elevation-level1);
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.md-navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.md-navbar-logo {
    height: 40px;
}

.md-navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.md-navbar-item {
    margin-left: 24px;
}

.md-navbar-link {
    color: var(--md-sys-color-on-surface);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.md-navbar-link:hover,
.md-navbar-link.active {
    color: var(--md-sys-color-primary);
}

/* Hero Section */
.md-hero {
    padding: 120px 0 80px;
    background-color: var(--md-sys-color-surface);
}

/* Footer */

.md-footer-social {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.md-footer-social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.md-footer-social-icon:hover {
    background-color: #e08600; /* Slightly darker shade of primary */
}

.md-copyright {
    padding: 24px 0;
    background-color: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface-variant);
    border-top: 1px solid var(--md-sys-color-outline-variant);
}

/* Utility Classes */
.md-text-primary {
    color: var(--md-sys-color-primary);
}

.md-text-secondary {
    color: var(--md-sys-color-secondary);
}

.md-text-center {
    text-align: center;
}

.md-mt-1 {
    margin-top: 8px;
}
.md-mt-2 {
    margin-top: 16px;
}
.md-mt-3 {
    margin-top: 24px;
}
.md-mt-4 {
    margin-top: 32px;
}
.md-mt-5 {
    margin-top: 48px;
}

.md-mb-1 {
    margin-bottom: 8px;
}
.md-mb-2 {
    margin-bottom: 16px;
}
.md-mb-3 {
    margin-bottom: 24px;
}
.md-mb-4 {
    margin-bottom: 32px;
}
.md-mb-5 {
    margin-bottom: 48px;
}

.md-py-1 {
    padding-top: 8px;
    padding-bottom: 8px;
}
.md-py-2 {
    padding-top: 16px;
    padding-bottom: 16px;
}
.md-py-3 {
    padding-top: 24px;
    padding-bottom: 24px;
}
.md-py-4 {
    padding-top: 32px;
    padding-bottom: 32px;
}
.md-py-5 {
    padding-top: 48px;
    padding-bottom: 48px;
}

.md-px-1 {
    padding-left: 8px;
    padding-right: 8px;
}
.md-px-2 {
    padding-left: 16px;
    padding-right: 16px;
}
.md-px-3 {
    padding-left: 24px;
    padding-right: 24px;
}
.md-px-4 {
    padding-left: 32px;
    padding-right: 32px;
}
.md-px-5 {
    padding-left: 48px;
    padding-right: 48px;
}

/* ===== NAVIGATION ===== */
.md-navigation-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--md-sys-color-surface-container);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.md-header-modern {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--md-sys-color-surface);
    box-shadow: var(--md-sys-elevation-level1);
}

/* Header Top Bar */
.md-header-top {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    padding: 8px 0;
    font-size: 14px;
}

.md-header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.md-header-announcement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.md-header-announcement md-icon {
    font-size: 16px;
    color: var(--md-sys-color-primary);
}

.md-header-social {
    display: flex;
    gap: 4px;
}

.md-header-social md-icon-button {
    --md-icon-button-icon-color: var(--md-sys-color-on-primary-container);
    --md-icon-button-state-layer-color: var(--md-sys-color-primary);
    width: 32px;
    height: 32px;
}

/* Main Navigation */
.md-navigation-modern {
    background: var(--md-sys-color-surface);
    padding: 16px 0;
    backdrop-filter: blur(12px);
}

.md-navigation-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.md-logo-section {
    flex-shrink: 0;
}

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

.md-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.md-logo {
    height: 36px;
    width: auto;
}

.md-logo-text {
    display: flex;
    flex-direction: column;
}

.md-logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--md-sys-color-on-surface);
    font-family: "Google Sans", sans-serif;
    line-height: 1;
}

.md-logo-tagline {
    font-size: 0.75rem;
    color: var(--md-sys-color-on-surface-variant);
    font-weight: 400;
    line-height: 1;
}

.md-navigation-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.md-nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.md-nav-item {
    text-decoration: none;
    color: var(--md-sys-color-on-surface-variant);
    padding: 12px 16px;
    border-radius: var(--md-sys-shape-corner-large);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.md-nav-item:hover {
    background: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface);
}

.md-nav-item.active {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

.md-nav-item-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.md-nav-item-content md-icon {
    font-size: 18px;
}

.md-navigation-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.md-navigation-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--md-sys-color-on-surface);
    border-radius: 20px;
    transition: all 0.2s ease;
    font-weight: 500;
}

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

.md-navigation-link.active {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

.md-navigation-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.md-navigation-menu-button {
    display: none;
}

/* Navigation Mobile */
@media (max-width: 904px) {
    .md-navigation-links,
    .md-navigation-actions {
        display: none;
    }

    .md-navigation-menu-button {
        display: flex;
    }
}
/* ===== FOOTER ===== */

.md-footer-content {
    padding: 48px 0 24px;
    display: flex;
    flex-direction: column;
}

.md-footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    margin-bottom: 32px;
    width: 100%;
}

.md-footer-logo {
    height: 40px;
    width: auto;
}

.md-footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.md-footer-section h4 {
    margin-bottom: 16px;
    color: var(--md-sys-color-on-surface);
}

.md-footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.md-footer-section li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.md-footer-section a {
    color: var(--md-sys-color-on-surface-variant);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.md-footer-links a {
    color: var(--md-sys-color-on-surface-variant);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.md-footer-links md-icon {
    font-size: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.md-footer-social-links {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.md-footer-social-links md-icon-button {
    --md-icon-button-icon-color: var(--md-sys-color-on-surface-variant);
    --md-icon-button-state-layer-color: var(--md-sys-color-primary);
}

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

.md-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
}

.md-footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.md-footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.md-social-links {
    display: flex;
    gap: 8px;
}

/* Footer Mobile */
@media (max-width: 904px) {
    .md-footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .md-footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .md-footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .md-footer-social {
        align-items: center;
    }
}

/* Contact Section Specific */
#contact .md-grid-cols-2 {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.md-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
}

.md-contact-card {
    background: var(--md-sys-color-surface-container-low);
    border-radius: var(--md-sys-shape-corner-large);
    padding: 20px;
    box-shadow: var(--md-sys-elevation-level1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.md-contact-card:hover {
    box-shadow: var(--md-sys-elevation-level2);
    transform: translateY(-2px);
}

.md-contact-icon {
    width: 40px;
    height: 40px;
    background: var(--md-sys-color-primary-container);
    border-radius: var(--md-sys-shape-corner-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.md-contact-icon md-icon {
    color: var(--md-sys-color-on-primary-container);
    font-size: 20px;
}

.md-contact-card h4 {
    margin: 0 0 4px 0;
    color: var(--md-sys-color-on-surface);
}

.md-contact-card p {
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 904px) {
    #contact .md-grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .md-contact-info {
        max-width: none;
    }

    .md-card-elevated {
        min-height: auto;
    }
}

/* Testimonial Carousel Section */
.md-testimonial {
    padding: 80px 0;
    background: linear-gradient(
        135deg,
        var(--md-sys-color-surface-container-lowest) 0%,
        var(--md-sys-color-surface-container-low) 100%
    );
}

.md-testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.md-testimonial-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--md-sys-shape-corner-extra-large);
}

.md-testimonial-card {
    background: var(--md-sys-color-surface-container);
    border-radius: var(--md-sys-shape-corner-extra-large);
    padding: 48px;
    box-shadow: var(--md-sys-elevation-level2);
    position: relative;
    text-align: center;
    display: none;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.md-testimonial-card.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.md-testimonial-quote {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--md-sys-color-primary);
    border-radius: var(--md-sys-shape-corner-full);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--md-sys-elevation-level3);
}

.md-testimonial-quote-icon {
    color: var(--md-sys-color-on-primary);
    font-size: 32px;
}

.md-testimonial-text {
    margin: 32px 0;
    font-style: italic;
    color: var(--md-sys-color-on-surface);
    line-height: 1.6;
}

.md-testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.md-testimonial-avatar {
    width: 56px;
    height: 56px;
    background: var(--md-sys-color-primary-container);
    border-radius: var(--md-sys-shape-corner-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.md-testimonial-avatar md-icon {
    color: var(--md-sys-color-on-primary-container);
    font-size: 24px;
}

.md-testimonial-name {
    margin: 0;
    color: var(--md-sys-color-on-surface);
}

/* Testimonial Carousel Navigation */
.md-testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
}

.md-testimonial-prev,
.md-testimonial-next {
    --md-icon-button-icon-color: var(--md-sys-color-primary);
    --md-icon-button-state-layer-color: var(--md-sys-color-primary);
}

.md-testimonial-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}

.md-testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--md-sys-shape-corner-full);
    border: none;
    background: var(--md-sys-color-outline-variant);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.md-testimonial-dot.active {
    background: var(--md-sys-color-primary);
    transform: scale(1.2);
}

.md-testimonial-dot:hover {
    background: var(--md-sys-color-primary);
    opacity: 0.7;
}

@media (max-width: 599px) {
    .md-testimonial-card {
        padding: 32px 24px;
    }

    .md-testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .md-testimonial-nav {
        gap: 16px;
    }
}

/* Business Owners Section */
.md-business-section {
    padding: 80px 0;
    background-color: var(--md-sys-color-surface-container-low);
}

.md-business-card {
    background-color: var(--md-sys-color-surface-container);
    border-radius: var(--md-sys-shape-corner-large);
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s var(--md-sys-motion-easing-standard);
    border: 1px solid var(--md-sys-color-outline-variant);
}

.md-business-card:hover {
    background-color: var(--md-sys-color-surface-container-high);
    transform: translateY(-4px);
    box-shadow: var(--md-sys-elevation-level3);
}

.md-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--md-sys-shape-corner-medium);
    background-color: var(--md-sys-color-surface-container-highest);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s var(--md-sys-motion-easing-standard);
}

.md-feature-icon md-icon {
    font-size: 28px;
    color: var(--md-sys-color-accent);
}

.md-business-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--md-sys-shape-corner-medium);
    background-color: var(--md-sys-color-surface-container-highest);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.md-business-icon md-icon {
    font-size: 28px;
    color: var(--md-sys-color-accent);
}

.md-business-title {
    color: var(--md-sys-color-on-surface);
    margin-bottom: 16px;
}

.md-business-description {
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 24px;
    flex-grow: 1;
}

.md-business-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.md-business-features li {
    font-family: var(--md-sys-typescale-body-medium-font-family-name);
    font-size: var(--md-sys-typescale-body-medium-font-size);
    color: var(--md-sys-color-on-surface-variant);
    padding: 8px 0;
    position: relative;
    padding-left: 24px;
}

.md-business-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--md-sys-color-primary);
    font-weight: 600;
}

.md-business-cta {
    --md-filled-button-container-color: var(--md-sys-color-accent);
    --md-filled-button-label-text-color: white;
    font-size: 1.1rem;
    padding: 16px 32px;
    height: 56px;
    font-weight: 600;
}

.md-business-cta:hover {
    --md-filled-button-container-color: var(--md-sys-color-accent);
    transform: translateY(-2px);
    box-shadow: var(--md-sys-elevation-level2);
    filter: brightness(1.1);
}

.md-mobile-menu-btn {
    display: none;
}

/* Responsive Design for Business Section */
@media (max-width: 904px) {
    .md-business-section .md-grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .md-business-card {
        padding: 24px;
    }
}

@media (min-width: 905px) and (max-width: 1239px) {
    .md-business-section .md-grid-cols-3 {
        grid-template-columns: 1fr 1fr;
    }

    .md-business-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

/* Header Responsive Design */
@media (max-width: 768px) {
    /* Masquer la navigation desktop sur mobile */
    .md-navigation-menu {
        display: none;
    }

    /* Masquer les boutons de téléchargement desktop sur mobile */
    .md-header-cta {
        display: none;
    }

    /* Afficher le bouton menu mobile */
    .md-mobile-menu-btn {
        display: flex !important;
    }

    /* Optimiser la barre supérieure sur mobile */
    .md-header-top {
        padding: 6px 0;
        font-size: 12px;
    }

    .md-header-top-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .md-header-announcement {
        font-size: 12px;
    }

    .md-header-social {
        justify-content: center;
    }

    /* Optimiser la navigation principale sur mobile */
    .md-navigation-modern {
        padding: 12px 0;
    }

    .md-navigation-content {
        justify-content: space-between;
    }

    /* Optimiser le logo sur mobile */
    .md-logo {
        height: 32px;
    }

    .md-logo-text {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Masquer complètement la barre supérieure sur très petits écrans */
    .md-header-top {
        display: none;
    }

    /* Réduire encore plus le padding */
    .md-navigation-modern {
        padding: 8px 0;
    }

    .md-logo {
        height: 28px;
    }
}

/* Mobile Menu Styles */
.md-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--md-sys-motion-easing-standard);
}

.md-mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.md-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background-color: var(--md-sys-color-surface);
    z-index: 999;
    display: flex;
    flex-direction: column;
    box-shadow: var(--md-sys-elevation-level4);
    transition: right 0.3s var(--md-sys-motion-easing-standard);
}

.md-mobile-menu.active {
    right: 0;
}

.md-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    background-color: var(--md-sys-color-surface-container-low);
}

.md-mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.md-mobile-menu-title {
    font-family: var(--md-sys-typescale-title-large-font-family-name);
    font-size: var(--md-sys-typescale-title-large-font-size);
    font-weight: var(--md-sys-typescale-title-large-font-weight);
    color: var(--md-sys-color-on-surface);
}

.md-mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
}

.md-mobile-nav-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 20px;
}

.md-mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--md-sys-color-on-surface);
    border-radius: var(--md-sys-shape-corner-large);
    transition: all 0.2s var(--md-sys-motion-easing-standard);
    font-family: var(--md-sys-typescale-body-large-font-family-name);
    font-size: var(--md-sys-typescale-body-large-font-size);
    font-weight: var(--md-sys-typescale-body-large-font-weight);
}

.md-mobile-nav-item:hover {
    background-color: var(--md-sys-color-surface-container-high);
}

.md-mobile-nav-item.active {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

.md-mobile-nav-item md-icon {
    font-size: 24px;
    color: currentColor;
}

.md-mobile-download-section {
    padding: 24px 20px 20px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
    background-color: var(--md-sys-color-surface-container-lowest);
}

.md-mobile-download-title {
    font-family: var(--md-sys-typescale-title-medium-font-family-name);
    font-size: var(--md-sys-typescale-title-medium-font-size);
    font-weight: var(--md-sys-typescale-title-medium-font-weight);
    color: var(--md-sys-color-on-surface);
    margin: 0 0 16px 0;
    text-align: center;
}

.md-mobile-download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.md-mobile-download-btn {
    --md-filled-button-container-color: var(--md-sys-color-primary);
    --md-filled-button-label-text-color: var(--md-sys-color-on-primary);
    width: 100%;
    height: 48px;
    font-size: 14px;
    font-weight: 500;
}

.md-mobile-download-btn:first-child {
    --md-filled-button-container-color: var(--md-sys-color-accent);
    --md-filled-button-label-text-color: white;
}

/* Masquer le menu mobile sur desktop */
@media (min-width: 769px) {
    .md-mobile-menu,
    .md-mobile-menu-overlay {
        display: none;
    }
}

/* Legal Pages Hero Section Centering */
.md-legal-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.md-legal-hero-content .md-breadcrumb {
    justify-content: center;
    margin-bottom: 24px;
}

.md-legal-hero-content .md-legal-title {
    text-align: center;
    margin-bottom: 16px;
}

.md-legal-hero-content .md-legal-subtitle {
    text-align: center;
    margin-bottom: 24px;
}

.md-legal-hero-content .md-legal-meta {
    display: flex;
    justify-content: center;
}

/* Stats Section Responsive Design */
@media (max-width: 599px) {
    /* Mobile : 1 colonne */
    .md-stats .md-grid-cols-4 {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .md-stat-item {
        padding: 24px 16px;
    }

    .md-stat-number {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .md-stat-label {
        font-size: 0.9rem;
        margin-top: 8px;
    }

    /* Legal pages hero responsive */
    .md-legal-hero-content .md-legal-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .md-legal-hero-content .md-legal-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
    }
}

@media (min-width: 600px) and (max-width: 904px) {
    /* Tablette : 2 colonnes */
    .md-stats .md-grid-cols-4 {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .md-stat-item {
        padding: 20px 12px;
    }

    .md-stat-number {
        font-size: 2.75rem;
    }
}

@media (min-width: 905px) {
    /* Desktop : 4 colonnes (par défaut) */
    .md-stats .md-grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .md-stat-item {
        padding: 24px 16px;
    }
}

/* Contact Section Improved Layout */
.md-contact-container {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.md-contact-form-wrapper {
    flex: 1;
    max-width: 600px;
}

.md-contact-info-wrapper {
    flex: 0 0 400px;
    display: flex;
    justify-content: center;
}

.md-contact-info {
    width: 100%;
    max-width: 400px;
}

/* Contact Section Responsive */
@media (max-width: 904px) {
    .md-contact-container {
        flex-direction: column;
        gap: 32px;
        align-items: center;
    }

    .md-contact-form-wrapper {
        width: 100%;
        max-width: 600px;
    }

    .md-contact-info-wrapper {
        flex: none;
        width: 100%;
        max-width: 500px;
    }

    .md-contact-info {
        max-width: none;
    }
}

@media (max-width: 599px) {
    .md-contact-container {
        gap: 24px;
    }

    .md-contact-form-wrapper,
    .md-contact-info-wrapper {
        max-width: none;
    }
}

/* Footer Social Links Styles */
.md-footer-social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.md-footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--md-sys-shape-corner-full);
    background-color: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface-variant);
    text-decoration: none;
    transition: all 0.2s var(--md-sys-motion-easing-standard);
    border: 1px solid var(--md-sys-color-outline-variant);
}

.md-footer-social-link:hover {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    transform: translateY(-2px);
    box-shadow: var(--md-sys-elevation-level2);
}

.md-footer-social-link md-icon {
    font-size: 24px;
    color: currentColor;
}

/* Footer Social Links Responsive */
@media (max-width: 599px) {
    .md-footer-social-links {
        justify-content: center;
        gap: 12px;
    }

    .md-footer-social-link {
        width: 44px;
        height: 44px;
    }

    .md-footer-social-link md-icon {
        font-size: 20px;
    }
}

/* Legal Pages Styles - Material Design 3 */
.md-legal-hero {
    background: linear-gradient(
        135deg,
        var(--md-sys-color-primary-container) 0%,
        var(--md-sys-color-surface-container-low) 100%
    );
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.md-legal-hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.md-legal-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.md-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.md-breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--md-sys-color-on-primary-container);
    text-decoration: none;
    transition: color 0.2s var(--md-sys-motion-easing-standard);
}

.md-breadcrumb-link:hover {
    color: var(--md-sys-color-primary);
}

.md-breadcrumb-separator {
    color: var(--md-sys-color-on-primary-container);
    opacity: 0.6;
    font-size: 16px;
}

.md-breadcrumb-current {
    color: var(--md-sys-color-on-primary-container);
    opacity: 0.8;
}

.md-legal-title {
    color: var(--md-sys-color-on-primary-container);
    margin-bottom: 16px;
    line-height: 1.2;
}

.md-legal-subtitle {
    color: var(--md-sys-color-on-primary-container);
    opacity: 0.8;
    margin-bottom: 32px;
    line-height: 1.4;
}

.md-legal-meta {
    padding: 16px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--md-sys-shape-corner-large);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.md-legal-content {
    padding: 60px 0;
    background-color: var(--md-sys-color-surface);
}

.md-legal-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.md-legal-toc {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.md-legal-toc-card {
    background-color: var(--md-sys-color-surface-container-low);
    border-radius: var(--md-sys-shape-corner-large);
    padding: 24px;
    box-shadow: var(--md-sys-elevation-level1);
    border: 1px solid var(--md-sys-color-outline-variant);
}

.md-legal-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.md-legal-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--md-sys-color-on-surface-variant);
    border-radius: var(--md-sys-shape-corner-medium);
    transition: all 0.2s var(--md-sys-motion-easing-standard);
    font-size: 14px;
    font-weight: 500;
}

.md-legal-nav-item:hover {
    background-color: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface);
}

.md-legal-nav-item.active {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

.md-legal-nav-item md-icon {
    font-size: 20px;
    color: currentColor;
}

.md-legal-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.md-legal-section {
    scroll-margin-top: 100px;
}

.md-legal-section .md-card-elevated {
    padding: 32px;
    background-color: var(--md-sys-color-surface-container-lowest);
    border-radius: var(--md-sys-shape-corner-large);
    box-shadow: var(--md-sys-elevation-level1);
    border: 1px solid var(--md-sys-color-outline-variant);
}

.md-legal-section h2 {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 24px;
}

.md-legal-section h2 md-icon {
    font-size: 28px;
}

.md-legal-text {
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.6;
}

.md-legal-text p {
    margin-bottom: 16px;
}

.md-legal-text ul {
    margin: 16px 0;
    padding-left: 24px;
}

.md-legal-text li {
    margin-bottom: 8px;
}

.md-legal-text a {
    color: var(--md-sys-color-primary);
    text-decoration: none;
    font-weight: 500;
}

.md-legal-text a:hover {
    text-decoration: underline;
}

.md-legal-highlight {
    display: flex;
    gap: 16px;
    padding: 20px;
    background-color: var(--md-sys-color-primary-container);
    border-radius: var(--md-sys-shape-corner-medium);
    margin: 24px 0;
    border-left: 4px solid var(--md-sys-color-primary);
}

.md-legal-highlight md-icon {
    color: var(--md-sys-color-primary);
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.md-legal-highlight strong {
    color: var(--md-sys-color-on-primary-container);
    display: block;
    margin-bottom: 8px;
}

.md-legal-highlight ul {
    color: var(--md-sys-color-on-primary-container);
    margin: 0;
    padding-left: 20px;
}

.md-legal-contact-card {
    background: linear-gradient(
        135deg,
        var(--md-sys-color-accent) 0%,
        var(--md-sys-color-primary) 100%
    );
    color: white;
    padding: 32px;
    border-radius: var(--md-sys-shape-corner-large);
    text-align: center;
    margin-top: 32px;
}

.md-legal-contact-card h3 {
    margin-bottom: 16px;
    color: white;
}

.md-legal-contact-card p {
    margin-bottom: 24px;
    opacity: 0.9;
}

.md-legal-contact-btn {
    --md-filled-button-container-color: rgba(255, 255, 255, 0.2);
    --md-filled-button-label-text-color: white;
    --md-filled-button-hover-container-color: rgba(255, 255, 255, 0.3);
}

/* Legal Pages Responsive */
@media (max-width: 904px) {
    .md-legal-hero {
        padding: 60px 0 40px;
    }

    .md-legal-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .md-legal-toc {
        position: static;
        order: -1;
    }

    .md-legal-toc-card {
        padding: 20px;
    }

    .md-legal-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 8px;
    }

    .md-legal-nav-item {
        justify-content: center;
        text-align: center;
        padding: 16px 12px;
    }
}

@media (max-width: 599px) {
    .md-legal-hero {
        padding: 40px 0 30px;
    }

    .md-legal-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .md-legal-subtitle {
        font-size: 1.1rem;
    }

    .md-legal-section .md-card-elevated {
        padding: 24px 20px;
    }

    .md-legal-nav {
        grid-template-columns: 1fr;
    }

    .md-breadcrumb {
        flex-wrap: wrap;
    }
}
