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

:root {
    /* Light Theme - Warm & Literary (matching MonoDraft) */
    --bg-primary: #faf9f7;
    --bg-secondary: #f0ede8;
    --bg-tertiary: #e8e4dd;
    --text-primary: #2c2c2c;
    --text-secondary: #6b6b6b;
    --text-muted: #8a8a8a;
    --accent: #c45d3e;
    --accent-hover: #a84d32;
    --accent-secondary: #2d5a4a;
    --border-color: #e4e0db;
    --border-subtle: #ebe8e3;
    --shadow-sm: 0 1px 2px rgba(44, 44, 44, 0.04);
    --shadow-md: 0 4px 12px rgba(44, 44, 44, 0.08);
    --shadow-lg: 0 12px 32px rgba(44, 44, 44, 0.12);

    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Source Serif 4', Georgia, serif;
    --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Animation */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
}

[data-theme="dark"] {
    --bg-primary: #1c1b19;
    --bg-secondary: #282623;
    --bg-tertiary: #333028;
    --text-primary: #e8e4de;
    --text-secondary: #9a958c;
    --text-muted: #6e6a62;
    --accent: #e07a5f;
    --accent-hover: #eb8d74;
    --accent-secondary: #5fa386;
    --border-color: #3a3632;
    --border-subtle: #302d29;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    transition: background var(--duration-normal) var(--ease-out),
                color var(--duration-normal) var(--ease-out);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background: var(--accent);
    color: white;
}

/* Header */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(250, 249, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

[data-theme="dark"] .landing-header {
    background: rgba(28, 27, 25, 0.92);
}

.suite-brand {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.suite-brand:hover {
    color: var(--accent-hover);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
}

/* Main Content */
main {
    padding-top: 56px;
}

/* Hero Section */
.hero {
    padding: 80px 24px 60px;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-tagline {
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Apps Grid */
.apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* App Card */
.app-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.app-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.app-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.app-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.app-features {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.app-features li {
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--text-primary);
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.app-features li:last-child {
    border-bottom: none;
}

.app-features li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.app-link {
    display: inline-block;
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    transition: background var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
}

.app-link:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Footer */
.landing-footer {
    text-align: center;
    padding: 32px 24px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 14px;
}

.landing-footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.landing-footer a:hover {
    color: var(--accent-hover);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 16px 40px;
    }

    .apps {
        padding: 0 16px 60px;
        gap: 24px;
    }

    .app-card {
        padding: 24px;
    }

    .app-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .landing-header {
        padding: 0 16px;
    }

    .hero {
        padding: 48px 16px 32px;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .app-card {
        padding: 20px;
    }

    .app-icon {
        font-size: 40px;
    }

    .app-title {
        font-size: 22px;
    }
}
