:root {
    /* Color Palette - Modern History / Warm Academic */
    --primary-color: #0f172a;      /* Deep Slate / Midnight Navy */
    --primary-light: #334155;      /* Lighter Slate for hovers */
    --accent-color: #d97706;       /* Bronze/Gold Accent */
    --accent-hover: #b45309;       
    --bg-color: #fdfbf7;           /* Warm Parchment / Off-White */
    --bg-secondary: #f3f0e6;       /* Slightly darker warm gray */
    --text-main: #1e293b;          /* Dark Text */
    --text-muted: #475569;         /* Muted Text */
    --white: #ffffff;
    
    /* Shadows & Borders */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --border-subtle: #e2e8f0;

    /* Typography */
    --font-heading: 'Noto Serif Georgian', serif;
    --font-body: 'Noto Serif Georgian', serif;
    
    /* Layout */
    --container-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
}

/* Typography Overrides */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.25;
    margin-bottom: 0.75em;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5em;
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons - Sharp, Elegant */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm); /* Sharper corners */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 12px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
    background-color: var(--bg-secondary);
    color: var(--primary-color);
    border: 1px solid var(--border-subtle);
}

.btn-sm:hover {
    background-color: var(--white);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-block {
    width: 100%;
}

/* Navbar Placeholder */
.navbar-placeholder {
    height: 80px;
}

/* Hero Section - Centered & Elegant */
.hero-section {
    padding: 80px 0 100px;
    background-image: linear-gradient(to bottom, var(--bg-color), var(--white));
    position: relative;
    overflow: hidden;
}

/* Decorative background circle */
.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    order: 1;
}

.logo-area {
    margin-bottom: 24px;
}

.academy-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-color);
    background: rgba(217, 119, 6, 0.1);
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.main-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    line-height: 1.1;
}

.subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 32px;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-image {
    order: 2;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-img-real {
    width: 100%;
    max-width: 480px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    transition: transform 0.5s ease;
    /* Gentle floating animation */
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* Sections General */
.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5em;
    position: relative;
    display: inline-block;
}

.center-text {
    text-align: center;
}

/* Book Preview (Clean Layout) */
.book-preview-section {
    padding: 100px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.book-preview-section .container {
    max-width: 1000px;
}

.secondary-product-title {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

.features-list-wrapper {
    margin-top: 40px;
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.03);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-main);
}

.features-list li i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Features Grid (Cards) */
.features-section {
    padding: 120px 0;
    background-color: var(--bg-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.feature-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-sm);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--accent-color);
    transition: height 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-card .icon-box {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 24px;
    background: var(--bg-secondary);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

/* Tests Section */
.tests-section {
    padding: 100px 0;
    background-color: var(--white);
}

.tests-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tests-visual {
    display: flex;
    justify-content: center;
}

.tests-icon-placeholder {
    width: 300px;
    height: 300px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--accent-color);
    position: relative;
}

.tests-icon-placeholder::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: -20px;
    left: -20px;
    border: 1px dashed var(--border-subtle);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

@keyframes spin { 
    100% { transform: rotate(360deg); } 
}

/* Free Materials */
.free-materials-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.materials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}

.material-item {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 280px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.material-item:hover {
    border-color: var(--accent-color);
}

.material-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.material-item span {
    font-weight: 600;
    flex: 1;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    background-color: var(--white);
}

.pricing-card {
    max-width: 450px;
    margin: 0 auto;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.pricing-header {
    padding: 48px 40px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
}

.pricing-header h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pricing-header .price {
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-heading);
}

.pricing-body {
    padding: 40px;
}

.pricing-body ul {
    margin-bottom: 40px;
}

.pricing-body li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.pricing-body li i {
    color: var(--accent-color);
}

.pricing-body .btn {
    background-color: var(--white);
    color: var(--primary-color);
    width: 100%;
}

.pricing-body .btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.faq-grid {
    max-width: 800px;
    margin: 48px auto 0;
    display: grid;
    gap: 24px;
}

.faq-item {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--card-shadow);
}

.faq-item h4 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h4, .footer-contact h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section .container,
    .tests-content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-image {
        order: 2;
        margin-top: 30px;
    }

    .main-title {
        font-size: 3rem;
    }

    .subtitle {
        border-left: none;
        padding-left: 0;
    }

    .cta-buttons {
        justify-content: center;
    }
    
    .tests-visual {
        order: 1;
    }
    .tests-text {
        order: 2;
    }
}

@media (max-width: 768px) {
    .main-title { font-size: 2.5rem; }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn { width: 100%; margin-left: 0; margin-bottom: 12px; }
    
    .hero-img-real {
        max-width: 320px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active { display: flex; opacity: 1; }

.modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 900px;
    height: 85vh;
    border-radius: var(--radius-sm);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 20px 30px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    flex: 1;
    background: #000;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}
