Files
ZDTT/styles.css
Zane V dca47ab1eb Update version to v0.1.2.a.3 and enhance UI/UX features
- Updated version number in version.txt.
- Improved smooth scrolling for anchor links in script.js.
- Added Intersection Observer for fade-in animations in script.js.
- Enhanced CSS styles for various elements, including buttons, metrics, and backgrounds for better visual appeal and interactivity.
2025-11-15 13:52:40 -05:00

676 lines
13 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.12);
--text: #f5f6fd;
--muted: #9aa2c4;
--accent: #4dd5ff;
--accent-strong: #6d84ff;
--accent-glow: rgba(77, 213, 255, 0.4);
--shadow: 0 18px 45px rgba(4, 6, 11, 0.6);
--shadow-glow: 0 0 30px rgba(77, 213, 255, 0.2);
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
min-height: 100vh;
background:
radial-gradient(circle at 0% 0%, rgba(77, 213, 255, 0.15), transparent 50%),
radial-gradient(circle at 100% 0%, rgba(109, 132, 255, 0.2), transparent 50%),
radial-gradient(circle at 50% 100%, rgba(77, 213, 255, 0.08), transparent 60%),
var(--bg);
background-attachment: fixed;
color: var(--text);
font-size: 1rem;
line-height: 1.6;
position: relative;
overflow-x: hidden;
}
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background:
radial-gradient(circle at 20% 30%, rgba(77, 213, 255, 0.03), transparent 50%),
radial-gradient(circle at 80% 70%, rgba(109, 132, 255, 0.03), transparent 50%);
pointer-events: none;
z-index: 0;
}
body > * {
position: relative;
z-index: 1;
}
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;
position: relative;
overflow: hidden;
}
.hero::after {
content: '';
position: absolute;
top: -50%;
right: -20%;
width: 600px;
height: 600px;
background: radial-gradient(circle, rgba(77, 213, 255, 0.1), transparent 70%);
border-radius: 50%;
filter: blur(60px);
pointer-events: none;
animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.6; }
50% { transform: scale(1.2) translate(-10%, 10%); opacity: 0.8; }
}
.nav {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
}
.brand {
font-weight: 700;
letter-spacing: 0.08em;
font-size: 1.25rem;
background: linear-gradient(135deg, var(--accent), var(--accent-strong));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-shadow: 0 0 20px var(--accent-glow);
}
.nav__links {
display: flex;
align-items: center;
gap: 1.5rem;
}
.nav__links a {
color: var(--muted);
font-weight: 500;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
text-decoration: none;
position: relative;
padding: 0.5rem 0;
}
.nav__links a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background: linear-gradient(90deg, var(--accent), var(--accent-strong));
transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 0 10px var(--accent-glow);
}
.nav__links a:hover {
color: var(--text);
}
.nav__links a:hover::after {
width: 100%;
}
.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;
background: linear-gradient(135deg, var(--text) 0%, var(--accent) 50%, var(--accent-strong) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
filter: drop-shadow(0 0 20px rgba(77, 213, 255, 0.3));
}
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: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
text-decoration: none;
position: relative;
overflow: hidden;
}
.btn::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
transform: translate(-50%, -50%);
transition: width 0.6s, height 0.6s;
}
.btn:hover::before {
width: 300px;
height: 300px;
}
.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(135deg, var(--accent-strong), var(--accent));
color: #05060a;
border: none;
box-shadow: 0 15px 40px rgba(77, 213, 255, 0.3), 0 0 20px rgba(77, 213, 255, 0.2);
z-index: 1;
}
.btn.primary:hover {
transform: translateY(-2px) scale(1.02);
box-shadow: 0 20px 50px rgba(77, 213, 255, 0.4), 0 0 30px rgba(77, 213, 255, 0.3);
}
.btn.ghost {
border-color: rgba(255, 255, 255, 0.25);
color: var(--text);
background: rgba(255, 255, 255, 0.03);
backdrop-filter: blur(10px);
z-index: 1;
}
.btn.ghost:hover {
transform: translateY(-2px);
border-color: rgba(77, 213, 255, 0.5);
background: rgba(77, 213, 255, 0.1);
box-shadow: 0 10px 30px rgba(77, 213, 255, 0.15);
}
.install-command {
display: block;
padding: 1rem 1.25rem;
border-radius: 0.75rem;
background: rgba(18, 20, 34, 0.8);
border: 1px solid var(--card-border);
font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
font-size: 0.95rem;
overflow-x: auto;
backdrop-filter: blur(10px);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
position: relative;
}
.install-command:hover {
border-color: rgba(77, 213, 255, 0.3);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(77, 213, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.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.6);
backdrop-filter: blur(10px);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
.metric::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(77, 213, 255, 0.1), transparent);
transition: left 0.5s ease;
}
.metric:hover {
transform: translateY(-4px);
border-color: rgba(77, 213, 255, 0.3);
box-shadow: 0 10px 30px rgba(77, 213, 255, 0.15);
}
.metric:hover::before {
left: 100%;
}
.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;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
backdrop-filter: blur(10px);
}
.card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg, transparent, var(--accent), transparent);
transform: translateX(-100%);
transition: transform 0.6s ease;
}
.card:hover {
transform: translateY(-6px);
border-color: rgba(77, 213, 255, 0.4);
box-shadow: 0 20px 50px rgba(77, 213, 255, 0.2), var(--shadow);
}
.card:hover::before {
transform: translateX(100%);
}
.card h3 {
transition: color 0.3s ease;
}
.card:hover h3 {
color: var(--accent);
}
.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.6);
backdrop-filter: blur(10px);
counter-increment: install-step;
position: relative;
padding-left: 4.5rem;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.install-steps li:hover {
transform: translateX(8px);
border-color: rgba(77, 213, 255, 0.3);
background: rgba(5, 6, 10, 0.7);
box-shadow: 0 10px 30px rgba(77, 213, 255, 0.1);
}
.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;
transition: all 0.3s ease;
box-shadow: 0 0 15px rgba(77, 213, 255, 0.3);
}
.install-steps li:hover::before {
background: rgba(77, 213, 255, 0.3);
box-shadow: 0 0 25px rgba(77, 213, 255, 0.5);
transform: scale(1.1);
}
.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);
backdrop-filter: blur(10px);
box-shadow: 0 8px 32px rgba(255, 196, 87, 0.1);
transition: all 0.3s ease;
}
.callout:hover {
border-color: rgba(255, 196, 87, 0.5);
box-shadow: 0 8px 32px rgba(255, 196, 87, 0.2);
}
.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);
backdrop-filter: blur(10px);
min-height: 15rem;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
figure::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(77, 213, 255, 0.1), transparent 70%);
opacity: 0;
transition: opacity 0.4s ease;
}
figure:hover {
transform: translateY(-8px) scale(1.02);
border-color: rgba(77, 213, 255, 0.4);
box-shadow: 0 20px 50px rgba(77, 213, 255, 0.2);
}
figure:hover::before {
opacity: 1;
}
figcaption {
font-weight: 600;
margin-bottom: 0.75rem;
color: var(--accent);
}
pre {
background: rgba(5, 6, 10, 0.8);
padding: 1rem;
border-radius: 0.75rem;
overflow: auto;
font-size: 0.85rem;
line-height: 1.3;
border: 1px solid rgba(77, 213, 255, 0.1);
box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
position: relative;
backdrop-filter: blur(5px);
}
pre::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(77, 213, 255, 0.3), transparent);
}
.statusbar-demo {
display: flex;
justify-content: space-between;
background: linear-gradient(135deg, var(--accent-strong), var(--accent));
color: #05060a;
padding: 0.65rem 1rem;
border-radius: 0.5rem;
font-weight: 600;
box-shadow: 0 4px 20px rgba(77, 213, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
position: relative;
overflow: hidden;
}
.statusbar-demo::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
animation: shimmer 3s infinite;
}
@keyframes shimmer {
0% { left: -100%; }
100% { left: 100%; }
}
.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.1);
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
font-size: 0.9rem;
color: var(--muted);
background: rgba(5, 6, 10, 0.5);
backdrop-filter: blur(10px);
position: relative;
}
.footer::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(77, 213, 255, 0.3), transparent);
}
.footer a {
transition: all 0.3s ease;
}
.footer a:hover {
color: var(--accent);
text-shadow: 0 0 10px var(--accent-glow);
}
@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;
background: rgba(5, 6, 10, 0.95);
backdrop-filter: blur(20px);
border-radius: 0.5rem;
padding: 1rem;
margin-top: 1rem;
border: 1px solid var(--card-border);
}
.nav__links.is-open {
display: flex;
animation: slideDown 0.3s ease;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
}