/* Base */
:root {
    --purple: #7D2AE8;
    --purple-600: #6a20d4;
    --purple-400: #9963ee;
    --bg: #0b0b0e;
    --surface: #111114;
    --muted: #b7b7c1;
    --text: #e9e9ef;
    --success: #22c55e;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(11, 11, 14, 0.6);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--text);
    text-decoration: none;
}

.brand-logo {
    height: 32px;
    width: auto;
    display: block;
}

.brand-logo-footer {
    height: 36px;
    width: auto;
    opacity: 0.7;
    display: block;
}

.nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: transform .2s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 18px;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--purple-400));
    color: white;
    border: none;
    box-shadow: 0 12px 24px rgba(125, 42, 232, 0.25);
}

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

.btn-sm {
    padding: 8px 12px;
    border-radius: 8px;
}

.btn-lg {
    padding: 14px 22px;
    font-weight: 700;
}

/* Sections */
.section {
    padding: 72px 0;
    animation: fadeInUp 0.8s ease-out backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-alt {
    background: var(--surface);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-title {
    font-size: 34px;
    line-height: 1.2;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    margin: 0 0 28px;
    color: var(--muted);
}

/* Hero */
.hero {
    padding: 96px 0 72px;
    background: radial-gradient(1200px 500px at 70% -10%, rgba(125, 42, 232, 0.35), transparent 60%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-copy .lead {
    color: var(--muted);
    margin: 14px 0 22px;
    font-size: 18px;
}

.gradient-text {
    background: linear-gradient(135deg, #fff, #c8bff0 30%, var(--purple) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cta {
    display: flex;
    gap: 14px;
    margin: 8px 0 16px;
}

.hero-highlights {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    gap: 18px;
    color: var(--muted);
    flex-wrap: wrap;
}

.hero-highlights li::before {
    content: "✓";
    color: var(--success);
    margin-right: 8px;
}

.hero-media {
    display: grid;
    place-items: center;
    position: relative;
}

.hero-product-image {
    position: relative;
    width: 100%;
    max-width: 500px;
    animation: floatProduct 3s ease-in-out infinite;
}

@keyframes floatProduct {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.product-hero-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(125, 42, 232, 0.3));
}

.device-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 5/7;
    border-radius: 22px;
    background: linear-gradient(180deg, #0f0f14, #17171c);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.device-shadow {
    position: absolute;
    inset: 20% 10% -10% 10%;
    background: radial-gradient(60% 40% at 50% 40%, rgba(125, 42, 232, 0.35), transparent);
    filter: blur(12px);
}

.device {
    position: absolute;
    inset: 18% 18% 18% 18%;
    background: linear-gradient(160deg, #0b0b0e 0%, #0f0f14 60%, #1a1a22 100%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glow {
    position: absolute;
    inset: auto -20% -15% -20%;
    height: 40%;
    background: radial-gradient(60% 70% at 50% 0%, rgba(125, 42, 232, 0.6), transparent);
    filter: blur(28px);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature {
    background: #0e0e12;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px;
    transition: transform .2s ease, border-color .2s ease;
}

.feature:hover {
    transform: translateY(-3px);
    border-color: rgba(125, 42, 232, 0.55);
}

.feature .icon {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--purple-400);
}

.feature h3 {
    margin: 6px 0 6px;
    font-size: 18px;
}

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

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.step {
    background: #0e0e12;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px;
    position: relative;
}

.step-num {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(125, 42, 232, 0.15);
    color: var(--purple-400);
    font-weight: 700;
}

.step h3 {
    margin: 6px 0 8px;
}

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

/* Slider */
.slider {
    position: relative;
    overflow: hidden;
}

.slides {
    display: flex;
    gap: 16px;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    padding-bottom: 8px;
}

.slides::-webkit-scrollbar {
    height: 6px;
}

.slides::-webkit-scrollbar-thumb {
    background: rgba(125, 42, 232, 0.5);
    border-radius: 10px;
}

.testimonial {
    min-width: 70%;
    scroll-snap-align: start;
    background: #0e0e12;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px;
}

.testimonial blockquote {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.5;
}

.testimonial figcaption {
    color: var(--muted);
}

.slider-controls {
    position: absolute;
    right: 8px;
    top: -52px;
    display: flex;
    gap: 8px;
}

.slider-btn {
    background: #15151a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
}

.slider-btn:hover {
    background: #1b1b22;
}

/* Specs */
.specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.spec-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.spec-list li {
    background: #0e0e12;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
}

/* Pricing */
.pricing {
    display: grid;
    place-items: center;
}

.price-card {
    text-align: center;
    background: linear-gradient(180deg, #0e0e12, #0b0b0e);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 24px;
    max-width: 520px;
    width: 100%;
}

.price {
    font-size: 56px;
    margin: 6px 0 12px;
    letter-spacing: -0.02em;
}

.currency {
    font-size: 24px;
    color: var(--muted);
    margin-right: 4px;
}

.included {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    color: var(--muted);
    display: grid;
    gap: 8px;
}

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

/* FAQ */
.faq details {
    background: #0e0e12;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
}

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

/* Footer */
.site-footer {
    padding: 32px 0 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #0b0b0e;
}

.footer-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
}

.foot-brand {
    display: flex;
    align-items: center;
}

.foot-links {
    display: flex;
    gap: 16px;
    justify-self: center;
}

.foot-links a {
    color: var(--muted);
    text-decoration: none;
}

.foot-links a:hover {
    color: var(--text);
}

.legal {
    color: var(--muted);
    margin: 0;
    font-size: 14px;
    justify-self: end;
}

/* Product Page */
.product-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    align-items: start;
}

.product-gallery {
    position: relative;
}

.product-main {
    background: #0e0e12;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 12px;
}

.product-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.product-main .img {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    background: #111114;
    position: relative;
    overflow: hidden;
}

.product-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.thumb {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #0e0e12;
    padding: 6px;
    border-radius: 10px;
    cursor: pointer;
}

.thumb.is-active {
    border-color: rgba(125, 42, 232, 0.55);
}

.thumb-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
}

.thumb .img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    background: #111114;
}

/* Image placeholder variants */
.img-1 {
    background: linear-gradient(135deg, #151520, #0f0f14);
    position: relative;
}

.img-1::after {
    content: "PHANTOM TRACK";
    position: absolute;
    inset: auto 12px 12px auto;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.img-2 {
    background: radial-gradient(60% 80% at 40% 40%, rgba(125, 42, 232, 0.4), #0f0f14 70%);
}

.img-3 {
    background: linear-gradient(160deg, #0b0b0e, #14141c);
}

.img-4 {
    background: radial-gradient(40% 40% at 60% 60%, rgba(153, 99, 238, 0.5), #111114 70%);
}

.product-title {
    font-size: 32px;
    margin: 0 0 6px;
}

.product-meta {
    color: var(--muted);
    margin-bottom: 10px;
}

.rating span:first-child {
    color: #ffcc4d;
    margin-right: 6px;
}

.product-price {
    font-size: 44px;
    margin: 10px 0;
    letter-spacing: -0.02em;
}

.product-desc {
    color: var(--muted);
    margin: 0 0 16px;
}

.product-options {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}

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

.size-buttons {
    display: flex;
    gap: 10px;
}

.size-btn {
    min-width: 48px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #15151a;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-btn:hover {
    border-color: rgba(125, 42, 232, 0.5);
    background: #1a1a22;
}

.size-btn.is-selected {
    border-color: var(--purple-400);
    background: rgba(125, 42, 232, 0.15);
    color: var(--purple-400);
}

.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.qty-btn {
    background: #15151a;
    color: var(--text);
    border: 0;
    padding: 8px 12px;
    cursor: pointer;
}

.qty-input {
    width: 56px;
    background: transparent;
    color: var(--text);
    border: 0;
    text-align: center;
    font-size: 16px;
    padding: 8px;
}

.buy-cta {
    display: flex;
    gap: 10px;
    margin: 12px 0 6px;
}

.bullets {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    color: var(--muted);
    display: grid;
    gap: 6px;
}

.bullets li::before {
    content: "✓";
    color: var(--success);
    margin-right: 8px;
}

.shipping {
    display: flex;
    gap: 16px;
    color: var(--muted);
    font-size: 14px;
    margin-top: 8px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: grid;
    place-items: center;
    z-index: 100;
}

.lightbox.hidden {
    display: none;
}

.lightbox-body {
    width: min(1000px, 92%);
}

.lightbox-img {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 12px;
}

.lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    background: #15151a;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .device-card {
        max-width: 520px;
    }

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

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

    .spec-list {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .container {
        width: 90%;
    }

    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .gradient-text {
        font-size: 36px;
    }

    .hero-copy .lead {
        font-size: 16px;
    }

    .cta {
        flex-direction: column;
        gap: 10px;
    }

    .hero-highlights {
        font-size: 14px;
    }

    .nav-toggle {
        display: inline-block;
    }

    .nav-links {
        position: absolute;
        right: 4%;
        top: 58px;
        background: #0e0e12;
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 12px;
        padding: 10px;
        display: none;
        flex-direction: column;
        gap: 6px;
    }

    .nav-links a {
        padding: 8px 10px;
        border-radius: 8px;
    }

    .nav-links.show {
        display: flex;
    }

    .testimonial {
        min-width: 86%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .steps {
        gap: 12px;
    }

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

    .size-buttons {
        gap: 8px;
    }

    .size-btn {
        min-width: 44px;
        padding: 8px 12px;
    }

    .buy-cta {
        flex-direction: column;
        width: 100%;
    }

    .buy-cta .btn {
        width: 100%;
    }

    .price-card {
        padding: 18px;
    }

    .product-price {
        font-size: 36px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-grid {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .foot-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .legal {
        position: static;
        transform: none;
        text-align: center;
        margin-top: 12px;
    }
}

/* Stock Info */
.stock-info,
.product-stock {
    text-align: center;
    margin: 8px 0 16px;
    color: var(--muted);
    font-size: 14px;
}

.sold {
    color: var(--success);
    font-weight: 600;
}

.out-of-stock {
    color: #f87171;
    font-weight: 600;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.review {
    background: #0e0e12;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-name {
    font-weight: 600;
}

.review-rating {
    color: #ffcc4d;
    font-size: 14px;
}

.review-text {
    color: var(--muted);
    margin: 8px 0;
    line-height: 1.5;
}

.review-date {
    color: var(--muted);
    font-size: 13px;
    margin: 8px 0 0;
    opacity: 0.7;
}

/* Utilities */
.hidden {
    display: none !important;
}