:root {
    --papyrus-light: #fdfaf2;
    --papyrus-base: #f7f1e3;
    --papyrus-dark: #eddcb9;
    --papyrus-deep: #2c251e;
    --papyrus-muted: #6e6051;
    --gold-accent: #c39b4b;
    --gold-glow: #e5c17d;
    --action-color: #8b263e; /* Deep royal crimson */
    --action-hover: #b23b57;
    --card-shadow: 0 12px 24px rgba(44, 37, 30, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Lora', Georgia, serif;
    background: linear-gradient(135deg, var(--papyrus-light) 0%, var(--papyrus-base) 100%);
    color: var(--papyrus-deep);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Container & Grid Setup */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Navigation */
header {
    border-bottom: 1px double rgba(195, 155, 75, 0.3);
    background-color: rgba(253, 250, 242, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--papyrus-deep);
}

.logo img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--gold-accent);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo-text {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--papyrus-deep);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

nav a {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--papyrus-muted);
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    padding: 80px 0 100px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px double rgba(195, 155, 75, 0.3);
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(229, 193, 125, 0.15) 0%, rgba(253, 250, 242, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--papyrus-deep);
    text-shadow: 1px 1px 2px rgba(253, 250, 242, 0.8);
}

.hero-content h1 span {
    color: var(--action-color);
    display: block;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--papyrus-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Premium App Store Button */
.app-store-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--action-color) 0%, #631425 100%);
    color: var(--papyrus-light) !important;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 16px rgba(139, 38, 62, 0.3), 0 0 0 2px var(--gold-accent);
    transition: var(--transition);
    gap: 12px;
    border: none;
    cursor: pointer;
}

.app-store-btn:hover {
    background: linear-gradient(135deg, var(--action-hover) 0%, var(--action-color) 100%);
    box-shadow: 0 12px 24px rgba(139, 38, 62, 0.4), 0 0 0 2px var(--gold-glow);
    transform: translateY(-2px);
}

.app-store-btn:hover svg {
    transform: none; /* remove any transform conflicts */
}

.app-store-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.app-icon-wrapper {
    position: relative;
    background: var(--papyrus-light);
    border: 2px double var(--gold-accent);
    padding: 20px;
    border-radius: 40px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    max-width: 320px;
}

.app-icon-wrapper:hover {
    transform: translateY(-5px) rotate(2deg);
    box-shadow: 0 20px 40px rgba(44, 37, 30, 0.12);
}

.app-icon-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    display: block;
    border: 1px solid rgba(44, 37, 30, 0.1);
}

/* Features Section */
.features {
    padding: 100px 0;
    border-bottom: 1px double rgba(195, 155, 75, 0.3);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--papyrus-deep);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--papyrus-muted);
}

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

.feature-card {
    background: rgba(255, 253, 249, 0.6);
    border: 1px double rgba(195, 155, 75, 0.25);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 253, 249, 0.95);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--papyrus-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--action-color);
    border: 1px solid var(--gold-accent);
}

.feature-card h3 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--papyrus-deep);
}

.feature-card p {
    font-size: 1rem;
    color: var(--papyrus-muted);
}

/* Screenshot Carousel Section */
.screenshots {
    padding: 100px 0;
    border-bottom: 1px double rgba(195, 155, 75, 0.3);
    background: rgba(237, 220, 185, 0.2);
}

.carousel-outer {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
    max-width: 340px; /* Centered portrait container */
    margin: 0 auto;
    border-radius: 48px;
    border: 8px solid var(--papyrus-deep); /* Matte phone frame bezel */
    outline: 2px solid var(--gold-accent); /* Golden frame outline */
    box-shadow: var(--card-shadow), inset 0 0 12px rgba(0, 0, 0, 0.4);
    aspect-ratio: 9 / 19.5; /* Matches standard modern iPhone screen ratio */
    background: var(--papyrus-deep);
    padding: 6px; /* Bezel padding so screenshots are not clipped */
}

.carousel-track {
    display: flex;
    width: 1100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    width: calc(100% / 11);
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 36px; /* Smooth rounded corners matching modern phone screens */
}

/* Rich CSS Mockup fallbacks if images are missing */
.mockup-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--papyrus-light) 0%, var(--papyrus-dark) 100%);
    color: var(--papyrus-deep);
    z-index: 1;
    border-radius: 36px;
}

.mockup-fallback h4 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--action-color);
}

.mockup-fallback p {
    font-size: 1.1rem;
    color: var(--papyrus-muted);
    max-width: 500px;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--papyrus-light);
    border: 1px solid var(--gold-accent);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 5;
    color: var(--papyrus-deep);
}

.carousel-btn:hover {
    background: var(--action-color);
    color: var(--papyrus-light);
    border-color: var(--gold-glow);
}

.carousel-btn-prev {
    left: -27px;
}

.carousel-btn-next {
    right: -27px;
}

/* Dots indicator */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--papyrus-dark);
    border: 1px solid var(--gold-accent);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--action-color);
    transform: scale(1.2);
}

/* Support Section */
.support {
    padding: 100px 0;
    border-bottom: 1px double rgba(195, 155, 75, 0.3);
}

.support-box {
    background: rgba(255, 253, 249, 0.6);
    border: 2px double var(--gold-accent);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--card-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.support-box h3 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.support-box p {
    font-size: 1.2rem;
    color: var(--papyrus-muted);
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    color: var(--action-color);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

.support-link:hover {
    color: var(--action-hover);
    border-bottom-color: var(--action-hover);
}

/* Privacy Policy Section */
.privacy {
    padding: 100px 0;
}

.privacy-content {
    background: rgba(255, 253, 249, 0.4);
    border: 1px solid rgba(195, 155, 75, 0.2);
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.privacy-content h3 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2rem;
    margin-bottom: 24px;
    text-align: center;
}

.privacy-content h4 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.1rem;
    margin: 28px 0 12px 0;
    color: var(--papyrus-deep);
}

.privacy-content p {
    font-size: 0.95rem;
    color: var(--papyrus-muted);
    margin-bottom: 16px;
}

/* Footer */
footer {
    border-top: 1px double rgba(195, 155, 75, 0.3);
    background: var(--papyrus-deep);
    color: var(--papyrus-dark);
    padding: 60px 0;
    text-align: center;
}

footer p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--papyrus-muted);
    margin-top: 16px;
}

footer a {
    color: var(--gold-glow);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--papyrus-light);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    nav ul {
        display: none; /* Can be replaced by mobile drawer if needed */
    }

    .carousel-viewport {
        aspect-ratio: 9 / 16; /* Portrait ratio for mobile mockup display */
        max-width: 360px;
        margin: 0 auto;
    }
    
    .carousel-track {
        aspect-ratio: 9 / 16;
    }
}
