/* ============================
   VARIABLES
   ============================ */
:root {
    --primary:        #0F3D2E;
    --primary-light:  #1a5c44;
    --secondary:      #FFD750;
    --white:          #FFFFFF;
    --glass-bg:       rgba(255, 255, 255, 0.10);
    --glass-border:   rgba(255, 255, 255, 0.22);
    --card-shadow:    0 8px 32px rgba(15, 61, 46, 0.25);
    --text-glow:      0 0 14px rgba(255, 215, 80, 0.60);
    --ease:           cubic-bezier(0.4, 0, 0.2, 1);
    --transition:     0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================
   BODY & BACKGROUND
   ============================ */
body {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--white);
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-light) 45%, #2a7a56 75%, #c9a820 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.futur-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 65% 45% at 85% 8%,  rgba(255, 215, 80, 0.30) 0%, transparent 72%),
        radial-gradient(ellipse 45% 35% at 8%  85%, rgba(15, 61, 46, 0.55) 0%, transparent 72%);
    filter: blur(20px);
}

/* ============================
   NAVIGATION
   ============================ */
.main-nav {
    background: rgba(12, 48, 35, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 215, 80, 0.22);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: fadeInDown 0.6s var(--ease) both;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0.6rem 0;
    width: 90%;
    max-width: 1100px;
    margin: auto;
    position: relative;
}

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

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid var(--secondary);
    box-shadow: 0 0 10px rgba(255, 215, 80, 0.38);
    transition: box-shadow var(--transition), transform var(--transition);
}

.nav-logo:hover .nav-logo-img {
    box-shadow: 0 0 18px rgba(255, 215, 80, 0.65);
    transform: scale(1.06);
}

.nav-logo-text {
    font-weight: 700;
    font-size: 1.22rem;
    letter-spacing: 1px;
}

.logo-spend { color: var(--white); }
.logo-is    { color: var(--secondary); }

#nav-toggle { display: none; }

.nav-toggle-label {
    display: none;
    cursor: pointer;
    font-size: 1.55rem;
    color: var(--white);
    user-select: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
}

.nav-toggle-label:hover {
    color: var(--secondary);
    background: rgba(255, 215, 80, 0.1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 7px 13px;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
    letter-spacing: 0.2px;
}

.nav-links li a:hover,
.nav-links li a.active {
    background: var(--secondary);
    color: var(--primary);
}

/* ============================
   LAYOUT
   ============================ */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

.section {
    padding: 65px 0;
    position: relative;
    z-index: 2;
}

/* ============================
   HERO / HEADER
   ============================ */
header.hero {
    background: rgba(12, 48, 35, 0.40);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 215, 80, 0.18);
    text-align: center;
    padding: 72px 20px 56px;
    position: relative;
    z-index: 2;
    animation: fadeInDown 0.75s var(--ease) both;
}

.hero-icon {
    width: 74px;
    height: 74px;
    border-radius: 20px;
    border: 2.5px solid var(--secondary);
    box-shadow: 0 0 22px rgba(255, 215, 80, 0.50), 0 4px 18px rgba(15, 61, 46, 0.45);
    background: var(--white);
    display: block;
    margin: 0 auto 20px;
    animation: heroFloat 3.8s ease-in-out infinite;
    object-fit: contain;
}

.hero-logo-title {
    font-family: 'Orbitron', 'Montserrat', Arial, sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: 3px;
    text-shadow: var(--text-glow), 0 2px 8px rgba(15, 61, 46, 0.5);
    margin-bottom: 12px;
    animation: fadeIn 0.8s 0.2s both;
}

.hero-subtitle {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.80);
    font-weight: 500;
    animation: fadeIn 0.8s 0.4s both;
    letter-spacing: 0.3px;
}

/* ============================
   GLASS / CARDS
   ============================ */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    border: 1.5px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.ebook-box {
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    border: 1.5px solid rgba(255, 255, 255, 0.20);
    border-radius: 20px;
    padding: 38px 42px;
    box-shadow: var(--card-shadow);
}

.ebook-title {
    font-family: 'Orbitron', 'Montserrat', Arial, sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(255, 215, 80, 0.38);
    letter-spacing: 0.5px;
}

.ebook-author {
    color: rgba(255, 255, 255, 0.58);
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.highlight {
    color: var(--secondary);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 215, 80, 0.4);
}

/* ============================
   SECTION TITLES
   ============================ */
.section-title {
    text-align: center;
    font-family: 'Orbitron', 'Montserrat', Arial, sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--secondary);
    text-shadow: var(--text-glow);
    margin-bottom: 36px;
    letter-spacing: 1px;
    animation: glowPulse 3s ease-in-out infinite;
}

/* ============================
   FEATURES GRID
   ============================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.card {
    background: rgba(255, 255, 255, 0.09);
    border: 1.5px solid rgba(255, 215, 80, 0.22);
    border-radius: 16px;
    padding: 28px 24px;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(15, 61, 46, 0.18);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.card:hover {
    transform: translateY(-7px) scale(1.015);
    box-shadow: 0 16px 40px rgba(15, 61, 46, 0.38), 0 0 22px rgba(255, 215, 80, 0.18);
    border-color: rgba(255, 215, 80, 0.52);
    background: rgba(255, 255, 255, 0.14);
}

.card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 6px rgba(255, 215, 80, 0.35);
}

.card h3 i {
    font-size: 1.22em;
    filter: drop-shadow(0 0 5px rgba(255, 215, 80, 0.50));
}

.card p {
    color: rgba(255, 255, 255, 0.80);
    font-size: 0.93rem;
    line-height: 1.65;
}

/* ============================
   BUTTONS
   ============================ */
.cta {
    margin-top: 28px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.93rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.2px;
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px) scale(1.04);
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary);
    box-shadow: 0 4px 18px rgba(255, 215, 80, 0.38);
}

.btn-primary:hover {
    box-shadow: 0 6px 26px rgba(255, 215, 80, 0.58);
    filter: brightness(1.08);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.10);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--secondary);
    color: var(--secondary);
}

/* ============================
   STORE BUTTONS
   ============================ */
.stores {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 0.93rem;
    font-weight: 700;
    text-decoration: none;
    font-family: inherit;
    letter-spacing: 0.2px;
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.store-btn:hover {
    transform: translateY(-2px) scale(1.04);
    filter: brightness(1.12) drop-shadow(0 0 12px rgba(255, 215, 80, 0.55));
}

.store-btn i { font-size: 1.1em; }

.store-btn.appstore {
    background: linear-gradient(135deg, #1c1c1e, #3a3a3c);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
}

.store-btn.playstore {
    background: linear-gradient(135deg, #34A853, #1e7e34);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
}

.store-btn.webstore {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--secondary);
    border: 1.5px solid var(--secondary);
}

/* ============================
   APP DESCRIPTION
   ============================ */
.app-description {
    font-family: 'EB Garamond', Garamond, serif;
    font-size: 1.12rem;
    max-width: 620px;
    margin: 28px auto 0;
    background: rgba(255, 215, 80, 0.08);
    border: 1.5px solid rgba(255, 215, 80, 0.28);
    border-radius: 14px;
    padding: 20px 28px;
    color: rgba(255, 255, 255, 0.90);
    text-align: center;
    line-height: 1.85;
}

/* ============================
   LANGUAGE SWITCHER
   ============================ */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.10);
    border: 1.5px solid rgba(255, 215, 80, 0.28);
    border-radius: 8px;
    padding: 2px 8px;
    box-shadow: 0 1px 8px rgba(255, 215, 80, 0.10);
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.80);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 9px;
    border-radius: 6px;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
    font-family: inherit;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--secondary);
    color: var(--primary);
    box-shadow: 0 0 8px rgba(255, 215, 80, 0.48);
}

.lang-animate {
    animation: langFade 0.5s var(--ease) both;
}

/* ============================
   FORMS
   ============================ */
.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 7px;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline: none;
}

.form-input::placeholder { color: rgba(255, 255, 255, 0.40); }

.form-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 14px rgba(255, 215, 80, 0.22);
    background: rgba(255, 255, 255, 0.12);
}

.alert-success {
    margin: 28px 0;
    padding: 20px 24px;
    background: rgba(52, 168, 83, 0.18);
    border: 1.5px solid rgba(52, 168, 83, 0.45);
    border-radius: 12px;
    color: #a8f0c0;
    font-weight: 500;
    line-height: 1.6;
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
    background: rgba(10, 38, 27, 0.72);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 215, 80, 0.18);
    text-align: center;
    padding: 34px 20px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
    animation: fadeIn 1.2s 0.5s both;
}

.footer-inner {
    max-width: 760px;
    margin: auto;
}

.site-footer p {
    color: rgba(255, 215, 80, 0.72);
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.58);
    text-decoration: none;
    font-size: 0.83rem;
    transition: color var(--transition);
}

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

/* ============================
   PROSE (legal pages)
   ============================ */
.prose {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.85;
}

.prose h2 {
    font-family: 'Orbitron', 'Montserrat', Arial, sans-serif;
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 26px 0 10px;
    text-shadow: 0 0 6px rgba(255, 215, 80, 0.3);
}

.prose ul {
    margin: 14px 0 14px 22px;
}

.prose li { margin-bottom: 8px; }

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(36px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(55px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px)   rotate(0deg); }
    33%       { transform: translateY(-7px)  rotate(0.5deg); }
    66%       { transform: translateY(-4px)  rotate(-0.5deg); }
}

@keyframes glowPulse {
    0%, 100% { text-shadow: 0 0 8px  rgba(255, 215, 80, 0.42); }
    50%       { text-shadow: 0 0 24px rgba(255, 215, 80, 0.88), 0 0 48px rgba(255, 215, 80, 0.32); }
}

@keyframes langFade {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================
   SCROLL REVEAL
   ============================ */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition:
        opacity  0.62s var(--ease),
        transform 0.62s var(--ease);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.42s; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
    .nav-toggle-label { display: block !important; }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 38, 27, 0.97);
        backdrop-filter: blur(14px);
        flex-direction: column;
        gap: 0;
        padding: 14px 18px 18px;
        display: none;
        border-bottom: 1px solid rgba(255, 215, 80, 0.18);
    }

    #nav-toggle:checked ~ .nav-links { display: flex; }

    .nav-links li a {
        display: block;
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .hero-logo-title { font-size: 1.75rem; }
    .hero-icon        { width: 58px; height: 58px; }
    .ebook-box        { padding: 26px 22px; }
    .section          { padding: 50px 0; }
    .section-title    { font-size: 1.22rem; }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stores, .cta { flex-direction: column; align-items: flex-start; }
    .app-description { font-size: 1rem; padding: 16px 18px; }
}

@media (max-width: 600px) {
    .hero-icon         { width: 52px; height: 52px; border-radius: 14px; }
    .hero-logo-title   { font-size: 1.3rem; letter-spacing: 1.5px; }
    .hero-subtitle     { font-size: 0.92rem; }
    .ebook-box         { padding: 18px 14px; }
    .ebook-title       { font-size: 1.15rem; }
    .btn, .store-btn   { font-size: 0.88rem; padding: 10px 16px; }
    .app-description   { font-size: 0.95rem; padding: 12px 14px; }
    .section-title     { font-size: 1.1rem; }
}
