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

:root {
    /* VO2 Marvel Design Tokens */
    --color-primary: #0071e3;
    --color-primary-hover: #0077ed;
    --color-primary-light: #dbeafe;
    --color-primary-bg: #eff8ff;
    --color-text: #1d1d1f;
    --color-text-secondary: #6e6e73;
    --color-text-tertiary: #86868b;
    --color-bg: #ffffff;
    --color-bg-secondary: #f5f5f7;
    --color-bg-dark: #1d1d1f;
    --color-bg-dark-alt: #2c2c2e;
    --color-border: #d2d2d7;
    --color-border-light: #e8e8ed;
    --color-accent: #bf5af2;
    --color-success: #34c759;
    --color-star: #ff9500;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
        'Segoe UI', 'Helvetica Neue', 'Arial', sans-serif;
    --font-size-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
    --font-size-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
    --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
    --font-size-lg: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
    --font-size-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --font-size-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    --font-size-3xl: clamp(2rem, 1.5rem + 3vw, 4rem);
    --font-size-hero: clamp(3rem, 2rem + 6vw, 6rem);
    --font-size-hero-sub: clamp(1.25rem, 1rem + 2vw, 1.75rem);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 3rem;
    --space-4xl: 4rem;
    --space-5xl: 5rem;
    --space-6xl: 6rem;
    --space-7xl: 8rem;

    /* Radii */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-base: 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-slow: 500ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 4rem; }

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== Utilities ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: var(--space-2xl);
}

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

/* ===== Navigation ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: var(--space-md) var(--space-2xl);
    transition: all var(--transition-slow);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-sm);
}

.nav.scrolled .nav-logo { color: var(--color-text); }
.nav.scrolled .nav-links a { color: rgba(0, 0, 0, 0.6); }

.nav.nav-on-dark,
.nav.scrolled.nav-on-dark {
    background: rgba(0, 0, 0, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
}

.nav.nav-on-dark .nav-logo,
.nav.scrolled.nav-on-dark .nav-logo { color: #fff; }

.nav.nav-on-dark .nav-links a,
.nav.scrolled.nav-on-dark .nav-links a { color: rgba(255, 255, 255, 0.82); }

.nav.nav-on-dark .nav-links a:hover,
.nav.scrolled.nav-on-dark .nav-links a:hover { color: #fff; }

.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin-inline: auto;
}

.nav-logo {
    color: #fff; display: flex; align-items: center; gap: var(--space-sm);
    text-decoration: none; font-weight: 600; font-size: var(--font-size-base);
    transition: opacity var(--transition-fast);
}

.nav-logo:hover { opacity: 0.8; }

.nav-links { display: flex; list-style: none; gap: var(--space-3xl); }

.nav-links a {
    color: rgba(255, 255, 255, 0.85); text-decoration: none;
    font-size: var(--font-size-sm); font-weight: 500;
    letter-spacing: -0.01em; transition: color var(--transition-fast);
    position: relative;
}

.nav-links a:hover { color: #fff; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1.5px; background: var(--color-primary);
    transition: width var(--transition-base);
}
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    padding: var(--space-sm); width: 2.5rem; height: 2.5rem;
    align-items: center; justify-content: center;
    border-radius: var(--radius-sm); transition: background var(--transition-fast);
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.1); }
.nav-toggle:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.nav-toggle-line {
    display: block; width: 1.25rem; height: 1.5px;
    background: rgba(255, 255, 255, 0.85); border-radius: 2px;
    position: relative; transition: all var(--transition-base);
}
.nav-toggle-line::before, .nav-toggle-line::after {
    content: ''; position: absolute; left: 0; width: 100%; height: 1.5px;
    background: rgba(255, 255, 255, 0.85); border-radius: 2px;
    transition: all var(--transition-base);
}
.nav-toggle-line::before { top: -5px; }
.nav-toggle-line::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line::after { transform: translateY(-5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 8rem var(--space-2xl) 4rem;
    background: linear-gradient(180deg, #0a1628 0%, #1a2a4a 40%, #1d1d1f 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 22, 40, 0.7) 50%, rgba(10, 22, 40, 0.95) 100%);
}

.hero-content {
    position: relative; z-index: 2;
    max-width: 720px;
    animation: heroFadeUp 1s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

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

.hero-eyebrow {
    font-size: var(--font-size-sm); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: #5ac8fa; margin-bottom: var(--space-xl);
}

.hero-title {
    font-size: var(--font-size-hero); font-weight: 700;
    letter-spacing: -0.03em; line-height: 1.05; color: #fff;
    margin-bottom: var(--space-2xl);
}

.hero-subtitle {
    font-size: var(--font-size-hero-sub); color: rgba(255, 255, 255, 0.7);
    line-height: 1.5; max-width: 520px; margin: 0 auto var(--space-3xl);
    font-weight: 400;
}

.hero-ctas { display: flex; gap: var(--space-lg); justify-content: center; flex-wrap: wrap; }

/* ===== UI Showcase ===== */
.ui-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--space-3xl);
    max-width: 900px;
    margin: 0 auto;
}

.ui-card {
    border-radius: var(--radius-xl);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.ui-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.ui-card-wide {
    grid-column: 1 / -1;
    max-width: 100%;
    margin: 0;
    padding: 0 var(--space-lg);
}

.ui-mockup {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #000;
}

.ui-mockup-desktop { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }

.ui-mockup-watch {
    max-width: 200px;
    margin: 0 auto;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid #1a1a2e;
}

.ui-watch-img,
.ui-iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ui-iframe {
    border: none;
    background: #000;
}

.ui-label {
    display: block;
    text-align: center;
    padding: 0;
    margin: 0 0 var(--space-xs);
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-text-primary);
}

.ui-card-body {
    padding: var(--space-lg);
    text-align: center;
}

.ui-description {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    margin: 0 auto var(--space-lg);
    max-width: 34rem;
}

@media (max-width: 480px) {
    .ui-iframe {
        max-width: 100%;
        height: 500px;
    }
    .ui-mockup-watch {
        max-width: 140px;
    }
}

/* ===== Trust Bar ===== */
.trust-bar {
    background: var(--color-bg-secondary);
    padding: var(--space-4xl) var(--space-2xl);
}

.trust-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3xl); text-align: center;
}

.trust-number {
    display: block; font-size: var(--font-size-3xl); font-weight: 700;
    color: var(--color-primary); letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.trust-label {
    font-size: var(--font-size-sm); color: var(--color-text-secondary); font-weight: 500;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
    padding: 0.75rem 1.5rem; font-family: var(--font-family);
    font-size: var(--font-size-base); font-weight: 500; text-decoration: none;
    border-radius: var(--radius-full); border: none; cursor: pointer;
    transition: all var(--transition-base); min-height: 2.75rem; letter-spacing: -0.01em;
}
.btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

.btn-primary {
    background-color: var(--color-primary); color: white;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.3);
}
.btn-primary:hover { background-color: var(--color-primary-hover); box-shadow: 0 4px 16px rgba(0, 113, 227, 0.4); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    background: transparent; color: var(--color-text); border: 1px solid var(--color-border);
}
.btn-ghost:hover { background-color: rgba(0, 0, 0, 0.04); border-color: var(--color-text-tertiary); }

.btn-sm { padding: 0.625rem 1.25rem; font-size: var(--font-size-sm); min-height: 2.5rem; }
.btn-full { width: 100%; }

/* ===== Section Base ===== */
.section { padding: var(--space-7xl) var(--space-2xl); }

.section-header { text-align: center; max-width: 600px; margin-inline: auto; margin-bottom: var(--space-5xl); }

.eyebrow {
    font-size: var(--font-size-sm); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--color-primary); margin-bottom: var(--space-md);
}

.section-title {
    font-size: var(--font-size-3xl); font-weight: 700;
    letter-spacing: -0.03em; line-height: 1.1;
    color: var(--color-text); margin-bottom: var(--space-lg);
}

.section-subtitle { font-size: var(--font-size-lg); color: var(--color-text-secondary); line-height: 1.5; }

/* ===== Shop / Product Grid ===== */
.section-shop { background-color: var(--color-bg); }

.product-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--space-3xl);
    max-width: 600px;
    margin: 0 auto;
}

.product-card {
    border-radius: var(--radius-xl); overflow: hidden;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-slow);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(0, 113, 227, 0.2); }

.product-image-wrapper {
    position: relative; aspect-ratio: 16 / 10; overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.product-image {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--transition-slow);
}
.product-card:hover .product-image { transform: scale(1.05); }

.product-badge {
    position: absolute; top: var(--space-md); left: var(--space-md);
    background: var(--color-primary); color: white; font-size: var(--font-size-xs);
    font-weight: 600; padding: 0.25rem 0.75rem; border-radius: var(--radius-full);
    text-transform: uppercase; letter-spacing: 0.05em;
}

.product-info { padding: var(--space-xl) var(--space-lg); }

.product-name { font-size: var(--font-size-xl); font-weight: 600; margin-bottom: var(--space-xs); letter-spacing: -0.02em; }

.product-tag { font-size: var(--font-size-sm); color: var(--color-text-tertiary); margin-bottom: var(--space-md); }

.product-prices { margin-bottom: var(--space-md); }

.price-current { font-size: var(--font-size-xl); font-weight: 700; color: var(--color-text); }
.price-original { font-size: var(--font-size-sm); color: var(--color-text-tertiary); text-decoration: line-through; margin-left: var(--space-sm); }

.product-features { list-style: none; margin-bottom: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); }
.product-features li { display: flex; align-items: center; gap: var(--space-sm); font-size: var(--font-size-sm); color: var(--color-text-secondary); }
.check { color: var(--color-primary); font-weight: 700; }

.product-select {
    width: 100%; padding: 0.625rem 1rem; font-family: var(--font-family);
    font-size: var(--font-size-base); border: 1px solid var(--color-border);
    border-radius: var(--radius-md); background: var(--color-bg); color: var(--color-text);
    -webkit-appearance: none; appearance: none;
    cursor: pointer; margin-bottom: var(--space-md);
}
.product-select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15); }

.product-actions { display: flex; gap: var(--space-sm); align-items: stretch; }

.product-link {
    display: inline-flex; align-items: center; gap: var(--space-xs);
    color: var(--color-primary); text-decoration: none;
    font-size: var(--font-size-base); font-weight: 500; margin-top: var(--space-sm);
    transition: gap var(--transition-fast);
}
.product-link:hover { gap: var(--space-sm); }

/* ===== Features ===== */
.section-features { background-color: var(--color-bg-dark); color: white; }
.section-features .section-title { color: white; }
.section-features .section-subtitle { color: #98989d; }
.section-features .eyebrow { color: #5ac8fa; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--space-3xl); }

.feature-block { padding: var(--space-xl); border-radius: var(--radius-xl); transition: background var(--transition-base); }
.feature-block:hover { background: rgba(255, 255, 255, 0.05); }

.feature-number { font-size: var(--font-size-3xl); font-weight: 700; color: var(--color-primary); opacity: 0.5; margin-bottom: var(--space-sm); font-variant-numeric: tabular-nums; }
.feature-title { font-size: var(--font-size-xl); font-weight: 600; margin-bottom: var(--space-sm); letter-spacing: -0.02em; color: white; }
.feature-text { font-size: var(--font-size-base); color: #98989d; line-height: 1.6; }

/* ===== How It Works ===== */
.section-how { background-color: var(--color-bg-secondary); }

.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3xl); margin-top: var(--space-3xl); }

.how-step { text-align: center; padding: var(--space-xl); }

.how-step-num {
    font-size: var(--font-size-3xl); font-weight: 700; color: var(--color-primary);
    opacity: 0.3; margin-bottom: var(--space-sm); font-variant-numeric: tabular-nums;
}

.how-step-title { font-size: var(--font-size-lg); font-weight: 600; margin-bottom: var(--space-sm); letter-spacing: -0.02em; }
.how-step-desc { font-size: var(--font-size-sm); color: var(--color-text-secondary); line-height: 1.6; }

/* ===== Testimonials ===== */
.section-testimonials { background-color: var(--color-bg); }

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-3xl); }

.testimonial-card {
    padding: var(--space-xl); background: var(--color-bg-secondary);
    border-radius: var(--radius-xl); border: 1px solid var(--color-border-light);
}

.testimonial-quote {
    font-size: var(--font-size-base); color: var(--color-text-secondary);
    line-height: 1.7; margin-bottom: var(--space-lg); font-style: italic;
}

.testimonial-author strong { display: block; color: var(--color-text); font-size: var(--font-size-sm); }
.testimonial-author span { font-size: var(--font-size-sm); color: var(--color-text-tertiary); }

/* ===== Size Comparison ===== */
.section-comparison { background-color: var(--color-bg-secondary); }

.comparison-wrapper { max-width: 800px; margin-inline: auto; border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.comparison-image { width: 100%; height: auto; display: block; }

/* ===== Contact ===== */
.section-contact { background-color: var(--color-bg); }

.contact-layout { max-width: 640px; margin-inline: auto; }
.contact-desc { font-size: var(--font-size-lg); color: var(--color-text-secondary); line-height: 1.5; margin-bottom: var(--space-3xl); }

.contact-info-list { list-style: none; margin-bottom: var(--space-3xl); display: flex; flex-direction: column; gap: var(--space-sm); }
.contact-info-list li { font-size: var(--font-size-base); color: var(--color-text-secondary); }

.contact-form { display: grid; gap: var(--space-lg); }
.form-group { display: flex; flex-direction: column; gap: var(--space-sm); }
.form-group input, .form-group textarea {
    width: 100%; padding: 0.875rem 1rem; font-family: var(--font-family); font-size: var(--font-size-base);
    border: 1px solid var(--color-border); border-radius: var(--radius-md);
    background-color: var(--color-bg); color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast); -webkit-appearance: none; appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--color-text-tertiary); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== Footer ===== */
.footer { background-color: var(--color-bg-dark); color: #98989d; padding: var(--space-4xl) var(--space-2xl) var(--space-3xl); }

.footer-grid { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-3xl); flex-wrap: wrap; gap: var(--space-2xl); }

.footer-logo { color: white; display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; font-weight: 600; transition: opacity var(--transition-fast); }
.footer-logo:hover { opacity: 0.8; }

.footer-tagline { font-size: var(--font-size-sm); margin-top: var(--space-sm); color: #98989d; }

.footer-nav-list { list-style: none; display: flex; gap: var(--space-xl); margin-bottom: var(--space-md); }
.footer-link { color: var(--color-text-tertiary); text-decoration: none; font-size: var(--font-size-sm); transition: color var(--transition-fast); }
.footer-link:hover { color: white; }

.footer-bottom { padding-top: var(--space-xl); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.copyright { font-size: var(--font-size-sm); }

/* ===== Cart Sidebar ===== */
.cart-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4);
    z-index: 2000; opacity: 0; visibility: hidden;
    transition: all var(--transition-base);
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-sidebar {
    position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 90vw;
    background: white; z-index: 2001; display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform var(--transition-base);
    box-shadow: var(--shadow-xl);
}
.cart-sidebar.active { transform: translateX(0); }

.cart-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-xl); border-bottom: 1px solid var(--color-border); }
.cart-title { font-size: var(--font-size-xl); font-weight: 700; }
.cart-close { background: none; border: none; font-size: 1.25rem; cursor: pointer; padding: var(--space-sm); border-radius: var(--radius-sm); transition: background var(--transition-fast); }
.cart-close:hover { background: var(--color-bg-secondary); }

.cart-items { flex: 1; overflow-y: auto; padding: var(--space-lg) var(--space-xl); }
.cart-empty { color: var(--color-text-tertiary); text-align: center; padding: var(--space-4xl) var(--space-xl); font-size: var(--font-size-base); }

.cart-item { display: flex; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border-light); }
.cart-item-name { font-weight: 500; font-size: var(--font-size-base); }
.cart-item-price { color: var(--color-text-secondary); font-size: var(--font-size-sm); }
.cart-item-remove { margin-left: auto; background: none; border: none; color: var(--color-text-tertiary); cursor: pointer; font-size: 0.875rem; }

.cart-footer { padding: var(--space-xl); border-top: 1px solid var(--color-border); background: var(--color-bg-secondary); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: var(--space-lg); font-size: var(--font-size-lg); font-weight: 600; }
.cart-total-amount { color: var(--color-primary); }

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed; bottom: var(--space-xl); right: var(--space-xl);
    width: 2.75rem; height: 2.75rem; background-color: var(--color-primary);
    color: white; border: none; border-radius: var(--radius-full); cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
    box-shadow: var(--shadow-md); transition: all var(--transition-base); z-index: 100;
}
.back-to-top:hover { background-color: var(--color-primary-hover); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.back-to-top:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; }
.back-to-top[hidden] { display: none; }

/* ===== 3D Showcase Section ===== */
.section-3d {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-secondary) 50%, var(--color-bg) 100%);
    padding: 0;
    overflow: hidden;
}

.showcase-3d-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5xl);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.showcase-3d-track {
    perspective: 1000px;
    perspective-origin: 50% 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.object-3d {
    width: 280px;
    height: 280px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-15deg) rotateY(25deg);
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.face {
    position: absolute;
    width: 280px;
    height: 280px;
    backface-visibility: hidden;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-light);
}

.face-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.face-front { transform: translateZ(140px); }
.face-back { transform: rotateY(180deg) translateZ(140px); }
.face-left { transform: rotateY(-90deg) translateZ(140px); }
.face-right { transform: rotateY(90deg) translateZ(140px); }
.face-top { transform: rotateX(90deg) translateZ(140px); }
.face-bottom { transform: rotateX(-90deg) translateZ(140px); }

.face-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    background: linear-gradient(135deg, #0a1628, #1a2a4a);
    color: #5ac8fa;
    letter-spacing: 0.05em;
}

/* Orbit dots around the 3D object */
.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: orbitRotate 6s linear infinite;
}

.orbit-dot-1 {
    top: 50%;
    left: 50%;
    margin-top: -180px;
    animation-delay: 0s;
}

.orbit-dot-2 {
    top: 50%;
    left: 50%;
    margin-top: -180px;
    margin-left: 180px;
    animation-delay: 2s;
    animation-direction: reverse;
}

.orbit-dot-3 {
    top: 50%;
    left: 50%;
    margin-top: -180px;
    margin-left: -180px;
    animation-delay: 4s;
}

@keyframes orbitRotate {
    0% { transform: rotate(0deg) translateX(180px) rotate(0deg); opacity: 0.3; }
    50% { transform: rotate(180deg) translateX(180px) rotate(-180deg); opacity: 0.8; }
    100% { transform: rotate(360deg) translateX(180px) rotate(-360deg); opacity: 0.3; }
}

.showcase-3d-info {
    max-width: 400px;
}

.showcase-3d-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.showcase-3d-desc {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.showcase-3d-stats {
    display: flex;
    gap: var(--space-xl);
}

.stat {
    text-align: center;
}

.stat-val {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
}

/* Let only the 3D showcase break out of the normal page container */
.section-3d > .container {
    max-width: none;
    padding-inline: 0;
}

.section-3d .section-header,
.section-3d .explode-info {
    padding-inline: var(--space-2xl);
}

/* ===== Explode View ===== */
.explode-wrapper {
    perspective: 1200px;
    perspective-origin: 50% 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 48%, rgba(90, 200, 250, 0.16), rgba(255, 255, 255, 0.04) 34%, transparent 62%);
}

.explode-stage {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 600px;
    transform-style: preserve-3d;
}

.explode-face {
    position: absolute;
    width: 300px;
    height: 300px;
    backface-visibility: visible;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border-light);
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.3s ease;
    will-change: transform, opacity;
}

.face-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Base positions — assembled cube */
.face-front { transform: translateZ(150px); }
.face-back { transform: rotateY(180deg) translateZ(150px); }
.face-left { transform: rotateY(-90deg) translateZ(150px); }
.face-right { transform: rotateY(90deg) translateZ(150px); }
.face-top { transform: rotateX(90deg) translateZ(150px); }
.face-bottom { transform: rotateX(-90deg) translateZ(150px); }

/* Exploded positions — set by JS via CSS custom properties */
.explode-face.exploded {
    opacity: 0.9;
}

.face-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    background: linear-gradient(135deg, #0a1628, #1a2a4a);
    color: #5ac8fa;
    letter-spacing: 0.05em;
}

/* Center piece */
.explode-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #0a1628, #1a2a4a);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5ac8fa;
    font-size: var(--font-size-xl);
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-lg);
    opacity: 0.7;
}

/* Orbit particles */
.orbit-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    animation: orbitPulse 4s ease-in-out infinite;
}
.orbit-p1 { top: 30%; left: 50%; animation-delay: 0s; }
.orbit-p2 { top: 60%; left: 30%; animation-delay: 1.3s; }
.orbit-p3 { top: 50%; left: 70%; animation-delay: 2.6s; }

@keyframes orbitPulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.5); }
}

/* Explode info panel */
.explode-info {
    text-align: center;
    max-width: 400px;
    margin: var(--space-3xl) auto 0;
}

.explode-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.explode-desc {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.explode-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.explode-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.scroll-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    animation: scrollHintPulse 2s ease-in-out infinite;
}

.scroll-arrow-sm {
    font-size: 1.25rem;
    color: var(--color-primary);
    animation: scrollArrowBounce 2s ease-in-out infinite;
}

@keyframes scrollHintPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes scrollArrowBounce {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(6px); opacity: 1; }
}

/* ===== Scroll Animations ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== 3D Product Effects ===== */
.product-showcase-3d {
    perspective: 1200px;
    perspective-origin: 50% 50%;
}

.product-card-3d {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Explode effect keyframes */
@keyframes explode {
    0% {
        transform: translate3d(0, 0, 0) rotateY(0deg) rotateX(0deg) scale(1);
        opacity: 1;
    }
    30% {
        transform: translate3d(0, 0, 80px) rotateY(15deg) rotateX(5deg) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translate3d(0, 0, 0) rotateY(0deg) rotateX(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes explodeOut {
    0% {
        transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate3d(var(--explode-x, 100px), var(--explode-y, -50px), 150px) rotateY(30deg) scale(0.8);
        opacity: 0;
    }
}

.product-card.exploding .product-image-wrapper {
    animation: explodeOut 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.product-card.exploding .product-info {
    animation: explodeOut 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    animation-delay: 0.1s;
}

.product-card.exploded {
    animation: explode 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

/* Parallax layers */
.parallax-layer {
    transform: translateZ(var(--parallax-depth, 0px));
    will-change: transform;
}

/* Mouse-follow tilt on product cards */
.product-tilt {
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
}

.product-tilt-inner {
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(var(--tilt-z, 0px));
    transition: transform 0.1s ease-out;
}

/* Hero parallax */
.hero-parallax {
    transform: translateZ(var(--parallax-offset, 0px)) scale(calc(1 + var(--parallax-scale, 0)));
    will-change: transform;
}

/* Scroll-driven product rotation */
.product-rotate {
    transform: rotateY(var(--scroll-rotate, 0deg)) translateZ(var(--scroll-z, 0px));
    transition: transform 0.1s ease-out;
}

/* Reveal with 3D flip */
@keyframes flipIn {
    from {
        opacity: 0;
        transform: perspective(800px) rotateX(-15deg) translateY(20px);
    }
    to {
        opacity: 1;
        transform: perspective(800px) rotateX(0deg) translateY(0);
    }
}

.product-card.flip-in {
    animation: flipIn 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

/* Explode grid effect for product grid */
.product-grid-explode .product-card {
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.product-grid-explode .product-card.expanded {
    transform: scale(1.02);
    z-index: 10;
}

.product-grid-explode .product-card:not(.expanded) {
    opacity: 0.6;
}

/* Parallax text effect */
.parallax-text {
    transform: translateZ(var(--parallax-depth, 0px));
    will-change: transform;
}

/* 3D image container */
.product-image-3d-container {
    perspective: 800px;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.product-image-3d {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: rotateX(var(--img-tilt-x, 0deg)) rotateY(var(--img-tilt-y, 0deg));
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Floating particle dots for hero */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(90, 200, 250, 0.3);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
}

.hero-particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.hero-particle:nth-child(2) { top: 40%; right: 15%; animation-delay: 2s; }
.hero-particle:nth-child(3) { top: 60%; left: 20%; animation-delay: 4s; }
.hero-particle:nth-child(4) { top: 30%; right: 30%; animation-delay: 1s; }
.hero-particle:nth-child(5) { top: 70%; left: 40%; animation-delay: 3s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateZ(0); opacity: 0.3; }
    50% { transform: translateY(-30px) translateZ(20px); opacity: 0.8; }
}

/* Explode overlay */
.explode-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 113, 227, 0.05);
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.explode-overlay.active {
    opacity: 1;
}

/* Reduced motion for 3D */
@media (prefers-reduced-motion: reduce) {
    .product-card-3d, .product-tilt, .product-image-3d {
        transform: none !important;
        transition: none !important;
    }
    .hero-particle { animation: none !important; }
    .product-card.exploding, .product-card.exploded {
        animation: none !important;
    }
}

/* Three.js Exploded View Canvas */
#exvCanvas {
    touch-action: none;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    display: block;
    background: transparent;
}

.exv-label {
    position: absolute;
    top: 1rem; right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #5ac8fa;
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
    z-index: 2;
    pointer-events: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.exv-intro {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-tertiary);
    font-size: var(--font-size-sm);
    z-index: 2;
    pointer-events: none;
    text-align: center;
}

/* Hide CSS-based faces when Three.js is loaded */
.explode-face { display: none; }
.explode-center { display: none; }
.orbit-particle { display: none; }

/* Mobile 3D disabled */
@media (max-width: 768px) {
    .product-card-3d,
    .product-tilt,
    .product-image-3d,
    .hero-parallax,
    .parallax-layer,
    .product-rotate {
        transform: none !important;
        perspective: none !important;
    }
}

/* ===== Mobile Menu ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        flex-direction: column; justify-content: center; align-items: center;
        gap: var(--space-2xl); background: rgba(28, 28, 30, 0.92);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        opacity: 0; visibility: hidden; transition: all var(--transition-base);
    }
    .nav-links.active { opacity: 1; visibility: visible; }
    .nav-links a { color: white; font-size: var(--font-size-xl); }
    .nav-toggle { display: flex; }

    .hero { padding: 7rem var(--space-lg) 3rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: var(--font-size-lg); }

    .section { padding: var(--space-5xl) var(--space-lg); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }

    .product-actions { flex-direction: column; }
    .product-select { margin-bottom: var(--space-sm); }

    .how-grid { grid-template-columns: 1fr; }
    .contact-layout { padding: 0 var(--space-sm); }

    .footer-grid { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; }
    .section-title { font-size: var(--font-size-2xl); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-nav-list { flex-direction: column; gap: var(--space-sm); }
    .hero { padding: 6rem var(--space-md) 3rem; }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important; scroll-behavior: auto !important;
    }
}

/* ===== Dark Mode ===== */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-bg: #000000; --color-bg-secondary: #1c1c1e;
        --color-text: #f5f5f7; --color-text-secondary: #98989d; --color-text-tertiary: #6e6e73;
        --color-border: #38383a; --color-border-light: #48484a;
    }
    .nav.scrolled { background: rgba(0, 0, 0, 0.72); border-bottom-color: rgba(255, 255, 255, 0.08); }
    .nav-links a { color: rgba(255, 255, 255, 0.7); }
    .nav-links a:hover { color: #fff; }
    .hero { background: linear-gradient(180deg, #0a1628 0%, #000000 100%); }
    .hero-bg-image { opacity: 0.3; }
    .hero-subtitle { color: rgba(255, 255, 255, 0.6); }
    .section-features { background-color: #000000; }
    .section-comparison { background-color: var(--color-bg-secondary); }
    .section-testimonials { background-color: #000000; }
    .form-group input, .form-group textarea { background-color: var(--color-bg-secondary); border-color: var(--color-border); color: #f5f5f7; }
}
@media (prefers-color-scheme: dark) { .footer { background-color: #000000; } }

/* ===== Scroll-triggered Stagger ===== */
.stagger-1 { transition-delay: 0s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.2s; }
.stagger-4 { transition-delay: 0.3s; }
.stagger-5 { transition-delay: 0.15s; }
.stagger-6 { transition-delay: 0.25s; }

/* ===== Configure Kit Page ===== */
:root {
    --config-mask: #0071e3;
    --config-accent: #5ac8fa;
}

.configure-page {
    background: var(--color-bg);
    min-height: 100vh;
}

.configure-hero {
    padding: 9rem var(--space-2xl) var(--space-6xl);
    background: linear-gradient(180deg, #0a1628 0%, #111827 60%, var(--color-bg) 100%);
    color: white;
    overflow: hidden;
}

.configure-hero-grid,
.configure-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: var(--space-5xl);
    align-items: center;
}

.configure-copy { max-width: 620px; }
.configure-title {
    font-size: var(--font-size-hero);
    line-height: 1.03;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-xl);
}
.configure-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
}
.configure-ctas { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.configure-hero .btn-ghost { color: white; border-color: rgba(255, 255, 255, 0.3); }
.configure-hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.configure-preview-card,
.configure-panel,
.software-card {
    border: 1px solid var(--color-border-light);
    background: rgba(255, 255, 255, 0.82);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.configure-preview-card {
    padding: var(--space-3xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.photo-config-preview {
    position: relative;
    overflow: hidden;
    width: min(100%, 720px);
    aspect-ratio: 4 / 3;
    margin-inline: auto;
    border-radius: var(--radius-2xl);
    background: #0f172a;
    box-shadow: 0 28px 70px rgba(15,23,42,0.24);
}
.photo-config-source {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
}
.photo-config-layer {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    user-select: none;
}
.photo-config-note {
    position: absolute;
    left: var(--space-md);
    bottom: var(--space-md);
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-full);
    background: rgba(15,23,42,0.58);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 700;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.preview-note {
    margin-top: var(--space-xl);
    color: var(--color-text-secondary);
    text-align: center;
    font-size: var(--font-size-sm);
}

.configure-section { background: var(--color-bg-secondary); }
.configure-grid { align-items: stretch; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); }
.configure-panel { padding: var(--space-3xl); }
.config-group { display: grid; gap: var(--space-sm); margin-top: var(--space-xl); }
.config-group label { font-weight: 600; letter-spacing: -0.01em; }
.mask-parts-config {
    display: grid;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}
.part-config {
    display: grid;
    gap: var(--space-md);
    padding: var(--space-lg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,0.7);
}
.part-config > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-md);
    flex-wrap: wrap;
}
.part-label {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: var(--space-sm);
}
.palette-option {
    display: grid;
    grid-template-columns: 2.1rem 1fr;
    gap: 0.7rem;
    align-items: center;
    min-height: 4.25rem;
    padding: 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.palette-option:hover,
.palette-option.is-selected {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary), transparent 82%);
    transform: translateY(-1px);
}
.palette-swatch {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--chip);
    border: 1px solid rgba(0,0,0,0.16);
    box-shadow: inset 0 -8px 14px rgba(0,0,0,0.18), inset 0 7px 10px rgba(255,255,255,0.22);
}
.palette-option-matte .palette-swatch {
    box-shadow: inset 0 -5px 9px rgba(0,0,0,0.16);
}
.palette-option strong,
.palette-option small,
.palette-option em { display: block; }
.palette-option small { color: var(--color-text-secondary); font-weight: 700; }
.palette-option em { color: var(--color-text-tertiary); font-size: 0.72rem; font-style: normal; line-height: 1.25; }

.config-group input[type="text"],
.config-group input[type="file"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    font: inherit;
}
.config-group input[type="color"] {
    width: 5rem;
    height: 3rem;
    padding: 0.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    cursor: pointer;
}
.color-presets { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.color-chip {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-full);
    border: 2px solid rgba(0,0,0,0.12);
    background: var(--chip);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.config-hint { color: var(--color-text-tertiary); font-size: var(--font-size-sm); }

.software-section { background: var(--color-bg); }
.software-card { padding: var(--space-4xl); text-align: center; }
.software-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin: var(--space-3xl) 0;
    text-align: left;
}
.software-item {
    padding: var(--space-xl);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
}
.software-item strong { display: block; margin-bottom: var(--space-sm); }
.software-item span { color: var(--color-text-secondary); font-size: var(--font-size-sm); }

@media (max-width: 900px) {
    .configure-hero-grid,
    .configure-grid,
    .software-grid { grid-template-columns: 1fr; }
    .configure-hero { padding-inline: var(--space-lg); }
    .configure-title { font-size: var(--font-size-3xl); }
}

/* Brand logo */
.brand-logo-mark {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 115, 0, 0.15);
}

/* Garmin Connect IQ badge */
.connect-iq-badge {
    display: inline-flex;
    margin-top: var(--space-xl);
    border-radius: var(--radius-md);
    transition: transform var(--transition-base), opacity var(--transition-fast);
}
.connect-iq-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.connect-iq-badge img {
    width: min(250px, 72vw);
    height: auto;
    display: block;
}
.connect-iq-caption {
    margin-top: var(--space-sm);
    color: rgba(255, 255, 255, 0.62);
    font-size: var(--font-size-sm);
}
.connect-iq-inline {
    display: inline-flex;
    margin-top: var(--space-md);
    color: #5ac8fa;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
}
.connect-iq-inline:hover { text-decoration: underline; }

/* GitHub badge */
.hero-badges {
    display: inline-flex;
    gap: var(--space-md);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}
.hero-badges .connect-iq-badge { margin-top: 0; }
.github-badge {
    width: min(250px, 72vw);
    min-height: 3.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.68rem 1rem;
    border-radius: var(--radius-md);
    background: #24292f;
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    transition: transform var(--transition-base), opacity var(--transition-fast);
}
.github-badge:hover { transform: translateY(-2px); opacity: 0.92; }
.github-badge svg { width: 1.65rem; height: 1.65rem; fill: currentColor; flex: 0 0 auto; }
.github-badge span { display: grid; line-height: 1.05; text-align: left; }
.github-badge strong { font-size: var(--font-size-sm); }
.github-badge small { color: rgba(255,255,255,0.7); font-size: 0.72rem; }
.software-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}
.software-card .github-issue-link { background: transparent; }

/* Checkout Result Pages */
.checkout-result-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 8rem var(--space-2xl) 4rem;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-secondary) 100%);
}
.checkout-result-card {
    width: min(680px, 100%);
    padding: var(--space-4xl);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-2xl);
    background: var(--color-bg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.checkout-result-card h1 {
    margin: 0 0 var(--space-lg);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}
.checkout-result-card p:not(.eyebrow) {
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
    line-height: 1.6;
    margin: 0 auto var(--space-2xl);
    max-width: 34rem;
}
.checkout-result-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}
.cart-item-variant {
    color: var(--color-text-tertiary);
    font-size: var(--font-size-sm);
    margin-top: 0.15rem;
}
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
    box-shadow: none;
}
