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

:root {
    --bg-base: #000000;
    --bg-raised: #0d0d0d;
    --bg-card: #111111;
    --bg-card-alt: #161616;
    --bg-muted: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #d4d4d4;
    --text-muted: #a3a3a3;
    --border-color: #2a2a2a;
    --border-strong: #404040;
    --accent: #ffffff;
    --accent-dim: #e5e5e5;
    --shadow: rgba(0, 0, 0, 0.5);
    --pill-radius: 999px;
    --card-radius: 20px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-base);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: block;
    border-radius: 10px;
}

.logo-wordmark {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.hero {
    padding: 5rem 0 6rem;
    text-align: center;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
}

.hero-mark {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.5rem;
    display: block;
    border-radius: 16px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

.cta-button {
    display: inline-block;
    padding: 0.95rem 2.25rem;
    background: var(--accent);
    color: var(--bg-base);
    text-decoration: none;
    border-radius: var(--pill-radius);
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.12);
    background: var(--accent-dim);
}

.section {
    padding: 5rem 0;
    background: var(--bg-base);
}

.section-alt {
    background: var(--bg-raised);
}

.content-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 16px 48px var(--shadow);
}

.content-card h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-strong);
    padding-bottom: 1rem;
    letter-spacing: -0.02em;
}

.content-card h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-primary);
}

.content-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.content-card ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.content-card ul li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.content-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--text-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.content-card ul li strong {
    color: var(--text-primary);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.image-placeholder {
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-muted);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.section-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 400px;
    min-height: 200px;
    border-radius: 12px;
    display: block;
    object-fit: contain;
}

.image-placeholder img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.section-image:not([src]),
img[src=""],
img[src*="undefined"] {
    display: none;
}

.section-image[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-image[loading="lazy"].loaded {
    opacity: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    background: var(--bg-card-alt);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: border-color 0.25s ease;
}

.feature-item:hover {
    border-color: var(--border-strong);
}

.feature-item h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
}

.footer {
    background: var(--bg-raised);
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        gap: 1rem;
        justify-content: flex-start;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.35rem;
    }

    .hero-mark {
        width: 72px;
        height: 72px;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .content-card {
        padding: 2rem;
    }

    .content-card h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3.5rem 0 4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .content-card {
        padding: 1.5rem;
    }

    .logo-wordmark {
        font-size: 1.15rem;
    }
}

html {
    scroll-behavior: smooth;
}

a:focus,
button:focus {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}
