/* Reset & Base */
:root {
    /* Light Theme (Default) */
    --text: #11181C;
    --background: #fff;
    --tint: #0a7ea4;
    --border: #ccc;

    /* Shelf Colors */
    --shelf-light: #D2B48C;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #fcfcfc;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

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

ul {
    list-style-type: disc;
    margin-left: 20px;
    color: #555;
}

/* Typography */
h1,
h2,
h3 {
    margin-bottom: 15px;
    color: var(--text);
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.25rem;
    color: var(--tint);
}

/* Components */
.btn-download {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--tint);
    color: #fff;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-download:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 126, 164, 0.3);
}

.btn-download.secondary {
    background-color: #fff;
    color: var(--tint);
    border: 1px solid var(--tint);
}

.btn-download.secondary:hover {
    background-color: #f0f8ff;
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    /* Slightly smaller to fit image aspect ratio better if needed, or keep 300 */
    height: auto;
    background: transparent;
    border-radius: 40px;
    border: 12px solid #333;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    aspect-ratio: 9 / 18.5;
    /* Typical modern phone aspect ratio */
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #333;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.phone-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Screenshot Gallery */
.gallery-section {
    background-color: #f9f9f9;
    padding: 80px 0;
    text-align: center;
}

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

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-item img {
    width: 240px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 8px solid #333;
}

.gallery-item img:hover {
    transform: translateY(-10px);
}

.book-spine {
    width: 38px;
    height: 155px;
    margin: 0 4px;
    /* Increased margin for better spacing */
    border-radius: 3px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 11px;
    /* Slightly larger */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2), inset 1px 1px 3px rgba(255, 255, 255, 0.3);
    /* Enhanced 3D effect */
    font-weight: 700;
    cursor: default;
    transition: transform 0.2s;
    letter-spacing: 2px;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

.book-spine:hover {
    transform: translateY(-5px);
}

.gallery-caption {
    margin-top: 20px;
    font-weight: bold;
    color: #555;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fdfbf7 0%, #fff 100%);
    padding: 60px 0;
    min-height: 80vh;
    text-align: left;
}

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

@media (min-width: 800px) {
    .hero .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .hero-text {
        flex: 1;
        max-width: 500px;
    }

    .hero-visual {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }
}

.hero .tagline {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 10px;
}

.hero .description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

/* Features Section */
.features {
    padding: 60px 0;
    background-color: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid #f0f0f0;
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card p {
    color: #666;
}

/* Footer / CTA */
.cta {
    background-color: #2c3e50;
    /* Midnight theme inspired */
    color: #fff;
    text-align: center;
    padding: 80px 0 40px;
}

.cta h2 {
    color: #fff;
}

.cta p {
    color: #ccc;
    margin-bottom: 20px;
}

.cta .copyright {
    margin-top: 60px;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #444;
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 60px 0;
    }
}

/* Download Page Styles */
/* Download Page Styles */
.download-options {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.btn-store {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 280px;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    color: #fff;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .btn-store {
        margin: 0;
    }
}

.btn-store:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-ios {
    background-color: #1a1a1a;
    color: #fff;
}

.btn-ios.disabled {
    background-color: #7f8c8d;
    cursor: default;
    pointer-events: none;
    opacity: 0.8;
}

.btn-apk {
    background-color: #24292e;
    /* GitHub Black */
    color: #fff;
}

.btn-apk:hover {
    background-color: #3b434a;
}

.store-icon {
    width: 28px;
    height: 28px;
    margin-right: 12px;
    fill: currentColor;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.store-text-small {
    font-size: 0.7rem;
    opacity: 0.8;
}

.store-text-large {
    font-size: 1.1rem;
    font-weight: 600;
}

.install-guide {
    background-color: #fff;
    padding: 60px 0;
}

.step-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
    max-width: 700px;
    margin: 0 auto;
}

.step-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.step-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background-color: #e67e22;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: bold;
    font-size: 0.9rem;
}

.step-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
    display: block;
    color: #2c3e50;
}

.bookshelf-row {
    display: flex;
    flex-direction: row;
    /* Force horizontal alignment */
    flex-wrap: wrap;
    /* Wrap if needed (on PC) */
    justify-content: center;
    /* Center items */
    align-items: flex-end;
    /* Align bottom */
    border-bottom: 12px solid var(--shelf-light);
    padding-bottom: 0;
    margin-bottom: 20px;
    min-height: 170px;
    position: relative;
    gap: 4px;
    /* Space between books */
}

.note-box {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.95rem;
    color: #856404;
    border-radius: 4px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* End of file check */