Webdev-Bench / tasks /c22 /repo /src /index.css
Roy-DOU's picture
Add files using upload-large-folder tool
148f3c7 verified
Raw History Blame Contribute Delete
15.5 kB
:root {
--violet: #6100ff;
--panel: #16151d;
--lav: #8078cf;
--pill-lav: #ada7fa;
--ink: #0a0a0c;
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
background: #000;
color: #fff;
font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
img {
user-select: none;
}
a {
color: inherit;
text-decoration: none;
}
button {
font-family: inherit;
cursor: pointer;
}
.container {
width: 1262px;
max-width: calc(100% - 64px);
margin: 0 auto;
}
/* shared button */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.16em;
text-transform: uppercase;
border-radius: 7px;
transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-violet {
background: var(--violet);
color: #fff;
}
.btn-violet:hover {
filter: brightness(1.15);
}
.btn-ghost {
background: transparent;
color: #fff;
border: 1px solid #2c2c2c;
}
.btn-ghost:hover {
border-color: #5a5a5a;
}
/* ---------------------------------- nav ---------------------------------- */
.nav {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 116px;
display: flex;
align-items: center;
padding: 0 244px;
z-index: 20;
}
.nav-logo {
display: inline-flex;
align-items: center;
gap: 17px;
}
.nav-wordmark {
font-size: 27px;
font-weight: 500;
letter-spacing: 0.1em;
line-height: 1;
}
.nav-links {
display: flex;
align-items: center;
gap: 30px;
}
.nav-links-left {
margin-left: 104px;
}
.nav-links-right {
gap: 38px;
}
.nav-links a,
.nav-learn button {
font-size: 12px;
font-weight: 600;
letter-spacing: 0.17em;
text-transform: uppercase;
color: #fff;
opacity: 0.95;
}
.nav-links a:hover,
.nav-learn button:hover {
opacity: 0.65;
}
.nav-spacer {
flex: 1;
}
.nav-learn {
position: relative;
}
.nav-learn button {
background: none;
border: 0;
padding: 0;
display: inline-flex;
align-items: center;
gap: 7px;
}
.nav-menu {
position: absolute;
top: 30px;
right: 0;
min-width: 210px;
background: #101014;
border: 1px solid #232329;
border-radius: 10px;
padding: 10px;
display: flex;
flex-direction: column;
gap: 2px;
z-index: 30;
}
.nav-menu a {
font-size: 11px;
letter-spacing: 0.1em;
padding: 10px 12px;
border-radius: 6px;
white-space: nowrap;
}
.nav-menu a:hover {
background: #1d1d24;
opacity: 1;
}
.btn-nav {
width: 126px;
height: 44px;
}
/* ---------------------------------- hero --------------------------------- */
.hero {
position: relative;
height: 1085px;
overflow: hidden;
}
.hx {
position: absolute;
display: block;
pointer-events: none;
}
.hx-topleft {
left: 0;
top: 0;
width: 238px;
height: 95px;
}
.hx-left {
left: 0;
top: 96px;
width: 322px;
height: 914px;
}
.hx-topcenter {
left: calc(50% - 340px);
top: 85px;
width: 460px;
height: 210px;
}
.hx-mid {
left: calc(50% - 32px);
top: 415px;
width: 152px;
height: 670px;
}
.hx-right {
right: 0;
top: 85px;
width: 840px;
height: 1000px;
}
.hero-title {
position: absolute;
left: calc(50% - 630px);
top: 287px;
margin: 0;
font-size: 107px;
line-height: 117px;
font-weight: 300;
letter-spacing: 0.038em;
z-index: 5;
}
.hero-cta {
position: absolute;
left: calc(50% - 630px);
top: 708px;
display: flex;
flex-direction: column;
gap: 22px;
z-index: 5;
}
.hero-cta .btn {
width: 152px;
height: 55px;
}
.hero-para {
position: absolute;
left: calc(50% - 436px);
top: 707px;
margin: 0;
font-size: 27px;
line-height: 35px;
font-weight: 300;
letter-spacing: 0.012em;
color: #f4f4f6;
z-index: 5;
}
.hero-backed {
position: absolute;
left: calc(50% - 630px);
top: 906px;
font-size: 13px;
font-weight: 600;
letter-spacing: 0.13em;
text-transform: uppercase;
z-index: 5;
}
.hero-backers {
position: absolute;
left: calc(50% - 630px);
top: 972px;
display: flex;
align-items: center;
gap: 38px;
height: 62px;
z-index: 5;
}
.backer {
display: inline-flex;
align-items: center;
gap: 9px;
color: #fff;
}
.backer-unc {
font-size: 17px;
font-weight: 400;
color: rgba(255, 255, 255, 0.5);
}
.backer-stack {
font-size: 10px;
font-weight: 700;
letter-spacing: 0.05em;
line-height: 1.25;
}
.backer-coinbase {
font-size: 22px;
font-weight: 600;
letter-spacing: -0.01em;
}
.rv-mark {
font-size: 25px;
font-weight: 800;
font-style: italic;
letter-spacing: -0.05em;
}
.rv-mark i {
font-weight: 800;
}
/* --------------------------------- stats --------------------------------- */
.hr {
height: 1px;
}
.hr-fade-both {
background: linear-gradient(
90deg,
transparent 0,
rgba(255, 255, 255, 0.5) 18%,
rgba(255, 255, 255, 0.55) 62%,
rgba(255, 255, 255, 0.1) 92%,
transparent 100%
);
}
.hr-fade-right {
background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.04));
}
.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
padding: 62px 0 54px;
}
.stat {
text-align: center;
}
.stat-n {
font-size: 66px;
font-weight: 300;
line-height: 1;
letter-spacing: -0.005em;
}
.stat-label {
margin-top: 14px;
font-size: 14.5px;
font-weight: 400;
color: rgba(255, 255, 255, 0.88);
}
/* -------------------------------- features ------------------------------- */
.features {
position: relative;
height: 3338px;
}
.feature-img {
position: absolute;
display: block;
}
.feature-num {
position: absolute;
font-size: 260px;
line-height: 1;
font-weight: 300;
color: #201f26;
z-index: 1;
user-select: none;
}
.feature-text {
position: absolute;
left: calc(50% + 68px);
margin: 0;
font-size: 22px;
line-height: 31.5px;
font-weight: 400;
color: #fafafa;
z-index: 2;
}
/* -------------------------------- pillars -------------------------------- */
.pillars {
background: #fff;
color: var(--ink);
border-radius: 96px;
height: 323px;
display: grid;
grid-template-columns: 428px 420px 1fr;
padding: 0 40px 0 76px;
}
.pillar {
position: relative;
padding-top: 90px;
}
.pillar h3 {
position: relative;
margin: 0;
font-size: 30px;
font-weight: 500;
letter-spacing: 0.01em;
z-index: 2;
}
.pillar p {
position: relative;
margin: 14px 0 0;
font-size: 18px;
line-height: 24px;
color: #29292e;
z-index: 2;
}
.pillar-icon {
position: absolute;
left: -26px;
top: 56px;
width: 92px;
height: 78px;
z-index: 1;
}
.pillar-icon::before,
.pillar-icon::after {
content: '';
position: absolute;
inset: 0;
border-radius: 50%;
background:
radial-gradient(closest-side, transparent 52%, rgba(140, 205, 250, 0.75) 62%, rgba(250, 170, 205, 0.55) 70%, transparent 78%);
transform: rotate(-24deg) scaleY(0.72);
}
.pillar-icon::after {
background:
radial-gradient(closest-side, transparent 50%, rgba(185, 245, 220, 0.7) 60%, rgba(200, 190, 250, 0.5) 70%, transparent 79%);
transform: rotate(12deg) scaleY(0.6) translateX(9px);
}
/* ------------------------------- ecosystems ------------------------------ */
.eco-title {
margin: 0;
padding-top: 298px;
font-size: 58px;
line-height: 58px;
font-weight: 300;
letter-spacing: 0.022em;
}
.eco-grid {
position: relative;
margin-top: 100px;
height: 371px;
overflow: hidden;
}
.eco-row {
position: absolute;
display: flex;
gap: 28px;
}
.eco-row-1 {
top: 0;
left: calc(50% - 842px);
}
.eco-row-2 {
top: 206px;
left: calc(50% - 1072px);
}
.eco-card {
flex: 0 0 auto;
width: 281px;
height: 165px;
border-radius: 22px;
border: 1px solid transparent;
background:
linear-gradient(180deg, #030303, #000) padding-box,
linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.01) 55%) border-box;
display: flex;
flex-direction: column;
align-items: center;
padding-top: 52px;
}
.eco-icon {
width: 46px;
height: 46px;
}
.eco-icon svg {
width: 100%;
height: 100%;
display: block;
}
.eco-name {
margin-top: 18px;
font-size: 13px;
color: #ececee;
}
/* ---------------------------- audience cards ----------------------------- */
.audiences {
margin-top: 165px;
}
.aud-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 35px;
}
.aud-card {
position: relative;
height: 549px;
background: #fff;
color: var(--ink);
border-radius: 24px;
overflow: hidden;
}
.aud-card h3 {
margin: 0;
padding: 20px 24px 0 30px;
font-size: 37px;
line-height: 45px;
font-weight: 500;
letter-spacing: 0.015em;
text-transform: uppercase;
position: relative;
z-index: 2;
}
.aud-card img {
position: absolute;
left: 2px;
bottom: 2px;
width: calc(100% - 4px);
height: 405px;
object-fit: cover;
border-radius: 0 0 22px 22px;
z-index: 1;
}
.aud-btn {
position: absolute;
left: 27px;
bottom: 33px;
width: 46px;
height: 46px;
border-radius: 50%;
border: 0;
background: #e5e0ef;
display: flex;
align-items: center;
justify-content: center;
z-index: 3;
transition: transform 0.15s ease, background 0.15s ease;
}
.aud-btn:hover {
background: #fff;
transform: translateX(3px);
}
/* --------------------------------- footer -------------------------------- */
.footer-panel {
width: 1414px;
max-width: calc(100% - 32px);
margin: 279px auto 0;
background: var(--panel);
border-radius: 44px 44px 0 0;
overflow: hidden;
}
.marquee {
overflow: hidden;
padding: 33px 0 0;
}
.marquee-line {
white-space: nowrap;
font-size: 84px;
line-height: 104px;
font-weight: 500;
letter-spacing: -0.005em;
padding-left: 13px;
}
.marquee-line em {
font-style: normal;
color: var(--violet);
}
.footer-wave {
display: block;
width: 100%;
height: 480px;
object-fit: cover;
margin-top: 9px;
}
.footer-links {
display: grid;
grid-template-columns: repeat(4, 310px);
padding: 78px 86px 0;
}
.fhead {
font-size: 12px;
font-weight: 500;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--lav);
}
.fcol ul {
list-style: none;
margin: 40px 0 0;
padding: 0;
}
.fcol li {
margin-bottom: 37px;
display: flex;
align-items: center;
gap: 11px;
}
.fcol li a {
font-size: 12.5px;
font-weight: 500;
letter-spacing: 0.14em;
text-transform: uppercase;
color: #fdfdff;
}
.fcol li a:hover {
color: var(--pill-lav);
}
.pill {
font-size: 10px;
font-weight: 600;
padding: 4px 10px 5px;
border-radius: 999px;
white-space: nowrap;
}
.pill-hiring {
background: #fff;
color: #101014;
}
.pill-soon {
background: var(--pill-lav);
color: #131318;
}
.footer-bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 86px 47px;
margin-top: 94px;
}
.fbar-left {
display: flex;
gap: 26px;
}
.fbar-left a,
.fbar-center {
font-size: 12px;
font-weight: 500;
letter-spacing: 0.13em;
text-transform: uppercase;
color: #fff;
}
.fbar-left a:hover {
color: var(--pill-lav);
}
.fbar-right {
display: flex;
align-items: center;
gap: 40px;
}
.fbar-logo {
display: inline-flex;
align-items: center;
gap: 12px;
font-size: 22px;
font-weight: 500;
letter-spacing: 0.1em;
}
.fbar-up {
width: 48px;
height: 48px;
border-radius: 50%;
background: transparent;
border: 1px solid #37363f;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.15s ease;
}
.fbar-up:hover {
background: #232230;
}
/* ------------------------------- responsive ------------------------------ */
@media (max-width: 1540px) {
.nav {
padding: 0 48px;
}
.hero-title {
left: 48px;
}
.hero-cta,
.hero-backed,
.hero-backers {
left: 48px;
}
.hero-para {
left: 242px;
}
.container {
max-width: calc(100% - 96px);
}
}
@media (max-width: 1280px) {
.nav-links-left {
margin-left: 40px;
}
.hero {
height: 940px;
}
.hero-title {
top: 210px;
font-size: 78px;
line-height: 90px;
}
.hero-cta {
top: 560px;
}
.hero-para {
top: 545px;
left: 420px;
font-size: 20px;
line-height: 31px;
}
.hero-backed {
top: 790px;
}
.hero-backers {
top: 840px;
}
.hx-mid,
.hx-topcenter {
display: none;
}
.hx-right {
width: 62%;
height: auto;
}
.stat-n {
font-size: 54px;
}
/* features fall back to flow layout */
.features {
height: auto;
padding: 120px 48px 40px;
}
.feature {
display: flex;
align-items: center;
gap: 48px;
margin-bottom: 90px;
}
.feature-img {
position: static;
width: 44% !important;
height: auto !important;
left: auto !important;
top: auto !important;
}
.feature-num {
display: none;
}
.feature-text {
position: static;
left: auto !important;
top: auto !important;
}
.pillars {
height: auto;
border-radius: 56px;
padding: 0 40px 50px 60px;
gap: 20px;
}
.pillar {
width: auto;
padding-top: 70px;
}
.eco-title {
padding-top: 140px;
font-size: 40px;
line-height: 46px;
}
.aud-card h3 {
font-size: 26px;
line-height: 36px;
}
.marquee-line {
font-size: 56px;
line-height: 72px;
}
.footer-wave {
height: 340px;
}
.footer-links {
grid-template-columns: repeat(4, 1fr);
padding: 56px 48px 0;
}
.footer-bar {
padding: 0 48px 40px;
margin-top: 60px;
}
}
@media (max-width: 900px) {
.nav {
padding: 0 24px;
}
.nav-links-left,
.nav-links-right a:not(.btn),
.nav-learn {
display: none;
}
.hero {
height: auto;
padding-bottom: 60px;
}
.hx-left,
.hx-topleft {
display: none;
}
.hx-right {
opacity: 0.85;
}
.hero-title {
position: static;
margin: 170px 24px 0;
font-size: 54px;
line-height: 62px;
}
.hero-cta {
position: static;
margin: 40px 24px 0;
flex-direction: row;
}
.hero-para {
position: static;
margin: 36px 24px 0;
width: auto;
}
.hero-backed {
position: static;
margin: 60px 24px 0;
}
.hero-backers {
position: static;
margin: 18px 24px 0;
flex-wrap: wrap;
height: auto;
}
.container {
max-width: calc(100% - 48px);
}
.stats-grid {
grid-template-columns: repeat(2, 1fr);
gap: 40px 0;
padding: 44px 0;
}
.features {
padding: 60px 24px 20px;
}
.feature {
flex-direction: column;
align-items: flex-start;
gap: 8px;
margin-bottom: 60px;
}
.feature-img {
width: 82% !important;
align-self: center;
}
.pillars {
grid-template-columns: 1fr;
border-radius: 44px;
padding: 0 36px 44px 52px;
}
.eco-title {
padding-top: 100px;
font-size: 32px;
line-height: 38px;
}
.eco-grid {
margin-top: 56px;
}
.aud-grid {
grid-template-columns: 1fr;
}
.footer-panel {
max-width: calc(100% - 16px);
border-radius: 28px 28px 0 0;
}
.marquee-line {
font-size: 34px;
line-height: 46px;
}
.footer-wave {
height: 220px;
}
.footer-links {
grid-template-columns: repeat(2, 1fr);
gap: 0 24px;
padding: 44px 28px 0;
}
.fcol li {
margin-bottom: 26px;
}
.footer-bar {
flex-direction: column;
gap: 24px;
padding: 0 28px 36px;
margin-top: 40px;
}
}