:root {
    --bg-base: #EFF6FF;
    --bg-surface: rgba(37, 99, 235, 0.05);
    --bg-surface-hover: rgba(37, 99, 235, 0.09);

    --text-primary: #1E3A5F;
    --text-secondary: #4B6A9B;
    --text-muted: #7B9BC8;

    --accent-primary: #2563EB;
    --accent-secondary: #0EA5E9;
    --accent-tertiary: #6366F1;

    --border-color: rgba(37, 99, 235, 0.12);
    --border-highlight: rgba(37, 99, 235, 0.28);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ─── Scroll Progress ─── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--accent-primary);
}

/* ─── Particles Canvas ─── */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}


/* ─── Background Effects ─── */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.22;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    animation-delay: 0s;
    opacity: 0.2;
}

.blob-2 {
    width: 600px;
    height: 600px;
    bottom: -200px;
    left: -200px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    animation-delay: -5s;
    opacity: 0.18;
}

.blob-3 {
    width: 400px;
    height: 400px;
    top: 30%;
    left: 40%;
    background: radial-gradient(circle, var(--accent-tertiary) 0%, transparent 70%);
    animation-delay: -10s;
    opacity: 0.08;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
    opacity: 0.3;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.1); }
    100% { transform: translate(-30px, 60px) scale(0.9); }
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 600;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: var(--font-body);
    background: none;
}

.btn-lg {
    padding: 0.8rem 1.8rem;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.45);
    filter: brightness(1.08);
}

.btn-secondary {
    background: rgba(37, 99, 235, 0.07);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-surface);
    border-color: var(--border-highlight);
}

/* ─── Google Button ─── */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid var(--border-highlight);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.btn-google:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
}

/* ─── Language Switcher ─── */
.lang-switcher {
    display: flex;
    gap: 2px;
    background: rgba(37,99,235,0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.lang-btn:hover { color: var(--text-secondary); }
.lang-btn.active {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

/* ─── Navigation ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    padding-top: 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4rem;
}

.hero-content {
    max-width: 820px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.badge {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
    50% { box-shadow: 0 0 0 6px rgba(37,99,235,0.08); }
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10B981;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 6px #10B981; }
    50% { box-shadow: 0 0 14px #10B981, 0 0 24px rgba(16,185,129,0.4); }
}

.hero-title {
    font-size: 4.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 620px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
    justify-content: center;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* ─── Glass Mockup ─── */
.hero-visual {
    width: 100%;
    max-width: 900px;
    margin-bottom: 4rem;
    position: relative;
}

.glass-mockup {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-highlight);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.18), 0 0 60px rgba(37, 99, 235, 0.1);
    backdrop-filter: blur(20px);
    transform: perspective(1000px) rotateX(3deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.glass-mockup:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-10px);
    box-shadow: 0 40px 70px -12px rgba(37, 99, 235, 0.25), 0 0 80px rgba(37, 99, 235, 0.18);
}

.mockup-header {
    background: rgba(37, 99, 235, 0.05);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dots span:nth-child(1) { background: #EF4444; }
.dots span:nth-child(2) { background: #F59E0B; }
.dots span:nth-child(3) { background: #10B981; }

.search-bar {
    background: rgba(37, 99, 235, 0.06);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    width: 65%;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.cursor-blink {
    animation: blinkCursor 1s step-end infinite;
    color: var(--accent-primary);
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.mockup-body {
    padding: 1.5rem 2rem;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.generating-animation {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.mockup-tabs {
    display: flex;
    gap: 0.5rem;
}

.mtab {
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.mtab.active {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--accent-primary);
}

.dashboard-preview {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}

.card-skeleton {
    height: 90px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.card-skeleton.wide {
    grid-column: span 1;
    height: 60px;
}

.card-skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 200%; }
}

/* Floating badges */
.float-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border-highlight);
    backdrop-filter: blur(12px);
    padding: 0.5rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.14);
}

.badge-ai {
    bottom: 20%;
    left: -60px;
    animation: floatBadge 6s ease-in-out infinite;
    color: #2563EB;
    border-color: rgba(37, 99, 235, 0.3);
}

.badge-time {
    top: 25%;
    right: -50px;
    animation: floatBadge 6s ease-in-out infinite 2s;
    color: #F59E0B;
    border-color: rgba(245,158,11,0.3);
}

.badge-students {
    bottom: 40%;
    right: -70px;
    animation: floatBadge 6s ease-in-out infinite 4s;
    color: #10B981;
    border-color: rgba(16,185,129,0.3);
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ─── Section Header ─── */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: var(--accent-primary);
    padding: 0.3rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ─── Features ─── */
.features {
    padding: 6rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    backdrop-filter: blur(10px);
    cursor: default;
}

.feature-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-6px) scale(1.01);
    background: var(--bg-surface-hover);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.feature-card:hover .card-glow {
    opacity: 1;
}

.feature-card > *:not(.card-glow) {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: white;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-3deg);
}

.bg-purple  { background: linear-gradient(135deg, var(--accent-primary), #6B21A8); }
.bg-blue    { background: linear-gradient(135deg, var(--accent-secondary), #1D4ED8); }
.bg-pink    { background: linear-gradient(135deg, var(--accent-tertiary), #BE185D); }
.bg-green   { background: linear-gradient(135deg, #10B981, #065F46); }
.bg-orange  { background: linear-gradient(135deg, #F97316, #C2410C); }
.bg-cyan    { background: linear-gradient(135deg, #06B6D4, #0E7490); }
.bg-yellow  { background: linear-gradient(135deg, #EAB308, #A16207); }
.bg-indigo  { background: linear-gradient(135deg, #6366F1, #3730A3); }
.bg-rose    { background: linear-gradient(135deg, #F43F5E, #BE123C); }

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.feature-tag {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.28);
    color: var(--accent-primary);
    padding: 0.15rem 0.6rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
}

.feature-badge-new {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 0.15rem 0.6rem;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    animation: newBadgePulse 2s ease-in-out infinite;
}

@keyframes newBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(37,99,235,0); }
}

/* ─── Teachers Section ─── */
.teachers-section {
    padding: 6rem 0;
}

.glass-panel {
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(37,99,235,0.05));
    border: 1px solid var(--border-highlight);
    border-radius: 24px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(37,99,235,0.08);
}

.panel-content h2 {
    font-size: 2.4rem;
    margin-bottom: 1.25rem;
}

.panel-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.benefits-list li:hover {
    transform: translateX(4px);
}

.check-icon {
    width: 18px;
    height: 18px;
    color: #10B981;
    flex-shrink: 0;
}

.mt-4 { margin-top: 2rem; }

.panel-image {
    position: relative;
    height: 100%;
    min-height: 340px;
    background: rgba(37, 99, 235, 0.06);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.abstract-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
}

.shape-1 {
    width: 150px;
    height: 150px;
    background: var(--accent-secondary);
    top: 10%;
    left: 10%;
    animation: drift 10s infinite alternate;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-primary);
    bottom: 10%;
    right: 10%;
    animation: drift 15s infinite alternate-reverse;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: #10B981;
    top: 50%;
    left: 50%;
    animation: drift 12s infinite alternate;
    opacity: 0.4;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, -40px); }
}

.panel-stats {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pstat {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.pstat:hover {
    border-color: var(--border-highlight);
    transform: translateX(-4px);
}

.pstat-icon { font-size: 1.4rem; }

.pstat-val {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.pstat-lbl {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ─── Pricing Section ─── */
.pricing-section {
    padding: 6rem 0;
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.toggle-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-switch {
    width: 52px;
    height: 28px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid var(--border-highlight);
    border-radius: 100px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.toggle-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 4px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 6px rgba(37,99,235,0.2);
}

.toggle-switch.active .toggle-thumb {
    transform: translateX(24px);
}

.save-badge {
    background: linear-gradient(135deg, #10B981, #065F46);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    align-items: start;
}

.pricing-card {
    background: rgba(255,255,255,0.8);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    backdrop-filter: blur(12px);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-highlight);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.18);
}

.pricing-card-popular {
    border-color: rgba(37,99,235,0.4);
    transform: translateY(-8px);
    background: rgba(37,99,235,0.06);
    box-shadow: 0 0 0 1px rgba(37,99,235,0.2), 0 20px 60px rgba(37,99,235,0.15);
}

.pricing-card-popular:hover {
    transform: translateY(-14px);
    box-shadow: 0 0 0 1px rgba(37,99,235,0.4), 0 30px 70px rgba(37,99,235,0.22);
}

.popular-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), transparent);
    animation: glowSweep 3s ease infinite;
}

@keyframes glowSweep {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; filter: blur(1px); }
}

.popular-badge {
    position: absolute;
    top: -1px;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 0 0 12px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.03em;
}

.popular-pulse {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.pricing-plan-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.price-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 0.4rem;
    gap: 1px;
}

.price-currency {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-heading);
}

.price-period {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.pricing-btn {
    width: 100%;
    margin-bottom: 2rem;
    padding: 0.75rem;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pf-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.pf-disabled {
    color: var(--text-muted);
}

.pf-check {
    width: 16px;
    height: 16px;
    color: #10B981;
    flex-shrink: 0;
}

.pf-cross {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Trust bar */
.trust-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    padding: 1.25rem 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ─── CTA Section ─── */
.cta-section {
    padding: 8rem 0;
    text-align: center;
    position: relative;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(37,99,235,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-container h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-container p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* ─── Footer ─── */
footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
    background: rgba(37,99,235,0.04);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.9rem;
    max-width: 260px;
    line-height: 1.7;
}

.link-group h4 {
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-family: var(--font-heading);
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.link-group a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ─── Auth Modal ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30,58,95,0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border-highlight);
    border-radius: 20px;
    padding: 2rem 2rem;
    width: 100%;
    max-width: 420px;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 80px rgba(37,99,235,0.18), 0 0 40px rgba(37,99,235,0.08);
    backdrop-filter: blur(20px);
    scrollbar-width: thin;
    scrollbar-color: rgba(37,99,235,0.2) transparent;
}

.modal-overlay.open .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.modal-close:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.modal-tabs {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 1.75rem;
    position: relative;
}

.modal-tab {
    flex: 1;
    padding: 0.55rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 7px;
    transition: color 0.2s ease;
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
}

.modal-tab.active {
    color: var(--text-primary);
}

.tab-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: rgba(37,99,235,0.1);
    border-radius: 7px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-color);
}

.tab-indicator.right {
    transform: translateX(calc(100% + 8px));
}

.modal-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-form.hidden {
    display: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
}

.form-label {
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    background: rgba(37,99,235,0.04);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent-primary);
    background: rgba(37,99,235,0.06);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-link {
    font-size: 0.8rem;
    color: var(--accent-primary);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    padding: 0;
    align-self: flex-end;
    margin-top: 0.2rem;
    transition: color 0.2s ease;
}

.form-link:hover {
    color: #1D4ED8;
}

.form-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.form-tos {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.form-tos a {
    color: var(--accent-primary);
    text-decoration: none;
}

/* Form error */
.form-error {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.25);
    color: #FCA5A5;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    text-align: center;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Password strength bar */
.password-strength {
    height: 4px;
    border-radius: 100px;
    background: var(--border-color);
    margin-top: 0.3rem;
    overflow: hidden;
    position: relative;
}

.password-strength::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--strength, 0%);
    background: var(--strength-color, #EF4444);
    border-radius: 100px;
    transition: width 0.4s ease, background 0.4s ease;
}

/* ─── Scroll Animations ─── */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay {
    transition-delay: 0.2s;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-35px);
    transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(35px);
    transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .glass-panel {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        gap: 2rem;
    }
    .panel-image {
        min-height: 250px;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    .pricing-card-popular {
        transform: translateY(0);
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .badge-ai, .badge-time, .badge-students {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .nav-links {
        display: none;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .divider {
        width: 40px;
        height: 1px;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .section-title {
        font-size: 2rem;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .cta-container h2 {
        font-size: 2rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .trust-bar {
        gap: 1rem;
        font-size: 0.82rem;
    }
}
