:root {
    --color-primary: #002FA7;
    /* Klein Blue */
    --color-primary-dark: #002280;
    --color-accent: #ffa360;
    /* Orange */
    --color-accent-hover: #ffb780;

    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;

    --font-main: 'Inter', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --container-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    color: var(--color-accent);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-muted);
}

.lead {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 400;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 47, 167, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.full-width {
    width: 100%;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

nav ul {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

nav a:not(.btn-primary):hover {
    color: var(--color-accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    transition: 0.3s;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.95));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(90deg, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subhead {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

/* Concept Section */
#concept {
    padding: var(--spacing-xl) 0;
}

.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.feature-list {
    margin-top: var(--spacing-md);
}

.feature-list li {
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.feature-list li::before {
    content: "•";
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.feature-list strong {
    color: var(--text-main);
}

.concept-image img {
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Specs Section */
#specs {
    padding: var(--spacing-xl) 0;
    background-color: #0f0f0f;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.spec-card {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 47, 167, 0.3);
}

.spec-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

/* Why ArcaMens */
#why-arcamens {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

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

.why-item h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

/* Gallery */
#gallery {
    padding: var(--spacing-xl) 0;
    background-color: #0f0f0f;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-sm);
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contact */
#contact {
    padding: var(--spacing-xl) 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.email-link {
    font-size: 1.5rem;
    color: var(--color-accent);
    font-weight: 600;
}

.contact-form-wrapper {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

input,
textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
}

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

/* Footer */
footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-logo img {
    height: 30px;
    margin: 0 auto var(--spacing-sm);
    opacity: 0.8;
}

.footer-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

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

    h2 {
        font-size: 2rem;
    }

    .nav-container nav {
        display: none;
        /* TODO: Implement mobile menu via JS */
    }

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

    .concept-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    /* Mobile Menu Active State */
    nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        padding: var(--spacing-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav.active ul {
        flex-direction: column;
    }
}

/* Status Messages & Spinner */
.status-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    display: none;
    font-size: 0.95rem;
}

.status-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: block;
}

/* Add missing color var if needed, or fallback */
:root {
    --success-color: #10b981;
}

.spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}