* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --parfum-detail-bg: #f5f1eb;
    --parfum-detail-surface: #fffdf9;
    --parfum-detail-text: #27231f;
    --parfum-detail-muted: #6B6156;
    --parfum-detail-accent: #7d654c;
    --parfum-detail-mat: #ece3d4;
    --parfum-detail-line: rgba(39, 35, 31, 0.16);
    --parfum-detail-font: "Urbanist", Arial, sans-serif;
    --parfum-detail-display: "Italiana", Georgia, serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--parfum-detail-bg);
    color: var(--parfum-detail-text);
    font-family: var(--parfum-detail-font);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 2px solid var(--parfum-detail-accent);
    outline-offset: 4px;
}

.product-navbar,
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px clamp(22px, 6vw, 90px);
    border-bottom: 1px solid var(--parfum-detail-line);
}

.product-logo {
    font-family: "Space Grotesk", var(--parfum-detail-font);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
}

.back-link,
.product-footer p,
.product-footer > span {
    color: var(--parfum-detail-muted);
    font-size: 12px;
}

.product-hero {
    display: grid;
    grid-template-columns: 64px minmax(0, 0.85fr) minmax(0, 1.05fr);
    align-items: stretch;
    gap: 0 clamp(28px, 4.5vw, 70px);
    min-height: 720px;
    padding: 56px clamp(22px, 6vw, 90px);
}

.hero-rail {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--parfum-detail-line);
}

.hero-rail span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: var(--parfum-detail-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    white-space: nowrap;
}

.product-hero-content {
    max-width: 550px;
    align-self: center;
    justify-self: end;
    text-align: right;
}

.product-category,
.section-header > span,
.product-cta > div > span {
    color: var(--parfum-detail-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.product-hero h1 {
    margin: 18px 0;
    font-family: var(--parfum-detail-display);
    font-size: clamp(64px, 8vw, 104px);
    font-weight: 400;
    letter-spacing: -2px;
    line-height: 0.95;
}

.product-description {
    max-width: 500px;
    margin-left: auto;
    color: var(--parfum-detail-muted);
    font-size: 16px;
}

.product-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid var(--parfum-detail-accent);
    font-size: 12px;
    font-weight: 700;
    transition: transform 180ms ease, background-color 180ms ease;
}

.btn-primary {
    background: var(--parfum-detail-accent);
    color: #fff;
}

.btn-secondary {
    color: var(--parfum-detail-text);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: var(--parfum-detail-surface);
}

.product-preview {
    display: flex;
    flex-direction: column;
    align-self: center;
    height: min(62vw, 640px);
    min-height: 460px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--parfum-detail-line);
    background: var(--parfum-detail-surface);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

.preview-label,
.preview-caption {
    display: flex;
    flex-shrink: 0;
    height: 42px;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    color: var(--parfum-detail-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.preview-label {
    border-bottom: 1px solid var(--parfum-detail-line);
}

.preview-caption {
    border-top: 1px solid var(--parfum-detail-line);
}

.preview-viewport {
    position: relative;
    flex: 1;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, var(--parfum-detail-mat), #e2d7c2);
}

.preview-viewport iframe {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    border: 0;
    transform-origin: top left;
}

.product-features,
.product-process {
    padding: 90px clamp(22px, 8vw, 120px);
}

.product-features {
    background: var(--parfum-detail-surface);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-header h2,
.product-cta h2 {
    margin: 14px 0 0;
    font-family: var(--parfum-detail-display);
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 400;
    line-height: 1.08;
}

.section-header h2 span,
.product-cta h2 span {
    color: var(--parfum-detail-accent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    min-height: 210px;
    padding: 24px;
    border: 1px solid var(--parfum-detail-line);
}

.feature-number,
.process-item > span {
    color: var(--parfum-detail-accent);
    font-size: 11px;
    font-weight: 700;
}

.feature-card h3,
.process-item h3 {
    margin: 30px 0 10px;
    font-size: 17px;
}

.feature-card p,
.process-item p,
.detail-demo-note {
    color: var(--parfum-detail-muted);
    font-size: 13px;
}

.process-list {
    max-width: 800px;
    margin: 0 auto;
}

.process-item {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--parfum-detail-line);
}

.process-item h3 {
    margin: 0 0 6px;
}

.process-item p {
    margin: 0;
}

.detail-demo-note {
    max-width: 800px;
    margin: 26px auto 0;
}

.product-cta {
    padding: 85px 24px;
    background: var(--parfum-detail-surface);
    text-align: center;
}

.product-cta > div {
    max-width: 760px;
    margin: 0 auto;
}

.product-cta p {
    margin: 20px auto 26px;
    color: var(--parfum-detail-muted);
}

.product-footer {
    flex-wrap: wrap;
    border-top: 1px solid var(--parfum-detail-line);
    border-bottom: 0;
}

.product-footer p {
    margin: 0;
}

.product-footer > span {
    text-align: right;
}

@media (max-width: 900px) {
    .product-hero {
        grid-template-columns: 1fr;
        gap: 36px;
        min-height: 0;
        padding: 48px clamp(22px, 6vw, 90px) 64px;
    }

    .hero-rail {
        justify-content: flex-start;
        border-right: 0;
        border-bottom: 1px solid var(--parfum-detail-line);
        padding-bottom: 14px;
    }

    .hero-rail span {
        writing-mode: horizontal-tb;
        transform: none;
        letter-spacing: 2.5px;
    }

    .product-hero-content {
        max-width: 700px;
        justify-self: start;
        text-align: left;
    }

    .product-description {
        margin-left: 0;
    }

    .product-buttons {
        justify-content: flex-start;
    }

    .product-preview {
        height: 600px;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .product-navbar,
    .product-footer {
        align-items: flex-start;
        padding: 18px 20px;
    }

    .back-link {
        max-width: 150px;
        text-align: right;
    }

    .product-hero {
        min-height: 0;
        padding: 52px 20px 65px;
    }

    .product-hero h1 {
        font-size: 68px;
        letter-spacing: -1px;
    }

    .product-description {
        font-size: 14px;
    }

    .product-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .product-preview {
        height: 460px;
        min-height: 0;
    }

    .preview-label,
    .preview-caption {
        height: 36px;
        padding: 0 12px;
        letter-spacing: 1.5px;
    }

    .product-features,
    .product-process {
        padding: 68px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 0;
    }

    .feature-card h3 {
        margin-top: 20px;
    }

    .product-footer {
        flex-direction: column;
        gap: 10px;
    }

    .product-footer > span {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
