/* IonMatrixPower Design System - Industrial Eco-Futurism */
:root {
    /* Palette */
    --color-bg: #F5F5F7;
    /* Off-white / Light Grey */
    --color-bg-dark: #111111;
    /* Deep Charcoal */
    --color-text: #212529;
    --color-text-light: #6c757d;
    --color-text-inverse: #ffffff;
    --color-accent: #43AC78;
    /* Green Accent */
    --color-border: #e0e0e0;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 5rem;
    /* Increased for spacious feel */

    --container-width: 1400px;
    /* Wider container */

    --border-radius: 12px;
    /* Rounded corners */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-xl) 0;
}

.bg-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

.bg-white {
    background-color: #ffffff;
}

/* Header & Navigation */
header {
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    background-color: rgba(245, 245, 247, 0.95);
    /* Matches bg color */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-bg-dark);
    text-transform: uppercase;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
    /* Ensure links are vertically centered */
    margin: 0;
    /* Remove default margins */
    padding: 0;
    /* Remove default padding */
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-bg-dark);
    display: block;
    /* Helps with vertical alignment */
}

.nav-links a:hover {
    color: var(--color-accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-bg-dark);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--color-bg-dark);
    color: var(--color-text-inverse);
    padding: var(--spacing-xl) 0;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    max-width: 900px;
}

.hero p {
    font-size: 1.5rem;
    color: #a0a0a0;
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-accent);
    color: #fff;
    border-radius: var(--border-radius);
    /* Square/Sharp edges for industrial feel */
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--color-accent);
    font-size: 0.9rem;
}

.btn:hover {
    background-color: transparent;
    color: var(--color-accent);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-inverse);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-bg-dark);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
}

.btn-outline-dark:hover {
    border-color: var(--color-bg-dark);
    background-color: var(--color-bg-dark);
    color: #fff;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-bg-dark);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3 {
    color: var(--color-text-inverse);
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;
    padding: 3rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input,
textarea,
select {
    width: 100%;
    padding: 1rem;
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Footer */
footer {
    background-color: var(--color-bg-dark);
    color: #fff;
    padding: var(--spacing-xl) 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #888;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--color-border);
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}