@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
    --primary: #5c6cff;
    --primary-dark: #3a45c4;
    --text: #1a1b1f;
    --muted: #6c6f76;
    --bg: #f6f7fb;
    --card: #ffffff;
    --border: rgba(26, 27, 31, 0.08);
    --radius: 18px;
    --shadow: 0 18px 48px rgba(25, 32, 56, 0.12);
    --label-text: rgba(26, 27, 31, 0.85);
    --label-font: 'Roboto Condensed', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #eef1ff 0%, #ffffff 40%);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 90vw);
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(26, 27, 31, 0.05);
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
}

.logo img {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    object-fit: contain;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn.primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(92, 108, 255, 0.25);
}

.btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn.ghost {
    background: rgba(92, 108, 255, 0.08);
    color: var(--primary-dark);
}

.btn.outline {
    border: 1px solid rgba(92, 108, 255, 0.4);
    color: var(--primary-dark);
    background: transparent;
}


.hero {
    padding: 60px 0 40px;
}

.hero-grid {
    display: grid;
    gap: 48px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-copy h1 span {
    color: var(--primary);
}

.hero-copy p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.hero-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 16px;
    color: var(--text);
}

.hero-list li::before {
    content: "✓";
    color: var(--primary);
    margin-right: 8px;
}

.hero-card {
    background: var(--card);
    border-radius: 26px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(92, 108, 255, 0.12), rgba(92, 108, 255, 0.4));
    color: var(--primary-dark);
}

.btn.secondary {
    background: rgba(92, 108, 255, 0.1);
    color: var(--primary-dark);
}

.btn.secondary:hover {
    background: rgba(92, 108, 255, 0.16);
    transform: translateY(-1px);
}

.demo-section {
    padding: 60px 0 48px;
}

.scale-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding: 20px 28px;
    background: var(--card);
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(25, 32, 56, 0.08);
}

.scale-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text);
    font-size: 16px;
}

.scale-label i {
    color: var(--primary);
    font-size: 18px;
}

.scale-buttons {
    display: flex;
    gap: 12px;
    background: rgba(92, 108, 255, 0.05);
    padding: 6px;
    border-radius: 12px;
}

.scale-toggle {
    position: relative;
    display: flex;
    background: rgba(92, 108, 255, 0.05);
    padding: 6px;
    border-radius: 12px;
    gap: 6px;
}

.scale-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.scale-option {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    border-radius: 8px;
}

.scale-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    transition: color 0.3s ease;
}

.scale-size {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.scale-radio:checked + .scale-option .scale-name {
    color: #ffffff;
}

.scale-radio:checked + .scale-option .scale-size {
    color: rgba(255, 255, 255, 0.9);
}

.scale-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(50% - 9px);
    height: calc(100% - 12px);
    background: var(--primary);
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(92, 108, 255, 0.3);
    z-index: 1;
}

#scale-large:checked ~ .scale-slider {
    transform: translateX(calc(100% + 6px));
}

.scale-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scale-dimensions {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    background: rgba(26, 27, 31, 0.04);
    padding: 6px 14px;
    border-radius: 8px;
}

.demo-grid {
    display: flex;
    flex-direction: row;
    gap: 80px;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 40px;
}

.demo-card {
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.demo-card:first-child {
    justify-content: flex-end;
}

.demo-card:last-child {
    justify-content: flex-start;
}

.label-preview-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(92, 108, 255, 0.3);
    white-space: nowrap;
    text-decoration: none;
}

.label-preview-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(92, 108, 255, 0.4);
    color: #ffffff;
}

.label-preview-btn i {
    font-size: 16px;
}

.label-container {
    width: 7cm;
    height: 4cm;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.demo-card:first-child .label-container {
    transform-origin: top right;
}

.demo-card:last-child .label-container {
    transform-origin: top left;
}

.demo-info {
    width: 7cm;
    height: 4cm;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0.1cm;
    background: #ffffff;
    border: 2px solid var(--label-text);
    border-radius: 8px;
    padding: 0.2cm;
    box-shadow: 0 14px 26px rgba(25, 32, 56, 0.16);
    position: relative;
    z-index: 1;
}

.label-row {
    display: flex;
    align-items: center;
    gap: 0.16cm;
    min-width: 0;
}

.label-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.12cm;
    font-size: 2.8mm;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--label-text);
    font-weight: 600;
}

.label-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.brand-favicon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.label-sku {
    flex: 0 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.label-row-middle {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.16cm;
}

.label-product {
    display: flex;
    flex-direction: column;
    gap: 0.08cm;
    min-width: 0;
    flex: 1 1 auto;
}

.label-name {
    font-size: 5.5mm;
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
    word-break: break-word;
    font-family: var(--label-font);
    letter-spacing: -0.01em;
}

.label-qr {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.08cm;
    padding-left: 0.2cm;
    margin-left: 0.12cm;
}

.label-qr img {
    width: 1.7cm;
    height: auto;
    object-fit: contain;
}

.label-qr-text {
    font-size: 2.2mm;
    font-weight: 600;
    color: var(--label-text);
    text-align: center;
    line-height: 1;
    font-family: var(--label-font);
}

.label-row-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.12cm;
}

.label-barcode {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.06cm;
    flex: 0 0 auto;
}

.label-barcode img {
    width: 2.6cm;
    height: 0.55cm;
    object-fit: cover;
    object-position: bottom;
}

.label-code {
    font-size: 1.6mm;
    letter-spacing: 0.24em;
    color: #000000;
    text-align: center;
    width: 100%;
}

.label-price {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.06cm;
    color: var(--text);
    flex: 1 1 auto;
    justify-content: flex-end;
    font-family: var(--label-font);
}

.label-price-value {
    font-size: 6.5mm;
    font-weight: 800;
    line-height: 1;
}

.label-price-currency {
    font-size: 3.8mm;
    font-weight: 700;
    vertical-align: super;
    font-size: 3mm;
}

.label-unit {
    font-size: 3mm;
    font-weight: 500;
    color: var(--label-text);
    margin-left: 0.04cm;
}

.hero-card-header img {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #fff;
}

.hero-card-body {
    padding: 26px 24px 12px;
    flex-grow: 1;
}

.hero-card-body h3 {
    margin: 0 0 12px;
    font-size: 22px;
}

.hero-card-body .price {
    font-size: 28px;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-card-body .price span {
    font-size: 14px;
    color: var(--muted);
    margin-left: 6px;
}

.status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

.status-in {
    background: rgba(66, 189, 96, 0.12);
    color: #168a3a;
}

.hero-card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    display: grid;
    gap: 12px;
}

.hero-card-body ul li::before {
    content: "•";
    color: var(--primary);
    margin-right: 10px;
    font-weight: 700;
}

.hero-card-footer {
    padding: 18px 24px;
    border-top: 1px solid rgba(26, 27, 31, 0.06);
    color: var(--muted);
    font-size: 13px;
}

.section-header {
    text-align: center;
    max-width: 560px;
    margin-bottom: 44px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 38px);
    margin-bottom: 14px;
}

.section-header p {
    color: var(--muted);
    line-height: 1.6;
}


.how {
    padding: 60px 0 48px;
}

.steps {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.step {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    position: relative;
    box-shadow: 0 10px 28px rgba(25, 32, 56, 0.1);
}

.step-icon {
    position: absolute;
    top: -28px;
    left: 24px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.step h3 {
    margin-top: 42px;
    font-size: 18px;
}

.step p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.stats {
    padding: 48px 0;
    background: linear-gradient(135deg, rgba(92, 108, 255, 0.12), rgba(92, 108, 255, 0.36));
}

.stats-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    text-align: center;
}

.stats-grid h3 {
    font-size: 42px;
    margin: 0 0 8px;
    color: var(--primary-dark);
}

.stats-grid p {
    color: rgba(26, 27, 31, 0.7);
    margin: 0;
    font-size: 15px;
}

.cta {
    padding: 60px 0 72px;
}

.cta-box {
    background: var(--card);
    padding: clamp(28px, 5vw, 40px);
    border-radius: calc(var(--radius) + 10px);
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: center;
    box-shadow: var(--shadow);
}

.cta h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 34px);
}

.cta p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

.footer {
    background: linear-gradient(135deg, #6b7b8c, #8b9dad);
    color: #ffffff;
    padding: 16px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.footer-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.footer p {
    margin: 6px 0;
    font-size: 14px;
    opacity: 0.9;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero {
        padding: 72px 0 48px;
    }

    .hero-card {
        min-height: initial;
    }

    .scale-btn i {
        font-size: 18px;
    }

    .demo-grid {
        flex-direction: column;
        gap: 60px;
        padding: 48px 20px 120px;
        align-items: center;
    }

    .demo-card {
        justify-content: center;
    }

    .demo-card:first-child .label-container,
    .demo-card:last-child .label-container {
        transform-origin: top center;
    }

    .demo-info {
        width: 7cm;
        height: 4cm;
        grid-template-rows: auto 1fr auto;
        gap: 0.1cm;
    }

    .label-barcode img {
        width: 2.4cm;
        max-height: 1.3cm;
    }

    .label-row-header {
        flex-direction: row;
        gap: 0.08cm;
    }

    .label-row-bottom {
        flex-direction: row;
        align-items: flex-end;
        gap: 0.1cm;
    }

    .label-qr img {
        max-width: 1.8cm;
    }

    .cta-box {
        text-align: center;
    }

    .cta-actions {
        justify-content: center;
    }
}