/* --- Custom Properties / Theme --- */
:root {
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --text-muted: #475569;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --card-bg: #ffffff;
    --max-width: 1100px;
}

/* --- Reset & Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- Layout & Typography --- */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.75rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 2rem; text-align: center; }
p { color: var(--text-muted); font-size: 1.1rem; }

/* --- Header & Navigation --- */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid #e2e8f0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-color);
    text-decoration: none;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent);
}

/* --- Sections --- */
section {
    padding: 100px 0 60px 0;
}

/* Hero Section */
#hero {
    padding: 160px 0 100px 0;
    text-align: center;
}

#hero p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.25rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.btn:hover {
    background-color: var(--accent-hover);
}

/* Products Section */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.35rem;
}

.card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.card-content {
    flex-grow: 1;
}

.card .link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.card .link:hover {
    text-decoration: underline;
}

/* Philosophy Section */
#philosophy {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

#philosophy .max-content {
    max-width: 700px;
    margin: 0 auto;
}

/* Contact Section */
#contact {
    text-align: center;
    padding-bottom: 100px;
}

.contact-lead {
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: #94a3b8;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Responsive Layout / WeBuilder Preview Breakpoints --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.75rem; }
    nav { display: none; }
}