:root {
    --bg: #f0f7ff;
    --ink: #0f172a;
    --ink-light: #475569;
    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.2);

    /* Mode Colors - Refined for Light Theme */
    --mode-browse: #2563eb;
    --mode-dev: #059669;
    --mode-study: #dc2626;
    --mode-gold: #d97706;

    --grad-indigo: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --grad-blue: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --grad-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --grad-rose: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);

    --bub-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    box-sizing: border-box;
}

/* Body & Background */
body {
    margin: 0;
    font-family: "Outfit", system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(99, 102, 241, 0.04) 0%, transparent 40%),
        linear-gradient(135deg, #f0f7ff 0%, #e0e7ff 100%);
    z-index: -2;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.logo-orb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--grad-indigo);
    box-shadow: 0 0 20px var(--accent-glow);
    animation: orbPulse 3s infinite;
}

@keyframes orbPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 15px var(--accent-glow);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 25px var(--accent-glow);
    }
}

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

.nav-links a {
    text-decoration: none;
    color: var(--ink-light);
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-dashboard-btn {
    background: rgba(43, 100, 255, 0.08);
    color: var(--accent) !important;
    font-weight: 600 !important;
    padding: 10px 20px;
    border-radius: 99px;
    transition: background 0.2s;
}

.nav-dashboard-btn:hover {
    background: rgba(43, 100, 255, 0.15);
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--grad-blue);
    color: white;
    box-shadow: 0 8px 24px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 1);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    box-shadow: inset 0 0 0 2px var(--accent);
}

.btn-outline:hover {
    background: rgba(43, 100, 255, 0.05);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 180px 32px 100px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(43, 100, 255, 0.1);
    color: var(--accent);
    border-radius: 99px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin: 0 0 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #2b64ff 0%, #db2777 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--ink-light);
    line-height: 1.6;
    margin: 0 0 40px;
    max-width: 480px;
}

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

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Big Orb representation */
.big-orb {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: var(--grad-indigo);
    background-size: 200% 200%;
    box-shadow: 0 0 100px var(--accent-glow), inset 0 2px 20px rgba(255, 255, 255, 0.4);
    animation:
        floatOrb 6s ease-in-out infinite,
        colorRotation 12s linear infinite;
    position: relative;
    display: grid;
    place-items: center;
}

@keyframes colorRotation {
    0% {
        background: var(--grad-indigo);
        filter: hue-rotate(0deg);
    }

    33% {
        background: var(--grad-emerald);
        filter: hue-rotate(0deg);
    }

    66% {
        background: var(--grad-rose);
        filter: hue-rotate(0deg);
    }

    100% {
        background: var(--grad-indigo);
        filter: hue-rotate(0deg);
    }
}

.bubble-face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bubble-eyes {
    display: flex;
    gap: 24px;
}

.bubble-eye {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    animation: blink 4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.bubble-mouth {
    width: 24px;
    height: 12px;
    border: 4px solid white;
    border-top: transparent;
    border-radius: 0 0 24px 24px;
}

.floating-tooltip {
    position: absolute;
    top: 5%;
    right: -40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 14px 24px;
    border-radius: 16px 16px 16px 0;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.1);
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    animation: floatTooltip 4s ease-in-out infinite alternate;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.02);
    }
}

@keyframes floatTooltip {
    0% {
        transform: translateY(0) rotate(2deg);
    }

    100% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes blink {

    0%,
    88%,
    92%,
    100% {
        transform: scaleY(1);
    }

    90% {
        transform: scaleY(0.1);
    }
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--ink-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Features */
.features {
    padding: 100px 32px;
    background: var(--bg);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 40px 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
}

.feature-card p {
    color: var(--ink-light);
    line-height: 1.6;
    margin: 0;
}

.feature-card .tag {
    position: absolute;
    top: 32px;
    right: 32px;
    background: rgba(0, 0, 0, 0.05);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

/* Pricing */
.pricing {
    padding: 100px 32px;
    background: var(--bg);
}

.pricing-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 48px 32px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.08);
}

.pricing-card.popular {
    border: 2px solid var(--accent);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #0f172a;
}

.price {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -2px;
    color: #1e293b;
}

.price span {
    font-size: 18px;
    font-weight: 500;
    color: var(--ink-light);
    letter-spacing: 0;
}

.plan-desc {
    color: var(--ink-light);
    margin-bottom: 32px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    margin-bottom: 16px;
    font-weight: 500;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modes Showcase */
.modes-showcase {
    padding: 100px 32px;
    background: var(--bg);
}

.modes-demo-grid {
    max-width: 1200px;
    margin: 48px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.mode-demo-card {
    background: rgba(255, 255, 255, 0.6);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mode-demo-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(43, 100, 255, 0.1);
}

.mdc-header {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--accent);
}

.mdc-chips {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.mdc-chips span {
    background: rgba(43, 100, 255, 0.06);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

/* Hero Decorative Glows & Orbs */
.hero-glow-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    z-index: -1;
    filter: blur(80px);
    animation: pulseGlow 10s ease-in-out infinite alternate;
}

.hero-glow-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.08) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    z-index: -1;
    filter: blur(80px);
    animation: pulseGlow 15s ease-in-out infinite alternate-reverse;
}

.hero-visual::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    top: -20px;
    left: -40px;
    z-index: -1;
    animation: floatOrb 8s ease-in-out infinite;
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    bottom: 20px;
    right: -30px;
    z-index: -1;
    animation: floatOrb 12s ease-in-out infinite reverse;
}

@keyframes pulseGlow {
    from {
        opacity: 0.5;
        transform: scale(1);
    }

    to {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Footer */
/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.features-grid .feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

.features-grid .feature-card:nth-child(2) {
    transition-delay: 0.2s;
}

.features-grid .feature-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* Enhanced Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
}

/* Footer Upgrade */
.footer {
    background: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-logo {
    background: var(--grad-indigo);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-visual {
        order: -1;
    }

    .big-orb {
        width: 260px;
        height: 260px;
    }

    .features-grid,
    .modes-demo-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}