@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #050b1d;
    --panel: rgba(255, 255, 255, 0.05);
    --card: rgba(255, 255, 255, 0.08);
    --text: #e8eeff;
    --muted: #9fb3e1;
    --accent: #7af0ff;
    --accent-2: #ff7ad1;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    background: radial-gradient(120% 120% at 20% 20%, #122042 0%, #060c1f 45%, #040814 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, rgba(122, 240, 255, 0.14), transparent 35%),
        radial-gradient(circle at 80% 20%, rgba(255, 122, 209, 0.12), transparent 30%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.06), transparent 30%);
    filter: blur(2px);
    z-index: -1;
}

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

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

main {
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    padding: 16px 22px;
}

.nav-shell {
    background: rgba(5, 9, 23, 0.72);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    border-radius: 14px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 18px;
    gap: 14px;
}

.brand-logo {
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 15px;
    color: var(--accent);
    min-width: 140px;
    justify-self: start;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.nav-links a {
    padding: 10px 14px;
    color: var(--text);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    font-weight: 500;
    font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
    border-color: rgba(122, 240, 255, 0.2);
    color: #ffffff;
    background: linear-gradient(120deg, rgba(122, 240, 255, 0.14), rgba(255, 122, 209, 0.14));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.nav-cta {
    display: flex;
    gap: 10px;
    white-space: nowrap;
    justify-self: end;
    min-width: 220px;
    justify-content: flex-end;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #7af0ff, #79a3ff);
    color: #041020;
    box-shadow: 0 15px 30px rgba(122, 240, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(122, 240, 255, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-ghost:hover {
    border-color: rgba(255, 122, 209, 0.3);
    color: #ffffff;
    background: rgba(255, 122, 209, 0.08);
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    align-items: center;
    min-height: 85vh;
    margin-top: 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.04em;
    width: fit-content;
    animation: float 6s ease-in-out infinite;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin: 16px 0 10px;
    line-height: 1.2;
}

.hero p {
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 4px 0 18px;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.stat {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid var(--border);
}

.stat strong {
    display: block;
    font-size: 22px;
    color: #ffffff;
}

.stat span {
    color: var(--muted);
}

.hero-visual {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    min-height: 418px;
    max-height: 520px;
    max-width: 520px;
    width: 100%;
    aspect-ratio: 518 / 418;
    align-self: center;
    justify-self: center;
}

.hero-visual-content {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 12px;
    align-content: center;
    height: 100%;
    padding: 8px;
    color: #ffffff;
}

.hero-visual-content h3 {
    margin: 0;
    font-size: 24px;
}

.hero-visual-content p {
    margin: 0;
    color: var(--muted);
}

.mini-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.mini-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.mini-card strong {
    display: block;
    font-size: 18px;
}

.mini-card span {
    color: var(--muted);
    font-size: 13px;
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 12px 0 18px;
}

.search-row input {
    flex: 1 1 260px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 15px;
}

.hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 70% at 24% 24%, rgba(122, 240, 255, 0.24), transparent 60%),
        radial-gradient(55% 55% at 78% 72%, rgba(255, 122, 209, 0.22), transparent 64%),
        linear-gradient(135deg, rgba(10, 16, 34, 0.88), rgba(6, 10, 22, 0.8));
    background-blend-mode: screen, screen, normal;
    opacity: 0.92;
    filter: saturate(1.05);
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(122, 240, 255, 0.4), transparent 60%);
    border-radius: 50%;
    bottom: -40px;
    right: -20px;
    animation: float 8s ease-in-out infinite;
}

/* Sections */
.section {
    margin-top: 64px;
    padding: 32px;
    background: var(--panel);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.section h2 {
    margin: 0;
    font-size: 28px;
}

.section p {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 720px;
}

.pill {
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 230px;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(122, 240, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.card p {
    margin: 0 0 12px;
    color: var(--muted);
}

.card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    font-weight: 700;
    margin-top: 8px;
}

.stars {
    color: #ffd166;
    letter-spacing: 1px;
    font-weight: 700;
}

.quote {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
    margin: 8px 0 12px;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 8px;
}

.reviewer span {
    font-weight: 500;
    color: var(--muted);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(122, 240, 255, 0.12);
    color: #cbf9ff;
    font-weight: 600;
    font-size: 13px;
}

.tag.hot {
    background: rgba(255, 122, 209, 0.14);
    color: #ffd7f2;
}

.cta-banner {
    margin-top: 48px;
    padding: 26px;
    background: linear-gradient(120deg, rgba(122, 240, 255, 0.14), rgba(90, 130, 255, 0.10));
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.cta-banner h3 {
    margin: 0;
}

.cta-banner p {
    margin: 4px 0 0;
    color: #f4f8ff;
}

/* Order form */
.order-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.cart-summary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text);
}

.cart-table th,
.cart-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
}

.cart-table th {
    color: var(--muted);
    font-weight: 600;
}

.cart-table .qty-select {
    width: 90px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.cart-table .qty-select option {
    background: #0b1226;
    color: #ffffff;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px 4px;
    font-weight: 700;
    color: #ffffff;
}

.cart-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: #ffffff;
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 16px;
    background: rgba(6, 12, 28, 0.9);
    border: 1px solid var(--border);
    color: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast.hidden {
    display: none;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

input, select, textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: rgba(122, 240, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(122, 240, 255, 0.08);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.helper {
    color: var(--muted);
    font-size: 14px;
    margin-top: 6px;
}

.faq {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.faq-item {
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--panel);
}

.faq-item h4 {
    margin: 0 0 6px;
}

.faq-item p {
    margin: 0;
    color: var(--muted);
}

/* Footer */
footer {
    text-align: center;
    padding: 28px 20px 36px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    margin-top: 70px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.03));
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero, .section, .card, .cta-banner {
    animation: fadeUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 840px) {
    nav { padding: 12px 14px; }
    .nav-shell { flex-wrap: wrap; }
    .nav-cta { width: 100%; justify-content: flex-start; }
    .hero { grid-template-columns: 1fr; }
    main { padding-top: 110px; }
}

@media (max-width: 540px) {
    .nav-links { width: 100%; }
    .nav-shell { gap: 10px; }
    .nav-cta { width: 100%; }
    .section { padding: 24px; }
}

/* Enhanced mobile layout (does not affect desktop) */
@media (max-width: 720px) {
    main { padding: 100px 14px 60px; }
    .nav-shell {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 12px 14px;
        gap: 10px;
    }
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    .nav-cta {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    .section {
        padding: 20px;
        margin-top: 48px;
    }
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
    }
    .card .meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .search-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    .section h2 { font-size: 22px; }
    .card h3 { font-size: 18px; }
    .btn { width: 100%; text-align: center; padding: 12px 14px; }
    .nav-cta .btn { width: 100%; }
    .hero-actions .btn { width: 100%; }
    .pill { width: 100%; justify-content: center; text-align: center; }
    .cart-chip { width: 100%; justify-content: center; }
}
