/* 
   LITHOCADEMY BY VIRTUA - DESIGN SYSTEM STYLE SHEET
   Font: Montserrat (imported in index.html)
   Primary Accents: Virtua Blue (#27AAE0), Virtua Grey (#A8A9AD)
*/

:root {
    /* Color Palette */
    --bg-dark: #0B0D17;
    --bg-card: rgba(30, 34, 48, 0.45);
    --bg-card-highlight: rgba(39, 170, 224, 0.08);
    --border-glass: rgba(168, 169, 173, 0.15);
    --border-glass-hover: rgba(39, 170, 224, 0.4);
    
    --primary: #27AAE0;
    --primary-hover: #1D95C8;
    --primary-glow: rgba(39, 170, 224, 0.35);
    
    --secondary: #A8A9AD;
    --secondary-hover: #8F9094;
    
    --text-white: #FFFFFF;
    --text-muted: #E2E8F0;
    --text-dark: #8E9CA5;
    
    /* Layout Constants */
    --max-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-muted);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    background: radial-gradient(circle at 50% 0%, #171d2f 0%, var(--bg-dark) 70%);
    background-attachment: fixed;
}

/* UTILITY CLASSES */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px;
}

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

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-white) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-dark);
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(39, 170, 224, 0.65);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-nav {
    padding: 8px 18px;
    font-size: 0.85rem;
    background-color: rgba(39, 170, 224, 0.1);
    color: var(--primary);
    border: 1px solid rgba(39, 170, 224, 0.3);
}

.btn-nav:hover {
    background-color: var(--primary);
    color: var(--bg-dark);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(11, 13, 23, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.brand-main {
    color: var(--text-white);
}

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

.brand-sub {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

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

/* HERO SECTION */
.hero-section {
    padding-top: 140px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    background-color: rgba(39, 170, 224, 0.1);
    color: var(--primary);
    border: 1px solid rgba(39, 170, 224, 0.25);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-white);
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

/* HERO VISUAL MOCKUP */
.mockup-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    z-index: 1;
    filter: blur(20px);
}

.mockup-frame {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 0.75;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.mockup-frame:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-5px);
}

.mockup-inner {
    width: 100%;
    height: 100%;
    background-color: #05060b;
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.mockup-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mockup-screen-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 20px 0;
}

.crystal-grid {
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-specimen-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(39, 170, 224, 0.5));
    animation: floatSpecimen 4s ease-in-out infinite;
}

@keyframes floatSpecimen {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(4deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.mockup-status {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
}

.mockup-action {
    font-size: 0.7rem;
    color: var(--secondary);
    margin-top: 4px;
}

/* INTERACTIVE DEMO (SIMULATOR) */
.demo-section {
    position: relative;
}

.simulator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.simulator-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.sim-controls h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
    margin-top: 24px;
}

.sim-controls h3:first-of-type {
    margin-top: 0;
}

.mineral-selector, .tool-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.mineral-selector {
    grid-template-columns: repeat(3, 1fr);
}

.mineral-btn, .tool-btn {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 14px;
    color: var(--text-muted);
    cursor: pointer;
    text-align: left;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.mineral-btn strong, .tool-btn strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 2px;
}

.mineral-btn span, .tool-btn span {
    font-size: 0.75rem;
    color: var(--text-dark);
}

.mineral-btn:hover, .tool-btn:hover {
    border-color: rgba(39, 170, 224, 0.4);
    background-color: rgba(255, 255, 255, 0.05);
}

.mineral-btn.active, .tool-btn.active {
    border-color: var(--primary);
    background-color: rgba(39, 170, 224, 0.1);
    box-shadow: 0 0 15px rgba(39, 170, 224, 0.15);
}

.sim-instructions {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.5;
    background-color: rgba(255, 255, 255, 0.02);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.sim-visualizer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.specimen-viewer {
    flex: 1;
    min-height: 280px;
    background-color: #05060b;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 10px 30px rgba(0,0,0,0.8);
}

.specimen-glow {
    position: absolute;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(39,170,224,0.15) 0%, transparent 60%);
    filter: blur(10px);
    z-index: 1;
    transition: var(--transition-smooth);
}

.specimen-graphic {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.specimen-graphic.gypsum-glow {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6));
}

.specimen-graphic.calcite-glow {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6));
}

.specimen-graphic.quartz-glow {
    filter: drop-shadow(0 0 22px rgba(39, 170, 224, 0.45));
}

/* MINERAl CRYSTALS */
.mineral-crystal {
    width: 175px;
    height: 175px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.scratch-overlay {
    position: absolute;
    width: 140px;
    height: 140px;
    z-index: 3;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Scratch Line styles */
.scratch-mark {
    width: 6px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(255,255,255,0.9);
    animation: drawScratch 0.5s ease forwards;
}

@keyframes drawScratch {
    0% { height: 0; opacity: 0; }
    100% { height: 80px; opacity: 1; }
}

.tool-graphic {
    position: absolute;
    width: 50px;
    height: 50px;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.8s ease-in-out, opacity 0.3s;
}

.tool-fingernail {
    background: radial-gradient(circle, #f9d8cb 20%, transparent 60%);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.tool-penny {
    background: radial-gradient(circle, #d07d62 40%, #8c4228 100%);
    border-radius: 50%;
}

.tool-nail {
    background: linear-gradient(to right, #8e9ca5, #d2dce2);
    width: 15px;
    height: 60px;
    clip-path: polygon(50% 0%, 100% 80%, 100% 100%, 0% 100%, 0% 80%);
}

.tool-glass {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.45);
    width: 60px;
    height: 40px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.sim-feedback {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-left: 4px solid var(--secondary);
}

.sim-feedback.success {
    border-left-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.05);
}

.sim-feedback.fail {
    border-left-color: #F44336;
    background-color: rgba(244, 67, 54, 0.05);
}

/* ABOUT / PHILOSOPHY SECTION */
.about-section {
    position: relative;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

.about-image-container {
    display: flex;
    justify-content: center;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 460px;
}

.quote-mark {
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: Georgia, serif;
}

.about-card blockquote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-white);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.about-card cite {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.25;
    margin-bottom: 24px;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-col {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
}

/* CURRICULUM SECTION */
.curriculum-section {
    position: relative;
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.curriculum-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.curriculum-card:hover {
    border-color: rgba(39, 170, 224, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    background-color: rgba(39, 170, 224, 0.08);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    border: 1px solid rgba(39, 170, 224, 0.2);
}

.curriculum-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.curriculum-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.promo-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(39, 170, 224, 0.05) 100%);
    border-color: rgba(39, 170, 224, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-card h3 {
    color: var(--primary);
}

.promo-card ul {
    list-style: none;
    margin-top: 10px;
}

.promo-card li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
}

.promo-card li::before {
    content: '✓';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* PRICING SECTION */
.pricing-section {
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
}

.price-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.price-card.highlighted {
    border-color: var(--primary);
    background-color: var(--bg-card-highlight);
    box-shadow: 0 15px 35px rgba(39, 170, 224, 0.15);
}

.price-card.highlighted:hover {
    box-shadow: 0 15px 45px rgba(39, 170, 224, 0.25);
}

.ribbon {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--primary);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.price-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
}

.price-amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 20px 0 10px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-amount span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.price-desc {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 24px;
    min-height: 48px;
}

.price-card hr {
    border: none;
    border-top: 1px solid var(--border-glass);
    margin-bottom: 24px;
}

.price-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.price-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.price-features li::before {
    content: '•';
    color: var(--primary);
    font-size: 1.25rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.price-features strong {
    color: var(--text-white);
}

.price-annual-alt {
    font-size: 0.8rem;
    color: var(--text-dark);
    text-align: center;
    margin-top: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.price-annual-alt.text-light {
    color: rgba(255, 255, 255, 0.5);
}

/* FAQ SECTION */
.faq-section {
    position: relative;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
    width: 100%;
    background-color: transparent;
    border: none;
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: left;
    padding: 22px 28px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--primary);
    transition: var(--transition-smooth);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding: 0 28px 24px 28px;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active {
    border-color: var(--primary);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--text-white);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* arbitrary height to slide down */
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border-glass);
    background-color: #05060b;
}

.footer-content {
    padding: 60px 24px;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 1px;
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-legal {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.footer-disclaimers {
    font-size: 0.75rem;
    color: rgba(142, 156, 165, 0.6);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* RESPONSIVENESS */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .mockup-container {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .simulator-layout {
        grid-template-columns: 1fr;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .curriculum-grid, .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile nav override */
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .curriculum-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .mineral-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}
