Files
Laboratorium_AI_site/src/index.css
T

1204 lines
23 KiB
CSS

:root {
--bg-color: #0c0c14;
--bg-accent: #11111a;
--bg-sidebar: #0f1016;
--text-main: #f5f5f7;
--text-muted: #8b8b9a;
--border-color: rgba(255, 255, 255, 0.05);
--border-hover: rgba(255, 255, 255, 0.12);
--accent-color: #4f46e5;
--accent-hover: #4338ca;
--card-radius: 1.25rem;
--grid-gap: 1.5rem;
/* Badges */
--badge-hot: #e11d48;
--badge-tutorial: #8b5cf6;
--badge-new: #10b981;
--badge-tips: #f59e0b;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, system-ui, sans-serif;
background-color: var(--bg-color);
color: var(--text-main);
min-height: 100vh;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
letter-spacing: -0.01em;
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* ===== NAVIGATION ===== */
.main-nav {
width: 100%;
background: rgba(15, 16, 22, 0.85);
border-bottom: 1px solid var(--border-color);
position: sticky;
top: 0;
z-index: 100;
backdrop-filter: blur(12px);
}
.nav-container {
max-width: 1600px;
margin: 0 auto;
padding: 1rem 2rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.nav-logo {
font-size: 1.25rem;
font-weight: 800;
color: #fff;
display: flex;
align-items: center;
gap: 0.5rem;
letter-spacing: 0.05em;
flex-shrink: 0;
}
.nav-links {
display: flex;
gap: 2rem;
}
.nav-links a {
position: relative;
color: var(--text-muted);
text-decoration: none;
font-size: 0.95rem;
font-weight: 500;
transition: color 0.3s ease;
padding-bottom: 0.25rem;
}
.nav-links a::after {
content: '';
position: absolute;
width: 100%;
height: 2px;
bottom: 0;
left: 0;
background-color: var(--accent-color);
transform: scaleX(0);
transform-origin: right;
transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
box-shadow: 0 0 8px var(--accent-color);
border-radius: 2px;
}
.nav-links a:hover,
.nav-links a.active {
color: #fff;
}
.nav-links a:hover::after,
.nav-links a.active::after {
transform: scaleX(1);
transform-origin: left;
}
.nav-button {
background: rgba(255, 255, 255, 0.1);
color: white;
border: 1px solid var(--border-color);
padding: 0.5rem 1.25rem;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
white-space: nowrap;
}
.nav-button:hover {
background: var(--accent-color);
border-color: var(--accent-color);
}
/* Hamburger */
.nav-hamburger {
display: none;
flex-direction: column;
justify-content: center;
gap: 5px;
background: none;
border: none;
cursor: pointer;
padding: 4px;
margin-left: auto;
}
.nav-hamburger span {
display: block;
width: 24px;
height: 2px;
background: var(--text-main);
border-radius: 2px;
transition: all 0.3s ease;
transform-origin: center;
}
.nav-hamburger--open span:nth-child(1) {
transform: translateY(7px) rotate(45deg);
}
.nav-hamburger--open span:nth-child(2) {
opacity: 0;
}
.nav-hamburger--open span:nth-child(3) {
transform: translateY(-7px) rotate(-45deg);
}
/* ===== PAGE WRAPPER ===== */
.page-wrapper {
max-width: 1600px;
margin: 0 auto;
padding: 2rem;
display: grid;
grid-template-columns: 1fr 300px;
gap: 2rem;
}
/* ===== SIDEBAR ===== */
.sidebar {
background-color: transparent;
display: flex;
flex-direction: column;
gap: 2rem;
}
.sidebar-title {
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
margin-bottom: 1.5rem;
font-weight: 600;
border-bottom: 2px solid rgba(255, 255, 255, 0.05);
padding-bottom: 0.75rem;
}
.news-list {
display: flex;
flex-direction: column;
}
.news-item {
padding: 1rem 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
cursor: pointer;
transition: color 0.2s ease;
outline-offset: 4px;
}
.news-item:focus-visible {
outline: 2px solid var(--accent-color);
border-radius: 4px;
}
.news-item:hover .news-title {
color: var(--accent-color);
}
.news-time {
font-size: 0.75rem;
color: var(--text-muted);
margin-bottom: 0.25rem;
}
.news-title {
font-size: 0.95rem;
font-weight: 500;
color: var(--text-main);
line-height: 1.4;
transition: color 0.2s ease;
}
/* ===== VIDEOS ===== */
.video-item {
display: flex;
gap: 1rem;
margin-bottom: 1.5rem;
cursor: pointer;
outline-offset: 4px;
}
.video-item:focus-visible {
outline: 2px solid var(--accent-color);
border-radius: 4px;
}
.video-thumb {
width: 90px;
height: 60px;
border-radius: 8px;
background-size: cover;
background-position: center;
position: relative;
flex-shrink: 0;
}
.video-thumb::after {
content: '▶';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.6);
color: white;
width: 24px;
height: 24px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.6rem;
}
.video-info {
display: flex;
flex-direction: column;
justify-content: center;
}
.video-title {
font-size: 0.85rem;
font-weight: 500;
margin-bottom: 0.25rem;
line-height: 1.3;
}
.video-views {
font-size: 0.75rem;
color: var(--text-muted);
}
/* ===== SUBSCRIBE BOX ===== */
.subscribe-box {
background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
border-radius: var(--card-radius);
padding: 2rem;
text-align: center;
margin-top: 2rem;
}
.subscribe-box h3 {
font-size: 1.25rem;
margin-bottom: 0.5rem;
}
.subscribe-box p {
font-size: 0.85rem;
color: #c7d2fe;
margin-bottom: 1.5rem;
line-height: 1.4;
}
.subscribe-box input {
width: 100%;
padding: 0.75rem 1rem;
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.2);
background: rgba(0, 0, 0, 0.2);
color: white;
margin-bottom: 1rem;
font-family: inherit;
font-size: 0.9rem;
}
.subscribe-box input::placeholder {
color: rgba(255, 255, 255, 0.4);
}
.subscribe-box button {
width: 100%;
padding: 0.8rem;
border-radius: 8px;
border: none;
background: white;
color: #3730a3;
font-weight: bold;
cursor: pointer;
transition: transform 0.2s ease;
font-family: inherit;
}
.subscribe-box button:hover {
transform: translateY(-2px);
}
.subscribe-success {
font-size: 0.9rem;
color: #a5f3c0;
margin-top: 0.5rem;
}
/* ===== BENTO AREA ===== */
.bento-area {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: 360px repeat(3, 240px);
grid-auto-rows: 240px;
gap: var(--grid-gap);
}
/* ===== BENTO CARD ===== */
.bento-card {
position: relative;
background-color: var(--bg-accent);
border-radius: var(--card-radius);
overflow: hidden;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
cursor: pointer;
display: flex;
flex-direction: column;
justify-content: flex-end;
border: 1px solid var(--border-color);
outline-offset: 3px;
}
.bento-card:focus-visible {
outline: 2px solid var(--accent-color);
}
.bento-card:hover {
transform: translateY(-4px);
box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.4), 0 0 20px rgba(79, 70, 229, 0.2);
border-color: rgba(79, 70, 229, 0.4);
}
.bento-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
z-index: 1;
transition: transform 0.5s ease, opacity 1s ease-in-out;
}
.bento-card:hover .bento-bg {
transform: scale(1.05);
}
.bento-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to top, rgba(5, 5, 10, 0.95) 0%, rgba(5, 5, 10, 0.3) 50%, rgba(5, 5, 10, 0) 100%);
z-index: 2;
}
.bento-content {
position: relative;
z-index: 3;
padding: 1.5rem;
width: 100%;
}
.bento-badge {
position: absolute;
top: 1.5rem;
left: 1.5rem;
padding: 0.25rem 0.75rem;
border-radius: 12px;
font-size: 0.7rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
z-index: 3;
}
.badge-hot { background: var(--badge-hot); color: white; }
.badge-tutorial { background: var(--badge-tutorial); color: white; }
.badge-new { background: var(--badge-new); color: white; }
.badge-tips { background: var(--badge-tips); color: white; }
.article-title {
font-size: 1.4rem;
font-weight: 700;
margin-bottom: 0.5rem;
line-height: 1.25;
color: #fff;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.article-meta {
font-size: 0.8rem;
color: #cbd5e1;
display: flex;
align-items: center;
gap: 0.5rem;
}
.article-meta span.dot {
width: 4px;
height: 4px;
border-radius: 50%;
background: currentColor;
opacity: 0.5;
}
/* Hero card */
.hero-article .article-title {
font-size: 2.2rem;
}
.hero-article .bento-content {
padding: 2.5rem;
}
.hero-article .bento-badge {
top: 2.5rem;
left: 2.5rem;
}
/* ===== SLIDESHOW ===== */
.slideshow-card {
padding: 0;
}
.slideshow-card .bento-bg {
opacity: 0;
z-index: 1;
}
.slideshow-card .bento-bg[data-active="true"] {
opacity: 1;
z-index: 2;
}
.slideshow-card .bento-overlay {
z-index: 3;
}
.slideshow-content {
position: relative;
z-index: 4;
padding: 1.5rem;
display: flex;
flex-direction: column;
justify-content: flex-end;
height: 100%;
}
.slideshow-slide {
opacity: 0;
position: absolute;
bottom: 4rem;
left: 1.5rem;
right: 1.5rem;
pointer-events: none;
transition: opacity 0.5s ease;
}
.slideshow-slide--active {
opacity: 1;
position: relative;
bottom: auto;
left: auto;
right: auto;
pointer-events: auto;
}
.slideshow-title {
margin-top: 2.5rem;
font-size: 1.8rem;
}
.slideshow-dots {
display: flex;
gap: 0.5rem;
margin-top: 1rem;
}
.slideshow-dot {
height: 8px;
width: 8px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.3);
border: none;
cursor: pointer;
transition: all 0.3s ease;
padding: 0;
}
.slideshow-dot--active {
width: 24px;
background: var(--accent-color);
}
/* ===== PULSE DOT ===== */
.pulse-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--accent-color);
display: inline-block;
box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
70% { box-shadow: 0 0 0 8px rgba(79, 70, 229, 0); }
100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}
/* ===== COOKIE BANNER ===== */
.cookie-banner {
position: fixed;
bottom: 2rem;
right: 2rem;
width: 100%;
max-width: 400px;
background: var(--bg-sidebar);
border: 1px solid var(--border-color);
border-radius: var(--card-radius);
padding: 1.5rem;
z-index: 1000;
box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
backdrop-filter: blur(10px);
}
@keyframes slideInUp {
from { transform: translateY(100px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.cookie-content h4 {
font-size: 1.1rem;
margin-bottom: 0.5rem;
color: #fff;
}
.cookie-content p {
font-size: 0.85rem;
color: var(--text-muted);
margin-bottom: 1.25rem;
line-height: 1.5;
}
.cookie-actions {
display: flex;
gap: 1rem;
}
.button-secondary {
background: transparent;
color: var(--text-main);
border: 1px solid var(--border-color);
padding: 0.5rem 1rem;
border-radius: 8px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
font-family: inherit;
flex: 1;
}
.button-secondary:hover {
background: rgba(255, 255, 255, 0.05);
}
.button-primary {
background: var(--accent-color);
color: white;
border: 1px solid transparent;
padding: 0.5rem 1rem;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s ease;
font-family: inherit;
flex: 1;
}
.button-primary:hover {
background: var(--accent-hover);
}
/* ===== FOOTER ===== */
.main-footer {
width: 100%;
border-top: 1px solid var(--border-color);
background-color: transparent;
padding: 4rem 2rem 2rem;
margin-top: 2rem;
}
.footer-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 4rem;
padding-bottom: 3rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-brand p {
color: var(--text-muted);
font-size: 0.9rem;
margin-top: 1rem;
max-width: 250px;
line-height: 1.5;
}
.footer-links {
display: flex;
flex-wrap: wrap;
gap: 4rem;
}
.footer-col {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.footer-col h4 {
color: #fff;
font-size: 0.95rem;
margin-bottom: 0.5rem;
}
.footer-col a {
color: var(--text-muted);
text-decoration: none;
font-size: 0.85rem;
transition: color 0.2s;
}
.footer-col a:hover {
color: var(--accent-color);
}
.footer-bottom {
max-width: 1200px;
margin: 0 auto;
padding-top: 2rem;
text-align: center;
color: var(--text-muted);
font-size: 0.8rem;
}
/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 1400px) {
.page-wrapper {
grid-template-columns: 1fr 280px;
}
}
@media (max-width: 1100px) {
.page-wrapper {
grid-template-columns: 1fr;
padding: 1rem;
}
.sidebar-right {
display: none;
}
.bento-area {
grid-template-columns: repeat(4, 1fr);
grid-template-rows: 360px repeat(3, 240px);
grid-auto-rows: 240px;
}
}
@media (max-width: 768px) {
.nav-hamburger {
display: flex;
}
.nav-links {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
background: rgba(15, 16, 22, 0.98);
border-bottom: 1px solid var(--border-color);
flex-direction: column;
gap: 0;
padding: 0.5rem 0;
backdrop-filter: blur(12px);
}
.nav-links--open {
display: flex;
}
.nav-links a {
padding: 0.85rem 2rem;
border-bottom: 1px solid var(--border-color);
font-size: 1rem;
}
.nav-links a::after {
display: none;
}
.nav-actions {
display: none;
}
.main-nav {
position: relative;
}
.bento-area {
grid-template-columns: repeat(2, 1fr);
grid-template-rows: 300px auto;
grid-auto-rows: 220px;
}
.bento-area > * {
grid-column: auto !important;
grid-row: auto !important;
}
.slideshow-card {
grid-column: 1 / -1 !important;
}
.hero-article {
grid-column: 1 / -1 !important;
}
}
@media (max-width: 640px) {
.hero {
padding: 4rem 1.25rem 3rem;
}
.hero__cta-group {
flex-direction: column;
align-items: stretch;
}
.hero__btn-primary {
justify-content: center;
}
.bento-area {
grid-template-columns: 1fr;
grid-auto-rows: 200px;
}
.bento-area > * {
grid-column: 1 / -1 !important;
grid-row: auto !important;
}
.hero-article .article-title {
font-size: 1.6rem;
}
.page-wrapper {
padding: 0.75rem;
gap: 0.75rem;
}
}
.cookie-banner {
bottom: 1rem;
right: 1rem;
left: 1rem;
max-width: calc(100% - 2rem);
}
}
/* ===== HERO SECTION ===== */
.hero {
position: relative;
overflow: hidden;
padding: 5rem 2rem 4rem;
border-bottom: 1px solid var(--border-color);
}
.hero__bg {
position: absolute;
inset: 0;
background:
radial-gradient(ellipse 70% 80% at 60% 50%, rgba(79, 70, 229, 0.18) 0%, transparent 65%),
radial-gradient(ellipse 40% 60% at 10% 100%, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
pointer-events: none;
}
.hero__inner {
position: relative;
z-index: 1;
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem;
align-items: center;
}
/* ── Lewa strona ── */
.hero__content {
display: flex;
flex-direction: column;
gap: 1.75rem;
}
/* Eyebrow */
.hero__eyebrow {
display: inline-flex;
align-items: center;
gap: 0.6rem;
width: fit-content;
background: rgba(79, 70, 229, 0.1);
border: 1px solid rgba(79, 70, 229, 0.3);
border-radius: 100px;
padding: 0.4rem 1.1rem;
font-size: 0.78rem;
font-weight: 600;
color: #a5b4fc;
letter-spacing: 0.02em;
}
.hero__eyebrow-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--accent-color);
flex-shrink: 0;
animation: pulse 2s infinite;
}
/* Headline */
.hero__headline {
font-size: clamp(2.2rem, 4.5vw, 3.5rem);
font-weight: 800;
line-height: 1.12;
letter-spacing: -0.03em;
color: #fff;
}
.hero__headline-accent {
background: linear-gradient(135deg, #818cf8 0%, #4f46e5 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* Subtitle */
.hero__subtitle {
font-size: 1.05rem;
color: var(--text-muted);
line-height: 1.7;
max-width: 500px;
}
/* CTA group */
.hero__cta-group {
display: flex;
align-items: center;
gap: 1.25rem;
flex-wrap: wrap;
}
.hero__btn-primary {
display: inline-flex;
align-items: center;
background: var(--accent-color);
color: #fff;
border: none;
padding: 0.9rem 2rem;
border-radius: 10px;
font-size: 1rem;
font-weight: 700;
cursor: pointer;
font-family: inherit;
transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
white-space: nowrap;
}
.hero__btn-primary:hover {
background: var(--accent-hover);
transform: translateY(-2px);
box-shadow: 0 8px 24px -4px rgba(79, 70, 229, 0.55);
}
.hero__btn-ghost {
background: none;
border: none;
color: var(--text-muted);
font-size: 0.9rem;
font-weight: 500;
cursor: pointer;
font-family: inherit;
transition: color 0.2s;
text-decoration: underline;
text-underline-offset: 3px;
}
.hero__btn-ghost:hover {
color: var(--text-main);
}
/* Social proof */
.hero__proof {
display: flex;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
}
.hero__avatars {
display: flex;
}
.hero__avatar {
width: 38px;
height: 38px;
border-radius: 50%;
border: 2px solid var(--bg-color);
margin-left: -10px;
font-size: 0.7rem;
font-weight: 700;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.hero__avatars .hero__avatar:first-child {
margin-left: 0;
}
.hero__proof-text {
display: flex;
flex-direction: column;
gap: 0.15rem;
font-size: 0.82rem;
color: var(--text-muted);
}
.hero__stars {
color: #f59e0b;
letter-spacing: 1px;
font-size: 0.9rem;
}
.hero__proof-text strong {
color: var(--text-main);
font-weight: 600;
}
/* ── Prawa strona (zdjęcie) ── */
.hero__image-wrap {
position: relative;
}
/* warstwa 2: float — wszystko lata razem */
.hero__robot-float {
position: relative;
display: flex;
justify-content: center;
animation: robot-float 4s ease-in-out infinite;
transform-origin: center bottom;
}
/* warstwa 3: blask korpusu — cyan, przesunięty o -1.6s względem żarówki */
.hero__robot-body-glow {
display: none; /* Removed as it creates an unnatural circle */
}
/* warstwa 4: obraz z blaskiem żarówki (żółty drop-shadow kierunkowy) */
.hero__robot-layers {
width: 100%;
max-width: 600px;
aspect-ratio: 1 / 1;
position: relative;
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto;
overflow: visible; /* changed from hidden to let glow expand if needed */
}
.hero__robot-layer {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: contain;
mix-blend-mode: normal; /* changed from screen for better body appearance */
pointer-events: none;
}
.hero__robot-layer--body {
z-index: 1;
filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.3));
animation: robot-body-glow 3.2s ease-in-out infinite;
animation-delay: -1.6s;
}
.hero__robot-bulb-container {
position: absolute;
top: 90px;
left: 0;
width: 100%;
height: 100%;
z-index: 5;
pointer-events: none;
animation: bulb-float 5s ease-in-out infinite;
}
.hero__robot-layer--bulb {
z-index: 2;
mix-blend-mode: screen; /* bulb and glow should be screen */
animation: bulb-flicker 2.4s ease-in-out infinite;
transform: scale(0.35) translate(95%, -135%);
transform-origin: center;
}
.hero__robot-shadow {
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 55%;
height: 18px;
background: radial-gradient(ellipse, rgba(79, 70, 229, 0.5) 0%, transparent 70%);
border-radius: 50%;
animation: robot-shadow 4s ease-in-out infinite;
filter: blur(6px);
}
/* ── Keyframes ── */
@keyframes bulb-flicker {
0%, 100% { opacity: 0.8; filter: drop-shadow(0 0 10px rgba(254, 244, 187, 0.4)); }
33% { opacity: 1; filter: drop-shadow(0 0 25px rgba(254, 244, 187, 0.9)); }
66% { opacity: 0.9; filter: drop-shadow(0 0 15px rgba(254, 244, 187, 0.6)); }
}
@keyframes body-glow-pulse {
0%, 100% { opacity: 0.4; transform: scale(1); }
50% { opacity: 0.7; transform: scale(1.1); }
}
@keyframes robot-body-glow {
0%, 100% { filter: drop-shadow(0 0 5px rgba(34, 211, 238, 0.2)); }
50% { filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.5)); }
}
@keyframes robot-float {
0%, 100% { transform: translateY(0px) rotate(0deg); }
30% { transform: translateY(-18px) rotate(-1.5deg); }
70% { transform: translateY(-10px) rotate(1deg); }
}
@keyframes robot-shadow {
0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.6; }
30% { transform: translateX(-50%) scaleX(0.7); opacity: 0.3; }
70% { transform: translateX(-50%) scaleX(0.85); opacity: 0.4; }
}
@keyframes bulb-float {
0%, 100% { transform: translateY(0) rotate(0deg); }
50% { transform: translateY(-15px) rotate(2deg); }
}
/* ── Responsywność ── */
@media (max-width: 900px) {
.hero__inner {
grid-template-columns: 1fr;
gap: 2rem;
text-align: center;
}
.hero__eyebrow,
.hero__proof {
margin: 0 auto;
}
.hero__subtitle {
max-width: 100%;
}
.hero__cta-group {
justify-content: center;
}
.hero__image-wrap {
display: none;
}
}
@media (max-width: 640px) {
.hero {
padding: 4rem 1.25rem 3rem;
}
.hero__cta-group {
flex-direction: column;
align-items: stretch;
}
.hero__btn-primary {
justify-content: center;
}
}
/* ===== LOADING & ERROR STATES ===== */
.loading-screen {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
background: var(--bg-color);
gap: 1.5rem;
}
.loading-spinner {
width: 48px;
height: 48px;
border: 3px solid var(--border-color);
border-top-color: var(--accent-color);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.loading-screen p {
color: var(--text-muted);
font-size: 1rem;
}
.error-banner {
background: rgba(239, 68, 68, 0.1);
border: 1px solid rgba(239, 68, 68, 0.3);
color: #fca5a5;
padding: 1rem 2rem;
text-align: center;
}