147 lines
2.7 KiB
CSS
147 lines
2.7 KiB
CSS
.section {
|
|
overflow: hidden;
|
|
padding: clamp(48px, 5vw, 68px) clamp(20px, 2.2vw, 34px);
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.inner {
|
|
width: 100%;
|
|
max-width: 1480px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.heading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
max-width: 760px;
|
|
margin: 0 auto 34px;
|
|
text-align: center;
|
|
}
|
|
|
|
.heading > span {
|
|
margin-bottom: 16px;
|
|
color: var(--accent-yellow-dark);
|
|
font-size: 12px;
|
|
font-weight: 750;
|
|
letter-spacing: 0.13em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.heading h2 {
|
|
margin: 0;
|
|
color: var(--text-primary);
|
|
font-size: clamp(36px, 4.2vw, 58px);
|
|
font-weight: 800;
|
|
letter-spacing: -0.045em;
|
|
line-height: 1.05;
|
|
text-wrap: balance;
|
|
}
|
|
|
|
.heading p {
|
|
max-width: 660px;
|
|
margin: 20px 0 0;
|
|
color: var(--text-secondary);
|
|
font-size: 16px;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.lanes {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.card {
|
|
display: grid;
|
|
grid-template-columns: minmax(280px, 0.52fr) minmax(0, 1.48fr);
|
|
gap: clamp(28px, 3.2vw, 48px);
|
|
align-items: center;
|
|
padding-block: clamp(22px, 2vw, 30px);
|
|
padding-inline: clamp(28px, 2.6vw, 38px);
|
|
border: 1px solid var(--border-light);
|
|
background: var(--container-bg);
|
|
clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
|
|
will-change: transform;
|
|
}
|
|
|
|
.card:nth-child(even) {
|
|
grid-template-columns: minmax(0, 1.48fr) minmax(280px, 0.52fr);
|
|
}
|
|
|
|
.card:nth-child(even) .visual {
|
|
grid-column: 1;
|
|
grid-row: 1;
|
|
}
|
|
|
|
.card:nth-child(even) .copy {
|
|
grid-column: 2;
|
|
grid-row: 1;
|
|
}
|
|
|
|
.copy h3 {
|
|
margin: 0 0 18px;
|
|
color: var(--text-primary);
|
|
font-size: clamp(28px, 2.5vw, 40px);
|
|
font-weight: 800;
|
|
letter-spacing: -0.04em;
|
|
line-height: 1.04;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.copy p {
|
|
margin: 0;
|
|
color: var(--text-secondary);
|
|
font-size: 15.5px;
|
|
line-height: 1.75;
|
|
}
|
|
|
|
.link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
margin-top: 24px;
|
|
color: var(--teal, #0d6e6e);
|
|
font-size: 14px;
|
|
font-weight: 750;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.link:hover {
|
|
text-decoration: underline;
|
|
text-underline-offset: 4px;
|
|
}
|
|
|
|
.visual {
|
|
position: relative;
|
|
min-width: 0;
|
|
padding-block: clamp(7px, 0.7vw, 10px);
|
|
padding-inline: clamp(11px, 1.15vw, 18px);
|
|
transform-origin: center;
|
|
will-change: transform;
|
|
}
|
|
|
|
.screenshot {
|
|
overflow: hidden;
|
|
border: 1px solid #dfe4e8;
|
|
border-radius: 12px;
|
|
background: #fff;
|
|
box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
|
|
line-height: 0;
|
|
transform-origin: center;
|
|
will-change: transform, box-shadow;
|
|
}
|
|
|
|
.screenshot img {
|
|
display: block;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.card,
|
|
.visual,
|
|
.screenshot {
|
|
transform: none !important;
|
|
}
|
|
}
|