t1mo's picture
Make a clean modern website
c768261 verified
:root {
--primary: #2563eb;
--primary-light: #3b82f6;
--secondary: #10b981;
--dark: #1e293b;
--light: #f8fafc;
--gray: #64748b;
--border-radius: 12px;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
line-height: 1.6;
color: var(--dark);
background-color: var(--light);
}
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 1.5rem;
}
section {
padding: 6rem 0;
}
h1, h2, h3, h4 {
font-weight: 700;
line-height: 1.2;
}
h1 {
font-size: 3rem;
}
h2 {
font-size: 2.25rem;
margin-bottom: 2.5rem;
}
h3 {
font-size: 1.5rem;
}
p {
color: var(--gray);
font-size: 1.125rem;
}
.btn {
display: inline-block;
padding: 1rem 2rem;
border-radius: var(--border-radius);
font-weight: 600;
text-decoration: none;
transition: all 0.2s ease;
}
.btn-primary {
background-color: var(--primary);
color: white;
}
.btn-primary:hover {
background-color: var(--primary-light);
}
.btn-outline {
border: 2px solid white;
color: white;
}
.btn-outline:hover {
background-color: white;
color: var(--primary);
}
.card {
background: white;
border-radius: var(--border-radius);
padding: 2.5rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.grid {
display: grid;
gap: 2rem;
}
.grid-cols-3 {
grid-template-columns: repeat(3, 1fr);
}
.text-center {
text-align: center;
}
.bg-white {
background-color: white;
}
.bg-gradient {
background: linear-gradient(135deg, var(--primary), var(--primary-light));
color: white;
}
@media (max-width: 768px) {
section {
padding: 4rem 0;
}
h1 {
font-size: 2.25rem;
}
h2 {
font-size: 1.75rem;
}
.grid-cols-3 {
grid-template-columns: 1fr;
}
}