labs / static /css /sections.css
3v324v23's picture
deploy: unified router + dreamy website (2026-06-16T09:46:52Z)
c1a683f
Raw
History Blame Contribute Delete
21.1 kB
/* =========================================================================
sections.css — hero + manifesto (build phase 1: 2 of 7 sections)
More sections land here in phase 2.
========================================================================= */
/* --- Floating brand wordmark (top-left, soft) ------------------------- */
.brand {
position: fixed;
top: 1.6rem;
left: var(--gut);
z-index: 20;
font-family: var(--font-display);
font-weight: 700;
font-size: 1.2rem;
letter-spacing: 0.01em;
color: var(--ink);
display: flex;
align-items: center;
gap: 0.5rem;
}
.brand .dot {
width: 11px;
height: 11px;
border-radius: 50%;
background: var(--rose);
box-shadow: 0 0 14px rgba(255, 143, 171, 0.7);
}
/* --- Hero ------------------------------------------------------------- */
.hero {
min-height: 100dvh; /* dvh fixes iOS Safari bar jump */
display: flex;
align-items: center;
padding-block: 7rem 4rem;
}
.hero-inner {
max-width: 640px;
}
.hero h1 {
font-size: var(--step-hero);
line-height: 1.05;
margin-bottom: 1.5rem;
color: var(--ink);
}
.hero .sub {
font-size: 1.2rem;
line-height: 1.6;
color: var(--ink-soft);
max-width: 52ch;
margin-bottom: 2.2rem;
}
.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 0.9rem;
align-items: center;
}
/* The endpoint pill — communicates the product immediately */
.endpoint {
margin-top: 2.4rem;
display: inline-flex;
align-items: center;
gap: 0.75rem;
background: var(--panel);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid var(--panel-border);
border-radius: var(--radius-pill);
padding: 0.6em 0.6em 0.6em 1.2em;
font-family: 'Nunito', monospace;
font-size: var(--step-mono);
color: var(--ink-soft);
max-width: 100%;
overflow: hidden;
}
.endpoint code {
font-family: 'JetBrains Mono', ui-monospace, monospace;
color: var(--ink);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.endpoint .copy-btn,
.endpoint-box .copy-btn {
flex-shrink: 0;
display: inline-flex;
align-items: center;
gap: 0.45em;
/* soft rose gradient with a lit top edge */
background: linear-gradient(180deg, #ffa6c0 0%, var(--rose) 55%, var(--rose-deep) 100%);
color: #fff;
border: none;
border-radius: var(--radius-pill);
padding: 0.55em 1.15em 0.55em 0.85em;
font-family: var(--font-display);
font-weight: 700;
font-size: 0.82rem;
letter-spacing: 0.01em;
cursor: pointer;
box-shadow: 0 6px 16px rgba(232, 111, 146, 0.4),
inset 0 1px 0 rgba(255, 255, 255, 0.5),
inset 0 -1px 1px rgba(193, 57, 92, 0.25);
transition: transform 0.18s var(--ease-soft),
box-shadow 0.22s var(--ease-soft),
background 0.2s var(--ease-gentle);
}
/* the copy glyph (currentColor mask icon) */
.endpoint .copy-btn::before,
.endpoint-box .copy-btn::before {
content: "";
width: 13px;
height: 13px;
flex-shrink: 0;
background: currentColor;
-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='9'%20y='9'%20width='13'%20height='13'%20rx='2'/%3E%3Cpath%20d='M5%2015H4a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2h9a2%202%200%200%201%202%202v1'/%3E%3C/svg%3E") center / contain no-repeat;
mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='9'%20y='9'%20width='13'%20height='13'%20rx='2'/%3E%3Cpath%20d='M5%2015H4a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2h9a2%202%200%200%201%202%202v1'/%3E%3C/svg%3E") center / contain no-repeat;
}
.endpoint .copy-btn:hover,
.endpoint-box .copy-btn:hover {
transform: translateY(-1px);
background: linear-gradient(180deg, #ffafc8 0%, var(--rose-deep) 60%, #d23a68 100%);
box-shadow: 0 10px 22px rgba(232, 111, 146, 0.5),
inset 0 1px 0 rgba(255, 255, 255, 0.5),
inset 0 -1px 1px rgba(193, 57, 92, 0.3);
}
.endpoint .copy-btn:active,
.endpoint-box .copy-btn:active { transform: translateY(0) scale(0.96); }
.endpoint .copy-btn:focus-visible,
.endpoint-box .copy-btn:focus-visible {
outline: 3px solid var(--rose-deep);
outline-offset: 2px;
}
/* copied state: calm green + swaps in a checkmark */
.endpoint .copy-btn.copied,
.endpoint-box .copy-btn.copied {
background: linear-gradient(180deg, #a4e2a4 0%, #7BC97B 60%, #4fa84f 100%);
box-shadow: 0 6px 16px rgba(79, 168, 79, 0.4),
inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.endpoint .copy-btn.copied::before,
.endpoint-box .copy-btn.copied::before {
-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%206%209%2017l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%206%209%2017l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* --- Toast for copy confirmation -------------------------------------- */
.toast {
position: fixed;
bottom: 2rem;
left: 50%;
transform: translateX(-50%) translateY(20px);
background: var(--ink);
color: #fff;
font-family: var(--font-display);
font-weight: 700;
font-size: 0.9rem;
padding: 0.8em 1.4em;
border-radius: var(--radius-pill);
box-shadow: 0 12px 30px rgba(61, 44, 78, 0.35);
opacity: 0;
pointer-events: none;
transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
z-index: 50;
}
.toast.show {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
/* --- Manifesto ("what it is") ---------------------------------------- */
.manifesto {
padding-block: clamp(4rem, 10vw, 8rem);
display: flex;
justify-content: center;
}
.manifesto-inner {
max-width: 760px;
text-align: center;
}
.manifesto h2 {
font-size: var(--step-h2);
line-height: 1.25;
margin-bottom: 1.4rem;
color: var(--ink);
}
.manifesto h2 em {
font-style: normal;
color: var(--rose-deep);
}
.manifesto .lead {
font-size: 1.18rem;
line-height: 1.7;
color: var(--ink-soft);
max-width: 60ch;
margin-inline: auto;
}
/* a soft divider made of three dots */
.dot-divider {
display: flex;
justify-content: center;
gap: 0.6rem;
margin: 2.4rem auto;
}
.dot-divider span {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--rose);
opacity: 0.5;
}
.dot-divider span:nth-child(2) { opacity: 0.75; }
/* --- Scroll-reveal: elements fade up when entering viewport ----------- */
.reveal {
opacity: 0;
transform: translateY(26px);
transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft);
}
.reveal.is-in {
opacity: 1;
transform: translateY(0);
}
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.22s; }
.reveal.d3 { transition-delay: 0.34s; }
.reveal.d4 { transition-delay: 0.46s; }
@media (prefers-reduced-motion: reduce) {
.reveal { opacity: 1; transform: none; }
}
/* =========================================================================
Section: THE NUMBERS — three offset stat tiles with count-up
========================================================================= */
.stats {
padding-block: clamp(3rem, 8vw, 6rem);
}
.stats-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: clamp(1rem, 3vw, 2.2rem);
align-items: start;
}
.stat {
background: var(--panel);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid var(--panel-border);
border-radius: var(--radius-card);
padding: 1.6rem 1.4rem;
text-align: center;
box-shadow: 0 14px 40px rgba(157, 170, 242, 0.16);
}
/* offset the tiles for a dreamy asymmetric rhythm + gentle float */
.stat:nth-child(1) { animation: float-a 6s var(--ease-gentle) infinite; }
.stat:nth-child(2) { animation: float-b 6s var(--ease-gentle) -2s infinite; }
.stat:nth-child(3) { animation: float-c 6s var(--ease-gentle) -4s infinite; }
@keyframes float-a { 0%,100%{translate:0 18px;} 50%{translate:0 4px;} }
@keyframes float-b { 0%,100%{translate:0 -8px;} 50%{translate:0 -22px;} }
@keyframes float-c { 0%,100%{translate:0 24px;} 50%{translate:0 10px;} }
.stat .num {
font-family: var(--font-display);
font-weight: 700;
font-size: clamp(2.4rem, 5vw, 3.4rem);
color: var(--ink);
line-height: 1;
letter-spacing: -0.03em;
display: block;
}
.stat .label {
font-family: var(--font-display);
font-weight: 700;
font-size: 0.78rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--rose-deep);
margin-top: 0.6rem;
}
.stat .note {
font-size: 0.85rem;
color: var(--ink-soft);
margin-top: 0.4rem;
}
@media (max-width: 720px) {
.stats-grid { grid-template-columns: 1fr; gap: 1rem; }
.stat { animation: none !important; translate: 0 0; }
}
/* =========================================================================
Section: HOW IT WORKS — winding journey of cloud islands
========================================================================= */
.how { padding-block: clamp(4rem, 10vw, 8rem); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-head h2 { font-size: var(--step-h2); margin-bottom: 0.8rem; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin-inline: auto; }
.journey {
position: relative;
max-width: 760px;
margin-inline: auto;
display: grid;
gap: 2.4rem;
}
/* the dotted bubble-trail path behind the steps */
.journey::before {
content: "";
position: absolute;
inset: 0;
background-image: radial-gradient(circle, rgba(255,143,171,0.5) 1.6px, transparent 2px);
background-size: 100% 16px;
background-repeat: repeat-y;
background-position: center;
opacity: 0.6;
z-index: 0;
pointer-events: none;
}
.step {
position: relative;
z-index: 1;
background: var(--panel);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid var(--panel-border);
border-radius: var(--radius-card);
padding: 1.4rem 1.6rem;
display: flex;
gap: 1.1rem;
align-items: flex-start;
box-shadow: 0 12px 34px rgba(157, 170, 242, 0.14);
}
/* alternate left/right for a winding path */
.step:nth-child(even) { margin-left: auto; max-width: 82%; }
.step:nth-child(odd) { margin-right: auto; max-width: 82%; }
.step .badge {
flex-shrink: 0;
width: 42px; height: 42px;
border-radius: 50%;
background: var(--rose);
color: #fff;
display: grid;
place-items: center;
font-family: var(--font-display);
font-weight: 700;
font-size: 1rem;
box-shadow: 0 6px 16px rgba(255, 143, 171, 0.45);
}
.step h3 { font-size: 1.12rem; margin-bottom: 0.3rem; }
.step p { font-size: 0.96rem; color: var(--ink-soft); max-width: none; }
.step code {
font-family: 'JetBrains Mono', monospace;
font-size: 0.84rem;
background: rgba(255, 143, 171, 0.14);
padding: 0.1em 0.4em;
border-radius: 6px;
color: var(--rose-deep);
}
@media (max-width: 640px) {
.step:nth-child(even), .step:nth-child(odd) { max-width: 100%; }
}
/* =========================================================================
Section: PROVIDER CONSTELLATION — drifting nodes
========================================================================= */
.constellation { padding-block: clamp(4rem, 10vw, 8rem); }
.constellation-stage {
position: relative;
height: 460px;
max-width: 960px;
margin: 2.5rem auto 0;
}
.node {
position: absolute;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.35rem;
padding: 0.7em 1.1em;
background: var(--panel);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid var(--panel-border);
border-radius: var(--radius-pill);
font-family: var(--font-display);
font-weight: 700;
color: var(--ink);
cursor: default;
box-shadow: 0 8px 22px rgba(157, 170, 242, 0.16);
transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
animation: node-float 7s var(--ease-gentle) infinite;
white-space: nowrap;
}
.node:hover {
transform: scale(1.12);
box-shadow: 0 12px 30px rgba(255, 143, 171, 0.35);
z-index: 2;
}
.node .count {
font-family: 'JetBrains Mono', monospace;
font-weight: 600;
font-size: 0.7rem;
color: var(--rose-deep);
}
.node.big { font-size: 1.1rem; padding: 0.9em 1.4em; }
.node.medium { font-size: 0.98rem; }
.node.small { font-size: 0.84rem; opacity: 0.92; }
@keyframes node-float {
0%, 100% { translate: 0 0; }
50% { translate: 0 -8px; }
}
@media (max-width: 720px) {
.constellation-stage { height: auto; display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.node { position: static; animation: none; }
}
.constellation-cta {
text-align: center;
margin-top: 2rem;
font-family: var(--font-display);
font-weight: 700;
}
.constellation-cta a {
color: var(--rose-deep);
font-size: 1.05rem;
}
/* =========================================================================
Section: FEATURES — 2-col zigzag
========================================================================= */
.features { padding-block: clamp(4rem, 10vw, 8rem); }
.feature {
display: grid;
grid-template-columns: 1fr 1fr;
gap: clamp(1.5rem, 4vw, 3.5rem);
align-items: center;
margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.feature:last-child { margin-bottom: 0; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature-text h3 { font-size: var(--step-h3); margin-bottom: 0.6rem; }
.feature-text p { color: var(--ink-soft); }
.feature-visual {
aspect-ratio: 4 / 3;
border-radius: var(--radius-card);
border: 1px solid var(--panel-border);
background:
radial-gradient(circle at 30% 25%, rgba(255,255,255,0.9), transparent 50%),
linear-gradient(135deg, var(--cloud) 0%, var(--sky-mid) 100%);
box-shadow: 0 16px 40px rgba(157, 170, 242, 0.18);
display: grid;
place-items: center;
position: relative;
overflow: hidden;
}
.feature-visual::before {
content: "";
position: absolute;
width: 70%; height: 60%;
background: var(--cloud);
border-radius: 50%;
filter: blur(14px);
opacity: 0.8;
animation: cloud-puff 9s var(--ease-gentle) infinite;
}
.feature-visual .feature-icon {
position: relative;
z-index: 1;
width: min(62%, 152px); /* scales with the card, caps on wide screens */
height: auto;
overflow: visible; /* let sparkles / arrowheads peek */
filter: drop-shadow(0 6px 14px rgba(61, 44, 78, 0.13));
}
/* --- icon 1: streaming, filtered ---------------------------------------- */
.f1-packet {
transform-box: fill-box; transform-origin: center;
animation: f1-bob 2.6s var(--ease-gentle) infinite;
}
.f1-packet.p2 { animation-delay: -0.8s; }
.f1-packet.p3 { animation-delay: -1.6s; }
.f1-wave { stroke-dasharray: 5 4; animation: f1-flow 1.4s linear infinite; }
.f1-stray { opacity: 0.35; animation: f1-stray 2.8s ease-in-out infinite; }
.f1-stray.s2 { animation-delay: -1.4s; }
@keyframes f1-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes f1-flow { to { stroke-dashoffset: -18; } }
@keyframes f1-stray { 0%,100% { opacity: 0.15; } 50% { opacity: 0.5; } }
/* --- icon 2: round-robin load spread ------------------------------------ */
.f2-active {
opacity: 0;
transform-box: fill-box; transform-origin: center;
animation: f2-cycle 1.8s var(--ease-gentle) infinite;
}
.f2-active.a2 { animation-delay: 0.45s; }
.f2-active.a3 { animation-delay: 0.90s; }
.f2-active.a4 { animation-delay: 1.35s; }
@keyframes f2-cycle {
0%,8% { opacity: 0; transform: scale(0.7); }
22%,30% { opacity: 1; transform: scale(1.15); }
44%,100% { opacity: 0; transform: scale(0.7); }
}
/* --- icon 3: idempotent cooldowns --------------------------------------- */
.f3-snowflake {
transform-box: fill-box; transform-origin: center;
animation: f3-spin 26s linear infinite;
}
@keyframes f3-spin { to { transform: rotate(360deg); } }
/* --- icon 4: auth + IP gate --------------------------------------------- */
.f4-shield {
transform-box: fill-box; transform-origin: center;
animation: f4-breathe 4.2s var(--ease-gentle) infinite;
}
.f4-sparkle {
transform-box: fill-box; transform-origin: center;
animation: f4-twinkle 2.4s ease-in-out infinite;
}
.f4-sparkle.sp2 { animation-delay: -0.8s; }
.f4-sparkle.sp3 { animation-delay: -1.5s; }
.f4-keyhole { animation: f4-scan 2.6s ease-in-out infinite; }
@keyframes f4-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes f4-twinkle { 0%,100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes f4-scan { 0%,100% { opacity: 0.8; } 50% { opacity: 1; } }
@keyframes cloud-puff {
0%, 100% { transform: translate(-8%, 0) scale(1); }
50% { transform: translate(8%, -4%) scale(1.08); }
}
@media (max-width: 720px) {
.feature { grid-template-columns: 1fr; }
.feature:nth-child(even) .feature-text { order: 0; }
.feature-visual { max-width: 320px; margin-inline: auto; }
}
/* =========================================================================
Section: FINAL CTA + FOOTER
========================================================================= */
.cta {
position: relative;
padding-block: clamp(5rem, 12vw, 9rem);
text-align: center;
overflow: hidden;
}
.cta h2 { font-size: var(--step-h2); margin-bottom: 1rem; }
.cta .lead {
max-width: 50ch;
margin: 0 auto 2.2rem;
color: var(--ink-soft);
font-size: 1.12rem;
}
/* the return whale — faded in + glides left→right by whale.js */
.whale-return {
position: absolute;
top: 14%;
left: 0;
width: 330px;
opacity: 0;
pointer-events: none;
filter: drop-shadow(0 14px 32px rgba(157, 170, 242, 0.4));
will-change: transform, opacity;
transition: opacity 0.6s var(--ease-soft);
}
.endpoint-box { display: inline-flex; flex-direction: column; gap: 0.8rem; align-items: center; }
.endpoint-box .row {
display: inline-flex;
align-items: center;
gap: 0.75rem;
background: var(--panel);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid var(--panel-border);
border-radius: var(--radius-pill);
padding: 0.7em 0.7em 0.7em 1.4em;
max-width: 92vw;
}
.endpoint-box code {
font-family: 'JetBrains Mono', monospace;
font-size: 0.88rem;
color: var(--ink);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* Footer */
.footer {
padding-block: 3rem 2.4rem;
text-align: center;
}
.footer .container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.footer .made {
font-family: var(--font-display);
font-weight: 700;
font-size: 1.05rem;
letter-spacing: 0.01em;
color: var(--ink);
text-align: center; /* the centered centerpiece */
margin-inline: auto;
}
.footer .byline {
text-align: center;
font-family: var(--font-body);
font-weight: 600;
font-size: 0.74rem;
letter-spacing: 0.06em;
color: var(--rose-deep);
opacity: 0.85;
margin: 0.15rem 0 1rem;
}
.footer .providers {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.5rem 0.8rem;
max-width: 700px;
margin: 1.2rem auto 0;
font-family: var(--font-display);
font-weight: 700;
font-size: 0.82rem;
opacity: 0.8;
color: var(--ink-soft);
}
.footer .providers span { white-space: nowrap; }
.footer .footer-links {
display: inline-flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.4rem 1.1rem;
margin: 1.4rem auto 1rem;
}
.footer .footer-links a {
font-family: var(--font-display);
font-weight: 700;
font-size: 0.86rem;
color: var(--ink-soft);
}
.footer .footer-links a:hover { color: var(--rose-deep); }
.footer .copyright { font-size: 0.78rem; color: var(--ink-soft); opacity: 0.7; }
.footer .copyright code {
font-family: 'JetBrains Mono', monospace;
font-size: 0.74rem;
color: var(--ink);
background: rgba(255, 143, 171, 0.1);
padding: 0.1em 0.4em;
border-radius: 6px;
}
/* --- reduced motion: freeze all ambient float ----------------------------- */
@media (prefers-reduced-motion: reduce) {
.stat, .node, .feature-visual::before,
.f1-packet, .f1-wave, .f1-stray,
.f2-active, .f3-snowflake, .f4-shield, .f4-sparkle, .f4-keyhole { animation: none !important; }
.stat { translate: 0 0; }
.f2-active { opacity: 0; } /* hide the cycling overlay */
.f2-active.a1 { opacity: 1; } /* show one statically so it still reads */
.f4-sparkle { opacity: 0.7; } /* keep sparkles visible */
}