|
| 1 | +:root { |
| 2 | + --bg-a: #0b1222; |
| 3 | + --bg-b: #111c35; |
| 4 | + --surface: #162645; |
| 5 | + --surface-2: #1c3158; |
| 6 | + --text: #eff5ff; |
| 7 | + --muted: #a8b9d6; |
| 8 | + --accent: #19d3a2; |
| 9 | + --accent-2: #ffb347; |
| 10 | + --danger: #ff7e79; |
| 11 | +} |
| 12 | + |
| 13 | +* { |
| 14 | + box-sizing: border-box; |
| 15 | +} |
| 16 | + |
| 17 | +body { |
| 18 | + margin: 0; |
| 19 | + min-height: 100vh; |
| 20 | + font-family: "Space Grotesk", sans-serif; |
| 21 | + color: var(--text); |
| 22 | + background: radial-gradient(circle at 10% 10%, #1d3d6d 0%, var(--bg-a) 45%, #080d18 100%); |
| 23 | + overflow-x: hidden; |
| 24 | +} |
| 25 | + |
| 26 | +.bg-shape { |
| 27 | + position: fixed; |
| 28 | + border-radius: 50%; |
| 29 | + filter: blur(60px); |
| 30 | + z-index: 0; |
| 31 | + opacity: 0.35; |
| 32 | +} |
| 33 | + |
| 34 | +.bg-shape-a { |
| 35 | + width: 320px; |
| 36 | + height: 320px; |
| 37 | + background: #26d0ce; |
| 38 | + top: -80px; |
| 39 | + left: -90px; |
| 40 | +} |
| 41 | + |
| 42 | +.bg-shape-b { |
| 43 | + width: 260px; |
| 44 | + height: 260px; |
| 45 | + background: #ff9f43; |
| 46 | + right: -80px; |
| 47 | + bottom: -60px; |
| 48 | +} |
| 49 | + |
| 50 | +.container { |
| 51 | + position: relative; |
| 52 | + z-index: 1; |
| 53 | + width: min(980px, 92vw); |
| 54 | + margin: 2rem auto 3rem; |
| 55 | +} |
| 56 | + |
| 57 | +.hero, |
| 58 | +.card { |
| 59 | + background: linear-gradient(160deg, rgba(28, 49, 88, 0.95), rgba(17, 29, 54, 0.95)); |
| 60 | + border: 1px solid rgba(120, 151, 206, 0.24); |
| 61 | + border-radius: 24px; |
| 62 | + box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32); |
| 63 | + animation: rise 500ms ease; |
| 64 | +} |
| 65 | + |
| 66 | +.hero { |
| 67 | + padding: 2rem; |
| 68 | +} |
| 69 | + |
| 70 | +h1, |
| 71 | +h2, |
| 72 | +h3 { |
| 73 | + margin: 0; |
| 74 | +} |
| 75 | + |
| 76 | +.lead { |
| 77 | + color: var(--muted); |
| 78 | + max-width: 68ch; |
| 79 | +} |
| 80 | + |
| 81 | +.eyebrow { |
| 82 | + color: var(--accent-2); |
| 83 | + font-weight: 700; |
| 84 | + text-transform: uppercase; |
| 85 | + letter-spacing: 0.08em; |
| 86 | + font-size: 0.8rem; |
| 87 | + margin: 0 0 0.35rem; |
| 88 | +} |
| 89 | + |
| 90 | +.stats { |
| 91 | + display: grid; |
| 92 | + grid-template-columns: repeat(3, minmax(0, 1fr)); |
| 93 | + gap: 0.9rem; |
| 94 | + margin-top: 1.3rem; |
| 95 | +} |
| 96 | + |
| 97 | +.stat { |
| 98 | + padding: 1rem; |
| 99 | +} |
| 100 | + |
| 101 | +.stat span { |
| 102 | + color: var(--muted); |
| 103 | + font-size: 0.86rem; |
| 104 | +} |
| 105 | + |
| 106 | +.stat strong { |
| 107 | + display: block; |
| 108 | + margin-top: 0.3rem; |
| 109 | + font-size: 1.5rem; |
| 110 | +} |
| 111 | + |
| 112 | +.actions { |
| 113 | + display: flex; |
| 114 | + gap: 0.8rem; |
| 115 | + margin-top: 1.3rem; |
| 116 | +} |
| 117 | + |
| 118 | +.btn { |
| 119 | + font: inherit; |
| 120 | + border: none; |
| 121 | + border-radius: 999px; |
| 122 | + padding: 0.7rem 1.2rem; |
| 123 | + cursor: pointer; |
| 124 | + text-decoration: none; |
| 125 | + display: inline-flex; |
| 126 | + align-items: center; |
| 127 | + justify-content: center; |
| 128 | + transition: transform 120ms ease, opacity 120ms ease; |
| 129 | +} |
| 130 | + |
| 131 | +.btn:hover { |
| 132 | + transform: translateY(-1px); |
| 133 | +} |
| 134 | + |
| 135 | +.btn-primary { |
| 136 | + background: linear-gradient(120deg, var(--accent), #18b0c3); |
| 137 | + color: #03171a; |
| 138 | + font-weight: 700; |
| 139 | +} |
| 140 | + |
| 141 | +.btn-ghost { |
| 142 | + background: transparent; |
| 143 | + color: var(--text); |
| 144 | + border: 1px solid rgba(173, 198, 241, 0.35); |
| 145 | +} |
| 146 | + |
| 147 | +.grid { |
| 148 | + margin-top: 1rem; |
| 149 | + display: grid; |
| 150 | + grid-template-columns: repeat(3, minmax(0, 1fr)); |
| 151 | + gap: 0.9rem; |
| 152 | +} |
| 153 | + |
| 154 | +.feature { |
| 155 | + padding: 1.1rem; |
| 156 | +} |
| 157 | + |
| 158 | +.feature p { |
| 159 | + color: var(--muted); |
| 160 | +} |
| 161 | + |
| 162 | +.back-link { |
| 163 | + color: #b9cdf2; |
| 164 | + text-decoration: none; |
| 165 | + display: inline-block; |
| 166 | + margin: 0.2rem 0 0.8rem; |
| 167 | +} |
| 168 | + |
| 169 | +.lesson { |
| 170 | + padding: 1.3rem; |
| 171 | +} |
| 172 | + |
| 173 | +.challenge pre { |
| 174 | + background: #0a1326; |
| 175 | + border: 1px solid rgba(128, 158, 213, 0.32); |
| 176 | + border-radius: 12px; |
| 177 | + padding: 1rem; |
| 178 | + white-space: pre-wrap; |
| 179 | + font-family: "JetBrains Mono", monospace; |
| 180 | + color: #d4e4ff; |
| 181 | +} |
| 182 | + |
| 183 | +.answer-form { |
| 184 | + display: grid; |
| 185 | + gap: 0.6rem; |
| 186 | +} |
| 187 | + |
| 188 | +.answer-form input { |
| 189 | + width: 100%; |
| 190 | + border: 1px solid rgba(130, 160, 216, 0.45); |
| 191 | + background: #0c1730; |
| 192 | + color: var(--text); |
| 193 | + border-radius: 10px; |
| 194 | + padding: 0.8rem; |
| 195 | + font-family: "JetBrains Mono", monospace; |
| 196 | +} |
| 197 | + |
| 198 | +.attempts { |
| 199 | + color: var(--muted); |
| 200 | + font-size: 0.92rem; |
| 201 | +} |
| 202 | + |
| 203 | +.feedback { |
| 204 | + margin-top: 1rem; |
| 205 | + border-radius: 14px; |
| 206 | + padding: 1rem; |
| 207 | +} |
| 208 | + |
| 209 | +.feedback.success { |
| 210 | + background: rgba(25, 211, 162, 0.12); |
| 211 | + border: 1px solid rgba(25, 211, 162, 0.45); |
| 212 | +} |
| 213 | + |
| 214 | +.feedback.retry { |
| 215 | + background: rgba(255, 179, 71, 0.12); |
| 216 | + border: 1px solid rgba(255, 179, 71, 0.45); |
| 217 | +} |
| 218 | + |
| 219 | +.feedback.reveal { |
| 220 | + background: rgba(255, 126, 121, 0.1); |
| 221 | + border: 1px solid rgba(255, 126, 121, 0.4); |
| 222 | +} |
| 223 | + |
| 224 | +.award { |
| 225 | + font-weight: 700; |
| 226 | + color: var(--accent); |
| 227 | +} |
| 228 | + |
| 229 | +.done { |
| 230 | + text-align: center; |
| 231 | +} |
| 232 | + |
| 233 | +@keyframes rise { |
| 234 | + from { |
| 235 | + opacity: 0; |
| 236 | + transform: translateY(8px); |
| 237 | + } |
| 238 | + to { |
| 239 | + opacity: 1; |
| 240 | + transform: translateY(0); |
| 241 | + } |
| 242 | +} |
| 243 | + |
| 244 | +@media (max-width: 860px) { |
| 245 | + .stats, |
| 246 | + .grid { |
| 247 | + grid-template-columns: 1fr; |
| 248 | + } |
| 249 | + |
| 250 | + .actions { |
| 251 | + flex-direction: column; |
| 252 | + align-items: flex-start; |
| 253 | + } |
| 254 | +} |
0 commit comments