|
37 | 37 | /* --- BENTO GRID (2x2) --- */ |
38 | 38 | .bentoGrid { |
39 | 39 | display: grid; |
40 | | - /* Auto-fit with a min-width ensures it goes 1-col on mobile, 2-col on desktop */ |
41 | 40 | grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); |
42 | 41 | gap: 2rem; |
43 | 42 | margin-bottom: 3rem; |
|
53 | 52 | flex-direction: column; |
54 | 53 | transition: transform 0.2s, box-shadow 0.2s; |
55 | 54 | height: 100%; |
| 55 | + min-width: 0; |
56 | 56 | } |
57 | 57 |
|
58 | 58 | .featureCard:hover { |
|
192 | 192 | border-bottom: 1px solid #e2e8f0; |
193 | 193 | background-image: radial-gradient(#cbd5e1 1px, transparent 1px); |
194 | 194 | background-size: 24px 24px; |
| 195 | + /* Add overflow hidden to prevent children from stretching page width */ |
| 196 | + overflow: hidden; |
195 | 197 | } |
| 198 | + |
196 | 199 | .splitRow { |
197 | 200 | display: grid; |
| 201 | + /* Default: 2 columns on Desktop */ |
198 | 202 | grid-template-columns: 1fr 1fr; |
199 | 203 | gap: 4rem; |
200 | 204 | align-items: center; |
| 205 | + max-width: 100%; /* Ensure it doesn't exceed container */ |
201 | 206 | } |
202 | 207 | .badge { |
203 | 208 | display: inline-block; |
|
414 | 419 | } |
415 | 420 |
|
416 | 421 | /* --- RESPONSIVE --- */ |
417 | | -/* Mobile Tweaks */ |
418 | | -@media (max-width: 768px) { |
419 | | - .logos { |
420 | | - gap: 2rem; |
| 422 | +/* 1. TABLET LAYOUT (Between 768px and 996px) */ |
| 423 | +/* Stack content vertically, but KEEP the terminal visible */ |
| 424 | +@media (max-width: 996px) { |
| 425 | + .splitRow { |
| 426 | + grid-template-columns: 1fr; /* Stack columns vertically */ |
| 427 | + gap: 3rem; |
| 428 | + text-align: center; /* Center text for better vertical flow */ |
421 | 429 | } |
422 | | - .logoBig { |
423 | | - height: 70px; |
| 430 | + |
| 431 | + .splitContent { |
| 432 | + order: 1; /* Text on top */ |
| 433 | + margin: 0 auto; |
| 434 | + width: 100%; |
| 435 | + max-width: 700px; |
424 | 436 | } |
425 | | - .logoSmall { |
426 | | - height: 35px; |
| 437 | + |
| 438 | + .splitVisual { |
| 439 | + order: 2; /* Terminal on bottom */ |
| 440 | + display: block; /* Ensure it is VISIBLE */ |
| 441 | + width: 100%; |
| 442 | + max-width: 700px; |
| 443 | + margin: 0 auto; |
| 444 | + text-align: left; /* Reset text align for code inside */ |
427 | 445 | } |
428 | | -} |
429 | 446 |
|
430 | | -@media (max-width: 996px) { |
431 | | - .bentoGrid { |
432 | | - grid-template-columns: 1fr; |
| 447 | + /* Center the badges/capabilities */ |
| 448 | + .badge { |
| 449 | + margin-left: auto; |
| 450 | + margin-right: auto; |
433 | 451 | } |
434 | | - .splitRow { |
435 | | - grid-template-columns: 1fr; |
436 | | - gap: 2rem; |
| 452 | + |
| 453 | + .capabilitiesGrid { |
| 454 | + margin: 2rem auto 0; |
| 455 | + text-align: left; |
| 456 | + max-width: 500px; |
| 457 | + grid-template-columns: 1fr 1fr; /* On tablet, we can fit 2 cols of capabilities */ |
| 458 | + gap: 1.5rem; |
437 | 459 | } |
438 | | - .splitContent { |
439 | | - order: 1; |
440 | | - text-align: center; |
| 460 | +} |
| 461 | + |
| 462 | +/* 2. MOBILE LAYOUT (Below 768px) */ |
| 463 | +/* Hide the terminal ONLY here */ |
| 464 | +@media (max-width: 768px) { |
| 465 | + .bentoGrid { |
| 466 | + grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); |
441 | 467 | } |
| 468 | + |
442 | 469 | .splitVisual { |
443 | | - order: 2; |
| 470 | + display: none !important; /* POOF! Gone on mobile */ |
444 | 471 | } |
| 472 | + |
445 | 473 | .capabilitiesGrid { |
446 | | - text-align: left; |
| 474 | + grid-template-columns: 1fr; /* Stack capabilities on phone */ |
447 | 475 | } |
448 | 476 | } |
0 commit comments