:root {
    --bg: #141414;
    --text: rgba(255, 255, 255, 0.85);
    --title: rgba(255, 255, 255, 0.85);
    --tagline: rgba(255, 255, 255, 0.65);
    --page-glow: transparent;
    --icon-glow: transparent;
    --footer-text: rgba(255, 255, 255, 0.4);
    --nav-link: rgba(255, 255, 255, 0.4);
    --nav-link-hover: rgba(255, 255, 255, 0.8);
    --contact-bg: rgba(255, 255, 255, 0.1);
    --contact-text: #ffffff;
    --contact-border: rgba(255, 255, 255, 0.2);
    --contact-hover-bg: rgba(255, 255, 255, 0.18);
    --contact-hover-border: rgba(255, 255, 255, 0.35);
    --cta-bg: #ffffff;
    --cta-text: #000000;
    --secondary-text: #b0b0b0;
    --secondary-border: #3a3a3c;
    --secondary-hover-border: #636366;
    --secondary-hover-text: #ffffff;
}

@media (prefers-color-scheme: light) {
    :root {
    --bg: #fafafa;
    --text: rgba(30, 40, 60, 0.85);
    --title: rgba(30, 40, 60, 0.85);
    --tagline: rgba(30, 40, 60, 0.85);
    --page-glow: transparent;
    --icon-glow: transparent;
    --footer-text: rgba(30, 40, 60, 0.4);
    --nav-link: rgba(30, 40, 60, 0.4);
    --nav-link-hover: rgba(30, 40, 60, 0.8);
    --contact-bg: rgba(0, 0, 0, 0.06);
    --contact-text: #1a1a2e;
    --contact-border: rgba(0, 0, 0, 0.12);
    --contact-hover-bg: rgba(0, 0, 0, 0.10);
    --contact-hover-border: rgba(0, 0, 0, 0.20);
    --cta-bg: #000000;
    --cta-text: #ffffff;
    --secondary-text: #555566;
    --secondary-border: #c8c8d0;
    --secondary-hover-border: #9999a6;
    --secondary-hover-text: #1a1a2e;
    }
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    color-scheme: light dark;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== FULL-PAGE CENTERED LAYOUT ===== */
.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow behind the icon area */
.page-wrapper::before {
    content: '';
    position: absolute;
    top: 45%;
    left: 38%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        var(--page-glow) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

/* ===== HERO SECTION ===== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    padding: 40px;
    max-width: 960px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ===== HERO HEADER (logo + title row) ===== */
.hero-header {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ===== APP ICON ===== */
.app-icon-wrapper {
    flex-shrink: 0;
    position: relative;
}

/* Soft glow around the icon */
.app-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: radial-gradient(
        circle,
        var(--icon-glow) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.app-icon {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 76px;
    font-weight: 600;
    color: var(--title);
    letter-spacing: -2.5px;
    line-height: 1.05;
}

.app-tagline {
    font-size: 19px;
    font-weight: 300;
    color: var(--tagline);
    line-height: 1.55;
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
}

/* ===== CTA BUTTONS ===== */
.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-cta-default {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background-color: var(--cta-bg);
    color: var(--cta-text);
    text-decoration: none;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.1px;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-cta-default:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* Secondary frosted button */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background-color: var(--contact-bg);
    color: var(--contact-text);
    text-decoration: none;
    border: 1px solid var(--contact-border);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.1px;
    transition: background-color 0.2s ease, border-color 0.2s ease,
                transform 0.15s ease;
}

.btn-secondary:hover {
    background-color: var(--contact-hover-bg);
    border-color: var(--contact-hover-border);
    transform: translateY(-1px);
}

/* ===== FOOTER ===== */
.footer {
    padding: 28px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.footer-copyright {
    color: var(--footer-text);
    font-size: 14px;
    font-weight: 400;
    flex: 1;
}

.footer-attribution {
    color: var(--footer-text);
    font-size: 14px;
    font-weight: 400;
    flex: 1;
    text-align: right;
}

.footer-attribution a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-attribution a:hover {
    color: var(--nav-link-hover);
}

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

.footer-nav a {
    color: var(--nav-link);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--nav-link-hover);
}

/* ===== PAGE NAV ===== */
.page-nav {
    max-width: 680px;
    width: 100%;
    padding: 0 0 16px;
}

.page-nav a {
    color: var(--nav-link);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.page-nav a:hover {
    color: var(--nav-link-hover);
}

/* ===== ICON STYLE: CIRCLE ===== */
.icon-style-circle .app-icon {
    border-radius: 50%;
    background-color: var(--bg);
}

.icon-style-circle .app-icon img {
    border-radius: 50%;
}

/* ===== ICON STYLE: APP ICON ===== */
.icon-style-app-icon .app-icon {
    border-radius: 22.5%;
    background-color: var(--bg);
}

.icon-style-app-icon .app-icon img {
    border-radius: 22.5%;
}

/* ===== PAGE CONTENT ===== */
.page-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 40px 40px;
}

.page-content {
    max-width: 680px;
    width: 100%;
    color: var(--text);
    font-size: 17px;
    line-height: 1.7;
}

.page-content h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 40px;
    font-weight: 600;
    color: var(--title);
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.page-content h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--title);
    letter-spacing: -0.5px;
    margin-top: 36px;
    margin-bottom: 16px;
}

.page-content h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--title);
    margin-top: 28px;
    margin-bottom: 12px;
}

.page-content p {
    margin-bottom: 16px;
}

.page-content a {
    color: var(--nav-link-hover);
    text-decoration: underline;
}

.page-content ul, .page-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.page-content li {
    margin-bottom: 8px;
}

.page-content code {
    font-size: 15px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--contact-bg);
}

.page-content pre {
    padding: 16px;
    border-radius: 8px;
    background: var(--contact-bg);
    overflow-x: auto;
    margin-bottom: 16px;
}

.page-content pre code {
    padding: 0;
    background: transparent;
}

.page-content blockquote {
    border-left: 3px solid var(--nav-link);
    padding-left: 16px;
    margin-bottom: 16px;
    color: var(--tagline);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-header {
    animation: fadeUp 0.8s ease-out both;
}

.app-tagline {
    animation: fadeUp 0.8s ease-out 0.3s both;
}

.page-nav {
    animation: fadeUp 0.6s ease-out 0.5s both;
}

.footer {
    animation: fadeUp 0.6s ease-out 0.5s both;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        padding: 40px 24px;
    }

    .page-wrapper::before {
        top: 35%;
        left: 50%;
    }

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

    .app-icon {
        width: 72px;
        height: 72px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .footer-copyright {
        text-align: center;
    }

    .footer-attribution {
        text-align: center;
    }

    .page-content-wrapper {
        padding: 32px 24px 40px;
    }

    .page-content h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero-header {
        flex-direction: column;
        gap: 16px;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .app-icon {
        width: 64px;
        height: 64px;
    }

    .page-content h1 {
        font-size: 28px;
    }

    .page-content h2 {
        font-size: 24px;
    }
}