/* ----------------------------------------------------
   DESIGN SYSTEM & VARIABLES
   ---------------------------------------------------- */
:root {
    /* Color Palette */
    --clr-primary: #163c2c;       /* Forest Green */
    --clr-primary-light: #20563f; /* Lighter Forest Green */
    --clr-accent: #eb6e4e;        /* Soft Coral/Salmon */
    --clr-accent-hover: #d85736;  /* Darker Coral */
    --clr-secondary: #73937e;     /* Soft Sage Green */
    --clr-bg: #faf8f4;            /* Warm Cream/Ivory */
    --clr-text: #0a1b14;          /* Deep Dark Green-Black */
    --clr-text-light: #44564e;    /* Subdued Green-Gray */
    --clr-white: #ffffff;
    
    /* Glassmorphism Accents */
    --glass-bg: rgba(250, 248, 244, 0.55);
    --glass-border: rgba(255, 255, 255, 0.45);
    --glass-shadow: 0 12px 40px rgba(10, 27, 20, 0.06);
    
    /* Fonts */
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-quick: all 0.15s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-quick);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* ----------------------------------------------------
   TYPOGRAPHY
   ---------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
}

/* ----------------------------------------------------
   UTILITIES
   ---------------------------------------------------- */
.w-full { width: 100%; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.text-white { color: var(--clr-white) !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-white);
    box-shadow: 0 4px 14px rgba(235, 110, 78, 0.3);
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 110, 78, 0.4);
}

.btn-secondary {
    background-color: var(--glass-bg);
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary);
}

.btn-secondary:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
}

.btn-outline:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

/* ----------------------------------------------------
   BACKGROUND VIDEO
   ---------------------------------------------------- */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 60, 44, 0.85); /* Deep Forest Green Overlay */
    backdrop-filter: blur(16px);         /* Elegant Glassmorphism Wash */
    z-index: -1;
}

/* ----------------------------------------------------
   HEADER / NAVIGATION
   ---------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-smooth);
    padding: 20px 0;
}

.header.scrolled {
    background-color: rgba(22, 60, 44, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--clr-accent);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-white);
}

.logo-text span {
    font-weight: 400;
    color: var(--clr-secondary);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover {
    color: var(--clr-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--clr-accent);
    transition: var(--transition-quick);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-nav-web {
    color: var(--clr-white);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.btn-nav-web:hover {
    background-color: var(--clr-white);
    color: var(--clr-primary);
}

/* Mobile Nav Toggles */
.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--clr-white);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--clr-primary);
    z-index: 200;
    box-shadow: -10px 0 30px rgba(0,0,0,0.25);
    transition: var(--transition-smooth);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.mobile-drawer.active {
    right: 0;
}

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

.mobile-drawer-close {
    font-size: 1.8rem;
    color: var(--clr-white);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:hover {
    color: var(--clr-white);
}

.drawer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 10px 0;
}

/* ----------------------------------------------------
   HERO SECTION
   ---------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge-row {
    margin-bottom: 24px;
}

.badge {
    background-color: rgba(235, 110, 78, 0.12);
    border: 1px solid rgba(235, 110, 78, 0.25);
    color: var(--clr-accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-block;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-title {
    font-size: 3.8rem;
    color: var(--clr-white);
    margin-bottom: 24px;
    line-height: 1.15;
}

.highlight-text {
    color: var(--clr-secondary);
    font-style: italic;
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 680px;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Botanical Accents */
.botanical-accent {
    position: absolute;
    width: 150px;
    height: auto;
    color: var(--clr-secondary);
    opacity: 0.35;
    z-index: -1;
    pointer-events: none;
    animation: sway 12s ease-in-out infinite alternate;
}

.botanical-left {
    bottom: -60px;
    left: -140px;
    transform-origin: bottom center;
}

.botanical-right {
    top: -60px;
    right: -140px;
    transform-origin: bottom center;
    animation-delay: -3s;
}

@keyframes sway {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

/* ----------------------------------------------------
   SECTION LAYOUT
   ---------------------------------------------------- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
}

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

.section-title {
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--clr-text-light);
}

/* ----------------------------------------------------
   FEATURES GRID
   ---------------------------------------------------- */
.features-section {
    background-color: var(--clr-bg);
    position: relative;
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.03);
}

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

.feature-card {
    background-color: var(--clr-white);
    border: 1px solid rgba(115, 147, 126, 0.15);
    padding: 40px 30px;
    border-radius: 24px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(10, 27, 20, 0.02);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(10, 27, 20, 0.06);
    border-color: rgba(115, 147, 126, 0.35);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background-color: rgba(115, 147, 126, 0.12);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
    background-color: var(--clr-accent);
    color: var(--clr-white);
    transform: rotate(5deg);
}

.feature-card-title {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--clr-primary);
    margin-bottom: 12px;
}

.feature-card-text {
    font-size: 0.95rem;
    color: var(--clr-text-light);
    line-height: 1.6;
}

/* ----------------------------------------------------
   INTERACTIVE MOCKUP SECTION
   ---------------------------------------------------- */
.mockup-section {
    background-color: #f5f2eb; /* Slightly darker cream for contrast */
}

.mockup-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 80px;
}

.mockup-info {
    max-width: 520px;
}

.small-badge {
    color: var(--clr-accent);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    display: inline-block;
}

.feature-bullets {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bullet {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--clr-text-light);
}

.bullet i {
    color: var(--clr-secondary);
    font-size: 1.2rem;
}

/* Phone Container mockup */
.mockup-interactive {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 100%;
    max-width: 330px;
    height: auto;
    border-radius: 40px;
    background-color: var(--clr-primary);
    border: 10px solid var(--clr-primary);
    box-shadow: 0 30px 60px rgba(10, 27, 20, 0.15);
    overflow: hidden;
    position: relative;
}

.phone-header {
    background-color: var(--clr-primary);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.phone-title {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.phone-body {
    background-color: var(--clr-bg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

.question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--clr-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
}

.question-text {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--clr-text);
    margin-bottom: 24px;
}

.math-symbol {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--clr-primary-light);
}

/* Interactive Option Buttons */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: var(--clr-white);
    border: 1px solid rgba(115, 147, 126, 0.18);
    padding: 14px 18px;
    border-radius: 16px;
    text-align: left;
    transition: var(--transition-quick);
}

.option-btn:hover {
    border-color: var(--clr-secondary);
    background-color: rgba(115, 147, 126, 0.05);
}

.option-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--clr-bg);
    color: var(--clr-text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition-quick);
}

.option-content {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-text);
}

/* Option Click States */
.option-btn.selected-correct {
    background-color: #d8f3dc;
    border-color: #52b788;
}

.option-btn.selected-correct .option-letter {
    background-color: #52b788;
    color: var(--clr-white);
}

.option-btn.selected-incorrect {
    background-color: #ffe5ec;
    border-color: #ffb3c1;
}

.option-btn.selected-incorrect .option-letter {
    background-color: #ff5d8f;
    color: var(--clr-white);
}

/* Explanation Panel */
.explanation-box {
    margin-top: 24px;
    background-color: var(--clr-white);
    border-radius: 16px;
    padding: 18px;
    border-left: 4px solid var(--clr-secondary);
    box-shadow: 0 4px 12px rgba(10,27,20,0.02);
    animation: slideUp 0.35s ease-out;
}

.explanation-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--clr-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.explanation-text {
    font-size: 0.85rem;
    color: var(--clr-text-light);
    line-height: 1.5;
}

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

/* ----------------------------------------------------
   TRUST BOX (WHY FREE)
   ---------------------------------------------------- */
.why-free-section {
    background-color: var(--clr-bg);
}

.trust-box {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    padding: 80px 60px;
    border-radius: 36px;
    background-image: radial-gradient(circle at 90% 10%, rgba(235, 110, 78, 0.08) 0%, transparent 60%);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.trust-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.trust-icon {
    font-size: 3rem;
    color: var(--clr-accent);
    margin-bottom: 24px;
}

.trust-text {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    margin-bottom: 24px;
}

.founder-signature {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sig-name {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--clr-secondary);
    font-size: 1.25rem;
}

/* ----------------------------------------------------
   FAQ SECTION
   ---------------------------------------------------- */
.faq-section {
    background-color: var(--clr-white);
}

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

.faq-item {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(115, 147, 126, 0.15);
}

.faq-question {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--clr-primary);
    margin-bottom: 12px;
}

.faq-answer {
    font-size: 0.95rem;
    color: var(--clr-text-light);
    line-height: 1.6;
}

/* ----------------------------------------------------
   FOOTER
   ---------------------------------------------------- */
.footer {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 40px 24px;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.footer-brand {
    max-width: 360px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col a {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
}

.footer-col a:hover {
    color: var(--clr-accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ----------------------------------------------------
   RESPONSIVE DESIGN / MEDIA QUERIES
   ---------------------------------------------------- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .mockup-layout {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .mockup-info {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .feature-bullets {
        align-items: center;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Header menu overrides */
    .nav-menu, .nav-actions {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.3rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .trust-box {
        padding: 50px 30px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links-row {
        flex-direction: column;
        gap: 40px;
    }

    .botanical-accent {
        display: none;
    }
}
