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

:root {
    color-scheme: dark;
    --color-paper: rgb(20, 18, 14);
    --color-cream: rgb(28, 25, 19);
    --color-paper-card: rgb(36, 33, 26);
    --color-paper-stroke: rgb(62, 57, 46);
    --color-ink: rgb(242, 238, 228);
    --color-ink-secondary: rgba(242, 238, 228, 0.42);
    --color-terracotta: rgb(195, 65, 65);
    --color-terracotta-muted: rgba(195, 65, 65, 0.14);
}

body {
    font-family: Georgia, "Times New Roman", serif;
    background-color: var(--color-paper);
    color: var(--color-ink);
    line-height: 1.6;
    text-transform: lowercase;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-paper-stroke);
    background-color: var(--color-cream);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    flex-shrink: 0;
}

.logo-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--color-ink);
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    color: var(--color-ink-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--color-ink);
}

/* Hero Section */
.hero {
    padding: 100px 0;
}

.hero-brand {
    display: flex;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-icon {
    width: 72px;
    height: auto;
    border-radius: 16px;
    flex-shrink: 0;
    object-fit: cover;
}

.hero-tagline {
    font-size: 18px !important;
    color: var(--color-ink-secondary);
    margin-bottom: 0 !important;
    line-height: 1.4 !important;
}


.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    font-weight: bold;
    margin-top: -18px;
    margin-bottom: -10px;
    letter-spacing: -1px;
    color: var(--color-ink);
}

.hero p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    color: var(--color-ink-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.card-deck {
    position: relative;
    width: 360px;
    height: 560px;
    transform: rotate(-20deg);
}

.card-deck .screenshot-img {
    position: absolute;
    width: 240px;
    height: auto;
    display: block;
    border-radius: 24px;
    border: 1.5px solid var(--color-paper-stroke);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    top: 0;
    left: 50%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-deck .screenshot-img:nth-child(1) {
    transform: translateX(calc(-50% - 80px)) rotate(-14deg);
    z-index: 1;
}

.card-deck .screenshot-img:nth-child(2) {
    transform: translateX(-50%) rotate(-1deg);
    z-index: 2;
}

.card-deck .screenshot-img:nth-child(3) {
    transform: translateX(calc(-50% + 80px)) rotate(12deg);
    z-index: 3;
}

.store-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.app-store-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background-color: var(--color-terracotta);
    color: white;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.app-store-button i {
    font-size: 24px;
}

.app-store-button:hover {
    transform: scale(0.98);
}

.app-store-button:active {
    transform: scale(0.97);
}

.app-store-button--passive {
    background-color: var(--color-paper-card);
    color: var(--color-ink-secondary);
    border: 1px solid var(--color-paper-stroke);
    box-shadow: none;
    cursor: default;
    pointer-events: none;
    opacity: 0.7;
}

/* Features */
.features {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--color-paper-card);
    border: 1px solid var(--color-paper-stroke);
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-terracotta-muted);
    color: var(--color-terracotta);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
    color: var(--color-ink);
}

.feature-card p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    color: var(--color-ink-secondary);
    line-height: 1.6;
}

/* Section Headers */
.section-header {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: var(--color-ink-secondary);
    margin-bottom: 12px;
}

.section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: bold;
    letter-spacing: -1px;
    color: var(--color-ink);
    margin-bottom: 20px;
}

/* Content Pages */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.content-page h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: bold;
    letter-spacing: -1px;
    margin-bottom: 32px;
    color: var(--color-ink);
}

.content-page h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--color-ink);
}

.content-page p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    color: var(--color-ink);
    line-height: 1.7;
    margin-bottom: 16px;
}

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

.content-page li {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    color: var(--color-ink);
    line-height: 1.7;
    margin-bottom: 8px;
}

.content-page a {
    color: var(--color-terracotta);
    text-decoration: none;
    border-bottom: 1px solid var(--color-terracotta);
}

.content-page a:hover {
    opacity: 0.8;
}

.divider {
    height: 1px;
    background-color: var(--color-paper-stroke);
    margin: 40px 0;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--color-paper-stroke);
    margin-top: 80px;
    background-color: var(--color-cream);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    color: var(--color-ink-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-ink);
}

.footer-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    color: var(--color-ink-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
    }

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

    .store-buttons {
        align-items: center;
        margin-bottom: 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .image-placeholder {
        max-width: 280px;
        margin: 0 auto;
    }

    .card-deck {
        width: 300px;
        height: 480px;
    }

    .card-deck .screenshot-img {
        width: 200px;
    }

    .card-deck .screenshot-img:nth-child(1) {
        transform: translateX(calc(-50% - 110px)) rotate(-26deg);
    }

    .card-deck .screenshot-img:nth-child(3) {
        transform: translateX(calc(-50% + 110px)) rotate(22deg);
    }

    nav {
        gap: 16px;
    }

    nav a {
        font-size: 14px;
    }

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