Dodałem Hero
This commit is contained in:
+621
-83
@@ -1,21 +1,19 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
|
||||
|
||||
: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;
|
||||
@@ -36,6 +34,7 @@ body {
|
||||
min-height: 100vh;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
@@ -43,16 +42,19 @@ h1, h2, h3, h4, h5, h6 {
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.page-wrapper {
|
||||
max-width: 1600px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
display: grid;
|
||||
grid-template-columns: 280px 1fr 300px;
|
||||
gap: 2rem;
|
||||
.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 Menu */
|
||||
/* ===== NAVIGATION ===== */
|
||||
.main-nav {
|
||||
width: 100%;
|
||||
background: rgba(15, 16, 22, 0.85);
|
||||
@@ -70,6 +72,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.nav-logo {
|
||||
@@ -80,6 +83,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
letter-spacing: 0.05em;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
@@ -132,6 +136,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.nav-button:hover {
|
||||
@@ -139,7 +144,52 @@ h1, h2, h3, h4, h5, h6 {
|
||||
border-color: var(--accent-color);
|
||||
}
|
||||
|
||||
/* Sidebar Styles */
|
||||
/* 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: 280px 1fr 300px;
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
/* ===== SIDEBAR ===== */
|
||||
.sidebar {
|
||||
background-color: transparent;
|
||||
display: flex;
|
||||
@@ -154,7 +204,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 1.5rem;
|
||||
font-weight: 600;
|
||||
border-bottom: 2px solid rgba(255,255,255,0.05);
|
||||
border-bottom: 2px solid rgba(255, 255, 255, 0.05);
|
||||
padding-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
@@ -165,13 +215,19 @@ h1, h2, h3, h4, h5, h6 {
|
||||
|
||||
.news-item {
|
||||
padding: 1rem 0;
|
||||
border-bottom: 1px solid rgba(255,255,255,0.05);
|
||||
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-hover);
|
||||
color: var(--accent-color);
|
||||
}
|
||||
|
||||
.news-time {
|
||||
@@ -185,14 +241,21 @@ h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: 500;
|
||||
color: var(--text-main);
|
||||
line-height: 1.4;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
/* Videos List */
|
||||
/* ===== 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 {
|
||||
@@ -211,7 +274,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
background: rgba(0,0,0,0.6);
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
color: white;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
@@ -240,7 +303,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
/* Subscribe Box */
|
||||
/* ===== SUBSCRIBE BOX ===== */
|
||||
.subscribe-box {
|
||||
background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
|
||||
border-radius: var(--card-radius);
|
||||
@@ -265,11 +328,16 @@ h1, h2, h3, h4, h5, h6 {
|
||||
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);
|
||||
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 {
|
||||
@@ -282,13 +350,20 @@ h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s ease;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.subscribe-box button:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
/* Bento Area */
|
||||
.subscribe-success {
|
||||
font-size: 0.9rem;
|
||||
color: #a5f3c0;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
/* ===== BENTO AREA ===== */
|
||||
.bento-area {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
@@ -297,7 +372,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||
gap: var(--grid-gap);
|
||||
}
|
||||
|
||||
/* Bento Card Base */
|
||||
/* ===== BENTO CARD ===== */
|
||||
.bento-card {
|
||||
position: relative;
|
||||
background-color: var(--bg-accent);
|
||||
@@ -309,6 +384,11 @@ h1, h2, h3, h4, h5, h6 {
|
||||
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 {
|
||||
@@ -326,7 +406,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
z-index: 1;
|
||||
transition: transform 0.5s ease;
|
||||
transition: transform 0.5s ease, opacity 1s ease-in-out;
|
||||
}
|
||||
|
||||
.bento-card:hover .bento-bg {
|
||||
@@ -339,7 +419,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||
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%);
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -363,19 +443,18 @@ h1, h2, h3, h4, h5, h6 {
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.badge-hot { background: var(--badge-hot); color: white; }
|
||||
.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; }
|
||||
.badge-new { background: var(--badge-new); color: white; }
|
||||
.badge-tips { background: var(--badge-tips); color: white; }
|
||||
|
||||
/* Typografia w kafelkach */
|
||||
.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);
|
||||
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.article-meta {
|
||||
@@ -394,61 +473,113 @@ h1, h2, h3, h4, h5, h6 {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
/* Specific Card Layouts (The Grid) */
|
||||
.col-span-2 { grid-column: span 2; }
|
||||
.col-span-1 { grid-column: span 1; }
|
||||
.row-span-2 { grid-row: span 2; }
|
||||
.row-span-1 { grid-row: span 1; }
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
/* Responsywność */
|
||||
@media (max-width: 1400px) {
|
||||
.page-wrapper {
|
||||
grid-template-columns: 250px 1fr;
|
||||
}
|
||||
.sidebar-right {
|
||||
display: none;
|
||||
}
|
||||
/* ===== SLIDESHOW ===== */
|
||||
.slideshow-card {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.page-wrapper {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.sidebar-left {
|
||||
display: none;
|
||||
}
|
||||
.bento-area {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
.bento-card[style*="grid-column: 3 / 4"] {
|
||||
grid-column: span 1 !important;
|
||||
}
|
||||
.bento-card[style*="grid-column: 4 / 5"] {
|
||||
grid-column: span 1 !important;
|
||||
}
|
||||
.slideshow-card .bento-bg {
|
||||
opacity: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.bento-area {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.col-span-2, .col-span-1 {
|
||||
grid-column: span 1;
|
||||
}
|
||||
.slideshow-card .bento-bg[data-active="true"] {
|
||||
opacity: 1;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
/* Cookie Banner */
|
||||
.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;
|
||||
@@ -460,23 +591,14 @@ h1, h2, h3, h4, h5, h6 {
|
||||
border-radius: var(--card-radius);
|
||||
padding: 1.5rem;
|
||||
z-index: 1000;
|
||||
box-shadow: 0 20px 40px -10px rgba(0,0,0,0.8);
|
||||
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; }
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.cookie-banner {
|
||||
bottom: 1rem;
|
||||
right: 1rem;
|
||||
left: 1rem;
|
||||
max-width: calc(100% - 2rem);
|
||||
}
|
||||
to { transform: translateY(0); opacity: 1; }
|
||||
}
|
||||
|
||||
.cookie-content h4 {
|
||||
@@ -511,10 +633,27 @@ h1, h2, h3, h4, h5, h6 {
|
||||
}
|
||||
|
||||
.button-secondary:hover {
|
||||
background: rgba(255,255,255,0.05);
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
/* Footer Section */
|
||||
.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);
|
||||
@@ -531,7 +670,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||
flex-wrap: wrap;
|
||||
gap: 4rem;
|
||||
padding-bottom: 3rem;
|
||||
border-bottom: 1px solid rgba(255,255,255,0.05);
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
.footer-brand p {
|
||||
@@ -579,3 +718,402 @@ h1, h2, h3, h4, h5, h6 {
|
||||
color: var(--text-muted);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
/* ===== RESPONSYWNOŚĆ ===== */
|
||||
@media (max-width: 1400px) {
|
||||
.page-wrapper {
|
||||
grid-template-columns: 250px 1fr;
|
||||
}
|
||||
.sidebar-right {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.page-wrapper {
|
||||
grid-template-columns: 1fr;
|
||||
padding: 1rem;
|
||||
}
|
||||
.sidebar-left {
|
||||
display: none;
|
||||
}
|
||||
.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: 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;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.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;
|
||||
}
|
||||
|
||||
/* kontener — TYLKO float */
|
||||
.hero__robot-container {
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
animation: robot-float 4s ease-in-out infinite;
|
||||
transform-origin: center bottom;
|
||||
}
|
||||
|
||||
/* blask korpusu — cyjanowy, osobny element, przesunięty o -1.4s w fazie */
|
||||
.hero__robot-body-glow {
|
||||
position: absolute;
|
||||
inset: 15% 15% 5%;
|
||||
border-radius: 50%;
|
||||
background: radial-gradient(circle,
|
||||
rgba(34, 211, 238, 0.35) 0%,
|
||||
rgba(6, 182, 212, 0.15) 45%,
|
||||
transparent 70%
|
||||
);
|
||||
mix-blend-mode: screen;
|
||||
pointer-events: none;
|
||||
animation: body-glow-pulse 3.5s ease-in-out infinite;
|
||||
animation-delay: -1.4s; /* inne przesunięcie fazowe niż żarówka */
|
||||
}
|
||||
|
||||
/* obrazek — TYLKO blask żarówki (żółty kierunkowy) */
|
||||
.hero__robot-img {
|
||||
width: 90%;
|
||||
max-width: 546px;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
mix-blend-mode: screen;
|
||||
animation: bulb-flicker 2.2s ease-in-out infinite;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.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 robot-float {
|
||||
0%, 100% { transform: translateY(0px) rotate(0deg); }
|
||||
30% { transform: translateY(-18px) rotate(-1.5deg); }
|
||||
70% { transform: translateY(-10px) rotate(1deg); }
|
||||
}
|
||||
|
||||
/* blask korpusu — cyjanowy, na osobnym divie */
|
||||
@keyframes body-glow-pulse {
|
||||
0%, 100% { opacity: 0.15; transform: scale(0.88); }
|
||||
50% { opacity: 1; transform: scale(1.08); }
|
||||
}
|
||||
|
||||
/* żarówka — kierunkowy żółty drop-shadow na obrazku
|
||||
offset (22px, -22px) kieruje blask w górę-prawo gdzie jest żarówka */
|
||||
@keyframes bulb-flicker {
|
||||
0% { filter: drop-shadow(22px -22px 8px rgba(255, 210, 0, 0.15)); }
|
||||
20% { filter: drop-shadow(22px -22px 28px rgba(255, 230, 0, 0.75)); }
|
||||
35% { filter: drop-shadow(22px -22px 14px rgba(255, 200, 0, 0.35)); }
|
||||
55% { filter: drop-shadow(22px -22px 32px rgba(255, 220, 0, 0.85)); }
|
||||
70% { filter: drop-shadow(22px -22px 18px rgba(255, 210, 0, 0.45)); }
|
||||
85% { filter: drop-shadow(22px -22px 26px rgba(255, 230, 0, 0.65)); }
|
||||
100% { filter: drop-shadow(22px -22px 8px rgba(255, 210, 0, 0.15)); }
|
||||
}
|
||||
|
||||
@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; }
|
||||
}
|
||||
|
||||
|
||||
/* ── 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user