:root {
    /* Main Branding - Vibrant Red */
    --primary: #FF2442;
    --primary-hover: #e61e3a;
    --primary-soft: #fff1f2;
    --secondary: #333333;

    /* Text Colors */
    --text-main: #222222;
    --text-muted: #666666;
    --text-light: #999999;

    /* Backgrounds */
    --bg-main: #ffffff;
    --bg-soft: #fcfcfc;
    --bg-card: #ffffff;

    /* Borders & Shadows */
    --border-light: #f1f1f1;
    --border-bold: #eeeeee;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 100px;

    /* Spacing */
    --container-width: 1100px;

    /* 2026 Trending Gradients */
    --gradient-teal: linear-gradient(135deg, #092625 0%, #0d4a46 100%);
    --gradient-fuchsia: linear-gradient(135deg, #FF2442 0%, #e61e3a 100%);
    --gradient-aura: linear-gradient(135deg, #e0e7ff 0%, #f1f5f9 100%);
}

body {
    background-color: var(--bg-soft);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Layout Elements --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-bold);
}

/* --- Buttons --- */
button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 15px rgba(255, 36, 66, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-bold);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--bg-soft);
    border-color: var(--text-light);
}

.btn-soft {
    background: var(--primary-soft);
    color: var(--primary);
}

/* --- Inputs --- */
input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-bold);
    background: var(--bg-soft);
    font-size: 0.95rem;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 36, 66, 0.08);
    outline: none;
}

/* --- Badges & Tags --- */
.tag {
    display: inline-flex;
    padding: 0.25rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    background: #f1f1f1;
    color: var(--text-muted);
}

.tag-primary {
    background: var(--primary-soft);
    color: var(--primary);
}

/* --- Previous/Neon compatibility for Reading --- */
.word-clickable {
    cursor: pointer;
    padding: 0 2px;
    border-radius: 4px;
    transition: background 0.2s;
}

.word-clickable:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.learning-module {
    border-left: 4px solid #FF00FF !important;
    /* The requested neon style for reading */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* --- Extra styles for Landing --- */
.hero-section {
    text-align: center;
    padding: 6rem 1rem;
    background: var(--gradient-aura);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 36, 66, 0.05) 0%, transparent 40%);
    pointer-events: none;
    animation: pulse-gradient 10s infinite alternate;
}

@keyframes pulse-gradient {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.hero-section h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
    letter-spacing: -1px;
}