/* ============================================================================
   PRASHANTEDU - Discover the Joy of Learning
   Premium, Minimal Design
   ============================================================================ */

:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #D1FAE5;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --bg-subtle: #f9fafb;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --transition: all 0.2s ease;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-white);
    font-weight: 500;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* ============================================================================
   NAVIGATION - Premium Two-Row Design
   ============================================================================ */

.nav-wrapper {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-white);
}

.nav-primary {
    border-bottom: 1px solid var(--border-light);
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.nav-brand .brand-prashant {
    color: var(--primary);
}

.nav-brand .brand-edu {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-secondary {
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-light);
}

.nav-secondary .container {
    display: flex;
    align-items: center;
    height: 48px;
    gap: 0.5rem;
}

.nav-category {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: 6px;
    transition: var(--transition);
}

.nav-category:hover {
    background: var(--bg-white);
    color: var(--text-primary);
}

.nav-category.active {
    background: var(--primary);
    color: white;
}

.nav-category.disabled {
    color: var(--text-muted);
    cursor: default;
}

.nav-category.disabled:hover {
    background: transparent;
    color: var(--text-muted);
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.nav-category.has-dropdown {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-category.has-dropdown::after {
    content: "";
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    padding: 2px;
    transform: rotate(45deg);
    margin-top: -2px;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-category.has-dropdown::after,
.nav-dropdown.open .nav-category.has-dropdown::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--bg-subtle);
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* ============================================================================
   HERO - Minimal, Centered
   ============================================================================ */

.hero-minimal {
    padding: 10rem 0 5rem;
    text-align: center;
    background: var(--bg-white);
}

.hero-minimal h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-minimal h1 span {
    color: var(--primary);
}

.hero-minimal .tagline {
    font-size: 1.25rem;
    color: var(--text-primary);
    max-width: 560px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    font-weight: 500;
}

.highlight {
    color: #047857;
    font-weight: 700;
}

/* ============================================================================
   PRODUCT GRID - Clean Cards
   ============================================================================ */

.products-section {
    padding: 3rem 0 5rem;
    background: var(--bg-white);
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-heading {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    max-width: 480px;
    font-weight: 500;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.section-cta {
    margin-top: 2.5rem;
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.section-cta .btn {
    min-width: 160px;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    transition: var(--transition);
}

.product-card:hover {
    border-color: rgba(22, 163, 74, 0.3);
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.15);
    transform: translateY(-2px);
}

.product-card.disabled {
    opacity: 0.5;
}

.product-card-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.product-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.product-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-card ul {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
    line-height: 1.8;
    list-style: disc;
}

.product-card ul li {
    margin-bottom: 0.25rem;
}

.product-card ul li::marker {
    color: #16a34a;
    font-weight: bold;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card-buttons {
    display: flex;
    gap: 0.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.product-status {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.product-status.available {
    color: var(--primary);
    font-weight: 600;
}

.product-link {
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.product-link:hover {
    color: var(--primary-dark);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background: var(--bg-white);
    border-color: var(--text-muted);
}

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover {
    background: var(--accent-dark);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ============================================================================
   WHY US - Minimal Grid
   ============================================================================ */

.why-section {
    padding: 5rem 0;
    background: var(--bg-subtle);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.why-item {
    text-align: center;
}

.why-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.why-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.why-item p {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

/* ============================================================================
   EMAIL SIGNUP - Minimal
   ============================================================================ */

.signup-section {
    padding: 5rem 0;
    background: var(--bg-white);
    text-align: center;
}

.signup-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.signup-section p {
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.signup-form {
    display: flex;
    gap: 0.75rem;
    max-width: 420px;
    margin: 0 auto;
}

.signup-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: var(--transition);
}

.signup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
}

/* ============================================================================
   FOOTER - Minimal
   ============================================================================ */

footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.footer-brand h3 .brand-prashant {
    color: var(--primary);
}

.footer-brand h3 .brand-edu {
    color: var(--accent);
}

.footer-brand p {
    color: #9CA3AF;
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-links-group h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links-group ul {
    list-style: none;
}

.footer-links-group li {
    margin-bottom: 0.5rem;
}

.footer-links-group a {
    color: #9CA3AF;
    font-size: 0.875rem;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.8125rem;
}

/* ============================================================================
   PRODUCT PAGE
   ============================================================================ */

.product-hero {
    padding: 10rem 0 4rem;
    background: var(--bg-white);
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: start;
}

.product-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.product-tagline {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.product-includes h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-includes ul {
    list-style: none;
}

.product-includes li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.product-includes li svg {
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 0.125rem;
}

.purchase-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    position: sticky;
    top: 8rem;
}

/* Product Detail Layout */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: start;
}

.product-detail-info .product-tagline {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.product-detail-pricing {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 1.5rem;
}

.purchase-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.purchase-card .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.purchase-options {
    margin-bottom: 1.5rem;
}

.purchase-option {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.purchase-option:hover {
    border-color: var(--primary-light);
}

.purchase-option.featured {
    border-color: var(--primary);
    background: var(--primary-light);
}

.option-label {
    font-weight: 600;
    color: var(--text-primary);
}

.option-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.option-savings {
    width: 100%;
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Pricing Tiers */
.pricing-tier {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.pricing-tier.featured {
    border: 2px solid var(--primary);
    background: var(--primary-light);
}

.tier-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-header {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tier-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.tier-details {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tier-details .savings {
    color: var(--primary);
    font-weight: 600;
}

.btn-tier {
    width: 100%;
}

/* ============================================================================
   TOPICS SECTION (Olympiad Page)
   ============================================================================ */

.topics-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.level-topics {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--border-color);
}

.level-topics.level-junior,
.level-topics.level-cadet,
.level-topics.level-benjamin,
.level-topics.level-ecolier {
    border-left-color: #16a34a;
    background: linear-gradient(to right, rgba(22, 163, 74, 0.03), transparent);
}

.level-topics-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.level-topics-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.level-grade {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.level-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: auto;
}

.level-status.available {
    color: #16a34a;
    font-weight: 700;
}

.level-status-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: #16a34a;
    margin-left: auto;
    transition: var(--transition);
}

.level-status-link:hover {
    color: #15803d;
}

.topics-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.topic-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.topic-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.topic-subtopics {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.topic-subtopics span {
    display: block;
    padding: 0.125rem 0;
    white-space: nowrap;
}

.topic-subtopics span::before {
    content: "•";
    color: #16a34a;
    margin-right: 0.5rem;
    font-size: 1.1em;
    font-weight: bold;
}

@media (max-width: 1200px) {
    .topics-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .topics-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .topics-list {
        grid-template-columns: 1fr;
    }

    .level-topics {
        padding: 1rem 1.25rem;
    }

    .topic-name,
    .topic-subtopics span {
        white-space: normal;
    }
}

/* ============================================================================
   PRICING SECTION
   ============================================================================ */

.pricing-section {
    padding: 4rem 0;
    background: var(--bg-subtle);
    text-align: center;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-grid .pricing-tier {
    flex: 1;
    min-width: 240px;
    max-width: 280px;
}

/* ============================================================================
   EXPANDABLE TOPICS
   ============================================================================ */

.topics-covered {
    margin-top: 2rem;
}

.topics-covered h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

@media (max-width: 1100px) {
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.topic-category {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.topic-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-white);
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: var(--transition);
}

.topic-header:hover {
    background: var(--bg-subtle);
}

.topic-chevron {
    transition: transform 0.2s ease;
    color: var(--text-muted);
}

.topic-category.open .topic-chevron {
    transform: rotate(180deg);
}

.topic-details {
    display: none;
    padding: 0 1rem 0.75rem;
    background: var(--bg-white);
}

.topic-category.open .topic-details {
    display: block;
}

.topic-details span {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
}

@media (max-width: 768px) {
    .topics-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   SIMPLE PAGES (About/Contact)
   ============================================================================ */

.page-hero {
    padding: 10rem 0 3rem;
    text-align: center;
    background: var(--bg-white);
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.25rem;
    color: var(--text-primary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 500;
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn {
    min-width: 180px;
}

.page-content {
    padding: 3rem 0 5rem;
}

.page-content .container {
    max-width: 640px;
}

.page-content p {
    font-size: 1.0625rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.page-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.list-clean {
    list-style: none;
}

.list-clean li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.list-clean li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        position: fixed;
    }

    .nav-primary .container {
        height: 56px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-secondary {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-secondary .container {
        width: max-content;
        padding: 0 1rem;
    }

    .hero-minimal,
    .page-hero {
        padding: 8rem 0 4rem;
    }

    .hero-minimal h1,
    .page-hero h1 {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .signup-form {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        gap: 2rem;
    }

    .product-content {
        grid-template-columns: 1fr;
    }

    .purchase-card {
        position: static;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-minimal h1,
    .page-hero h1 {
        font-size: 1.75rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
}
