Files
ZDTT/styles.css

374 lines
6.4 KiB
CSS

:root {
color-scheme: dark;
font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
--bg: #05060a;
--bg-alt: #0e1018;
--card: #121422;
--card-border: rgba(255, 255, 255, 0.08);
--text: #f5f6fd;
--muted: #9aa2c4;
--accent: #4dd5ff;
--accent-strong: #6d84ff;
--shadow: 0 18px 45px rgba(4, 6, 11, 0.6);
}
*,
*::before,
*::after {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background: radial-gradient(circle at top, rgba(77, 213, 255, 0.12), transparent 55%),
radial-gradient(circle at 20% 20%, rgba(109, 132, 255, 0.25), transparent 35%),
var(--bg);
color: var(--text);
font-size: 1rem;
line-height: 1.6;
}
img {
max-width: 100%;
height: auto;
}
a {
color: var(--accent);
text-decoration: underline;
text-decoration-color: rgba(77, 213, 255, 0.6);
}
a:hover {
color: var(--text);
text-decoration-color: var(--text);
}
a:focus-visible,
button:focus-visible {
outline: 2px solid rgba(77, 213, 255, 0.8);
outline-offset: 3px;
}
.hero {
padding: 2.5rem clamp(1.5rem, 5vw, 5rem) 5rem;
display: flex;
flex-direction: column;
gap: 2rem;
}
.nav {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
}
.brand {
font-weight: 700;
letter-spacing: 0.08em;
}
.nav__links {
display: flex;
align-items: center;
gap: 1.5rem;
}
.nav__links a {
color: var(--muted);
font-weight: 500;
transition: color 0.2s ease;
text-decoration: none;
}
.nav__links a:hover {
color: var(--text);
}
.nav__toggle {
display: none;
background: none;
border: none;
cursor: pointer;
gap: 0.4rem;
flex-direction: column;
}
.nav__toggle span {
display: block;
width: 1.5rem;
height: 2px;
background: var(--text);
}
.hero__content {
max-width: 48rem;
}
.eyebrow {
text-transform: uppercase;
letter-spacing: 0.3em;
font-size: 0.75rem;
color: var(--accent);
margin-bottom: 1rem;
}
h1 {
font-size: clamp(2.7rem, 5vw, 4.8rem);
margin: 0 0 1rem;
line-height: 1.05;
}
h2 {
font-size: clamp(2rem, 3vw, 3rem);
margin-bottom: 0.75rem;
}
h3 {
margin-bottom: 0.35rem;
}
.lead {
color: var(--muted);
font-size: 1.15rem;
margin-bottom: 1.5rem;
}
.hero__actions {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin-bottom: 1rem;
}
.btn {
border: 1px solid transparent;
padding: 0.85rem 1.4rem;
border-radius: 999px;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
text-decoration: none;
}
.btn:focus-visible {
outline: none;
box-shadow: 0 0 0 3px rgba(77, 213, 255, 0.35), 0 12px 30px rgba(109, 132, 255, 0.25);
}
.nav__toggle:focus-visible {
outline-offset: 6px;
}
.btn.primary {
background: linear-gradient(90deg, var(--accent-strong), var(--accent));
color: #05060a;
border: none;
box-shadow: 0 15px 40px rgba(77, 213, 255, 0.3);
}
.btn.ghost {
border-color: rgba(255, 255, 255, 0.2);
color: var(--text);
background: transparent;
}
.btn:hover {
transform: translateY(-1px);
box-shadow: 0 12px 30px rgba(109, 132, 255, 0.25);
}
.install-command {
display: block;
padding: 1rem 1.25rem;
border-radius: 0.75rem;
background: rgba(18, 20, 34, 0.7);
border: 1px solid var(--card-border);
font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
font-size: 0.95rem;
overflow-x: auto;
}
.hero__metrics {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
gap: 1rem;
}
.metric {
padding: 1.25rem;
border-radius: 1rem;
border: 1px solid var(--card-border);
background: rgba(5, 6, 10, 0.55);
}
.metric__label {
text-transform: uppercase;
font-size: 0.75rem;
letter-spacing: 0.25em;
color: var(--muted);
}
.metric__value {
font-size: 1.2rem;
margin: 0.35rem 0 0;
font-weight: 600;
}
.section {
padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 5rem);
}
.section__intro {
max-width: 42rem;
margin-bottom: 2.5rem;
}
.feature-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
gap: 1.25rem;
}
.card {
padding: 1.5rem;
border-radius: 1.2rem;
border: 1px solid var(--card-border);
background: var(--card);
box-shadow: var(--shadow);
min-height: 10rem;
}
.card p {
color: var(--muted);
margin: 0;
}
.install {
background: var(--bg-alt);
}
.install-steps {
list-style: none;
padding: 0;
margin: 0;
display: grid;
gap: 1.25rem;
}
.install-steps li {
padding: 1.5rem;
border-radius: 1rem;
border: 1px solid var(--card-border);
background: rgba(5, 6, 10, 0.5);
counter-increment: install-step;
position: relative;
padding-left: 4.5rem;
}
.install-steps li::before {
content: counter(install-step);
position: absolute;
left: 1.5rem;
top: 1.5rem;
width: 2rem;
height: 2rem;
border-radius: 50%;
background: rgba(77, 213, 255, 0.2);
border: 1px solid var(--accent);
display: grid;
place-items: center;
font-weight: 600;
}
.callout {
margin-top: 2rem;
padding: 1.25rem 1.5rem;
border-radius: 1rem;
background: rgba(255, 196, 87, 0.12);
border: 1px solid rgba(255, 196, 87, 0.35);
}
.showcase__grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
gap: 1.35rem;
}
figure {
margin: 0;
border: 1px solid var(--card-border);
border-radius: 1rem;
padding: 1rem;
background: rgba(9, 10, 18, 0.8);
min-height: 15rem;
}
figcaption {
font-weight: 600;
margin-bottom: 0.75rem;
color: var(--accent);
}
pre {
background: rgba(5, 6, 10, 0.65);
padding: 1rem;
border-radius: 0.75rem;
overflow: auto;
font-size: 0.85rem;
line-height: 1.3;
}
.statusbar-demo {
display: flex;
justify-content: space-between;
background: linear-gradient(90deg, var(--accent-strong), var(--accent));
color: #05060a;
padding: 0.65rem 1rem;
border-radius: 0.5rem;
font-weight: 600;
}
.community__actions {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
margin-top: 1rem;
}
.footer {
padding: 2rem clamp(1.5rem, 5vw, 5rem);
border-top: 1px solid rgba(255, 255, 255, 0.08);
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
font-size: 0.9rem;
color: var(--muted);
}
@media (max-width: 720px) {
.nav {
flex-wrap: wrap;
}
.nav__toggle {
display: inline-flex;
}
.nav__links {
display: none;
width: 100%;
flex-direction: column;
padding: 1rem 0 0;
gap: 0.75rem;
}
.nav__links.is-open {
display: flex;
}
}