/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette (Sleek Midnight & Gold/Ochre) */
    --bg-dark: hsl(222, 47%, 7%);
    --bg-dark-rgb: 9, 15, 27;
    --card-bg: rgba(15, 23, 42, 0.45);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-border-glow: rgba(217, 119, 6, 0.2);
    
    --primary: hsl(217, 90%, 56%);
    --primary-glow: hsla(217, 90%, 56%, 0.4);
    --primary-hover: hsl(217, 90%, 64%);
    
    --accent: hsl(38, 92%, 50%);
    --accent-glow: rgba(217, 119, 6, 0.4);
    --accent-hover: hsl(38, 92%, 58%);
    
    --text-main: hsl(210, 40%, 96%);
    --text-muted: hsl(215, 20%, 72%);
    --text-dark: hsl(215, 15%, 48%);
    
    --glow-violet: radial-gradient(circle, rgba(217, 119, 6, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    --gradient-primary: linear-gradient(135deg, hsl(217, 90%, 56%) 0%, hsl(38, 92%, 50%) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(30, 58, 138, 0.3) 0%, rgba(217, 119, 6, 0.2) 100%);

    /* Layout & Animation Tokens */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-premium: 0 16px 40px rgba(0, 0, 0, 0.5);
}

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

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   UTILITY CLASSES & DECORATIONS
   ========================================================================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--card-border-glow);
    box-shadow: 0 20px 48px rgba(114, 9, 183, 0.15);
}

.badge {
    background: rgba(157, 78, 221, 0.15);
    color: hsl(275, 85%, 75%);
    border: 1px solid rgba(157, 78, 221, 0.3);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hidden {
    display: none !important;
}

.w-100 {
    width: 100%;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow), 0 0 12px var(--accent-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

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

.btn-inline {
    margin-top: 24px;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(var(--bg-dark-rgb), 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition-smooth);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
}

.logo-accent {
    font-weight: 400;
    color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-smooth);
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-cta {
    background: rgba(3, 193, 182, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 8px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-cta:hover {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: var(--glow-violet);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 650px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-glass-widget {
    width: 340px;
    padding: 24px;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.widget-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.widget-dot.red { background: #ef476f; }
.widget-dot.yellow { background: #ffd166; }
.widget-dot.green { background: #06d6a0; }

.widget-title {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-val {
    font-size: 1.8rem;
    font-weight: 800;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
}

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

.widget-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.check-icon {
    width: 16px;
    height: 16px;
    fill: var(--accent);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    padding: 80px 0;
    background: rgba(var(--bg-dark-rgb), 0.4);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.about-text p:first-of-type {
    font-size: 1.1rem;
    color: var(--text-main);
}

.philosophy-callout {
    position: relative;
    padding: 20px 24px;
    margin: 28px 0;
    background: rgba(217, 119, 6, 0.05);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
}

.philosophy-callout .quote-mark {
    position: absolute;
    top: 0px;
    left: 8px;
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--accent);
    opacity: 0.15;
    line-height: 1;
}

.philosophy-text {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
    position: relative;
    z-index: 1;
    font-style: italic;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-card {
    padding: 24px;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

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

/* ==========================================================================
   INTERACTIVE QUIZ SECTION
   ========================================================================== */
.quiz-section {
    padding: 100px 0;
}

.quiz-card {
    max-width: 650px;
    margin: 0 auto;
    padding: 48px;
    overflow: hidden;
    position: relative;
}

.quiz-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.quiz-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    transition: width 0.4s ease-in-out;
}

.quiz-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.quiz-screen.active {
    display: flex;
}

.quiz-screen h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.quiz-screen p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.question-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.question-text {
    margin-bottom: 32px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.quiz-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 16px 24px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 500;
    text-align: left;
    transition: var(--transition-smooth);
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent);
    transform: translateX(4px);
}

.result-badge {
    background: var(--gradient-primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.result-title {
    font-size: 2.2rem;
    margin-bottom: 24px;
}

.result-body {
    text-align: left;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.result-body p {
    margin-bottom: 16px;
}

.result-body strong {
    color: var(--text-main);
}

.result-actions {
    display: flex;
    gap: 16px;
    width: 100%;
    justify-content: center;
}

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

/* ==========================================================================
   INTERACTIVE SESSION PLANNER
   ========================================================================== */
.planner-section {
    padding: 100px 0;
    background: rgba(var(--bg-dark-rgb), 0.3);
    border-top: 1px solid var(--card-border);
}

.planner-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    margin-top: 40px;
}

.planner-form-card {
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.form-group input[type="text"], .form-group select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input[type="text"]:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
}

.energy-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.energy-options input[type="radio"] {
    display: none;
}

.energy-label {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 12px;
    border-radius: var(--border-radius-sm);
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.energy-options input[type="radio"]:checked + .energy-label {
    background: rgba(157, 78, 221, 0.2);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Planner Output Card */
.planner-output-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

.planner-output-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.placeholder-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    opacity: 0.6;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.output-header h3 {
    font-size: 1.5rem;
}

.output-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.timeline-step {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 16px;
    position: relative;
    padding-bottom: 16px;
}

.timeline-step::after {
    content: '';
    position: absolute;
    left: 77px;
    top: 24px;
    bottom: -8px;
    width: 2px;
    background: rgba(255, 255, 255, 0.07);
}

.timeline-step:last-child::after {
    display: none;
}

.step-time {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent);
    font-size: 0.95rem;
}

.step-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 12px 18px;
    border-radius: var(--border-radius-sm);
}

.step-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.output-tips {
    background: rgba(3, 193, 182, 0.08);
    border: 1px solid rgba(3, 193, 182, 0.2);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* AI Loading States */
.planner-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(168, 85, 247, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 500;
}

.loading-pulse {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.pulse-bar {
    height: 16px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.02) 75%);
    background-size: 200% 100%;
    animation: loadingPulse 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

.pulse-bar.short {
    width: 60%;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes loadingPulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   RESOURCES & SHOWCASE
   ========================================================================== */
.resources-section {
    padding: 100px 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.product-image-container {
    height: 220px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--card-border);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.academy-art {
    background: linear-gradient(135deg, hsl(271, 60%, 15%) 0%, hsl(174, 90%, 10%) 100%);
}

.academy-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    filter: blur(40px);
    opacity: 0.4;
}

.academy-branding {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-align: center;
    line-height: 1.3;
    z-index: 1;
}

.academy-branding strong {
    font-weight: 800;
    color: var(--accent);
}

.product-details {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.product-details h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.product-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
    flex-grow: 1;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
    padding: 100px 0;
    background: rgba(var(--bg-dark-rgb), 0.4);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    min-height: 280px;
}

.testimonial-slide {
    display: none;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 48px;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
    display: grid;
}

.testimonial-content .quote {
    font-size: 1.35rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 24px;
    line-height: 1.5;
}

.student-profile h4 {
    font-size: 1.1rem;
    color: var(--accent);
}

.student-profile span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.testimonial-visual {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 32px 24px;
}

.grade-gauge-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gauge-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gauge-bar .label {
    font-size: 0.85rem;
    font-weight: 600;
}

.gauge-bar.before .label { color: var(--text-muted); }
.gauge-bar.after .label { color: var(--accent); }

.gauge-bar .fill {
    height: 12px;
    border-radius: 6px;
    position: relative;
}

.gauge-bar.before .fill {
    background: rgba(255, 255, 255, 0.15);
}

.gauge-bar.after .fill {
    background: var(--gradient-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.carousel-controls .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-controls .dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 5px;
}

/* ==========================================================================
   NEWSLETTER / CHALLENGE
   ========================================================================== */
.newsletter-section {
    padding: 100px 0;
}

.newsletter-card {
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.newsletter-info h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.newsletter-info p {
    color: var(--text-muted);
}

.newsletter-form .input-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.newsletter-form input {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
    color: #fff;
    font-family: var(--font-body);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: hsl(267, 50%, 3%);
    border-top: 1px solid var(--card-border);
    padding: 80px 0 40px;
    color: var(--text-muted);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 0.8fr;
    gap: 60px;
}

.footer-trust h4 {
    color: #fff;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.trust-list {
    list-style: none;
    padding-left: 0;
}

.trust-list li {
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.trust-list li strong {
    color: var(--text-main);
}

.trust-list .inline-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: -2px;
    stroke: var(--accent);
}

.footer-brand h3, .footer-brand .footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 16px;
    display: inline-block;
}

.footer-brand p {
    max-width: 400px;
    line-height: 1.7;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 32px;
    margin-top: 40px;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 40px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .planner-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-card {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(var(--bg-dark-rgb), 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--card-border);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-slide {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .carousel-container {
        min-height: 450px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ==========================================================================
   LIGHT THEME OVERRIDES
   ========================================================================== */
body.light-theme {
    --bg-dark: hsl(35, 30%, 98%);
    --bg-dark-rgb: 250, 248, 243;
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(18, 25, 41, 0.08);
    --card-border-glow: rgba(217, 119, 6, 0.15);
    
    --text-main: hsl(218, 45%, 12%);
    --text-muted: hsl(218, 15%, 38%);
    --text-dark: hsl(218, 10%, 55%);
    
    --glow-violet: radial-gradient(circle, rgba(217, 119, 6, 0.04) 0%, rgba(0, 0, 0, 0) 70%);
    --gradient-primary: linear-gradient(135deg, hsl(218, 60%, 30%) 0%, hsl(38, 92%, 40%) 100%);
    
    --shadow-premium: 0 16px 40px rgba(18, 25, 41, 0.06);
}

body.light-theme .hero-bg-glow {
    opacity: 0.5;
}

body.light-theme .navbar {
    background: rgba(247, 245, 250, 0.8);
    border-bottom-color: rgba(var(--bg-dark-rgb), 0.05);
}

body.light-theme .nav-logo {
    color: var(--text-main);
}

body.light-theme .nav-link:hover, 
body.light-theme .nav-link.active {
    color: var(--primary);
    text-shadow: none;
}

body.light-theme .widget-title {
    color: var(--text-muted);
}

body.light-theme .widget-list li {
    color: var(--text-main);
}

body.light-theme .timeline-step::after {
    background: rgba(var(--bg-dark-rgb), 0.05);
}

body.light-theme .step-content {
    background: rgba(0, 0, 0, 0.015);
    border-color: rgba(0, 0, 0, 0.03);
}

body.light-theme .btn-secondary {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-main);
}

body.light-theme .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.06);
}

body.light-theme .form-group input[type="text"], 
body.light-theme .form-group select {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .form-group input[type="text"]:focus, 
body.light-theme .form-group select:focus {
    background: rgba(0, 0, 0, 0.04);
}

body.light-theme .energy-label {
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .newsletter-form input {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .newsletter-form input:focus {
    background: rgba(0, 0, 0, 0.04);
}

/* Theme Toggle Button Style */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    padding: 0;
    margin-left: 8px;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
    border-color: var(--accent);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: var(--transition-smooth);
}

body.light-theme .sun-icon {
    display: none;
}

body:not(.light-theme) .moon-icon {
    display: none;
}

@media (max-width: 768px) {
    .theme-toggle-btn {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* ==========================================================================
   ACCESSIBILITY UTILITIES
   ========================================================================== */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* High-contrast visible focus outline for keyboard navigation */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 10px var(--accent-glow) !important;
}

/* ==========================================================================
   SVG INLINE ICON STYLES
   ========================================================================== */
.inline-icon {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    vertical-align: -0.2em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-right: 0.5rem;
}

/* Specific icon overrides */
.badge .inline-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: -2px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent);
    stroke-width: 2;
    fill: none;
}

.energy-label .inline-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: -3px;
}

.placeholder-icon svg {
    width: 64px;
    height: 64px;
    stroke: var(--text-muted);
    stroke-width: 1.5;
    fill: none;
    opacity: 0.6;
}

.output-tips .inline-icon {
    stroke: var(--accent);
    margin-right: 6px;
}

.product-details .inline-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: -3px;
    stroke: var(--text-muted);
}

.newsletter-info .inline-icon {
    stroke: var(--accent);
    margin-right: 8px;
    vertical-align: -3px;
}

.newsletter-card .inline-icon {
    stroke: var(--text-muted);
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: -3px;
}

.result-body .inline-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: -3px;
}

.result-body .inline-icon.icon-alert {
    stroke: #ff4a4a; /* warning red color for 'What not to do' */
}

.result-body .inline-icon.icon-action {
    stroke: var(--accent); /* brand accent color for 'One quick action' */
}

/* ==========================================================================
   LAB TOOLS & SPECIFICATION STYLES
   ========================================================================== */
.lab-tool-card {
    border: 1px dashed var(--card-border-glow) !important;
}

.tool-spec-list {
    margin: 16px 0;
    padding-left: 0;
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tool-spec-list li {
    margin-bottom: 8px;
    line-height: 1.4;
    text-align: left;
}

.tool-spec-list li strong {
    color: var(--text-main);
}

.badge-soon {
    background: rgba(217, 119, 6, 0.1) !important;
    border: 1px solid var(--accent) !important;
    color: var(--accent) !important;
}

/* Interactive Lab Tools UI */
.interactive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 12px;
}

.tool-title-interactive {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s;
    padding: 4px 8px;
}

.btn-back:hover {
    opacity: 0.8;
}

.tool-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.tool-form textarea {
    width: 100%;
    height: 120px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-main);
    padding: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tool-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
    outline: none;
}

.tool-output {
    margin-top: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Specific Output Styling */
.output-section {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 16px;
    border-radius: var(--border-radius-sm);
}

.output-section h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 1.05rem;
}

.command-verbs-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.verb-item {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent);
    padding: 8px 12px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.verb-item strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
}

.verb-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.roadmap-step {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 12px 0;
}

.roadmap-step:last-child {
    border-bottom: none;
}

.roadmap-step h5 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: var(--text-main);
}

.roadmap-step p {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.roadmap-step ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Quiz Interface */
.tool-quiz {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-question-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: var(--border-radius-sm);
}

.quiz-question-item h4 {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    color: var(--text-main);
}

.quiz-question-item textarea {
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-main);
    padding: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    resize: none;
}

.quiz-score-badge {
    align-self: flex-start;
    padding: 6px 12px;
    font-weight: 700;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.score-strong {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
}

.score-partial {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid #f59e0b;
    color: #f59e0b;
}

.score-weak {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.evaluation-box {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 12px;
}

.evaluation-box h5 {
    margin: 0 0 6px 0;
    color: var(--text-main);
    font-size: 0.9rem;
}

.evaluation-box .student-ans {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
    padding-left: 8px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.evaluation-box .feedback-text {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.gaps-list {
    margin: 0;
    padding-left: 20px;
    font-size: 0.8rem;
    color: #ff4a4a; /* High friction red gaps list */
}

/* Guardrails Verification */
.shortcut-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 10px 0;
}

.shortcut-item:last-child {
    border-bottom: none;
}

.shortcut-item strong {
    color: #ff4a4a;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 2px;
}

.shortcut-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Member Gate Styling */
.member-gate-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
    text-align: center;
    gap: 16px;
    animation: fadeIn 0.4s ease;
}

.lock-icon-container {
    width: 70px;
    height: 70px;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
    margin-bottom: 8px;
    animation: pulseLock 2s infinite ease-in-out;
}

.gate-lock-icon {
    width: 32px;
    height: 32px;
    stroke: var(--accent);
    stroke-width: 2;
    fill: none;
}

.member-gate-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.gate-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    max-width: 320px;
}

.gate-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
}

@keyframes pulseLock {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
    }
}

/* Modal Styling Placeholder */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.login-modal-content {
    width: 90%;
    max-width: 400px;
    padding: 32px;
    border-radius: var(--border-radius-md);
    background: rgba(25, 20, 35, 0.95);
    border: 1px solid var(--card-border-glow);
    box-shadow: var(--shadow-xl);
    position: relative;
    text-align: center;
}

.login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}



