www_projectmycelium_io/poc_threefold/static/css/tf.css

317 lines
5.9 KiB
CSS
Raw Normal View History

2024-11-18 16:36:27 +00:00
:root {
--primary-bg: #0a0a0a;
--secondary-bg: #141414;
--text-color: #ffffff;
--text-muted: #a0a0a0;
--accent-color: #00abf4;
--section-padding: 3.6rem 1.2rem;
--nav-height: 42px;
--card-bg: rgba(20, 20, 20, 0.6);
--font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
* {
font-family: var(--font-family);
}
body {
font-family: var(--font-family);
line-height: 1.6;
background-color: var(--primary-bg);
color: var(--text-color);
margin: 0;
min-height: 100vh;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: 0.9rem;
}
header {
background-color: rgba(10, 10, 10, 0.95);
backdrop-filter: blur(10px);
position: fixed;
top: 0;
left: 0;
right: 0;
height: var(--nav-height);
z-index: 1000;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
header nav {
max-width: 1400px;
margin: 0 auto;
height: 100%;
}
header nav ul {
display: flex;
justify-content: center;
align-items: center;
list-style-type: none;
padding: 0;
margin: 0;
height: 100%;
gap: 1.5rem;
}
header nav ul li a {
text-decoration: none;
color: var(--text-muted);
font-size: 0.57rem;
font-weight: 500;
transition: all 0.3s ease;
padding: 0.3rem 0;
position: relative;
font-family: var(--font-family);
}
header nav ul li a:hover {
color: var(--text-color);
}
header nav ul li a::after {
content: '';
position: absolute;
bottom: -1px;
left: 0;
width: 0;
height: 1px;
background-color: var(--accent-color);
transition: width 0.3s ease;
}
header nav ul li a:hover::after {
width: 100%;
}
main.container {
max-width: 1400px;
margin: 0 auto;
padding: var(--nav-height) 1.2rem 0;
}
section {
padding: var(--section-padding);
position: relative;
}
section#why {
min-height: calc(100vh - var(--nav-height));
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
background: radial-gradient(circle at center, #141414 0%, #0a0a0a 100%);
}
section#why h1 {
font-family: var(--font-family);
font-size: 2.4rem;
font-weight: 600;
line-height: 1.2;
margin-bottom: 1.2rem;
background: linear-gradient(90deg, #ffffff 0%, #a0a0a0 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
max-width: 1000px;
}
section#why p {
font-family: var(--font-family);
font-size: 0.9rem;
color: var(--text-muted);
max-width: 800px;
margin: 0.9rem auto;
font-weight: 300;
}
section#products {
background-color: var(--secondary-bg);
position: relative;
overflow: hidden;
}
section#products::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
section#products h2 {
font-family: var(--font-family);
font-size: 1.8rem;
font-weight: 600;
margin-bottom: 0.9rem;
color: var(--text-color);
margin-left: 2.4rem;
}
section#products p {
font-family: var(--font-family);
color: var(--text-muted);
font-size: 0.9rem;
max-width: 900px;
margin-bottom: 2.4rem;
font-weight: 300;
margin-left: 2.4rem;
}
.product-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
max-width: 1150px;
margin: 0 auto;
padding: 0 0.5rem;
}
.product-card {
background: var(--card-bg);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
padding: 0.9rem 0.6rem;
transition: all 0.3s ease;
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.product-card:hover {
transform: translateY(-2px);
border-color: rgba(255, 255, 255, 0.2);
background: rgba(255, 255, 255, 0.05);
}
.product-card h3 {
font-family: var(--font-family);
font-size: 0.9rem;
font-weight: 600;
margin: 0;
color: var(--text-color);
}
.product-card p {
font-family: var(--font-family);
font-size: 0.72rem;
color: var(--text-muted);
margin: 0;
line-height: 1.6;
}
[role="button"] {
font-family: var(--font-family);
display: inline-block;
padding: 0.6rem 1.5rem;
background: var(--accent-color);
color: white;
text-decoration: none;
border-radius: 50px;
font-weight: 500;
transition: all 0.3s ease;
border: none;
cursor: pointer;
font-size: 0.79rem;
margin-top: 1.2rem;
}
[role="button"]:hover {
background: #0090d4;
transform: translateY(-2px);
box-shadow: 0 4px 20px rgba(0, 171, 244, 0.2);
}
section#dive-deeper {
text-align: center;
background: linear-gradient(45deg, #141414, #1a1a1a);
min-height: 30vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
section#dive-deeper h2 {
font-family: var(--font-family);
font-size: 1.8rem;
font-weight: 600;
margin-bottom: 1.2rem;
background: linear-gradient(90deg, #ffffff, #a0a0a0);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
footer {
text-align: center;
padding: 1.8rem 0.6rem;
background-color: var(--secondary-bg);
color: var(--text-muted);
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
footer ul {
list-style-type: none;
padding: 0;
display: flex;
justify-content: center;
gap: 1.2rem;
margin-top: 0.9rem;
}
footer ul li a {
font-family: var(--font-family);
text-decoration: none;
color: var(--text-muted);
font-size: 0.72rem;
transition: color 0.3s ease;
}
footer ul li a:hover {
color: var(--text-color);
}
@media (max-width: 1200px) {
.product-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
:root {
--section-padding: 2.4rem 0.9rem;
}
section#why h1 {
font-size: 1.5rem;
}
section#why p {
font-size: 0.79rem;
}
section#products h2 {
font-size: 1.5rem;
}
header nav ul {
padding: 0 0.6rem;
gap: 0.9rem;
flex-wrap: wrap;
justify-content: flex-start;
overflow-x: auto;
}
header nav ul::-webkit-scrollbar {
display: none;
}
.product-grid {
grid-template-columns: 1fr;
}
}