:root {
    /* Color Palette - Apple/Stripe inspired */
    --bg: #ffffff;
    --fg: #1d1d1f;
    --accent: #0066ff;
    --accent-gradient: linear-gradient(135deg, #0066ff 0%, #6e42ef 100%);
    --surface: #f5f5f7;
    --border: rgba(0, 0, 0, 0.08);
    --muted: #86868b;
    --glass: rgba(255, 255, 255, 0.7);

    /* Marketplace Colors */
    --ozon: #005bff;
    --wb: #cb11ab;
    --yandex: #ffcc00;

    /* Typography - Fluid */
    --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing */
    --section-gap: clamp(100px, 12vw, 180px);
    --container-max: 1400px;
    --radius-pill: 999px;
    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-sm: 16px;

    /* Shadows */
    --shadow-soft: 0 4px 24px rgba(0,0,0,0.04);
    --shadow-premium: 0 20px 80px rgba(0,0,0,0.08);

    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.45;
    overflow-x: hidden;
}

/* --- Layout Components --- */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
}

section {
    padding: var(--section-gap) 0;
    position: relative;
}

/* --- Header & Navigation --- */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.header__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--fg);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.6;
    transition: var(--transition);
}

.nav-links a:hover { opacity: 1; }

/* --- Hero Section --- */

.hero {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 90% 10%, rgba(0,102,255,0.05) 0%, transparent 40%);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.hero__tag {
    display: inline-flex;
    padding: 6px 14px;
    background: var(--surface);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.hero__title {
    font-size: clamp(48px, 6vw, 100px);
    line-height: 0.95;
    letter-spacing: -0.05em;
    font-weight: 800;
    margin-top: 90px;
    margin-bottom: 30px;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__description {
    font-size: clamp(18px, 1.5vw, 24px);
    color: var(--muted);
    max-width: 600px;
    margin-bottom: 48px;
    line-height: 1.5;
}

.hero__actions {
    display: flex;
    gap: 20px;
}

/* --- Premium Buttons --- */

.btn {
    padding: 20px 40px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn--primary {
    background: var(--fg);
    color: var(--bg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.btn--primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.btn--secondary {
    background: var(--surface);
    color: var(--fg);
    border: 1px solid var(--border);
}

/* --- Hero Visual (The 3D Mockup) --- */

.hero__visual {
    position: relative;
    perspective: 1000px;
}

.isometric-scene {
    width: 100%;
    aspect-ratio: 1;
    background: var(--surface);
    border-radius: var(--radius-lg);
    position: relative;
    transform: rotateX(10deg) rotateY(-10deg);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

/* Floating Info Cards */
.floating-card {
    position: absolute;
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    z-index: 10;
    width: max-content;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- Bento Grid Features --- */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 240px;
    gap: 24px;
}

.bento-item {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.bento-item:hover {
    border-color: var(--accent);
}

.bento-item--large { grid-column: span 8; grid-row: span 2; }
.bento-item--medium { grid-column: span 4; grid-row: span 2; }
.bento-item--small { grid-column: span 4; grid-row: span 1; }

/* --- Marketplace Logo Ticker --- */

.ticker {
    display: flex;
    padding: 30px 0;
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.ticker__track {
    display: flex;
    align-items: center;
    gap: 100px;
    animation: scroll 40s linear infinite;
    white-space: nowrap;
}

.ticker__item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.02em;
}

.ticker__item img {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Stats --- */

.stat-group {
    display: flex;
    gap: 60px;
    margin-top: 80px;
}

.stat-item h4 {
    font-size: 40px;
    font-weight: 800;
}

.stat-item p {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

/* --- Animations --- */

[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Adaptations --- */

@media (max-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero__content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero__description {
        margin-inline: auto;
    }

    .stat-group {
        justify-content: center;
        flex-wrap: wrap;
        gap: 40px;
    }

    .calc-box {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--fg);
    transition: var(--transition);
}

@media (max-width: 768px) {
    :root {
        --section-gap: 80px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: var(--transition);
        z-index: 1000;
        display: flex !important; /* Override the display: none I added earlier */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 24px;
        opacity: 1;
    }

    .header__cta {
        display: none;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(4px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        transform: translateY(-4px) rotate(-45deg);
    }

    .hero__title {
        margin-top: 40px;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bento-item--large,
    .bento-item--medium,
    .bento-item--small {
        grid-column: span 1;
        grid-row: auto;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 24px;
    }

    .product-card__title {
        font-size: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .calc-box {
        padding: 32px 20px;
    }

    .final-cta {
        padding: 60px 20px;
    }

    .contact-form input {
        width: 100%;
    }

    footer .container > div {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    .showroom__wrapper {
        aspect-ratio: 4/5;
    }

    .hotspot__label {
        left: 50%;
        top: unset;
        bottom: 40px;
        transform: translateX(-50%);
        width: max-content;
        max-width: 200px;
        white-space: normal;
        text-align: center;
    }

    .hotspot:hover .hotspot__label {
        transform: translateX(-50%) translateY(-10px);
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }

    .hero__tag {
        font-size: 11px;
    }

    .stat-group {
        gap: 20px;
    }

    .stat-item h4 {
        font-size: 28px;
    }
}

/* --- Product Catalog --- */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
}

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-premium);
    transform: translateY(-8px);
    border-color: var(--accent);
}

.product-card__image {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--border);
    z-index: 2;
}

.product-card__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.product-card__description {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.product-card__price {
    font-size: 24px;
    font-weight: 800;
}

/* --- Process Timeline --- */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.process-item {
    position: relative;
    padding: 40px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.process-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-premium);
}

.process-item__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: white;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 24px;
}

.process-item h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

@media (max-width: 1024px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .process-grid { grid-template-columns: 1fr; }
}

/* --- Calculator --- */

.calc-box {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
}

.calc-form {
    display: grid;
    gap: 32px;
}

.calc-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.calc-input {
    width: 100%;
    padding: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.calc-input:focus {
    border-color: var(--accent);
}

.calc-result {
    background: var(--fg);
    color: white;
    padding: 40px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
}

/* --- Interactive Showroom --- */

.showroom {
    position: relative;
    background: #000;
    color: #fff;
    overflow: hidden;
}

.showroom__wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #111;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotspot {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--accent);
    border: 4px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.hotspot::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    animation: pulse-hotspot 2s infinite;
}

@keyframes pulse-hotspot {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.hotspot__label {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: black;
    padding: 12px 20px;
    border-radius: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hotspot:hover .hotspot__label {
    opacity: 1;
    transform: translateY(-50%) translateX(10px);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.showroom__wrapper:hover .showroom__overlay {
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
}

.play-btn {
    transition: var(--transition);
}

.showroom__wrapper:hover .play-btn {
    transform: scale(1.1);
    background: var(--accent);
}

.showroom__wrapper:hover .play-btn div {
    border-left-color: white !important;
}

/* --- FAQ --- */

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 32px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-item:hover {
    background: var(--surface);
}

.faq-item h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item__content {
    margin-top: 20px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-item__content {
    display: block;
}

/* --- Final CTA & Forms --- */

.final-cta {
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    padding: 100px 60px;
    text-align: center;
    color: white;
}

.contact-form {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
}

.contact-form input {
    padding: 20px 32px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    width: 300px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.contact-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus {
    background: white;
    color: var(--fg);
    outline: none;
}

.contact-form .btn--submit {
    background: white;
    color: var(--fg);
    border: none;
    cursor: pointer;
}

.contact-form .btn--submit:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- Calculator Enhancements --- */

.calc-option {
    flex: 1;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
}

.calc-option.active {
    background: var(--fg);
    color: white;
    border-color: var(--fg);
}

/* --- Case Study Enhancements --- */

.case-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
}

.case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.case-card:hover img {
    transform: scale(1.05);
}

.case-card__content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.review-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-card__text {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 24px;
    font-style: italic;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}

.review-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--surface);
    overflow: hidden;
    border: 1px solid var(--border);
}

.review-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Final Polish & Micro-interactions --- */

::selection {
    background: var(--accent);
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

/* Glassmorphism for inputs */
input, select {
    transition: var(--transition);
}

input:focus, select:focus {
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
    border-color: var(--accent) !important;
}

/* Hero 3D Lighting Effect */
.isometric-scene::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.2), transparent);
    pointer-events: none;
}
