        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        :root {
            --bg: #F4F5F7;
            --surface: #FFFFFF;
            --surface2: #FAFBFC;
            --text: #1A1D24;
            --text-soft: #3D4250;
            --muted: #8A909E;
            --muted2: #B4B9C4;
            --border: #E8EAEF;
            --border2: #D8DCE4;
            --brand: #166534;
            --brand-dim: #F0FDF4;
            --brand-soft: #15803D;
            --green: #16A34A;
            --green-dim: #E8F6EE;
            --cyan: #0891B2;
            --cyan-dim: #E2F4F8;
            --amber: #D97706;
            --amber-dim: #FCF1E3;
            --red: #DC2626;
            --red-dim: #FCEBEB;
            --purple: #7C3AED;
            --purple-dim: #F1EAFD;
            --slate: #475569;
            --slate-dim: #EEF1F5;
            --font: 'Poppins', sans-serif;
            --r: 10px;
            --r-lg: 14px;
            --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
            --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
            --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);
        }

        [data-theme="dark"] {
            --bg: #0E1015;
            --surface: #181B22;
            --surface2: #14171D;
            --text: #ECEEF2;
            --text-soft: #C2C7D0;
            --muted: #7C828F;
            --muted2: #565C68;
            --border: #262A33;
            --border2: #333845;
            --brand-dim: #14351F;
            --green-dim: #12241A;
            --cyan-dim: #0C2228;
            --amber-dim: #2A1F0E;
            --red-dim: #2A1414;
            --purple-dim: #1F1730;
            --slate-dim: #1A1E26;
            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
            --shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
            --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.5);
        }

        html {
            font-size: 16px;
        }

        body {
            font-family: var(--font);
            background: var(--bg);
            color: var(--text);
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
            transition: background 0.3s, color 0.3s;
        }

        button,
        input,
        select,
        textarea {
            font-family: var(--font);
        }

        ::selection {
            background: var(--brand-dim);
            color: var(--brand);
        }

        .shell {
            max-width: 1180px;
            margin: 0 auto;
            padding: 2.5rem 2rem 4rem;
        }

        /* HEADER */
        /* ===== LANDING PAGE STYLES (GEN Z BENTO OVERHAUL) ===== */
        #landing-screen {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            background: #ffffff;
            color: var(--text);
            font-family: 'Poppins', sans-serif;
            overflow-x: hidden;
            position: relative;
            z-index: 1;
        }

        #landing-screen.hidden {
            display: none !important;
        }

        /* Ambient Glow Orbs */
        .landing-glow-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(100px);
            opacity: 0.15;
            pointer-events: none;
            z-index: -1;
        }

        .orb-indigo {
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, #15803D, transparent 75%);
            top: -100px;
            left: -100px;
            animation: floatOrb 22s ease-in-out infinite;
        }

        .orb-cyan {
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, #0891B2, transparent 75%);
            bottom: 10%;
            right: -100px;
            animation: floatOrb 26s ease-in-out infinite reverse;
        }

        .orb-amber {
            width: 450px;
            height: 450px;
            background: radial-gradient(circle, #D97706, transparent 75%);
            top: 30%;
            left: 20%;
            animation: floatOrb 20s ease-in-out infinite;
        }

        .landing-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.25rem 2.5rem;
            background: rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(20px) saturate(160%);
            -webkit-backdrop-filter: blur(20px) saturate(160%);
            border-bottom: 1px solid rgba(255, 255, 255, 0.5);
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
            transition: all 0.3s;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .brand-logo {
            width: 46px;
            height: 46px;
            border-radius: 13px;
            background: #1A1D24;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(26, 29, 36, 0.15);
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .brand-logo:hover {
            transform: rotate(-12deg) scale(1.08);
        }

        .brand-logo span {
            font-family: 'Outfit', sans-serif;
            font-size: 25px;
            font-weight: 900;
            color: #fff;
            letter-spacing: -1.75px;
            line-height: 1;
            text-transform: lowercase;
            transform: translate(-1.2px, -2.5px);
        }

        [data-theme="dark"] .brand-logo {
            background: #fff;
        }

        [data-theme="dark"] .brand-logo span {
            color: #1A1D24;
        }

        .brand-text h1 {
            font-size: 19px;
            font-weight: 700;
            letter-spacing: -0.3px;
            color: var(--text);
            margin: 0;
            line-height: 1.1;
        }

        .brand-text p {
            font-size: 12px;
            color: var(--muted);
            margin-top: 1px;
            line-height: 1;
        }

        .landing-header-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .landing-nav-btn {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-soft);
            padding: 8px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            transition: all 0.2s;
        }

        .landing-nav-btn:hover {
            background: var(--brand-dim);
            color: var(--brand);
            transform: scale(1.05);
        }

        .landing-nav-btn svg {
            width: 20px;
            height: 20px;
        }

        .landing-btn-primary {
            font-family: var(--font);
            font-size: 13.5px;
            font-weight: 600;
            background: linear-gradient(135deg, var(--brand), var(--brand-soft));
            border: none;
            color: #fff;
            padding: 10px 20px;
            border-radius: 11px;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
        }

        .landing-btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
        }

        .landing-btn-secondary {
            font-family: var(--font);
            font-size: 13.5px;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.5);
            border: 1px solid var(--border2);
            color: var(--text-soft);
            padding: 9px 20px;
            border-radius: 11px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .landing-btn-secondary:hover {
            background: #fff;
            border-color: var(--brand);
            color: var(--brand);
        }

        /* Hero */
        .landing-hero {
            display: grid;
            grid-template-columns: 1.15fr 0.85fr;
            align-items: center;
            gap: 4rem;
            padding: 6rem 2.5rem;
            max-width: 1200px;
            margin: 0 auto;
            flex: 1;
            z-index: 1;
        }

        .landing-hero-content {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .landing-badge {
            background: rgba(79, 70, 229, 0.08);
            color: var(--brand);
            font-family: 'Outfit', sans-serif;
            font-size: 12.5px;
            font-weight: 800;
            padding: 6px 14px;
            border-radius: 99px;
            margin-bottom: 1.5rem;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            border: 1px solid rgba(79, 70, 229, 0.15);
            box-shadow: 0 2px 10px rgba(79, 70, 229, 0.05);
        }

        .landing-hero-title {
            font-family: 'Outfit', sans-serif;
            font-size: 54px;
            font-weight: 900;
            line-height: 1.1;
            letter-spacing: -1.5px;
            color: #0f172a;
            margin-bottom: 1.25rem;
        }

        .landing-hero-title .gradient-text {
            background: linear-gradient(135deg, var(--brand) 0%, var(--brand-soft) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .landing-hero-subtitle {
            font-size: 16px;
            line-height: 1.6;
            color: var(--text-soft);
            margin-bottom: 2.5rem;
            max-width: 580px;
        }

        .landing-hero-buttons {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        .landing-btn-lg-primary {
            font-family: var(--font);
            font-size: 15px;
            font-weight: 600;
            background: linear-gradient(135deg, var(--brand), var(--brand-soft));
            border: none;
            color: #fff;
            padding: 14px 32px;
            border-radius: 13px;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 6px 20px rgba(79, 70, 229, 0.25);
        }

        .landing-btn-lg-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(79, 70, 229, 0.4);
        }

        .landing-btn-lg-primary:active {
            transform: translateY(-1px);
        }

        .landing-btn-lg-secondary {
            font-family: var(--font);
            font-size: 15px;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.5);
            border: 1px solid var(--border2);
            color: var(--text-soft);
            padding: 13px 32px;
            border-radius: 13px;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            display: inline-block;
        }

        .landing-btn-lg-secondary:hover {
            background: #fff;
            border-color: var(--brand);
            color: var(--brand);
            transform: translateY(-2px);
        }

        /* Mockup */
        .landing-hero-preview {
            display: flex;
            justify-content: center;
        }

        .landing-app-mockup {
            background: #ffffff;
            border: 1px solid var(--border2);
            border-radius: 20px;
            width: 100%;
            max-width: 440px;
            aspect-ratio: 4/3;
            box-shadow: 0 20px 50px rgba(16, 24, 40, 0.08);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            border-top: 1px solid rgba(255, 255, 255, 0.8);
            transition: all 0.4s;
        }

        .landing-app-mockup:hover {
            transform: translateY(-4px) scale(1.01);
            box-shadow: 0 30px 60px rgba(16, 24, 40, 0.12);
        }

        /* Mockup Details */
        .mockup-header {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 10px 14px;
            background: #f8fafc;
            border-bottom: 1px solid var(--border);
            flex-shrink: 0;
        }

        [data-theme="dark"] .mockup-header {
            background: #1e293b;
            border-bottom-color: rgba(255, 255, 255, 0.05);
        }

        .mockup-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }

        .mockup-dot.red {
            background: #ef4444;
        }

        .mockup-dot.yellow {
            background: #f59e0b;
        }

        .mockup-dot.green {
            background: #10b981;
        }

        .mockup-body {
            display: flex;
            flex: 1;
            overflow: hidden;
            font-size: 11px;
            text-align: left;
        }

        .mockup-sidebar {
            width: 110px;
            background: #f8fafc;
            border-right: 1px solid var(--border);
            padding: 10px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            flex-shrink: 0;
        }

        [data-theme="dark"] .mockup-sidebar {
            background: #1e293b;
            border-right-color: rgba(255, 255, 255, 0.05);
        }

        .sidebar-item {
            padding: 6px 8px;
            border-radius: 6px;
            color: var(--text-soft);
            font-weight: 500;
        }

        .sidebar-item.active {
            background: var(--brand-dim);
            color: var(--brand);
            font-weight: 700;
        }

        [data-theme="dark"] .sidebar-item.active {
            background: rgba(79, 70, 229, 0.15);
            color: #818cf8;
        }

        .mockup-main {
            flex: 1;
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            background: #ffffff;
            overflow-y: auto;
        }

        [data-theme="dark"] .mockup-main {
            background: #181b22;
        }

        .mockup-task-item {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            padding: 8px;
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 6px;
            text-align: left;
        }

        [data-theme="dark"] .mockup-task-item {
            background: #14171d;
            border-color: rgba(255, 255, 255, 0.05);
        }

        .mockup-task-item input[type="checkbox"] {
            margin-top: 2px;
            accent-color: var(--brand);
            cursor: default;
        }

        .task-title {
            font-weight: 600;
            color: var(--text);
            margin-bottom: 2px;
            line-height: 1.3;
        }

        .task-title.text-crossed {
            text-decoration: line-through;
            color: var(--muted);
        }

        .badge-xp {
            font-size: 8.5px;
            font-weight: 700;
            color: var(--green);
            background: var(--green-dim);
            padding: 1px 5px;
            border-radius: 4px;
            display: inline-block;
            margin-top: 2px;
        }

        .badge-ai {
            font-size: 8.5px;
            font-weight: 700;
            color: var(--purple);
            background: var(--purple-dim);
            padding: 1px 5px;
            border-radius: 4px;
            display: inline-block;
            margin-top: 2px;
        }

        .badge-zen {
            font-size: 8.5px;
            font-weight: 700;
            color: var(--green);
            background: var(--green-dim);
            padding: 1px 5px;
            border-radius: 4px;
            display: inline-block;
            margin-top: 2px;
        }

        /* Bento Grid */
        .landing-features-section {
            padding: 8rem 2.5rem;
            background: var(--surface2);
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
            position: relative;
            z-index: 1;
        }

        .bento-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-auto-rows: minmax(180px, auto);
            gap: 1.5rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .bento-card {
            background: rgba(255, 255, 255, 0.45);
            backdrop-filter: blur(20px) saturate(160%);
            -webkit-backdrop-filter: blur(20px) saturate(160%);
            border: 1px solid rgba(255, 255, 255, 0.6);
            border-radius: 24px;
            padding: 2.25rem;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
        }

        .bento-card:hover {
            transform: translateY(-6px) scale(1.01);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
            border-color: rgba(79, 70, 229, 0.3);
        }

        .bento-card.large {
            grid-column: span 2;
            grid-row: span 2;
            justify-content: space-between;
        }

        .bento-card.medium {
            grid-column: span 1;
            grid-row: span 2;
            justify-content: space-between;
        }

        .bento-card.small {
            grid-column: span 1;
            grid-row: span 1;
        }

        .bento-card.wide {
            grid-column: span 2;
            grid-row: span 1;
            flex-direction: row;
            align-items: center;
            gap: 2rem;
            justify-content: space-between;
        }

        .bento-card h3 {
            font-family: 'Outfit', sans-serif;
            font-size: 20px;
            font-weight: 800;
            color: #0f172a;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .bento-card p {
            font-size: 13.5px;
            line-height: 1.6;
            color: var(--text-soft);
        }

        /* Bento Features Mock Elements */
        .bento-visual {
            margin-top: 1.5rem;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border);
            background: var(--surface);
            padding: 12px;
            box-shadow: var(--shadow-sm);
        }

        .gamification-visual {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .gamification-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .gamification-xp-track {
            height: 10px;
            background: var(--brand-dim);
            border-radius: 99px;
            width: 100%;
            overflow: hidden;
            position: relative;
        }

        .gamification-xp-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--brand), var(--brand-soft));
            border-radius: 99px;
        }

        .gamification-combos {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .combo-badge {
            font-size: 9.5px;
            font-weight: 800;
            padding: 3px 8px;
            border-radius: 6px;
        }

        .combo-badge.fire {
            background: #fdf2e9;
            color: #d97706;
            border: 1px solid #fae5d3;
        }

        .combo-badge.xp-multi {
            background: #e8f6ee;
            color: #16a34a;
            border: 1px solid #d2f0dd;
        }

        .kaamai-visual {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .kaamai-step {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 11px;
            font-weight: 600;
            color: var(--text-soft);
            padding: 6px;
            border-radius: 6px;
            background: var(--surface2);
        }

        .pomo-visual {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
        }

        .pomo-visual-pill {
            background: linear-gradient(135deg, var(--brand), var(--brand-soft));
            color: #fff;
            padding: 10px 22px;
            border-radius: 99px;
            font-weight: 800;
            font-size: 16px;
            letter-spacing: 0.5px;
            box-shadow: 0 4px 15px rgba(22, 101, 52, 0.25);
            display: flex;
            align-items: center;
            gap: 8px;
            animation: floatZenPill 3s infinite ease-in-out;
        }

        @keyframes floatZenPill {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-4px);
            }
        }

        .heatmap-visual {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 4px;
        }

        .heatmap-box {
            aspect-ratio: 1;
            border-radius: 3px;
            background: var(--border);
        }

        .heatmap-box.active-1 {
            background: #86efac;
        }

        .heatmap-box.active-2 {
            background: #22c55e;
        }

        .heatmap-box.active-3 {
            background: #166534;
        }

        .notebook-visual {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .notebook-line {
            height: 6px;
            border-radius: 2px;
            background: var(--border);
            width: 100%;
        }

        .notebook-line:nth-child(2) {
            width: 85%;
        }

        .notebook-line:nth-child(3) {
            width: 90%;
        }

        .notebook-line:nth-child(4) {
            width: 60%;
        }

        .priority-visual {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .priority-score {
            font-size: 16px;
            font-weight: 800;
            color: var(--red);
            background: var(--red-dim);
            padding: 4px 10px;
            border-radius: 6px;
        }

        /* Glass Back Button inside Auth */
        .back-home-btn {
            position: absolute;
            top: 2.5rem;
            left: 2.5rem;
            z-index: 10;
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: var(--font);
            font-size: 13px;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.45);
            border: 1px solid rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            color: #374151;
            padding: 9px 16px;
            border-radius: 9px;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
            text-decoration: none;
        }

        .back-home-btn:hover {
            background: rgba(255, 255, 255, 0.7);
            border-color: var(--brand);
            color: var(--brand);
            transform: translateX(-2px);
            box-shadow: 0 4px 16px rgba(79, 70, 229, 0.1);
        }

        [data-theme="dark"] .back-home-btn {
            background: rgba(30, 41, 59, 0.45);
            border-color: rgba(51, 65, 85, 0.6);
            color: #f1f5f9;
        }

        [data-theme="dark"] .back-home-btn:hover {
            background: rgba(30, 41, 59, 0.8);
            border-color: var(--brand);
            color: var(--brand);
        }

        /* Dark Mode overrides for Landing page */
        [data-theme="dark"] #landing-screen {
            background: #0b0f17;
            color: #eceef2;
        }

        [data-theme="dark"] .landing-header {
            background: rgba(11, 15, 23, 0.5);
            border-bottom-color: rgba(255, 255, 255, 0.05);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
        }

        [data-theme="dark"] .landing-btn-secondary {
            background: rgba(24, 27, 34, 0.5);
            border-color: #333845;
            color: #c2c7d0;
        }

        [data-theme="dark"] .landing-btn-secondary:hover {
            background: #181b22;
            border-color: var(--brand);
            color: var(--brand);
        }

        [data-theme="dark"] .landing-hero-title {
            color: #eceef2;
        }

        [data-theme="dark"] .landing-btn-lg-secondary {
            background: rgba(24, 27, 34, 0.5);
            border-color: #333845;
            color: #cbd5e1;
        }

        [data-theme="dark"] .landing-btn-lg-secondary:hover {
            background: #181b22;
            border-color: var(--brand);
            color: var(--brand);
        }

        [data-theme="dark"] .landing-app-mockup {
            background: #14171d;
            border-color: #333845;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
        }

        [data-theme="dark"] .landing-features-section {
            background: #0e1118;
            border-top-color: rgba(255, 255, 255, 0.05);
            border-bottom-color: rgba(255, 255, 255, 0.05);
        }

        [data-theme="dark"] .bento-card {
            background: rgba(24, 27, 34, 0.45);
            border-color: rgba(255, 255, 255, 0.05);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        [data-theme="dark"] .bento-card:hover {
            border-color: rgba(79, 70, 229, 0.4);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        }

        [data-theme="dark"] .bento-card h3 {
            color: #f1f5f9;
        }

        [data-theme="dark"] .bento-visual {
            border-color: rgba(255, 255, 255, 0.05);
            background: #0e1118;
        }

        [data-theme="dark"] .kaamai-step {
            background: #14171d;
        }

        [data-theme="dark"] .heatmap-box {
            background: #1c2230;
        }

        [data-theme="dark"] .notebook-line {
            background: #1c2230;
        }

        [data-theme="dark"] .landing-footer {
            background: #07090d;
            border-top-color: rgba(255, 255, 255, 0.03);
        }

        /* Footer */
        .landing-footer {
            background: #11141a;
            color: #7c828f;
            padding: 3.5rem 2.5rem;
            text-align: center;
            border-top: 1px solid #1a1e26;
            font-size: 12.5px;
            line-height: 1.6;
            z-index: 1;
        }

        /* Responsive */
        @media (max-width: 900px) {
            .landing-hero {
                grid-template-columns: 1fr;
                gap: 3.5rem;
                padding-top: 4rem;
                padding-bottom: 4rem;
                text-align: center;
            }

            .landing-hero-content {
                align-items: center;
            }

            .landing-hero-title {
                font-size: 38px;
            }

            .landing-hero-buttons {
                justify-content: center;
            }

            .bento-grid {
                grid-template-columns: repeat(2, 1fr);
                grid-auto-rows: auto;
            }

            .bento-card.large {
                grid-column: span 2;
                grid-row: span 1;
            }

            .bento-card.medium {
                grid-column: span 1;
                grid-row: span 1;
            }

            .bento-card.small {
                grid-column: span 1;
                grid-row: span 1;
            }

            .bento-card.wide {
                grid-column: span 2;
                grid-row: span 1;
                flex-direction: column;
                align-items: stretch;
                justify-content: flex-start;
                gap: 1rem;
            }

            .bento-card.wide>div:first-child {
                max-width: 100% !important;
            }

            .back-home-btn {
                top: 1rem;
                left: 1rem;
                font-size: 11.5px;
                padding: 7px 12px;
            }
        }

        @media (max-width: 500px) {
            .landing-header {
                padding: 1rem 1.25rem;
            }

            .landing-header .brand-text p {
                display: none;
            }

            .landing-btn-secondary,
            .landing-btn-primary {
                font-size: 12px;
                padding: 7px 14px;
            }

            .landing-hero-title {
                font-size: 32px;
            }

            .landing-btn-lg-primary,
            .landing-btn-lg-secondary {
                width: 100%;
                text-align: center;
                padding: 12px 20px;
                font-size: 14px;
            }
        }

        @media (max-width: 600px) {
            .bento-grid {
                grid-template-columns: 1fr;
            }

            .bento-card.large,
            .bento-card.medium,
            .bento-card.small,
            .bento-card.wide {
                grid-column: span 1;
                grid-row: span 1;
            }
        }

        /* How It Works Section */
        .landing-how-section {
            padding: 8rem 2.5rem;
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .how-cards-container {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
            margin-top: 3rem;
        }

        .how-step-card {
            background: rgba(255, 255, 255, 0.45);
            backdrop-filter: blur(20px) saturate(160%);
            -webkit-backdrop-filter: blur(20px) saturate(160%);
            border: 1px solid rgba(255, 255, 255, 0.6);
            border-radius: 24px;
            padding: 2.5rem 2rem;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
        }

        .how-step-card:hover {
            transform: translateY(-8px);
            border-color: rgba(79, 70, 229, 0.3);
            box-shadow: 0 20px 40px rgba(79, 70, 229, 0.06);
        }

        .how-step-card.featured {
            background: rgba(79, 70, 229, 0.03);
            border-color: rgba(79, 70, 229, 0.2);
            box-shadow: 0 15px 35px rgba(79, 70, 229, 0.03);
        }

        .how-step-card.featured:hover {
            background: rgba(79, 70, 229, 0.05);
            border-color: rgba(79, 70, 229, 0.4);
            box-shadow: 0 25px 50px rgba(79, 70, 229, 0.09);
        }

        .how-step-badge {
            position: absolute;
            top: 2rem;
            right: 2rem;
            font-size: 14px;
            font-weight: 800;
            font-family: 'Outfit', sans-serif;
            color: var(--brand);
            background: var(--brand-dim);
            padding: 4px 10px;
            border-radius: 99px;
            opacity: 0.8;
        }

        .how-step-icon {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
        }

        .how-step-title {
            font-family: 'Outfit', sans-serif;
            font-size: 20px;
            font-weight: 800;
            color: var(--text);
            margin-bottom: 0.75rem;
            letter-spacing: -0.5px;
        }

        .how-step-desc {
            font-size: 13.5px;
            color: var(--text-soft);
            line-height: 1.6;
        }

        /* Dark mode overrides */
        [data-theme="dark"] .how-step-card {
            background: rgba(26, 29, 36, 0.45);
            border-color: rgba(255, 255, 255, 0.05);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        [data-theme="dark"] .how-step-card:hover {
            border-color: rgba(124, 58, 237, 0.4);
            box-shadow: 0 20px 40px rgba(124, 58, 237, 0.1);
        }

        [data-theme="dark"] .how-step-card.featured {
            background: rgba(124, 58, 237, 0.04);
            border-color: rgba(124, 58, 237, 0.15);
        }

        [data-theme="dark"] .how-step-card.featured:hover {
            background: rgba(124, 58, 237, 0.06);
            border-color: rgba(124, 58, 237, 0.5);
        }

        @media (max-width: 968px) {
            .how-cards-container {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 600px) {
            .how-cards-container {
                grid-template-columns: 1fr;
            }

            .landing-how-section {
                padding: 5rem 1.5rem;
            }
        }

        /* ===== ENHANCED GEN Z ANIMATIONS & MICRO-INTERACTIONS ===== */
        html {
            scroll-behavior: smooth;
        }

        /* Animated flowing gradient text */
        @keyframes gradientShift {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        .landing-hero-title .gradient-text {
            background: linear-gradient(270deg, #166534, #7C3AED, #EC4899, #F59E0B, #10B981, #166534);
            background-size: 300% 300%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: gradientShift 6s ease infinite;
        }

        /* Pulsating glow orbs */
        @keyframes floatOrb {

            0%,
            100% {
                transform: translate(0, 0) scale(1);
            }

            25% {
                transform: translate(30px, -25px) scale(1.05);
            }

            50% {
                transform: translate(-20px, 15px) scale(0.95);
            }

            75% {
                transform: translate(15px, 20px) scale(1.08);
            }
        }

        @keyframes pulseOrb {

            0%,
            100% {
                opacity: 0.12;
            }

            50% {
                opacity: 0.22;
            }
        }

        .landing-glow-orb {
            animation: floatOrb 22s ease-in-out infinite, pulseOrb 5s ease-in-out infinite !important;
        }

        .orb-indigo {
            animation-delay: 0s, 0s !important;
        }

        .orb-cyan {
            animation-delay: -8s, -2s !important;
        }

        .orb-amber {
            animation-delay: -4s, -1s !important;
        }

        /* Dot Grid Texture Overlay */
        #landing-screen::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: radial-gradient(circle, rgba(79, 70, 229, 0.04) 1px, transparent 1px);
            background-size: 28px 28px;
            pointer-events: none;
            z-index: 0;
        }

        [data-theme="dark"] #landing-screen::before {
            background-image: radial-gradient(circle, rgba(129, 140, 248, 0.06) 1px, transparent 1px);
        }

        /* Mouse-follow glow */
        .hero-mouse-glow {
            position: absolute;
            width: 350px;
            height: 350px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(79, 70, 229, 0.12), transparent 70%);
            pointer-events: none;
            z-index: 0;
            transition: transform 0.15s ease-out, opacity 0.3s;
            opacity: 0;
        }

        .hero-mouse-glow.visible {
            opacity: 1;
        }

        [data-theme="dark"] .hero-mouse-glow {
            background: radial-gradient(circle, rgba(129, 140, 248, 0.15), transparent 70%);
        }

        /* Scroll Reveal Animations */
        @keyframes revealUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes revealScale {
            from {
                opacity: 0;
                transform: scale(0.92) translateY(20px);
            }

            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .reveal {
            opacity: 0;
        }

        .reveal.revealed {
            animation: revealUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        .reveal-scale {
            opacity: 0;
        }

        .reveal-scale.revealed {
            animation: revealScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        /* Staggered children */
        .stagger-children .reveal-child {
            opacity: 0;
        }

        .stagger-children.revealed .reveal-child {
            animation: revealUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        .stagger-children.revealed .reveal-child:nth-child(1) {
            animation-delay: 0.05s;
        }

        .stagger-children.revealed .reveal-child:nth-child(2) {
            animation-delay: 0.12s;
        }

        .stagger-children.revealed .reveal-child:nth-child(3) {
            animation-delay: 0.19s;
        }

        .stagger-children.revealed .reveal-child:nth-child(4) {
            animation-delay: 0.26s;
        }

        .stagger-children.revealed .reveal-child:nth-child(5) {
            animation-delay: 0.33s;
        }

        .stagger-children.revealed .reveal-child:nth-child(6) {
            animation-delay: 0.40s;
        }

        .stagger-children.revealed .reveal-child:nth-child(7) {
            animation-delay: 0.47s;
        }

        /* Hero entrance */
        @keyframes heroSlideIn {
            from {
                opacity: 0;
                transform: translateY(50px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .landing-hero-content>* {
            opacity: 0;
            animation: heroSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        .landing-hero-content>*:nth-child(1) {
            animation-delay: 0.1s;
        }

        .landing-hero-content>*:nth-child(2) {
            animation-delay: 0.25s;
        }

        .landing-hero-content>*:nth-child(3) {
            animation-delay: 0.4s;
        }

        .landing-hero-content>*:nth-child(4) {
            animation-delay: 0.55s;
        }

        .landing-hero-preview {
            opacity: 0;
            animation: heroSlideIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
        }

        /* Gradient border hover on bento cards */
        .bento-card::before {
            content: '';
            position: absolute;
            inset: -1px;
            border-radius: 25px;
            padding: 1.5px;
            background: linear-gradient(135deg, transparent, transparent);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            transition: background 0.5s ease;
            opacity: 0;
            z-index: 1;
        }

        .bento-card:hover::before {
            background: linear-gradient(135deg, #166534, #7C3AED, #EC4899, #F59E0B);
            opacity: 1;
        }

        /* Same for how-step-cards */
        .how-step-card::before {
            content: '';
            position: absolute;
            inset: -1px;
            border-radius: 25px;
            padding: 1.5px;
            background: linear-gradient(135deg, transparent, transparent);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            transition: background 0.5s ease;
            opacity: 0;
            z-index: 1;
        }

        .how-step-card:hover::before {
            background: linear-gradient(135deg, #166534, #7C3AED, #EC4899);
            opacity: 1;
        }

        /* Social Proof Stats Bar */
        .landing-stats-bar {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 3rem;
            padding: 2.5rem 2rem;
            margin-top: -2rem;
            position: relative;
            z-index: 2;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }

        .stat-number {
            font-family: 'Outfit', sans-serif;
            font-size: 32px;
            font-weight: 900;
            letter-spacing: -1px;
            background: linear-gradient(135deg, var(--brand), var(--brand-soft));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .stat-label {
            font-size: 12px;
            font-weight: 600;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .stat-divider {
            width: 1px;
            height: 40px;
            background: var(--border);
        }

        [data-theme="dark"] .stat-number {
            background: linear-gradient(135deg, #818cf8, #c084fc);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        @media (max-width: 600px) {
            .landing-stats-bar {
                gap: 1.5rem;
                flex-wrap: wrap;
            }

            .stat-number {
                font-size: 24px;
            }

            .stat-label {
                font-size: 10px;
            }

            .stat-divider {
                display: none;
            }
        }

        /* Testimonial Section */
        .landing-testimonials-section {
            padding: 6rem 2.5rem;
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            margin-top: 3rem;
        }

        .testimonial-card {
            background: rgba(255, 255, 255, 0.45);
            backdrop-filter: blur(20px) saturate(160%);
            -webkit-backdrop-filter: blur(20px) saturate(160%);
            border: 1px solid rgba(255, 255, 255, 0.6);
            border-radius: 24px;
            padding: 2rem;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
            position: relative;
            overflow: hidden;
        }

        .testimonial-card:hover {
            transform: translateY(-6px);
            border-color: rgba(79, 70, 229, 0.3);
            box-shadow: 0 20px 40px rgba(79, 70, 229, 0.06);
        }

        .testimonial-card::before {
            content: '';
            position: absolute;
            inset: -1px;
            border-radius: 25px;
            padding: 1.5px;
            background: linear-gradient(135deg, transparent, transparent);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            transition: background 0.5s ease;
            opacity: 0;
            z-index: 1;
        }

        .testimonial-card:hover::before {
            background: linear-gradient(135deg, #166534, #EC4899);
            opacity: 1;
        }

        .testimonial-stars {
            font-size: 14px;
            margin-bottom: 1rem;
            letter-spacing: 2px;
        }

        .testimonial-text {
            font-size: 14px;
            line-height: 1.65;
            color: var(--text-soft);
            margin-bottom: 1.25rem;
            font-style: italic;
        }

        .testimonial-author {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .testimonial-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: 800;
            font-family: 'Outfit', sans-serif;
            color: #fff;
        }

        .testimonial-name {
            font-size: 13px;
            font-weight: 700;
            color: var(--text);
        }

        .testimonial-role {
            font-size: 11px;
            color: var(--muted);
            font-weight: 500;
        }

        [data-theme="dark"] .testimonial-card {
            background: rgba(26, 29, 36, 0.45);
            border-color: rgba(255, 255, 255, 0.05);
        }

        [data-theme="dark"] .testimonial-card:hover {
            border-color: rgba(124, 58, 237, 0.4);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        }

        @media (max-width: 900px) {
            .testimonials-grid {
                grid-template-columns: 1fr;
            }
        }

        /* CTA Section */
        .landing-cta-section {
            padding: 6rem 2.5rem;
            text-align: center;
            position: relative;
            z-index: 1;
            overflow: hidden;
        }

        .cta-glow-wrap {
            max-width: 800px;
            margin: 0 auto;
            background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(124, 58, 237, 0.04), rgba(236, 72, 153, 0.03));
            border: 1px solid rgba(79, 70, 229, 0.15);
            border-radius: 32px;
            padding: 4rem 3rem;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(20px);
        }

        .cta-glow-wrap::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: conic-gradient(from 0deg, transparent, rgba(79, 70, 229, 0.08), transparent, rgba(124, 58, 237, 0.06), transparent);
            animation: rotateCTA 12s linear infinite;
            pointer-events: none;
        }

        @keyframes rotateCTA {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        .cta-title {
            font-family: 'Outfit', sans-serif;
            font-size: 36px;
            font-weight: 900;
            letter-spacing: -1px;
            color: var(--text);
            margin-bottom: 1rem;
            position: relative;
            z-index: 1;
        }

        .cta-subtitle {
            font-size: 15px;
            color: var(--text-soft);
            line-height: 1.6;
            max-width: 500px;
            margin: 0 auto 2rem;
            position: relative;
            z-index: 1;
        }

        .cta-btn {
            font-family: var(--font);
            font-size: 16px;
            font-weight: 700;
            background: linear-gradient(135deg, var(--brand), #7C3AED, #EC4899);
            background-size: 200% 200%;
            animation: gradientShift 4s ease infinite;
            border: none;
            color: #fff;
            padding: 16px 40px;
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 8px 30px rgba(79, 70, 229, 0.3);
            position: relative;
            z-index: 1;
        }

        .cta-btn:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 14px 40px rgba(79, 70, 229, 0.45);
        }

        .cta-btn:active {
            transform: translateY(-1px) scale(1);
        }

        [data-theme="dark"] .cta-glow-wrap {
            background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(124, 58, 237, 0.06), rgba(236, 72, 153, 0.04));
            border-color: rgba(79, 70, 229, 0.2);
        }

        @media (max-width: 600px) {
            .cta-glow-wrap {
                padding: 3rem 1.5rem;
            }

            .cta-title {
                font-size: 28px;
            }
        }

        /* Floating badge animation on hero badge */
        @keyframes floatBadge {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-5px);
            }
        }

        .landing-badge {
            animation: floatBadge 3s ease-in-out infinite;
        }

        /* Typing cursor animation on hero subtitle */
        @keyframes blink {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0;
            }
        }

        /* Enhanced mockup hover glow */
        .landing-app-mockup {
            position: relative;
        }

        .landing-app-mockup::after {
            content: '';
            position: absolute;
            inset: -2px;
            border-radius: 22px;
            background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.15));
            z-index: -1;
            opacity: 0;
            transition: opacity 0.4s ease;
            filter: blur(20px);
        }

        .landing-app-mockup:hover::after {
            opacity: 1;
        }

        /* Animated XP bar in gamification visual */
        @keyframes xpFill {
            from {
                width: 0;
            }

            to {
                width: 72%;
            }
        }

        .gamification-xp-bar {
            animation: xpFill 2s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
            width: 0 !important;
        }

        /* Shimmering border on primary CTA button */
        @keyframes shimmer {
            0% {
                background-position: -200% 0;
            }

            100% {
                background-position: 200% 0;
            }
        }

        .landing-btn-lg-primary {
            position: relative;
            overflow: hidden;
        }

        .landing-btn-lg-primary::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
            background-size: 200% 100%;
            animation: shimmer 3s ease-in-out infinite;
        }

        /* RPG Tab Visual Layout & Quests */
        .rpg-grid {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr;
            gap: 1.5rem;
            margin-bottom: 2rem;
            text-align: left;
        }

        .quest-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .quest-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            background: var(--surface2);
            border: 1px solid var(--border);
            border-radius: 12px;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .quest-item:hover {
            transform: translateY(-2.5px);
            border-color: var(--brand);
            background: var(--surface);
            box-shadow: var(--shadow);
        }

        @media (max-width: 950px) {
            .rpg-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
        }

        @media (max-width: 600px) {
            header {
                gap: 12px;
                margin-bottom: 1.25rem;
            }

            .header-tools {
                width: 100%;
                justify-content: space-between;
                gap: 8px;
            }

            .user-chip {
                padding: 4px;
                gap: 0;
                border-radius: 50%;
            }

            .user-email {
                display: none;
            }

            .xp-pill .xp-progress-bar-wrap {
                display: none !important;
            }

            .xp-pill {
                padding: 5px 10px;
                font-size: 12px;
                gap: 6px;
            }

            .xp-pct-label {
                font-size: 11px;
            }

            .modal {
                padding: 1.25rem;
            }

            .field-row {
                gap: 12px;
            }
        }