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

:root {
    --bg: #0a0a0e;
    --bg-card: #13131a;
    --bg-card-hover: #1a1a24;
    --text: #e8e8ed;
    --text-muted: #8888a0;
    --accent: #4a5568;
    --accent-light: #6b7a90;
    --border: #1e1e2a;
    --radius: 16px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* === Nav === */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links { display: flex; gap: 28px; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 4px;
}
.icon-close { display: none; }
.menu-toggle.open .icon-bars { display: none; }
.menu-toggle.open .icon-close { display: inline; }

/* === Sections === */
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Hero === */
.hero {
    padding: 180px 24px 120px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-light);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: clamp(44px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.hero-cta { margin-bottom: 0; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text);
    color: var(--bg);
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

/* === Services === */
.services {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.services h2,
.products h2,
.contact h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 60px;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: background 0.2s, border-color 0.2s;
}
.service-card:hover {
    background: var(--bg-card-hover);
    border-color: #2a2a3a;
}

.service-icon {
    color: var(--accent-light);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === Products === */
.products {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    background: var(--bg-card-hover);
    border-color: #2a2a3a;
    transform: translateY(-4px);
}

.product-icon {
    color: var(--accent-light);
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

.product-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 0.3px;
}

/* === Contact === */
.contact {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.contact-sub {
    font-size: 18px;
    color: var(--text-muted);
    text-align: center;
    margin-top: -40px;
    margin-bottom: 60px;
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.support-form input,
.support-form textarea {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.support-form input:focus,
.support-form textarea:focus {
    border-color: var(--accent-light);
}
.support-form input::placeholder,
.support-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}
.support-form textarea {
    min-height: 140px;
    resize: vertical;
}

.support-form button {
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    font-family: inherit;
}
.support-form button:hover {
    transform: translateY(-1px);
}
.support-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-success {
    text-align: center;
    padding: 40px;
    color: var(--accent-light);
    font-size: 16px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 8px;
}

.contact-item strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-light);
    margin-bottom: 6px;
}

.contact-item p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* === Footer === */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* === Responsive === */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(10, 10, 14, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 8px 0;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 14px 24px;
        font-size: 16px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links a:last-child { border-bottom: none; }

    .hero {
        padding: 140px 20px 80px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

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

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

    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
