@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{--bg:#0b1020;--surface:#111a30;--surface2:#151f38;--line:rgba(160,181,225,.13);--text:#eef3ff;--muted:#8998b8;--blue:#5b8cff;--violet:#a17cff;--cyan:#48c8df;--green:#50d5a0;--orange:#ffb66e}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:'DM Sans',sans-serif;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;display:flex;background:radial-gradient(ellipse at 70% -20%,rgba(69,103,201,.17),transparent 40%),var(--bg)}
.sidebar{width:252px;flex:0 0 252px;padding:27px 17px 20px;border-right:1px solid var(--line);display:flex;flex-direction:column;background:rgba(10,16,32,.8);min-height:100vh}.brand{display:flex;align-items:center;gap:12px;padding:0 10px 35px;color:var(--text);text-decoration:none}.brand-mark{width:39px;height:39px;border-radius:12px;display:grid;place-items:center;font-size:27px;font-weight:700;color:white;background:linear-gradient(135deg,#548eff,#9a72ff);box-shadow:0 8px 24px #547cff44}.brand b{display:block;font:700 14px 'Space Grotesk';letter-spacing:1.1px}.brand small{display:block;color:#7484a8;font-size:8px;letter-spacing:2px;margin-top:3px}.side-label,.eyebrow,.mode-tag{font-size:9px;letter-spacing:1.7px;font-weight:800;color:#7182a9}.side-label{padding:0 12px 12px}.nav-list{display:grid;gap:5px}.nav-item{border:0;background:transparent;color:#91a0bf;text-align:left;padding:12px 13px;border-radius:10px;font-size:13px;display:flex;align-items:center;gap:13px;transition:.2s}.nav-item span{font-size:17px;width:19px;text-align:center}.nav-item:hover,.nav-item.active{color:#fff;background:linear-gradient(90deg,rgba(80,130,255,.2),rgba(127,100,255,.08));box-shadow:inset 2px 0 #6d91ff}.sidebar-bottom{margin-top:auto}.mini-card{margin:0 4px 20px;padding:16px;border:1px solid var(--line);border-radius:13px;background:linear-gradient(140deg,#172443,#121a30)}.mini-icon{color:#b49aff;font-size:18px}.mini-card b{display:block;font-size:11px;margin:8px 0 5px}.mini-card p{margin:0;color:var(--muted);font-size:10px;line-height:1.6}
.main-area{flex:1;min-width:0}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,4vw,58px)}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb span{padding:0 9px;color:#526181}.breadcrumb b{color:#dce5ff}.top-actions{display:flex;align-items:center;gap:10px;font-size:11px;color:#a9b6d0}.status-dot{width:7px;height:7px;background:#50d5a0;border-radius:50%;box-shadow:0 0 10px #50d5a0}.avatar{border:1px solid #40527c;background:#1b2948;color:#cbd8ff;border-radius:50%;width:34px;height:34px;font-size:10px;font-weight:800;margin-left:10px}.mobile-menu{display:none;background:none;color:white;border:0;font-size:22px}.content{max-width:1450px;margin:auto;padding:32px clamp(20px,4vw,58px) 22px}
.hero{position:relative;overflow:hidden;min-height:285px;border:1px solid rgba(130,158,255,.18);border-radius:20px;padding:37px 42px;background:linear-gradient(110deg,#172748 0%,#192449 47%,#2a2252 100%);display:flex;align-items:center;justify-content:space-between}.hero-copy{position:relative;z-index:2;max-width:510px}.hero .eyebrow{color:#a9b9e7}.spark{color:#a68aff;margin-right:7px}.hero h1{font:700 clamp(35px,4vw,52px)/1.02 'Space Grotesk';letter-spacing:-2px;margin:17px 0 12px}.hero h1 em{font-style:normal;background:linear-gradient(90deg,#83b7ff,#b69bff);-webkit-background-clip:text;background-clip:text;color:transparent}.hero p{color:#aebbd8;font-size:13px;line-height:1.7;max-width:390px;margin:0 0 22px}.hero-actions{display:flex;gap:10px}.btn{border:0;border-radius:9px;padding:11px 16px;font-size:11px;font-weight:700;transition:.2s}.btn:hover{transform:translateY(-2px);filter:brightness(1.1)}.btn-primary{background:linear-gradient(100deg,#568eff,#8a70f5);color:white;box-shadow:0 8px 22px #637cff3a}.btn-primary span{margin-left:12px}.btn-ghost{background:#ffffff0c;border:1px solid #ffffff25;color:#e1e8ff}.hero-art{position:absolute;right:9%;top:0;width:350px;height:285px;display:grid;place-items:center}.math-core{width:125px;height:125px;border-radius:38px;transform:rotate(-12deg);background:linear-gradient(145deg,#739cff,#8c6de8);box-shadow:0 0 65px #7d83ff88,inset 0 1px 12px #ffffff80;display:grid;place-items:center;z-index:2}.math-core span{font:700 80px 'Space Grotesk';color:#fff;line-height:.8}.math-core small{font-size:8px;letter-spacing:3px;margin-top:-19px}.orbit{position:absolute;border:1px solid #9fb0ff36;border-radius:50%;transform:rotate(-24deg)}.orbit-one{width:270px;height:150px}.orbit-two{width:330px;height:220px;transform:rotate(34deg)}.float-chip{position:absolute;padding:9px 14px;border-radius:10px;background:#24345a;border:1px solid #8ba5ff55;box-shadow:0 8px 25px #05091d66;font:700 13px 'Space Grotesk';z-index:3}.chip-a{top:42px;left:28px;color:#a9caff}.chip-b{right:8px;top:83px;color:#a9f1d5}.chip-c{bottom:42px;left:42px;color:#e0c5ff}.chip-d{right:22px;bottom:32px;color:#ffdbab}.hero-glow{position:absolute;width:280px;height:280px;right:14%;background:#6c65ff24;filter:blur(65px)}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin:19px 0 32px}.stat-card,.panel{background:linear-gradient(145deg,#131d34,#10182b);border:1px solid var(--line);border-radius:14px;padding:17px 18px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#8190b1;font-size:9px;font-weight:800;letter-spacing:1.1px}.stat-icon{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;font-size:15px}.blue{background:#548bff22;color:#7baaff}.violet{background:#a17cff22;color:#b89dff}.green{background:#50d5a022;color:#65e2b1}.orange{background:#ffb66e22;color:#ffc58e}.stat-card strong{display:block;font:700 29px 'Space Grotesk';margin:12px 0 2px}.stat-card small{font-size:10px;color:var(--muted)}.progress-track{height:4px;border-radius:9px;background:#26324c;margin-top:13px;overflow:hidden}.progress-track i{display:block;width:0;height:100%;background:linear-gradient(90deg,#578eff,#a17cff);border-radius:9px;transition:width .3s}.stat-note{font-size:10px;color:#7788ab;margin-top:14px}
.section-block{margin-bottom:28px}.section-heading,.panel-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:15px}.section-heading h2{font:600 21px 'Space Grotesk';margin:7px 0 0}.muted{color:var(--muted);font-size:11px}.mode-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.mode-card{position:relative;text-align:left;min-height:166px;border-radius:14px;padding:17px;border:1px solid var(--line);color:white;overflow:hidden;transition:.2s}.mode-card:hover{transform:translateY(-4px);border-color:#7899ff88}.mode-blue{background:linear-gradient(145deg,#192e50,#14213b)}.mode-purple{background:linear-gradient(145deg,#2b2450,#1c1b3a)}.mode-cyan{background:linear-gradient(145deg,#163b4b,#142a3d)}.mode-orange{background:linear-gradient(145deg,#443047,#29233d)}.mode-symbol{display:block;font-size:22px;margin-bottom:13px}.mode-tag{font-size:8px;color:#a8b8df}.mode-card b{display:block;font:600 17px 'Space Grotesk';margin:7px 0}.mode-card small{display:block;color:#aab6d0;font-size:10px;line-height:1.55;max-width:190px}.mode-arrow{position:absolute;right:17px;bottom:15px;color:#b9c9ff}
.bottom-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:14px}.panel{position:relative;overflow:hidden}.panel-heading{align-items:center;margin-bottom:6px}.panel h3{font:600 17px 'Space Grotesk';margin:5px 0}.panel-icon{font-size:20px;color:#9d8cff}.quick-numbers{display:grid;grid-template-columns:repeat(10,1fr);gap:6px;margin:15px 0}.quick-numbers button,.number-grid button{border:1px solid #34415f;background:#1a2742;color:#c7d5f6;border-radius:7px;padding:8px 2px;font-size:10px}.quick-numbers button:hover,.number-grid button:hover,.number-grid button.selected{background:#5b83e8;border-color:#8daaff;color:white}.text-button{border:0;background:none;color:#8eafff;padding:4px 0;font-size:10px;font-weight:700}.daily-panel{background:linear-gradient(140deg,#25234c,#17213c)}.daily-badge{font-size:8px;letter-spacing:1.7px;color:#c2a8ff;font-weight:800}.daily-panel h3{font-size:20px;margin:12px 0}.daily-panel p{color:#b4bfd9;font-size:12px}.daily-panel p b{color:white;font-size:17px}.daily-form{display:flex;gap:8px;position:relative;z-index:2}.daily-form input,.answer-input,.field{background:#0e172b;border:1px solid #3a496c;border-radius:8px;color:white;padding:10px 12px;min-width:0;outline:none}.daily-form input{width:130px;font-size:11px}.daily-form input:focus,.answer-input:focus,.field:focus{border-color:#7d9eff}.daily-decoration{position:absolute;right:22px;bottom:-39px;font:180px 'Space Grotesk';color:#ffffff08;pointer-events:none}.feedback{font-size:11px;min-height:18px;margin-top:9px;color:#8fe5bf}
.footer{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#657494;font-size:9px;padding:24px 2px 5px;margin-top:12px;border-top:1px solid var(--line)}.footer b{color:#aab8d8;letter-spacing:1px}.footer a{display:flex;align-items:center;gap:6px;color:#aab8d8;text-decoration:none}.footer a:hover{color:white}.footer svg{width:16px;height:16px;fill:#ff6575}
.page-title{margin:5px 0 22px}.page-title .eyebrow{margin-bottom:8px}.page-title h1{font:700 30px 'Space Grotesk';margin:0 0 7px}.page-title p{color:var(--muted);font-size:12px;margin:0}.tool-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:15px 0}.field{font-size:12px}.number-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:8px}.number-grid button{padding:12px 5px;font-size:12px}.table-output{margin-top:20px;background:#121d34;border:1px solid var(--line);border-radius:14px;padding:20px}.table-output h3{font:600 20px 'Space Grotesk';margin:0 0 15px}.equations{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.equation{padding:10px 12px;border-radius:8px;background:#1a2947;color:#cbd8f5;font-size:13px}.equation b{color:#9fbdff;float:right}
.learning-layout{display:grid;grid-template-columns:1fr 1fr;gap:14px}.learning-card{background:#141f38;border:1px solid var(--line);padding:22px;border-radius:14px}.learning-card h3{font:600 18px 'Space Grotesk';margin-top:0}.big-equation{text-align:center;font:700 42px 'Space Grotesk';padding:30px 10px;color:#c4d6ff}.big-equation span{color:#8fa9ff}.step-controls{display:flex;justify-content:space-between;align-items:center}.question-box{padding:24px;border-radius:13px;background:#172441;border:1px solid #3b4e77;margin:12px 0}.question-box strong{font:700 32px 'Space Grotesk'}.answer-row{display:flex;gap:8px;flex-wrap:wrap}.answer-input{width:150px}.feedback.good{color:#68e1b0}.feedback.bad{color:#ff9b9b}
.quiz-options{display:flex;gap:8px;flex-wrap:wrap}.choice{border:1px solid #3c4c70;border-radius:9px;padding:12px 17px;background:#1b2947;color:#eaf0ff}.choice:hover{border-color:#91aaff;background:#293c65}.choice:disabled{opacity:.65;cursor:default}.result-score{font:700 48px 'Space Grotesk';color:#9fc0ff}.game-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.game-card{padding:20px;background:linear-gradient(145deg,#172745,#141c33);border:1px solid var(--line);border-radius:14px}.game-card .game-emoji{font-size:27px}.game-card h3{font:600 18px 'Space Grotesk';margin:10px 0 5px}.game-card p{font-size:11px;color:var(--muted);line-height:1.6}.about-card{max-width:800px;padding:25px;border:1px solid var(--line);border-radius:14px;background:#141f38}.about-card p{color:#a9b7d4;line-height:1.8;font-size:13px}.about-card a{color:#a9c1ff}.empty-state{padding:25px;text-align:center;color:var(--muted);border:1px dashed #3a496c;border-radius:12px}
@media(max-width:1100px){.stats-grid,.mode-grid{grid-template-columns:repeat(2,1fr)}.hero-art{right:3%;opacity:.75}.number-grid{grid-template-columns:repeat(8,1fr)}}
@media(max-width:760px){.sidebar{position:fixed;z-index:20;left:-270px;top:0;bottom:0;transition:left .25s;box-shadow:15px 0 40px #0008}.sidebar.open{left:0}.mobile-menu{display:block}.topbar{height:62px;padding:0 18px}.breadcrumb{margin-right:auto;margin-left:13px}.status-text{display:none}.content{padding:20px 16px}.hero{padding:27px 23px;min-height:300px}.hero-art{right:-95px;opacity:.32}.hero-copy{max-width:100%}.hero h1{font-size:42px}.stats-grid{gap:8px}.stat-card{padding:13px}.stat-card strong{font-size:25px}.stat-top{font-size:8px}.mode-grid{gap:8px}.mode-card{padding:13px;min-height:160px}.bottom-grid,.learning-layout{grid-template-columns:1fr}.quick-numbers{grid-template-columns:repeat(5,1fr)}.number-grid{grid-template-columns:repeat(5,1fr)}.footer{flex-wrap:wrap;line-height:1.7}.equations{grid-template-columns:1fr}.game-grid{grid-template-columns:1fr}}
@media(max-width:390px){.stats-grid{grid-template-columns:1fr 1fr}.mode-card b{font-size:15px}.hero h1{font-size:36px}}
