/* Excuse You App-Themed Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables based on noexc app's design tokens */
:root {
    /* Brand Colors from DesignTokens */
    --brand-beige: #E4D5C2;
    --brand-blue-purple: #484B85;
    --brand-orange-red: #E24825;
    --brand-black: #0A0A14;

    /* Light Theme Colors */
    --light-background: var(--brand-beige);
    --light-primary: var(--brand-blue-purple);
    --light-secondary: var(--brand-orange-red);

    /* Message Bubble Colors */
    --bot-message-background: rgba(255, 255, 255, 0.9);
    --bot-message-background-alpha: rgba(255, 255, 255, 0.6);
    --user-message-background: #ffffff;
    --bot-message-text: var(--brand-black);
    --user-message-text: var(--brand-black);

    /* Choice Button Colors */
    --selected-choice-color: rgba(255, 255, 255, 0.86);
    --selected-choice-text: var(--brand-black);
    --selected-choice-border: rgba(77, 42, 0, 0.22);
    --unselected-choice-color: rgba(255, 255, 255, 0.98);
    --unselected-choice-text: var(--brand-black);
    --unselected-choice-border: rgba(255, 255, 255, 0.5);

    /* Interactive Element Colors */
    --primary-button-background: #DFda39;
    --primary-button-text: #ffffff;
    --secondary-button-background: #109EB7;
    --secondary-button-text: var(--light-primary);

    /* Spacing (4px base unit) */
    --space-xs: 4px;
    --space-s: 8px;
    --space-m: 12px;
    --space-l: 16px;
    --space-xl: 24px;
    --space-xxl: 32px;
    --space-xxxl: 48px;

    /* Border Radius */
    --radius-xs: 4px;
    --radius-s: 8px;
    --radius-m: 12px;
    --radius-l: 16px;
    --radius-xl: 24px;

    /* Typography */
    --font-size-s: 14px;
    --font-size-m: 16px;
    --font-size-l: 18px;
    --font-size-xl: 20px;
    --font-size-xxl: 24px;
    --font-size-xxxl: 32px;
    --line-height-normal: 1.4;
    --message-font-size: 18px;

    /* Shadows */
    --shadow-light: 0 2px 8px rgba(72, 75, 133, 0.1);
    --shadow-medium: 0 4px 16px rgba(72, 75, 133, 0.15);
    --shadow-strong: 0 8px 32px rgba(72, 75, 133, 0.2);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: var(--line-height-normal);
    color: var(--brand-black);
    background: var(--light-background);
    min-height: 100vh;
    font-size: var(--font-size-l);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl);
}

/* Header Styling */
header {
    text-align: center;
    color: var(--brand-black);
    padding: 60px 0 40px 0;
}

.logo-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(var(--shadow-light));
}

header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: var(--space-m);
    color: var(--light-primary);
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

header h1 a:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.tagline {
    font-size: 1.2rem;
    color: var(--brand-blue-purple);
    font-weight: 400;
    opacity: 0.8;
}

/* Navigation Styling */
.navigation {
    text-align: center;
    margin: var(--space-xl) 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-s);
}

.navigation a {
    color: var(--light-primary);
    text-decoration: none;
    padding: var(--space-m) var(--space-xl);
    border-radius: var(--radius-xl);
    background: var(--bot-message-background);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: var(--font-size-m);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--unselected-choice-border);
}

.navigation a:hover,
.navigation a.active {
    background: var(--selected-choice-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
    border-color: var(--selected-choice-border);
}

/* Main Content Styling */
main {
    background: var(--bot-message-background);
    border-radius: var(--radius-xl);
    padding: var(--space-xxxl);
    margin: var(--space-xl) 0;
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(10px);
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: var(--space-xxxl);
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--light-primary);
    margin-bottom: var(--space-xl);
    font-weight: 600;
}

.hero p {
    font-size: 1.3rem;
    color: var(--brand-blue-purple);
    line-height: 1.6;
    opacity: 0.9;
}

/* App Icon Hero Styling */
.app-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xxl);
    margin-bottom: var(--space-xxl);
    flex-wrap: wrap;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-strong);
    transition: transform 0.3s ease;
}

.app-icon:hover {
    transform: scale(1.05);
}

.app-info h2 {
    margin-bottom: var(--space-m);
    font-size: 2.5rem;
    text-align: left;
}

.app-info .subtitle {
    font-size: 1.2rem;
    color: var(--brand-blue-purple);
    margin: 0;
    opacity: 0.8;
    text-align: left;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.feature {
    text-align: center;
    padding: var(--space-xxl);
    background: var(--bot-message-background-alpha);
    border-radius: var(--radius-l);
    border: 1px solid var(--unselected-choice-border);
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.feature:hover {
    transform: translateY(-3px);
    border-color: var(--selected-choice-border);
    box-shadow: var(--shadow-medium);
    background: var(--selected-choice-color);
}

.feature h3 {
    font-size: 1.5rem;
    color: var(--light-primary);
    margin-bottom: var(--space-l);
    font-weight: 600;
}

.feature p {
    color: var(--brand-blue-purple);
    font-size: var(--font-size-l);
    line-height: var(--line-height-normal);
    opacity: 0.9;
}

/* Notification Cards */
.notify-section {
    margin-top: var(--space-xxxl);
    text-align: center;
}

.notify-card {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-xxl);
    background: var(--bot-message-background);
    border-radius: var(--radius-xl);
    border: 1px solid var(--selected-choice-border);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-medium);
}

.notify-card h3 {
    font-size: 1.8rem;
    color: var(--light-primary);
    margin-bottom: var(--space-xl);
    font-weight: 600;
}

.notify-card p {
    font-size: 1.2rem;
    color: var(--brand-blue-purple);
    line-height: var(--line-height-normal);
    opacity: 0.9;
}

/* Button Styling */
.email-link {
    display: inline-block;
    color: var(--primary-button-text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: var(--space-l) var(--space-xxl);
    border: 2px solid var(--light-secondary);
    border-radius: var(--radius-xl);
    transition: all 0.4s ease;
    margin-top: var(--space-l);
    background: var(--light-secondary);
    box-shadow: var(--shadow-light);
}

.email-link:hover {
    background: var(--primary-button-background);
    border-color: var(--primary-button-background);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.email-link-inline {
    color: var(--light-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--selected-choice-border);
    transition: all 0.3s ease;
}

.email-link-inline:hover {
    border-bottom-color: var(--light-secondary);
    color: var(--light-secondary);
}

/* Privacy Section */
.privacy-section {
    text-align: center;
    margin-top: var(--space-xxxl);
    padding: var(--space-xxl);
    background: var(--bot-message-background-alpha);
    border-radius: var(--radius-l);
    border: 1px solid var(--unselected-choice-border);
}

.privacy-section h3 {
    color: var(--light-primary);
    margin-bottom: var(--space-xl);
    font-size: 1.5rem;
    font-weight: 600;
}

.privacy-section p {
    color: var(--brand-blue-purple);
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

/* Footer Styling */
footer {
    text-align: center;
    color: var(--brand-blue-purple);
    padding: var(--space-xxl) 0;
    opacity: 0.8;
    font-size: var(--font-size-m);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: var(--space-l);
    }

    header h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .app-hero {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .app-info h2 {
        text-align: center;
        font-size: 2rem;
    }

    .app-info .subtitle {
        text-align: center;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .navigation {
        flex-direction: column;
    }

    .navigation a {
        margin: 0;
        padding: var(--space-m) var(--space-l);
    }

    .notify-card {
        padding: var(--space-xl);
        margin: 0 var(--space-l);
    }

    main {
        padding: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .app-icon {
        width: 100px;
        height: 100px;
    }

    .feature {
        padding: var(--space-xl);
    }

    .notify-card {
        padding: var(--space-l);
    }
}