:root {
    --ink: #17151f;
    --muted: #6f6a78;
    --paper: #f8f5ee;
    --card: #fffdf8;
    --line: #ded9cd;
    --accent: #ffcb45;
    --accent-dark: #e2a900;
    --green: #166b4e;
    --red: #ad3434;
    --violet: #6b55e8;
    --shadow: 0 24px 70px rgba(23, 21, 31, 0.12);
    --radius: 24px;
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.5; }
body.cart-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.demo-ribbon {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 8px 20px;
    color: #fff;
    background: var(--ink);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .09em;
    text-align: center;
    text-transform: uppercase;
}

.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #66e5a7; box-shadow: 0 0 0 5px rgba(102, 229, 167, .12); }
.site-header { max-width: 1240px; margin: 0 auto; min-height: 84px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; font-size: 20px; letter-spacing: -.04em; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--ink); font-size: 20px; box-shadow: inset 0 -3px 0 rgba(23, 21, 31, .13); }
.nav-links { display: flex; align-items: center; gap: 32px; color: var(--muted); font-size: 14px; font-weight: 650; }
.nav-links a:hover, .text-link:hover { color: var(--violet); }
.cart-button { border: 0; border-radius: 999px; padding: 10px 12px 10px 20px; display: flex; align-items: center; gap: 13px; background: var(--ink); color: #fff; cursor: pointer; font-weight: 760; }
.cart-count { min-width: 29px; height: 29px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; color: var(--ink); background: var(--accent); }

.hero { max-width: 1240px; min-height: 625px; margin: 0 auto; padding: 54px 64px 70px; border-radius: 38px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 80px; position: relative; overflow: hidden; background: #ece8ff; }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -90px; top: -140px; background: rgba(255, 203, 69, .72); }
.hero::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; left: 42%; bottom: -130px; border: 42px solid rgba(107, 85, 232, .10); }
.hero-copy, .hero-card { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 12px; color: var(--violet); font-size: 11px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow.light { color: #cabfff; }
.hero h1 { margin: 0; font-size: clamp(48px, 6.1vw, 83px); line-height: .96; letter-spacing: -.072em; }
.hero h1 span { color: var(--violet); }
.hero-text { max-width: 580px; margin: 26px 0 0; color: #565162; font-size: 18px; line-height: 1.7; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 28px; }
.primary-button { min-height: 50px; padding: 0 25px; border: 0; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--ink); cursor: pointer; font-weight: 820; box-shadow: inset 0 -3px 0 rgba(23, 21, 31, .13); transition: transform .18s ease, background .18s ease; }
.primary-button:hover { transform: translateY(-2px); background: #ffd560; }
.primary-button:disabled { opacity: .6; cursor: wait; transform: none; }
.text-link { font-weight: 750; font-size: 14px; transition: color .18s ease; }
.hero-stats { margin: 48px 0 0; display: flex; gap: 42px; }
.hero-stats div { display: grid; }
.hero-stats dt { font-size: 20px; font-weight: 850; letter-spacing: -.04em; }
.hero-stats dd { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.hero-card { justify-self: center; width: min(100%, 360px); min-height: 420px; padding: 30px; border: 1px solid rgba(255,255,255,.5); border-radius: 34px; display: flex; flex-direction: column; color: #fff; background: linear-gradient(145deg, #262032 0%, #17151f 70%); box-shadow: 0 35px 75px rgba(48, 38, 83, .28); transform: rotate(3deg); }
.card-topline, .hero-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.signal-bars { color: var(--accent); letter-spacing: 2px; }
.hero-card-icon { width: 74px; height: 74px; margin-top: 54px; border-radius: 24px; display: grid; place-items: center; color: var(--ink); background: var(--accent); font-size: 32px; box-shadow: 0 14px 30px rgba(255, 203, 69, .20); }
.hero-card p { margin: 34px 0 2px; color: #b8b2c1; font-size: 13px; }
.hero-card strong { font-size: 49px; letter-spacing: -.06em; }
.hero-card strong small { font-size: 15px; letter-spacing: 0; color: #b8b2c1; }
.hero-card-footer { margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #b8b2c1; letter-spacing: .04em; }

.trust-strip { max-width: 1050px; margin: -28px auto 0; padding: 23px 34px; border: 1px solid var(--line); border-radius: 20px; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; z-index: 2; background: var(--card); box-shadow: 0 14px 34px rgba(23,21,31,.07); }
.trust-strip div { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; }
.trust-strip div + div { border-left: 1px solid var(--line); padding-left: 32px; }
.trust-strip span { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--violet); background: #efecff; font-weight: 900; }
.trust-strip strong { font-size: 13px; }
.trust-strip small { color: var(--muted); font-size: 11px; }

.catalogue-section { max-width: 1240px; margin: 0 auto; padding: 125px 0 130px; }
.section-heading { margin-bottom: 46px; display: grid; grid-template-columns: 1fr 420px; align-items: end; gap: 50px; }
.section-heading h2, .how-intro h2 { margin: 0; font-size: clamp(38px, 4.6vw, 62px); line-height: 1.02; letter-spacing: -.06em; }
.section-heading > p { margin: 0 0 6px; color: var(--muted); line-height: 1.7; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-visual { min-height: 230px; padding: 20px; display: grid; place-items: center; position: relative; overflow: hidden; background: #e8f2ee; }
.product-visual::before { content: ""; width: 160px; height: 160px; border-radius: 50%; position: absolute; background: rgba(255,255,255,.48); }
.visual-CAFE-350 { background: #f0dfcc; }
.visual-BADGE-500 { background: #dfe8ff; }
.visual-CARNET-650 { background: #ebe1f5; }
.visual-CABLE-850 { background: #dde9e4; }
.visual-SUPPORT-950 { background: #f1e2d6; }
.product-emoji { position: relative; z-index: 1; font-size: 82px; filter: drop-shadow(0 14px 13px rgba(23,21,31,.12)); transform: rotate(-4deg); }
.product-badge { position: absolute; top: 17px; left: 17px; z-index: 2; padding: 7px 10px; border-radius: 999px; color: #fff; background: var(--ink); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.product-content { padding: 25px; }
.product-kicker { margin: 0 0 8px; color: var(--violet) !important; font-size: 9px !important; font-weight: 850; letter-spacing: .12em; }
.product-content h3 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.product-content > p { min-height: 44px; margin: 8px 0 22px; color: var(--muted); font-size: 13px; }
.product-footer { padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.product-footer strong { font-size: 18px; }
.add-button { width: 42px; height: 42px; border: 0; border-radius: 13px; background: var(--ink); color: #fff; cursor: pointer; font-size: 24px; line-height: 1; transition: background .18s ease, transform .18s ease; }
.add-button:hover { background: var(--violet); transform: rotate(5deg); }

.how-section { padding: 100px max(28px, calc((100vw - 1240px) / 2)); display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; color: #fff; background: var(--ink); }
.how-intro > p:last-child { max-width: 500px; margin-top: 25px; color: #aca6b5; line-height: 1.75; }
.steps-list { margin: 0; padding: 0; list-style: none; }
.steps-list li { padding: 26px 0; border-top: 1px solid rgba(255,255,255,.13); display: grid; grid-template-columns: 60px 1fr; gap: 18px; }
.steps-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.13); }
.steps-list > li > span { color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .12em; }
.steps-list strong { font-size: 18px; }
.steps-list p { margin: 6px 0 0; color: #aca6b5; font-size: 14px; }
.site-footer { min-height: 150px; padding: 35px max(28px, calc((100vw - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 28px; color: var(--muted); background: #0f0e15; font-size: 12px; }
.footer-brand { color: #fff; }

.cart-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(15,14,21,.58); backdrop-filter: blur(4px); }
.cart-drawer { position: fixed; inset: 0 0 0 auto; z-index: 60; width: min(100%, 480px); padding: 30px; overflow-y: auto; background: var(--card); box-shadow: -25px 0 75px rgba(15,14,21,.25); transition: transform .25s ease; }
.cart-drawer[aria-hidden="true"] { transform: translateX(105%); pointer-events: none; }
.cart-header { display: flex; align-items: flex-start; justify-content: space-between; }
.cart-header h2 { margin: 0; font-size: 36px; letter-spacing: -.055em; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 27px; }
.cart-empty { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cart-empty > span { font-size: 54px; }
.cart-empty strong { margin-top: 18px; font-size: 19px; }
.cart-empty p { max-width: 290px; color: var(--muted); font-size: 13px; }
.cart-items { margin-top: 30px; display: grid; gap: 15px; }
.cart-item { padding: 14px; border: 1px solid var(--line); border-radius: 18px; display: grid; grid-template-columns: 72px 1fr; gap: 15px; background: #fff; }
.cart-item-visual { width: 72px; height: 72px; border-radius: 15px; display: grid; place-items: center; background: #eeeaf8; font-size: 35px; }
.cart-item-content { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 12px; }
.cart-item-content strong, .cart-item-content small { grid-column: 1; }
.cart-item-content small { color: var(--muted); }
.quantity-controls { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 8px; }
.quantity-controls button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); cursor: pointer; }
.remove-button { grid-column: 1; justify-self: start; padding: 0; border: 0; color: var(--red); background: transparent; cursor: pointer; font-size: 11px; }
.cart-summary { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.summary-line, .checkout-total, .status-total { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.summary-line strong, .checkout-total strong { font-size: 24px; letter-spacing: -.04em; }
.sandbox-hint { padding: 12px; border-radius: 12px; font-size: 11px; font-weight: 650; }
.sandbox-hint.success { color: var(--green); background: #e7f5ee; }
.sandbox-hint.failure { color: var(--red); background: #f9e8e5; }
.sandbox-hint.warning { color: #8a6500; background: #fff4ce; }
.full-width { width: 100%; }

.checkout-form { margin-top: 32px; }
.form-heading { margin-bottom: 26px; display: flex; align-items: flex-start; gap: 14px; }
.form-heading h3 { margin: 0; font-size: 27px; letter-spacing: -.045em; }
.back-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; }
.checkout-form label { margin-top: 17px; display: grid; gap: 7px; color: #494451; font-size: 12px; font-weight: 750; }
.checkout-form input, .checkout-form select { width: 100%; height: 51px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; outline: none; }
.checkout-form input:focus, .checkout-form select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(107,85,232,.12); }
.checkout-total { margin: 25px 0 17px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.form-error { padding: 12px; border-radius: 12px; color: var(--red); background: #f9e8e5; font-size: 12px; }
.privacy-note { display: block; margin-top: 13px; color: var(--muted); text-align: center; line-height: 1.5; }
.order-result { padding-top: 90px; text-align: center; }
.success-mark, .status-icon { width: 72px; height: 72px; margin: 0 auto 25px; border-radius: 24px; display: grid; place-items: center; color: #fff; background: var(--green); font-size: 34px; }
.order-result h3 { margin: 0; font-size: 34px; letter-spacing: -.05em; }
.order-result > p { color: var(--muted); }
.order-reference { display: block; margin: 18px 0; padding: 15px; border: 1px dashed var(--violet); border-radius: 12px; background: #f2efff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.text-button { margin-top: 15px; border: 0; background: transparent; color: var(--violet); cursor: pointer; font-weight: 750; }

.compact-header { border-bottom: 1px solid var(--line); }
.status-main { min-height: calc(100vh - 122px); padding: 70px 20px; display: grid; place-items: start center; }
.status-card { width: min(100%, 650px); padding: 55px; border: 1px solid var(--line); border-radius: 30px; background: var(--card); box-shadow: var(--shadow); text-align: center; }
.status-card h1 { margin: 0; font-size: clamp(36px, 6vw, 54px); letter-spacing: -.06em; }
.status-card > p:not(.eyebrow) { color: var(--muted); }
.status-icon { background: var(--violet); }
.status-icon.neutral { background: var(--muted); }
.status-total { margin: 32px 0 18px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.status-total strong { font-size: 28px; }
.status-items { display: grid; gap: 10px; text-align: left; }
.status-items div { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
.status-items strong { color: var(--ink); }
.status-actions { margin-top: 34px; display: flex; align-items: center; justify-content: center; gap: 25px; }

@media (max-width: 1000px) {
    .hero { margin: 0 20px; padding: 60px 42px; grid-template-columns: 1fr; gap: 55px; }
    .hero-card { justify-self: start; transform: rotate(0); }
    .trust-strip { margin: 25px 20px 0; }
    .catalogue-section { padding-left: 24px; padding-right: 24px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .how-section { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 700px) {
    .site-header { min-height: 72px; padding: 0 18px; }
    .nav-links { display: none; }
    .brand { font-size: 17px; }
    .brand-mark { width: 34px; height: 34px; }
    .cart-button > span:first-child { display: none; }
    .cart-button { padding: 8px; }
    .hero { min-height: 0; margin: 0 12px; padding: 48px 23px; border-radius: 26px; }
    .hero h1 { font-size: 48px; }
    .hero-text { font-size: 16px; }
    .hero-actions, .hero-stats { align-items: flex-start; flex-direction: column; gap: 17px; }
    .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
    .hero-card { min-height: 360px; padding: 25px; }
    .trust-strip { padding: 18px; grid-template-columns: 1fr; gap: 17px; }
    .trust-strip div + div { padding: 17px 0 0; border-left: 0; border-top: 1px solid var(--line); }
    .catalogue-section { padding-top: 85px; padding-bottom: 85px; }
    .section-heading { grid-template-columns: 1fr; gap: 20px; }
    .product-grid { grid-template-columns: 1fr; }
    .product-visual { min-height: 205px; }
    .how-section { padding-top: 75px; padding-bottom: 75px; }
    .site-footer { flex-direction: column; align-items: flex-start; }
    .cart-drawer { padding: 22px 18px; }
    .status-card { padding: 38px 23px; }
    .status-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
