ziex/site/app/assets/home.css
2026-06-22 17:05:46 +06:00

3152 lines
No EOL
65 KiB
CSS

/* Hide vertical scrollbar in install tab OS switcher */
.hero-install .install-box-header,
.hero-install .install-tab-labels {
scrollbar-width: none;
}
.hero-install .install-box-header::-webkit-scrollbar,
.hero-install .install-tab-labels::-webkit-scrollbar {
display: none;
}
/* Extra small device tweaks */
@media (max-width: 480px) {
.hero {
padding: 0.5rem;
min-height: unset;
}
.hero-inner {
flex-direction: column;
gap: 1.5rem;
padding-top: 2rem;
}
.hero-title-main {
font-size: 2.2rem !important;
}
.hero-mascot {
width: 100%;
min-width: 0;
max-width: 220px;
margin: 0 auto;
}
.hero-mascot img {
max-width: 180px;
}
.hero-install {
max-width: 100%;
margin: 1rem 0 1.5rem;
}
.hero-install .install-box-header,
.hero-install .install-tab-labels {
overflow-x: auto;
flex-wrap: nowrap;
gap: 0.2rem;
}
.hero-install .install-tab-label {
min-width: 90px;
font-size: 0.7rem;
padding: 0.35rem 0.5rem;
}
.hero-install .install-box-content {
padding: 0.5rem 0.3rem;
}
.hero-install .install-code {
font-size: 0.68rem;
padding: 0.5rem 0.2rem;
white-space: pre-line;
word-break: break-all;
overflow-x: auto;
}
.features {
padding: 2rem 0.5rem;
}
.features-grid {
grid-template-columns: 1fr;
}
.feature-card {
padding: 1.2rem 0.7rem;
}
}
@media (max-width: 340px) {
.hero-title-main {
font-size: 1.3rem !important;
}
.hero-mascot img {
max-width: 120px;
}
.hero-install .install-tab-label {
min-width: 70px;
font-size: 0.6rem;
}
}
/* ZX Framework Home Page Styles */
:root {
--zx-primary: #4ade80;
--zx-primary-dark: #16a34a;
--zx-primary-light: #86efac;
--zx-secondary: #ff6b35;
--zx-accent: #ffd23f;
--zx-dark: #0a0a0a;
--zx-dark-light: #141414;
--zx-gray: #8b9299;
--zx-gray-light: #b0b8c1;
--zx-white: #ffffff;
--zx-bg: #000000;
--zx-bg-light: #0a0a0a;
--zx-card-bg: #111111;
--zx-border: #2626268c;
--zx-code-bg: #0b0f14;
--zx-text-muted: #a1a1a1;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
background: var(--zx-bg);
color: var(--zx-white);
line-height: 1.7;
overflow-x: hidden;
font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}
/* Hero Section */
.hero {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
position: relative;
padding: 2rem;
background: var(--zx-bg);
overflow: hidden;
border-bottom: 1px solid var(--zx-border);
}
.hero::after {
content: '';
position: absolute;
inset: 0;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
opacity: 0.04;
pointer-events: none;
z-index: 1;
}
/* Visuals */
.hero-visuals {
position: absolute;
inset: 0;
pointer-events: none;
z-index: 0;
perspective: 1200px;
overflow: hidden;
opacity: 0.9;
}
.hero-visuals-grid {
position: absolute;
inset: -100% 0;
background-image:
linear-gradient(to right, rgba(74, 222, 128, 0.15) 1px, transparent 1px),
linear-gradient(to bottom, rgba(74, 222, 128, 0.15) 1px, transparent 1px);
background-size: 60px 60px;
transform: rotateX(55deg) translateZ(0);
animation: move-forward 10s linear infinite;
mask-image: radial-gradient(circle at 50% 40%, black 10%, transparent 80%);
}
.hero-visuals-dots {
position: absolute;
inset: 0;
background-image:
radial-gradient(1.5px 1.5px at 10% 20%, rgba(255, 255, 255, 0.6) 100%, transparent 0),
radial-gradient(2px 2px at 50% 50%, rgba(74, 222, 128, 0.8) 100%, transparent 0),
radial-gradient(1.5px 1.5px at 80% 10%, rgba(255, 255, 255, 0.5) 100%, transparent 0),
radial-gradient(2.5px 2.5px at 30% 80%, rgba(74, 222, 128, 0.6) 100%, transparent 0),
radial-gradient(1.5px 1.5px at 90% 70%, rgba(255, 255, 255, 0.5) 100%, transparent 0);
background-size: 400px 400px;
animation: warp-speed 15s linear infinite, dots-float 30s linear infinite;
}
@keyframes dots-float {
0% { background-position: 0 0; }
100% { background-position: 400px 400px; }
}
.hero-visuals-scanline {
position: absolute;
inset: 0;
background: linear-gradient(
to bottom,
transparent 50%,
rgba(74, 222, 128, 0.05) 50%,
rgba(74, 222, 128, 0.05) 52%,
transparent 52%
);
background-size: 100% 8px;
z-index: 1;
pointer-events: none;
opacity: 0.9;
animation: scanline-move 20s linear infinite;
}
@keyframes scanline-move {
from { background-position: 0 0; }
to { background-position: 0 100%; }
}
@keyframes move-forward {
from {
transform: rotateX(60deg) translateY(0);
}
to {
transform: rotateX(60deg) translateY(80px);
}
}
@keyframes warp-speed {
0% {
transform: scale(0.5) translateZ(-500px);
opacity: 0;
}
10% {
opacity: 0.6;
}
90% {
opacity: 0.6;
}
100% {
transform: scale(2) translateZ(500px);
opacity: 0;
}
}
.hero::before {
content: '';
position: absolute;
top: 20%;
right: -10%;
width: 600px;
height: 600px;
background: radial-gradient(circle, rgba(74, 222, 128, 0.05) 0%, transparent 70%);
border-radius: 50%;
filter: blur(80px);
animation: float 20s ease-in-out infinite;
}
.hero::after {
content: '';
position: absolute;
bottom: 10%;
left: -5%;
width: 500px;
height: 500px;
background: radial-gradient(circle, rgba(74, 222, 128, 0.03) 0%, transparent 70%);
border-radius: 50%;
filter: blur(80px);
animation: float 25s ease-in-out infinite reverse;
}
@keyframes float {
0%,
100% {
transform: translate(0, 0) scale(1);
}
33% {
transform: translate(30px, -30px) scale(1.1);
}
66% {
transform: translate(-20px, 20px) scale(0.9);
}
}
.hero-inner {
max-width: 1200px;
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
gap: 4rem;
position: relative;
z-index: 1;
}
.hero-content {
flex: 1;
text-align: left;
animation: fadeInUp 0.8s ease-out;
z-index: 2;
}
.hero-mascot {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
position: relative;
animation:
mascot-entry 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both,
mascot-float 6s ease-in-out infinite 1.2s;
}
.hero-mascot img {
max-width: 500px;
width: 100%;
height: auto;
filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.2));
position: relative;
z-index: 2;
user-select: none;
-webkit-user-drag: none;
pointer-events: none;
}
.hero-mascot-glow {
position: absolute;
width: 400px;
height: 400px;
background: radial-gradient(circle, rgba(74, 222, 128, 0.4) 0%, transparent 70%);
border-radius: 50%;
filter: blur(60px);
z-index: 1;
animation: mascot-glow-pulse 4s ease-in-out infinite;
}
.hero-mascot-glow--inner {
width: 250px;
height: 250px;
background: radial-gradient(circle, rgba(74, 222, 128, 0.6) 0%, transparent 60%);
filter: blur(40px);
animation: mascot-glow-pulse 3s ease-in-out infinite reverse;
opacity: 0.8;
}
@keyframes mascot-float {
0%, 100% { transform: translateY(0) rotate(0); }
50% { transform: translateY(-8px) rotate(1deg); }
}
@keyframes mascot-entry {
0% {
opacity: 0;
transform: translateX(-150px) scale(0.7) rotate(-5deg);
filter: blur(10px) brightness(1.5);
}
100% {
opacity: 1;
transform: translateX(0) scale(1) rotate(0);
filter: blur(0) brightness(1);
}
}
@keyframes mascot-glow-pulse {
0%, 100% {
opacity: 0.4;
transform: scale(1);
background: radial-gradient(circle, rgba(74, 222, 128, 0.4) 0%, transparent 70%);
filter: blur(60px);
}
33% {
opacity: 0.7;
transform: scale(1.1);
background: radial-gradient(circle, rgba(74, 222, 128, 0.6) 0%, transparent 60%);
filter: blur(80px);
}
66% {
opacity: 0.9;
transform: scale(1.3);
background: radial-gradient(circle, rgba(234, 179, 8, 0.5) 0%, transparent 70%);
filter: blur(100px);
}
}
@media (max-width: 768px) {
.hero-content {
text-align: left;
padding-left: 0;
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.hero-badge {
display: inline-block;
padding: 0.375rem 0.875rem;
background: transparent;
border: 1px solid var(--zx-border);
border-radius: 4px;
color: var(--zx-text-muted);
font-size: 0.75rem;
font-weight: 500;
margin-bottom: 3rem;
letter-spacing: 0.05em;
text-transform: uppercase;
text-decoration: none;
transition: color 0.2s ease, border-color 0.2s ease;
animation: fadeIn 1s ease-out 0.2s both;
}
a.hero-badge:hover {
color: var(--zx-white);
border-color: var(--zx-primary);
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.hero-title-wrapper {
display: flex;
align-items: baseline;
gap: 0.5rem;
margin-bottom: 1.5rem;
animation: fadeInUp 0.8s ease-out 0.1s both;
}
.hero-title-main {
font-size: clamp(4rem, 12vw, 8rem);
font-weight: 900;
background: linear-gradient(
90deg,
var(--zx-white) 0%,
var(--zx-primary) 25%,
var(--zx-white) 50%,
var(--zx-primary) 75%,
var(--zx-white) 100%
);
background-size: 200% auto;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
animation: text-shimmer 8s linear infinite;
line-height: 0.9;
letter-spacing: -0.05em;
margin: 0;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
filter: drop-shadow(0 0 30px rgba(74, 222, 128, 0.1));
}
@keyframes text-shimmer {
0% { background-position: 0% center; }
100% { background-position: 200% center; }
}
.hero-title-accent {
font-size: clamp(2rem, 6vw, 4rem);
font-weight: 300;
color: var(--zx-primary);
line-height: 1;
opacity: 0.6;
}
@media (max-width: 768px) {
.hero-title-wrapper {
justify-content: flex-start;
}
}
.hero-subtitle {
font-size: clamp(1.5rem, 4vw, 2.25rem);
color: var(--zx-white);
margin-bottom: 1rem;
font-weight: 600;
line-height: 1.3;
animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-description {
font-size: clamp(1rem, 2vw, 1.125rem);
color: var(--zx-text-muted);
margin-bottom: 3rem;
max-width: 600px;
line-height: 1.7;
animation: fadeInUp 0.8s ease-out 0.25s both;
}
@media (max-width: 768px) {
.hero-description {
margin-left: 0;
margin-right: 0;
}
}
.hero-stats {
display: flex;
gap: 4rem;
justify-content: flex-start;
margin-bottom: 4rem;
flex-wrap: wrap;
animation: fadeInUp 0.8s ease-out 0.3s both;
padding-top: 2rem;
border-top: 1px solid var(--zx-border);
}
@media (max-width: 768px) {
.hero-stats {
justify-content: flex-start;
gap: 2rem;
}
}
.hero-stat {
text-align: center;
}
.hero-stat-value {
font-size: 2.5rem;
font-weight: 700;
color: var(--zx-primary);
display: block;
font-variant-numeric: tabular-nums;
}
.hero-stat-label {
font-size: 0.8125rem;
color: var(--zx-text-muted);
margin-top: 0.5rem;
text-transform: uppercase;
letter-spacing: 0.05em;
font-weight: 500;
}
.hero-cta {
display: flex;
gap: 1rem;
justify-content: flex-start;
flex-wrap: wrap;
animation: fadeInUp 0.8s ease-out 0.4s both;
}
.hero-install {
margin: 2.5rem 0 3rem;
max-width: 520px;
}
.hero-install .install-box {
background: var(--zx-code-bg);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 14px;
box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
overflow: hidden;
}
.hero-install .install-box-header {
display: flex;
align-items: center;
background: rgba(16, 18, 23, 0.95);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
min-width: 0;
/* padding: 0.6rem 0.85rem; */
/* overflow-x: auto;
flex-wrap: nowrap;
-webkit-overflow-scrolling: touch;
scrollbar-width: thin; */
}
.hero-install .install-box-content {
padding: 0.8rem;
background: linear-gradient(180deg, rgba(13, 16, 22, 0.98) 0%, rgba(10, 13, 18, 1) 100%);
min-width: 0;
overflow-x: hidden;
}
.hero-install .install-tab-label {
font-size: 0.68rem;
letter-spacing: 0.03em;
/* text-transform: uppercase; */
}
.hero-install .install-tab-radio {
display: none;
}
.hero-install .install-tab-labels {
display: flex;
gap: 0.4rem;
min-width: 0;
/* overflow-x: auto;
flex-wrap: nowrap;
-webkit-overflow-scrolling: touch;
scrollbar-width: thin; */
}
.hero-install .install-tab-label {
display: inline-flex;
align-items: center;
justify-content: center;
text-align: center;
line-height: 1.2;
padding: 0.4rem 0.7rem;
font-weight: 600;
color: rgba(255, 255, 255, 0.65);
cursor: pointer;
border-radius: 8px 8px 0 0;
border: 1px solid transparent;
border-bottom-color: transparent;
margin-bottom: -1px;
transition: all 0.2s ease;
background: transparent;
}
.hero-install .install-tab-label:hover {
color: #e6edf3;
}
.hero-install .install-tab-content {
display: none;
min-width: 0;
}
.hero-install .install-box-header:has(#tab-unix:checked)+.install-box-content #content-unix,
.hero-install .install-box-header:has(#tab-windows:checked)+.install-box-content #content-windows,
.hero-install .install-box-header:has(#tab-node:checked)+.install-box-content #content-node,
.hero-install .install-box-header:has(#tab-zig-mac:checked)+.install-box-content #content-zig-mac,
.hero-install .install-box-header:has(#tab-zig-win:checked)+.install-box-content #content-zig-win,
.hero-install .install-box-header:has(#tab-zig-other:checked)+.install-box-content #content-zig-other {
display: block;
}
.hero-install .install-box-header:has(#tab-unix:checked) .install-tab-labels label[for="tab-unix"],
.hero-install .install-box-header:has(#tab-windows:checked) .install-tab-labels label[for="tab-windows"],
.hero-install .install-box-header:has(#tab-node:checked) .install-tab-labels label[for="tab-node"],
.hero-install .install-box-header:has(#tab-zig-mac:checked) .install-tab-labels label[for="tab-zig-mac"],
.hero-install .install-box-header:has(#tab-zig-win:checked) .install-tab-labels label[for="tab-zig-win"],
.hero-install .install-box-header:has(#tab-zig-other:checked) .install-tab-labels label[for="tab-zig-other"] {
color: #e6edf3;
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.16);
border-bottom-color: transparent;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
.hero-install .install-tab-separator {
width: 1px;
align-self: stretch;
margin: 0.35rem 0.15rem;
background: rgba(255, 255, 255, 0.12);
flex-shrink: 0;
}
.hero-install .install-prompt {
color: var(--zx-primary-light);
font-weight: 600;
margin-right: 0.25rem;
user-select: none;
-webkit-user-select: none;
}
.hero-install .copy-button {
position: static;
margin-left: auto;
opacity: 0.6;
pointer-events: all;
background: transparent;
border: none;
color: rgba(255, 255, 255, 0.7);
padding: 0.375rem;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
margin-right: 5px;
}
.hero-install .copy-button:hover {
opacity: 1;
color: #e6edf3;
}
.hero-install .copy-button.copied {
opacity: 1;
color: var(--zx-primary-light);
}
.hero-install .copy-button svg {
width: 16px;
height: 16px;
}
.hero-install .install-code {
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
font-size: 0.86rem;
color: rgba(230, 237, 243, 0.9);
display: block;
width: 100%;
max-width: 100%;
min-width: 0;
white-space: nowrap;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
padding-bottom: 0.2rem;
-webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 88%, rgba(0, 0, 0, 0) 100%);
mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 88%, rgba(0, 0, 0, 0) 100%);
}
.hero-install .install-code::-webkit-scrollbar {
width: 0;
height: 0;
}
.hero-install .install-code .function {
color: #82aaff;
}
.hero-install .install-code .operator {
color: #89ddff;
}
.hero-install .install-code .string {
color: #f78c6c;
}
.hero-install .install-code .variable {
color: #c792ea;
}
@media (max-width: 768px) {
.hero-cta {
justify-content: flex-start;
}
.hero-install .install-code {
text-align: left;
}
.hero-install .install-code {
font-size: 0.75rem;
}
}
.hero-decoration {
position: absolute;
right: 5%;
top: 50%;
transform: translateY(-50%);
display: flex;
flex-direction: column;
gap: 1rem;
opacity: 0.1;
z-index: 0;
}
.hero-decoration-line {
width: 2px;
height: 100px;
background: var(--zx-primary);
transform-origin: center;
}
.hero-decoration-line:nth-child(1) {
animation: linePulse 3s ease-in-out infinite;
}
.hero-decoration-line:nth-child(2) {
animation: linePulse 3s ease-in-out infinite 0.3s;
height: 150px;
}
.hero-decoration-line:nth-child(3) {
animation: linePulse 3s ease-in-out infinite 0.6s;
height: 80px;
}
@keyframes linePulse {
0%,
100% {
opacity: 0.1;
transform: scaleY(1);
}
50% {
opacity: 0.3;
transform: scaleY(1.2);
}
}
@media (max-width: 1024px) {
.hero-decoration {
display: none;
}
.hero {
/* min-height: 100vh; */
padding: 1rem;
padding-top: 8rem;
}
}
.btn {
padding: 1rem 2rem;
font-size: 1rem;
font-weight: 600;
border-radius: 12px;
text-decoration: none;
display: inline-block;
transition: all 0.3s ease;
border: none;
cursor: pointer;
position: relative;
overflow: hidden;
}
.btn-primary {
background: var(--zx-primary);
color: var(--zx-bg);
box-shadow: none;
border: 1px solid var(--zx-primary);
font-weight: 600;
}
.btn-primary:hover {
background: var(--zx-primary-dark);
border-color: var(--zx-primary-dark);
transform: translateY(-2px);
box-shadow:
0 0 20px rgba(74, 222, 128, 0.4),
0 0 40px rgba(74, 222, 128, 0.2);
}
.btn-primary::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transform: translateX(-100%);
transition: transform 0.6s ease;
}
.btn-primary:hover::after {
transform: translateX(100%);
}
.btn-secondary {
background: transparent;
color: var(--zx-white);
border: 1px solid var(--zx-border);
}
.btn-secondary:hover {
background: var(--zx-card-bg);
border-color: var(--zx-primary);
color: var(--zx-primary);
transform: translateY(-1px);
}
/* Navigation */
.nav {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
padding: 0.2rem 1.5rem;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(20px);
border-bottom: 1px solid var(--zx-border);
}
.nav-content {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-logo {
font-size: 1.5rem;
font-weight: 800;
color: var(--zx-white);
text-decoration: none;
letter-spacing: -0.02em;
}
.nav-right {
display: flex;
align-items: center;
gap: 2rem;
}
.nav-links {
display: flex;
gap: 2rem;
list-style: none;
}
.nav-link {
color: var(--zx-gray-light);
text-decoration: none;
font-weight: 500;
transition: color 0.3s ease;
}
.nav-link:hover {
color: var(--zx-white);
}
.nav-link::after {
content: '';
position: absolute;
bottom: -4px;
left: 0;
width: 0;
height: 1px;
background: var(--zx-primary);
transition: width 0.3s ease;
}
.nav-link:hover::after {
width: 100%;
}
.nav-social {
display: inline-flex;
align-items: center;
gap: 0.2rem;
padding: 0.2rem 0.35rem;
border-radius: 999px;
background: var(--zx-card-bg);
border: 1px solid transparent;
transition: all 0.2s ease;
}
.nav-social:hover {
background: rgba(255, 255, 255, 0.06);
border-color: rgba(255, 255, 255, 0.2);
}
.nav-social-link {
color: var(--zx-white);
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.125rem 0.5rem;
border-radius: 999px;
font-size: 0.8rem;
font-weight: 600;
transition: color 0.2s ease;
}
.nav-social-link:focus-visible {
outline: 2px solid var(--zx-primary);
outline-offset: 2px;
}
.nav-social-link svg {
width: 14px;
height: 14px;
}
.nav-social-divider {
width: 1px;
height: 18px;
background: rgba(255, 255, 255, 0.18);
}
/* Nav label variants - short labels hidden by default */
.nav-link-short {
display: none;
}
.nav-link-full {
display: inline;
}
/* Hamburger Menu - Hidden on desktop */
.nav-toggle {
display: none;
}
.nav-hamburger {
display: none;
flex-direction: column;
justify-content: center;
gap: 5px;
width: 28px;
height: 28px;
cursor: pointer;
z-index: 1001;
}
.nav-hamburger span {
display: block;
width: 100%;
height: 2px;
background: var(--zx-white);
border-radius: 2px;
transition: all 0.3s ease;
}
/* Compact Navigation - First fallback */
@media (max-width: 768px) {
.nav-link-short {
display: inline;
}
.nav-link-full {
display: none;
}
.nav-social-text {
display: none;
}
.nav-social {
padding: 0.3rem;
}
.nav-right {
gap: 1.25rem;
}
.nav-links {
gap: 1.25rem;
}
.nav-link {
font-size: 0.875rem;
}
}
/* Hamburger Navigation - Second fallback */
@media (max-width: 360px) {
.nav-hamburger {
display: flex;
order: 3;
}
.nav-content {
position: relative;
}
.nav-right {
position: fixed;
top: 0;
right: -100%;
width: 280px;
height: 100vh;
background: rgba(0, 0, 0, 0.98);
backdrop-filter: blur(20px);
flex-direction: column;
align-items: flex-start;
padding: 5rem 2rem 2rem;
gap: 2rem;
transition: right 0.3s ease;
border-left: 1px solid var(--zx-border);
}
.nav-toggle:checked~.nav-right {
right: 0;
}
.nav-links {
flex-direction: column;
gap: 1.5rem;
width: 100%;
}
.nav-links li {
width: 100%;
}
.nav-link {
display: block;
font-size: 1.125rem;
padding: 0.5rem 0;
border-bottom: 1px solid var(--zx-border);
}
/* Show full labels in hamburger menu */
.nav-link-short {
display: none;
}
.nav-link-full {
display: inline;
}
/* Show labels in hamburger menu */
.nav-social-text {
display: inline;
}
.nav-social {
width: 100%;
justify-content: center;
margin-top: 1rem;
padding: 0.35rem 0.75rem;
}
.nav-social-link {
flex: 1;
justify-content: center;
}
/* Hamburger animation when open */
.nav-toggle:checked~.nav-hamburger span:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle:checked~.nav-hamburger span:nth-child(2) {
opacity: 0;
}
.nav-toggle:checked~.nav-hamburger span:nth-child(3) {
transform: rotate(-45deg) translate(5px, -5px);
}
/* Overlay when menu is open */
.nav-toggle:checked~.nav-right::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.5);
z-index: -1;
}
}
/* Features Section */
.features {
padding: 6rem 2rem;
max-width: 1200px;
margin: 0 auto;
}
.features-header {
margin-bottom: 6rem;
}
.section-title {
text-align: left;
font-size: clamp(2rem, 5vw, 2.5rem);
font-weight: 600;
margin-bottom: 1rem;
color: var(--zx-white);
letter-spacing: -0.02em;
line-height: 1.1;
}
.section-subtitle {
text-align: left;
font-size: 1.125rem;
color: var(--zx-text-muted);
margin-bottom: 0;
max-width: 600px;
line-height: 1.7;
}
.features-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0;
margin-top: 4rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
border-left: 1px solid rgba(255, 255, 255, 0.1);
position: relative;
}
.features-grid .feature-card {
animation: fadeInUp 0.6s ease-out both;
}
.features-grid .feature-card:nth-child(1) {
animation-delay: 0.1s;
}
.features-grid .feature-card:nth-child(2) {
animation-delay: 0.2s;
}
.features-grid .feature-card:nth-child(3) {
animation-delay: 0.3s;
}
.features-grid .feature-card:nth-child(4) {
animation-delay: 0.4s;
}
.features-grid .feature-card:nth-child(5) {
animation-delay: 0.5s;
}
.features-grid .feature-card:nth-child(6) {
animation-delay: 0.6s;
}
.features-grid .feature-card:nth-child(7) {
animation-delay: 0.7s;
}
.features-grid .feature-card:nth-child(8) {
animation-delay: 0.8s;
}
.features-grid .feature-card:nth-child(9) {
animation-delay: 0.9s;
}
.feature-card {
background: transparent;
border: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
border-right: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 0;
padding: 3rem 2.5rem;
transition: background 0.3s ease;
position: relative;
overflow: visible;
}
.feature-card::before {
content: '';
position: absolute;
top: -1.5px;
left: -1.5px;
width: 3px;
height: 3px;
background: #fff;
border-radius: 50%;
z-index: 2;
opacity: 1;
pointer-events: none;
}
.feature-card::after {
content: '';
position: absolute;
bottom: -1.5px;
right: -1.5px;
width: 3px;
height: 3px;
background: #fff;
border-radius: 50%;
z-index: 2;
}
.feature-card:hover {
background: rgba(74, 222, 128, 0.04);
}
.feature-card:hover::before,
.feature-card:hover::after {
background: var(--zx-primary);
box-shadow: 0 0 10px var(--zx-primary);
transform: scale(1.5);
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.feature-icon {
width: auto;
height: auto;
background: transparent;
border: none;
border-radius: 0;
display: flex;
align-items: center;
justify-content: flex-start;
margin-bottom: 1.5rem;
color: #4ade80;
position: relative;
}
.feature-icon svg {
width: 24px;
height: 24px;
}
.feature-card:hover .feature-icon {
color: #4ade80;
}
.feature-title {
font-size: 1rem;
font-weight: 600;
margin-bottom: 1rem;
color: var(--zx-white);
letter-spacing: -0.01em;
}
.feature-card:hover .feature-title {
color: var(--zx-white);
}
.feature-description {
color: rgba(255, 255, 255, 0.65);
line-height: 1.6;
font-size: 0.8125rem;
transition: color 0.3s ease;
}
.feature-card:hover .feature-description {
color: rgba(255, 255, 255, 0.8);
}
/* Feature Examples Section */
.feature-examples {
padding: 6rem 2rem;
max-width: 1200px;
margin: 0 auto;
border-top: 1px solid var(--zx-border);
}
.feature-examples-header {
margin-bottom: 3rem;
}
.feature-examples-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 2.5rem;
align-items: stretch;
}
@media (max-width: 1024px) {
.features-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 640px) {
.features-grid {
grid-template-columns: 1fr;
}
}
.feature-example {
display: flex;
flex-direction: column;
gap: 0.75rem;
height: 100%;
}
.feature-example--wide {
grid-column: 1 / -1;
}
.feature-example-title {
font-size: 1.1rem;
font-weight: 700;
margin-bottom: 0.5rem;
color: var(--zx-white);
}
.code-example-header--tabs {
gap: 1rem;
}
.code-example-tabs {
display: flex;
flex-wrap: nowrap;
gap: 0.15rem;
align-items: center;
flex: 1 1 auto;
min-width: 0;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
padding-bottom: 0.15rem;
position: relative;
-webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
}
.code-example-tabs::-webkit-scrollbar {
width: 0;
height: 0;
}
.code-example-video {
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
border-radius: 999px;
border: 1px solid rgba(255, 255, 255, 0.18);
color: rgba(255, 255, 255, 0.7);
text-decoration: none;
font-size: 0.7rem;
line-height: 1;
transition: all 0.2s ease;
background: rgba(255, 255, 255, 0.04);
}
.code-example-video:hover {
color: #e6edf3;
border-color: rgba(255, 255, 255, 0.4);
background: rgba(255, 255, 255, 0.08);
}
.code-example-tab-radio {
position: absolute;
opacity: 0;
pointer-events: none;
}
.code-example-tab-label {
padding: 0.14rem 0.42rem;
font-size: 0.56rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.02em;
color: rgba(255, 255, 255, 0.6);
border-radius: 6px;
border: 1px solid transparent;
background: transparent;
cursor: pointer;
user-select: none;
transition: all 0.2s ease;
white-space: nowrap;
}
.code-example-tab-label:hover {
color: var(--zx-white);
background: rgba(255, 255, 255, 0.06);
}
.code-example-tabs:has(.code-example-tab-radio:checked) .code-example-tab-label {
color: rgba(255, 255, 255, 0.55);
}
.code-example-tab-radio:checked+.code-example-tab-label {
color: #e6edf3;
background: rgba(255, 255, 255, 0.12);
border-color: rgba(255, 255, 255, 0.18);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
.code-example-panels {
display: block;
}
.code-example-panel {
display: none;
}
.feature-examples .code-example {
display: flex;
flex-direction: column;
height: 100%;
min-height: 220px;
}
.feature-examples .code-example::after {
opacity: 0.2;
}
.feature-examples .code-example-header {
padding: 0.55rem 0.85rem;
}
.feature-examples .code-example-dots span {
width: 10px;
height: 10px;
}
.feature-examples .code-example-title {
font-size: 0.7rem;
}
.feature-examples .code-example pre {
padding: 1.1rem 1.1rem;
font-size: 0.85rem;
min-height: 170px;
flex: 1 1 auto;
}
.feature-examples .code-preview-example {
display: flex;
flex-direction: column;
min-height: 260px;
}
.feature-examples .code-preview-body {
display: grid;
grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
min-height: 220px;
flex: 1 1 auto;
}
.feature-examples .code-preview-code {
min-width: 0;
}
.feature-examples .code-preview-code pre {
height: 100%;
min-height: 220px;
margin: 0;
border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.feature-examples .code-preview-pane {
background: rgba(13, 16, 22, 0.95);
display: flex;
flex-direction: column;
min-height: 0;
}
.feature-examples .code-preview-pane-header {
font-size: 0.7rem;
position: absolute;
right: 0px;
padding: 0.6rem;
color: rgba(255, 255, 255, 0.5);
}
.feature-examples .code-preview-pane-content {
flex: 1 1 auto;
min-height: 0;
padding: 1rem;
display: flex;
align-items: flex-start;
justify-content: flex-start;
background: #0d1117;
}
.feature-examples .code-preview-pane-content .counter {
width: 100%;
}
.code-section .code-example-header {
padding: 0.55rem 0.85rem;
}
.code-section .code-example-dots span {
width: 10px;
height: 10px;
}
.code-section .code-example-title {
font-size: 0.7rem;
}
.code-section .code-example pre {
padding: 1.1rem 1.1rem;
font-size: 0.85rem;
}
/* Code Example Section */
.code-section {
padding: 6rem 2rem;
background: var(--zx-bg);
position: relative;
overflow: hidden;
border-top: 1px solid var(--zx-border);
border-bottom: 1px solid var(--zx-border);
}
@media (max-width: 768px) {
.code-section {
padding: 4rem 1rem;
overflow-x: hidden;
}
}
.code-header {
margin-bottom: 4rem;
}
.code-container {
max-width: 1200px;
margin: 0 auto;
position: relative;
z-index: 1;
}
.code-example {
background: var(--zx-code-bg);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 14px;
padding: 0;
margin-top: 0;
overflow: hidden;
position: relative;
box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.code-example::after {
content: '';
position: absolute;
inset: -30px;
background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.08), transparent 50%);
opacity: 0.35;
pointer-events: none;
z-index: 0;
}
.code-example-header {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.7rem 1rem;
background: rgba(16, 18, 23, 0.95);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
backdrop-filter: blur(12px);
position: relative;
z-index: 1;
}
.code-example-dots {
display: flex;
gap: 0.375rem;
}
.code-example-dots span {
width: 11px;
height: 11px;
border-radius: 50%;
background: var(--zx-text-muted);
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.5) inset;
}
.code-example-dots span:nth-child(1) {
background: #ff5f57;
}
.code-example-dots span:nth-child(2) {
background: #febc2e;
}
.code-example-dots span:nth-child(3) {
background: #28c840;
}
.code-example-title {
font-size: 0.72rem;
color: rgba(255, 255, 255, 0.6);
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
letter-spacing: 0.03em;
}
.code-example pre {
margin: 0;
padding: 2.1rem 1.6rem;
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
font-size: 0.92rem;
line-height: 1.7;
color: rgba(230, 237, 243, 0.88);
overflow-x: auto;
overflow-y: visible;
-webkit-overflow-scrolling: touch;
touch-action: pan-x pan-y;
background: linear-gradient(180deg, rgba(13, 16, 22, 0.98) 0%, rgba(10, 13, 18, 1) 100%);
position: relative;
z-index: 1;
}
.code-example code {
color: #e6edf3;
}
/* Tree-sitter syntax highlighting - ZX Home Theme (Material Ocean) */
.code-example .attribute,
.feature-code-window .attribute {
color: #f78c6c;
}
.code-example .comment,
.install-code .comment,
.feature-code-window .comment {
font-style: italic;
color: #7a9aa8;
}
.code-example .constant,
.feature-code-window .constant {
color: #89ddff;
}
.code-example .constant.builtin,
.feature-code-window .constant.builtin {
color: #89ddff;
}
.code-example .constructor,
.feature-code-window .constructor {
color: #c792ea;
}
.code-example .function,
.feature-code-window .function {
color: #82aaff;
}
.code-example .function.builtin,
.feature-code-window .function.builtin {
color: #82aaff;
}
.code-example .keyword,
.feature-code-window .keyword {
color: #c792ea;
}
.code-example .keyword.function,
.feature-code-window .keyword.function {
color: #c792ea;
}
.code-example .keyword.return,
.feature-code-window .keyword.return {
color: #c792ea;
}
.code-example .keyword.operator,
.feature-code-window .keyword.operator {
color: #89ddff;
}
.code-example .keyword.modifier,
.feature-code-window .keyword.modifier {
color: #c792ea;
}
.code-example .keyword.type,
.feature-code-window .keyword.type {
color: #c792ea;
}
.code-example .keyword.conditional,
.feature-code-window .keyword.conditional {
color: #c792ea;
}
.code-example .keyword.repeat,
.feature-code-window .keyword.repeat {
color: #c792ea;
}
.code-example .keyword.import,
.feature-code-window .keyword.import {
color: #c792ea;
}
.code-example .keyword.exception,
.feature-code-window .keyword.exception {
color: #c792ea;
}
.code-example .keyword.coroutine,
.feature-code-window .keyword.coroutine {
color: #c792ea;
}
.code-example .module,
.feature-code-window .module {
color: #c792ea;
}
.code-example .number,
.feature-code-window .number {
color: #f78c6c;
}
.code-example .number.float,
.feature-code-window .number.float {
color: #f78c6c;
}
.code-example .operator,
.feature-code-window .operator {
color: #89ddff;
}
.code-example .property,
.feature-code-window .property {
color: #f78c6c;
}
.code-example .property.builtin,
.feature-code-window .property.builtin {
color: #f78c6c;
}
.code-example .punctuation,
.feature-code-window .punctuation {
color: #89ddff;
}
.code-example .punctuation.bracket,
.feature-code-window .punctuation.bracket {
color: #89ddff;
}
.code-example .punctuation.delimiter,
.feature-code-window .punctuation.delimiter {
color: #89ddff;
}
.code-example .punctuation.special,
.feature-code-window .punctuation.special {
color: #89ddff;
}
.code-example .string,
.feature-code-window .string {
color: #c3e88d;
}
.code-example .string.special,
.feature-code-window .string.special {
color: #c3e88d;
}
.code-example .string.escape,
.feature-code-window .string.escape {
color: #eeffff;
}
.code-example .tag,
.feature-code-window .tag {
color: #f07178;
}
.code-example .type,
.feature-code-window .type {
color: #ffcb6b;
}
.code-example .type.builtin,
.feature-code-window .type.builtin {
color: #ffcb6b;
}
.code-example .variable,
.feature-code-window .variable {
color: #eeffff;
}
.code-example .variable.builtin,
.feature-code-window .variable.builtin {
color: #82aaff;
}
.code-example .variable.parameter,
.feature-code-window .variable.parameter {
color: #f78c6c;
}
.code-example .variable.member,
.feature-code-window .variable.member {
color: #eeffff;
}
.code-example .label,
.feature-code-window .label {
color: #c792ea;
}
.code-example .boolean,
.feature-code-window .boolean {
color: #f78c6c;
}
/* Deployment Section */
.deployment {
padding: 6rem 2rem;
max-width: 1200px;
margin: 0 auto;
border-top: 1px solid var(--zx-border);
}
.deployment-header {
margin-bottom: 4rem;
}
.deployment-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0;
border-top: 1px solid rgba(255, 255, 255, 0.1);
border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.deployment-card {
padding: 2.5rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
border-right: 1px solid rgba(255, 255, 255, 0.1);
background: transparent;
transition: background 0.3s ease;
position: relative;
}
.deployment-card::before {
content: '';
position: absolute;
top: -1.5px;
left: -1.5px;
width: 3px;
height: 3px;
background: #fff;
border-radius: 50%;
z-index: 2;
opacity: 1;
pointer-events: none;
}
.deployment-card::after {
content: '';
position: absolute;
bottom: -1.5px;
right: -1.5px;
width: 3px;
height: 3px;
background: #fff;
border-radius: 50%;
z-index: 2;
}
.deployment-card:hover {
background: rgba(255, 255, 255, 0.03);
}
.deployment-card-icon {
margin-bottom: 1.5rem;
color: #4ade80;
}
.deployment-card-icon svg {
width: 28px;
height: 28px;
}
.deployment-card-title {
font-size: 1rem;
font-weight: 600;
margin-bottom: 1rem;
color: var(--zx-white);
}
.deployment-card-text {
font-size: 0.8125rem;
color: rgba(255, 255, 255, 0.65);
line-height: 1.6;
}
@media (max-width: 1024px) {
.deployment-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 640px) {
.deployment-grid {
grid-template-columns: 1fr;
}
}
/* Performance Section */
.performance {
padding: 6rem 2rem;
max-width: 1200px;
margin: 0 auto;
}
.performance-header {
margin-bottom: 6rem;
}
.performance-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-top: 4rem;
}
.performance-card {
text-align: left;
padding: 2.5rem;
background: var(--zx-card-bg);
border: 1px solid var(--zx-border);
border-radius: 0;
transition: all 0.3s ease;
border-top: 2px solid transparent;
}
.performance-card:hover {
border-top-color: var(--zx-primary);
background: var(--zx-bg-light);
}
@media (max-width: 768px) {
.performance-card {
text-align: center;
}
}
.performance-value {
font-size: 3.5rem;
font-weight: 800;
color: var(--zx-primary);
margin-bottom: 0.75rem;
font-variant-numeric: tabular-nums;
letter-spacing: -0.02em;
}
.performance-label {
font-size: 0.9375rem;
color: var(--zx-text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
font-weight: 500;
}
/* Architecture Section */
.architecture {
padding: 6rem 2rem;
max-width: 1200px;
margin: 0 auto;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.architecture-header {
margin-bottom: 6rem;
}
.architecture-diagram {
display: flex;
justify-content: space-between;
align-items: center;
padding: 4rem 0;
position: relative;
overflow-x: auto;
gap: 2rem;
}
.architecture-node {
flex: 0 0 160px;
height: 160px;
border: 1px solid rgba(255, 255, 255, 0.2);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
background: rgba(10, 10, 10, 0.5);
z-index: 1;
}
.architecture-node::after {
content: '';
position: absolute;
bottom: -1.5px;
right: -1.5px;
width: 3px;
height: 3px;
background: #fff;
border-radius: 50%;
}
.architecture-node-icon {
color: #4ade80;
margin-bottom: 1rem;
}
.architecture-node-label {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
font-weight: 600;
}
.architecture-connector {
flex: 1;
height: 1px;
background: linear-gradient(90deg, rgba(74, 222, 128, 0) 0%, rgba(74, 222, 128, 0.5) 50%, rgba(74, 222, 128, 0) 100%);
position: relative;
}
.architecture-connector::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 6px;
height: 6px;
background: #4ade80;
border-radius: 50%;
transform: translate(-50%, -50%);
box-shadow: 0 0 10px #4ade80;
animation: flow 2s linear infinite;
}
@keyframes flow {
0% { left: 0%; opacity: 0; }
50% { opacity: 1; }
100% { left: 100%; opacity: 0; }
}
/* Technical Details Section */
.technical {
padding: 6rem 2rem;
max-width: 1200px;
margin: 0 auto;
}
.technical-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0;
border-top: 1px solid rgba(255, 255, 255, 0.1);
border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.technical-card {
padding: 4rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
border-right: 1px solid rgba(255, 255, 255, 0.1);
position: relative;
}
.technical-card::after {
content: '';
position: absolute;
bottom: -1.5px;
right: -1.5px;
width: 3px;
height: 3px;
background: #fff;
border-radius: 50%;
}
.technical-card-eyebrow {
color: #4ade80;
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.1em;
margin-bottom: 1rem;
display: block;
}
.technical-card-title {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 1.5rem;
letter-spacing: -0.01em;
}
.technical-card-text {
font-size: 0.9375rem;
color: rgba(255, 255, 255, 0.5);
line-height: 1.7;
}
@media (max-width: 1024px) {
.technical-grid {
grid-template-columns: 1fr;
}
.technical-card {
padding: 2.5rem;
}
}
/* Testing Section */
.testing {
padding: 6rem 2rem;
max-width: 1200px;
margin: 0 auto;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.testing-header {
margin-bottom: 4rem;
}
.testing-flex {
display: flex;
justify-content: space-around;
align-items: center;
flex-wrap: wrap;
gap: 4rem;
}
.clock-panel {
text-align: center;
}
.clock-wrapper {
width: 200px;
height: 200px;
border: 2px solid rgba(255, 255, 255, 0.1);
border-radius: 50%;
position: relative;
margin-bottom: 1.5rem;
background: rgba(255, 255, 255, 0.02);
}
.clock-hand {
position: absolute;
bottom: 50%;
left: 50%;
width: 2px;
height: 80px;
background: #4ade80;
transform-origin: bottom center;
transform: translateX(-50%) rotate(0deg);
}
.clock-hand--fast {
animation: rotate 1s linear infinite;
background: #86efac;
}
.clock-hand--slow {
animation: rotate 60s linear infinite;
}
@keyframes rotate {
from { transform: translateX(-50%) rotate(0deg); }
to { transform: translateX(-50%) rotate(360deg); }
}
.clock-label {
font-size: 0.875rem;
color: var(--zx-white);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.1em;
}
.clock-time {
display: block;
font-size: 1.5rem;
color: #4ade80;
font-family: monospace;
margin-top: 0.5rem;
}
@media (max-width: 768px) {
.testing-flex {
gap: 2rem;
}
}
.footer {
padding: 0.6rem;
text-align: center;
border-top: 1px solid var(--zx-border);
margin-top: 0;
color: var(--zx-text-muted);
font-size: 0.6rem;
position: relative;
}
.footer-runner {
position: absolute;
left: 0;
right: 0;
top: 0;
height: 0;
pointer-events: none;
z-index: 5;
}
.section-runner .footer-runner-wrap {
bottom: -4px;
}
.footer-runner-wrap {
position: absolute;
left: 0;
bottom: -4px;
width: 72px;
transform: translateX(-80px);
will-change: transform;
}
.footer-runner-wrap.is-flipped .footer-runner-mascot {
transform: scaleX(-1);
}
.footer-runner-mascot {
display: block;
width: 72px;
height: auto;
transform-origin: 50% 90%;
pointer-events: auto;
cursor: pointer;
animation: footer-runner-bob var(--runner-bob, 0.42s) ease-in-out infinite;
}
.footer-runner-wrap.is-paused .footer-runner-mascot {
animation-play-state: paused;
}
.footer-runner-bubble {
position: absolute;
bottom: calc(100% + 4px);
left: 50%;
transform: translateX(-50%) translateY(4px);
background: var(--zx-primary, #f7a41d);
color: #111;
font-size: 0.55rem;
font-weight: 600;
padding: 3px 7px;
border-radius: 10px;
white-space: nowrap;
opacity: 0;
transition: opacity 0.2s ease, transform 0.2s ease;
pointer-events: none;
}
.footer-runner-bubble::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
border: 4px solid transparent;
border-top-color: var(--zx-primary, #f7a41d);
}
.footer-runner-wrap.is-paused .footer-runner-bubble {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
@keyframes footer-runner-bob {
0% { margin-bottom: 0px; }
50% { margin-bottom: 5px; }
100% { margin-bottom: 0px; }
}
.footer-runner-mascot.fx-shake { animation: footer-runner-bob var(--runner-bob, 0.42s) ease-in-out infinite, fx-shake 0.35s linear 1; }
.footer-runner-mascot.fx-spin { animation: footer-runner-bob var(--runner-bob, 0.42s) ease-in-out infinite, fx-spin 0.5s linear 1; }
.footer-runner-mascot.fx-squish { animation: footer-runner-bob var(--runner-bob, 0.42s) ease-in-out infinite, fx-squish 0.35s ease-out 1; }
.footer-runner-mascot.fx-flash { animation: footer-runner-bob var(--runner-bob, 0.42s) ease-in-out infinite, fx-flash 0.4s ease-out 1; }
@keyframes fx-shake {
0%, 100% { translate: 0 0; }
20% { translate: -4px 0; }
40% { translate: 4px 0; }
60% { translate: -3px 0; }
80% { translate: 3px 0; }
}
@keyframes fx-spin {
from { rotate: 0deg; }
to { rotate: 360deg; }
}
@keyframes fx-squish {
0% { scale: 1 1; }
40% { scale: 1.3 0.7; }
100% { scale: 1 1; }
}
@keyframes fx-flash {
0% { filter: brightness(1); }
30% { filter: brightness(2.5) drop-shadow(0 0 8px #fff); }
100% { filter: brightness(1); }
}
.footer-links {
display: flex;
justify-content: center;
gap: 2rem;
margin-bottom: 2rem;
flex-wrap: wrap;
}
.footer-link {
color: var(--zx-text-muted);
text-decoration: none;
transition: color 0.3s ease;
}
.footer-link:hover {
color: var(--zx-primary);
}
/* Benchmarks */
.benchmarks {
padding: 6rem 2rem;
background: transparent;
border-top: 1px solid var(--zx-border);
border-bottom: 1px solid var(--zx-border);
}
.benchmarks-header {
max-width: 980px;
margin: 0 auto 2.5rem;
}
.benchmarks-footnote-link {
display: block;
text-align: right;
color: rgba(0, 217, 255, 0.8);
text-decoration: none;
font-size: 0.875rem;
font-weight: 500;
transition: all 0.2s ease;
margin-top: 0.75rem;
padding: 0.5rem;
border-radius: 4px;
}
.benchmarks-footnote-link:hover {
color: var(--zx-primary-light);
background: rgba(0, 217, 255, 0.05);
}
.benchmarks-eyebrow {
display: inline-flex;
align-items: center;
gap: 0.5rem;
color: #ff4d6d;
font-size: 0.75rem;
letter-spacing: 0.12em;
text-transform: uppercase;
font-weight: 700;
margin-bottom: 0.75rem;
}
.benchmarks-card {
max-width: 980px;
margin: 0 auto;
background: transparent;
border: 1px solid var(--zx-border);
border-radius: 0;
padding: 2rem;
box-shadow: none;
position: relative;
}
.benchmarks-card::before {
content: '';
position: absolute;
top: -1.5px;
left: -1.5px;
width: 3px;
height: 3px;
background: #fff;
border-radius: 50%;
z-index: 2;
pointer-events: none;
}
.benchmarks-card::after {
content: '';
position: absolute;
bottom: -1.5px;
right: -1.5px;
width: 3px;
height: 3px;
background: #fff;
border-radius: 50%;
z-index: 2;
}
.benchmarks-tabs {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
margin-bottom: 2rem;
border-bottom: 1px solid var(--zx-border);
padding-bottom: 1rem;
}
.benchmarks-tab-radio {
position: absolute;
opacity: 0;
pointer-events: none;
}
.benchmarks-tab-label {
padding: 0.35rem 0.85rem;
font-size: 0.8rem;
font-weight: 600;
color: rgba(255, 255, 255, 0.5);
border: 1px solid transparent;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s ease;
background: transparent;
letter-spacing: 0.01em;
}
.benchmarks-tab-label:hover {
color: rgba(255, 255, 255, 0.85);
background: rgba(255, 255, 255, 0.04);
border-color: var(--zx-border);
}
.benchmarks-panel {
display: none;
}
.benchmarks-metric {
color: var(--zx-text-muted);
font-size: 0.9rem;
margin-bottom: 1.25rem;
}
.benchmarks-chart {
display: grid;
gap: 1rem;
}
.bench-row {
display: grid;
grid-template-columns: 140px 1fr 80px;
align-items: center;
gap: 1rem;
position: relative;
}
.bench-row[data-self="true"] {
background: rgba(74, 222, 128, 0.06);
border-radius: 6px;
}
.bench-row[data-self="true"]::before {
content: "";
position: absolute;
left: -0.75rem;
top: 0;
bottom: 0;
width: 3px;
border-radius: 3px;
background: var(--zx-primary);
}
.bench-row[data-self="true"] .bench-label {
color: var(--zx-primary-light);
}
.bench-label {
font-weight: 600;
color: rgba(255, 255, 255, 0.85);
}
.bench-label-link {
color: var(--zx-white);
text-decoration: none;
font-weight: 600;
transition: all 0.2s ease;
border-bottom: 1px solid transparent;
padding-bottom: 2px;
}
.bench-label-link:hover {
color: var(--zx-primary-light);
border-bottom-color: var(--zx-primary);
text-decoration: none;
}
.bench-bar {
position: relative;
height: 10px;
background: rgba(255, 255, 255, 0.05);
border-radius: 2px;
overflow: hidden;
border: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.bench-bar-fill {
display: block;
height: 100%;
width: calc(var(--value) * 100%);
background: linear-gradient(90deg, rgba(74, 222, 128, 0.3), #4ade80);
border-radius: inherit;
box-shadow: none;
transition: width 0.6s ease;
}
.bench-row:first-child .bench-bar-fill {
background: linear-gradient(90deg, rgba(74, 222, 128, 0.5), #4ade80, #86efac);
box-shadow: 0 0 12px rgba(74, 222, 128, 0.3);
}
/* Start of the magnifying lens effect for the last benchmark bar in the SSR tab. */
.benchmarks-panel[data-tab="bench-tab-ssr"] .bench-row:last-child .bench-bar {
overflow: visible;
}
/* The lens disc: a circle clipped over the bar tip that magnifies the thin
10px bar into a thick, clearly-visible green segment. */
.benchmarks-panel[data-tab="bench-tab-ssr"] .bench-row:last-child .bench-bar::before {
content: "";
position: absolute;
width: 34px;
height: 34px;
top: 50%;
left: calc(var(--value) * 100%);
transform: translate(-50%, -50%);
border-radius: 50%;
/* Zoomed view of the bar */
background:
radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
linear-gradient(90deg, #4ade80 0%, #86efac 48%, rgba(255, 255, 255, 0.06) 48%, rgba(255, 255, 255, 0.06) 100%);
box-shadow:
inset 0 0 0 3px rgba(220, 230, 240, 0.85),
inset 0 2px 6px rgba(255, 255, 255, 0.35),
inset 0 -3px 8px rgba(0, 0, 0, 0.35),
0 3px 8px rgba(0, 0, 0, 0.45);
pointer-events: none;
z-index: 2;
}
/* The handle, angled off the lower-right of the lens. */
.benchmarks-panel[data-tab="bench-tab-ssr"] .bench-row:last-child .bench-bar::after {
content: "";
position: absolute;
width: 16px;
height: 4px;
top: 50%;
left: calc(var(--value) * 100%);
transform: translate(8px, 9px) rotate(45deg);
transform-origin: left center;
border-radius: 2px;
background: linear-gradient(180deg, rgba(220, 230, 240, 0.95), rgba(150, 165, 180, 0.95));
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
pointer-events: none;
z-index: 1;
}
.benchmarks-panel[data-lower-is-better="true"] .bench-bar-fill {
background: linear-gradient(90deg, #4ade80, rgba(74, 222, 128, 0.3));
}
.benchmarks-panel[data-lower-is-better="true"] .bench-row:first-child .bench-bar-fill {
background: linear-gradient(90deg, #86efac, #4ade80, rgba(74, 222, 128, 0.5));
box-shadow: 0 0 12px rgba(74, 222, 128, 0.3);
}
.bench-value {
font-variant-numeric: tabular-nums;
font-weight: 700;
color: rgba(255, 255, 255, 0.75);
text-align: right;
white-space: nowrap;
transition: all 0.2s ease;
}
.bench-row:hover .bench-value {
color: var(--zx-primary);
transform: scale(1.1);
text-shadow:
2px 0 rgba(255, 0, 0, 0.5),
-2px 0 rgba(0, 0, 255, 0.5);
}
.bench-row:first-child .bench-value {
color: var(--zx-primary-light);
}
.bench-tooltip {
position: absolute;
bottom: calc(100% + 12px);
left: 50%;
transform: translateX(-50%) scale(0.95);
background: linear-gradient(180deg, rgba(12, 16, 22, 0.98) 0%, rgba(9, 12, 18, 0.98) 100%);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 12px;
padding: 0.75rem;
min-width: 240px;
z-index: 1000;
opacity: 0;
pointer-events: none;
transition: all 0.2s ease;
backdrop-filter: blur(12px);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.bench-row:hover .bench-tooltip {
opacity: 1;
pointer-events: auto;
transform: translateX(-50%) scale(1);
}
.bench-tooltip-row {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.8rem;
padding: 0.35rem 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
gap: 1rem;
}
.bench-tooltip-row:last-child {
border-bottom: none;
}
.bench-tooltip-label {
color: rgba(255, 255, 255, 0.6);
font-weight: 500;
}
.bench-tooltip-value {
color: rgba(255, 255, 255, 0.9);
font-weight: 600;
font-variant-numeric: tabular-nums;
text-align: right;
flex-shrink: 0;
}
.benchmarks-footnote {
margin-top: 1.25rem;
font-size: 0.8rem;
color: rgba(255, 255, 255, 0.5);
}
.benchmarks-run-meta {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
margin-top: 1.25rem;
padding-top: 1rem;
border-top: 1px solid rgba(255, 255, 255, 0.08);
font-size: 0.8rem;
color: rgba(255, 255, 255, 0.5);
}
.benchmarks-run-link {
color: #4ade80;
text-decoration: none;
font-weight: 500;
}
.benchmarks-run-link:hover {
text-decoration: underline;
}
/* Responsive */
@media (max-width: 1100px) {
.hero-inner {
gap: 2rem;
padding: 0 1rem;
}
.hero-title-main {
font-size: 5rem;
}
.hero-mascot img {
max-width: 400px;
}
.hero-mascot-glow {
width: 300px;
height: 300px;
}
}
@media (max-width: 768px) {
.hero-inner {
display: grid;
grid-template-areas:
"badge mascot"
"title mascot"
"subtitle mascot"
"description mascot"
"install install"
"cta cta";
grid-template-columns: 1fr 280px;
gap: 0;
padding-top: 5rem;
position: relative;
}
.hero-inner::before,
.hero-inner::after {
display: none;
}
.hero-content {
display: contents;
}
.hero-badge {
grid-area: badge;
margin-bottom: 1.5rem;
align-self: start;
justify-self: start;
width: fit-content;
}
.hero-title-wrapper {
grid-area: title;
margin-bottom: 1rem;
justify-content: flex-start;
}
.hero-title-main {
font-size: 4rem;
}
.hero-subtitle {
grid-area: subtitle;
margin-bottom: 1rem;
font-size: 1.75rem;
}
.hero-description {
grid-area: description;
margin-bottom: 2rem;
max-width: 100%;
margin-left: 0;
margin-right: 0;
font-size: 1rem;
}
.hero-install {
grid-area: install;
width: 100%;
max-width: 100%;
margin: 1rem 0 2.5rem;
}
.hero-cta {
grid-area: cta;
width: 100%;
flex-direction: row;
align-items: center;
gap: 0.75rem;
}
.hero-mascot {
grid-area: mascot;
position: relative;
top: 0;
right: 0;
width: 280px;
z-index: 10;
opacity: 1;
pointer-events: auto;
}
.hero-mascot img {
max-width: 100%;
}
.hero-mascot-glow {
width: 220px;
height: 220px;
}
.hero-stats {
gap: 2rem;
}
}
@media (max-width: 640px) {
.hero-title-main {
font-size: 3.5rem;
}
}
@media (max-width: 580px) {
.hero-inner {
display: flex;
flex-direction: column;
padding-top: 0rem;
}
.hero-content {
display: block;
order: 1;
}
.hero-mascot {
position: absolute;
top: -75px;
right: -10px;
width: 270px;
opacity: 0.9;
pointer-events: none;
z-index: 1;
}
.hero-title-main {
font-size: 3.2rem;
}
.hero-badge {
margin-bottom: 2.5rem;
}
.hero-description {
margin-bottom: 2.5rem;
}
}
@media (max-width: 768px) {
/* Generic responsive refinements */
.btn {
flex: 1;
text-align: center;
padding: 0.75rem 1rem;
font-size: 0.9rem;
}
/*
.nav {
padding: 1rem;
} */
.features-grid,
.feature-examples-grid,
.performance-grid {
grid-template-columns: 1fr;
}
.feature-examples {
padding: 4rem 1rem;
}
.feature-example {
min-width: 0;
}
.feature-examples .code-example {
max-width: 100%;
}
.feature-examples .code-preview-example {
min-height: 0;
}
.feature-examples .code-preview-body {
grid-template-columns: 1fr;
}
.feature-examples .code-preview-code pre {
border-right: 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
min-height: 170px;
}
.feature-examples .code-example-header {
overflow: hidden;
flex-wrap: wrap;
row-gap: 0.4rem;
}
.feature-examples .code-example-header--tabs {
gap: 0.5rem;
}
.feature-examples .code-example-tabs {
min-width: 0;
max-width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.feature-examples .code-example-title {
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.benchmarks {
padding: 4rem 1rem 5rem;
}
.benchmarks-card {
padding: 1.25rem 1.2rem 1.5rem;
}
.bench-row {
grid-template-columns: 100px 1fr 56px;
gap: 0.75rem;
}
.code-example pre {
padding: 1.5rem 1rem;
font-size: 0.7rem;
overflow-x: auto;
overflow-y: visible;
touch-action: pan-x pan-y;
}
.feature-examples .code-example pre,
.code-section .code-example pre {
font-size: 0.7rem;
}
.code-example-header {
padding: 0.875rem 1rem;
}
}
/* Custom scrollbar styling */
.code-example pre {
scrollbar-width: thin;
scrollbar-color: rgba(255, 255, 255, 0.2) var(--zx-code-bg);
}
.code-example pre::-webkit-scrollbar {
width: 8px;
height: 8px;
}
.code-example pre::-webkit-scrollbar-track {
background: rgba(9, 12, 18, 0.9);
}
.code-example pre::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.14);
border-radius: 10px;
border: 2px solid rgba(9, 12, 18, 0.9);
transition: background 0.3s ease;
}
.code-example pre::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.3);
}
/* Additional responsive font size for very small screens */
@media (max-width: 480px) {
.hero-install .install-box-header {
padding-right: 0.2rem;
}
.hero-install .install-box-header:has(#tab-unix) .install-tab-labels {
display: flex;
grid-template-columns: none;
min-width: 0;
gap: 0.2rem;
}
.hero-install .copy-button {
margin-right: 2px;
}
.hero-install .install-box-content,
.hero-install .install-tab-content,
.hero-install .install-code {
min-width: 0;
width: 100%;
max-width: 100%;
}
.hero-install .install-code {
font-size: 0.6rem;
}
.code-example pre {
font-size: 0.65rem;
padding: 1rem 0.75rem;
overflow-x: auto;
overflow-y: visible;
touch-action: pan-x pan-y;
}
.bench-row {
grid-template-columns: 1fr;
gap: 0.5rem;
}
.bench-value {
text-align: left;
}
}
/* Scroll animations */
@keyframes slideInLeft {
from {
opacity: 0;
transform: translateX(-30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes slideInRight {
from {
opacity: 0;
transform: translateX(30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.fade-in {
animation: fadeInUp 0.8s ease-out both;
}
/* Examples */
.counter {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.counter button {
background: #161b22;
color: #e6edf3;
border-radius: 8px;
padding: 1rem 1.6rem;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
}
/* Code Example Actions */
.code-example-actions {
display: flex;
align-items: center;
gap: 0.5rem;
margin-left: auto;
}
.code-example-open-playground {
background: none;
border: none;
color: inherit;
cursor: pointer;
transition: background-color 0.2s ease, color 0.2s ease;
opacity: 0.6;
display: inline-flex;
align-items: center;
justify-content: center;
position: relative;
}
.code-example-open-playground:hover,
.code-example-open-playground:focus {
opacity: 1;
background-color: rgba(74, 222, 128, 0.1);
outline: none;
}
}