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

:root {
    --text-primary: #f5f5f7;
    --text-secondary: rgba(245, 245, 247, 0.75);
    --border: rgba(255, 255, 255, 0.15);
    --accent: #ffffff;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: #0a0b0d;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Header */
header {
    background-color: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 4rem;
}

nav a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #ffffff;
}

nav .logo {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
}

.nav-menu {
    display: flex;
    gap: 2.2rem;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.nav-toggle span {
    display: block;
    position: absolute;
    left: 6px;
    right: 6px;
    height: 1.5px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 17px; }
.nav-toggle span:nth-child(3) { top: 23px; }

.nav-toggle.is-active span:nth-child(1) {
    top: 17px;
    transform: rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
    top: 17px;
    transform: rotate(-45deg);
}

/* Hero */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    image-rendering: -webkit-optimize-contrast;
}

/* Higher resolution variant for 2x/3x displays — optional */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
        background-image: url('hero-bg@2x.jpg'), url('hero-bg.jpg');
    }
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 2rem;
    max-width: 820px;
    width: 100%;
}

.hero-tagline {
    font-size: 0.85rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.4rem;
    font-weight: 400;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.4rem;
    color: #ffffff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-sub {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2.4rem;
}

.hero-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.button {
    background: #ffffff;
    color: #000000;
    padding: 0.85rem 1.8rem;
    border-radius: 980px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    display: inline-block;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.button-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.button-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

/* Main */
main {
    padding-top: 0;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.product-item {
    background: linear-gradient(160deg, rgba(30, 33, 42, 0.95), rgba(15, 17, 22, 0.98));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.4rem 1.8rem;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.product-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.25);
}

.product-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.4rem;
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-icon svg {
    width: 100%;
    height: 100%;
}

.product-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
    font-weight: 600;
}

.product-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.4rem;
}

.product-link {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.product-link:hover {
    color: #ffffff;
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.88rem;
}

footer ul {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

footer a:hover {
    color: #ffffff;
}

/* Tablet */
@media (max-width: 960px) {
    header {
        padding: 0 1.25rem;
    }

    .product-grid {
        padding: 4rem 1.5rem;
    }
}

/* Mobile */
@media (max-width: 720px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 4rem;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(0, 0, 0, 0.92);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .nav-menu.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu li {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero {
        height: 100svh;
        min-height: 520px;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-tagline {
        font-size: 0.75rem;
        letter-spacing: 0.24em;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
        max-width: 280px;
        margin: 0 auto;
    }

    .button {
        padding: 0.95rem 1.4rem;
        text-align: center;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 3rem 1rem;
    }

    .product-item {
        padding: 2rem 1.5rem;
    }

    footer ul {
        gap: 1.2rem;
    }
}

/* Small phones */
@media (max-width: 380px) {
    header {
        padding: 0 1rem;
    }

    nav .logo {
        font-size: 1rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}
