/* ---------------------------------------------------------
   PayBox Market. Ink & cream theme (matches the business card).
   Light theme only.
--------------------------------------------------------- */

:root {
    --bg: #f3eee1;
    --bg-alt: #ede5d1;
    --bg-soft: #e9e0c8;
    --surface: #fffdf7;
    --surface-2: #f8f3e6;
    --border: #e2d8ba;
    --border-strong: #d2c39c;

    --text: #17140f;
    --text-soft: #4a4437;
    --text-muted: #837964;

    --brand: #17140f;
    --brand-2: #3c362a;
    --brand-3: #6c6250;
    --brand-deep: #100e0a;
    --brand-glow: rgba(23, 20, 15, 0.16);
    --brand-soft: #e9e0c8;

    --success: #1c7a4c;
    --warn: #c0761b;

    --shadow-sm: 0 2px 8px rgba(23, 20, 15, 0.07);
    --shadow-md: 0 12px 32px -8px rgba(23, 20, 15, 0.16);
    --shadow-lg: 0 28px 60px -20px rgba(23, 20, 15, 0.28);
    --shadow-card: 0 1px 0 rgba(23, 20, 15, 0.03), 0 8px 28px -10px rgba(23, 20, 15, 0.14);

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    --nav-bg: #17140f;
    --nav-ink: #faf6ea;
    --nav-muted: #cfc6ac;
    --nav-border: rgba(250, 246, 234, 0.18);
    --nav-control: rgba(250, 246, 234, 0.08);

    /* Constant ink/paper marks: fixed regardless of theme, used for solid brand badges */
    --ink: #17140f;
    --paper: #faf6ea;
    --grad-brand: linear-gradient(135deg, #17140f 0%, #3f382b 100%);
    --grad-soft: linear-gradient(135deg, #e9e0c8 0%, #f8f3e6 100%);
    --grad-hero: radial-gradient(1200px 600px at 80% 0%, rgba(23, 20, 15, 0.05), transparent 60%),
                 radial-gradient(800px 400px at 0% 100%, rgba(23, 20, 15, 0.04), transparent 60%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.35s ease, color 0.35s ease;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3,
.pos-total b {
    font-family: 'Baloo 2', 'Inter', system-ui, sans-serif;
}

img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
    border: 1.5px solid transparent;
}
.btn i { font-size: 18px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

.btn-primary {
    background: var(--grad-brand);
    color: var(--paper);
    box-shadow: 0 8px 24px -6px var(--brand-glow);
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 66%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
    pointer-events: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px var(--brand-glow); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--brand); color: var(--brand); }

.btn-white { background: var(--paper); color: var(--ink); }
.btn-white:hover { transform: translateY(-2px); }

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 20px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    position: relative;
}
.icon-btn:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-soft); }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.flag-icon {
    width: 22px;
    height: 15px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(23, 20, 15, 0.14);
    flex-shrink: 0;
    display: block;
}
.lang-toggle .flag-icon { box-shadow: 0 0 0 1px rgba(250, 246, 234, 0.35); }
.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 110;
}
.lang-switch.open .lang-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.lang-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: background 0.15s ease;
}
.lang-menu button:hover { background: var(--brand-soft); }
.lang-menu button.is-active { background: var(--text); color: var(--bg); }

/* ---------- Navigation ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, background 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--nav-border); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.brand-logo {
    height: 35px;
    width: auto;
    display: block;
}

.brand-sub {
    font-weight: 700;
    font-size: 14px;
    color: var(--nav-ink);
    background: var(--nav-control);
    border: 1px solid var(--nav-border);
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--nav-muted);
    transition: color 0.2s ease;
    position: relative;
    padding: 6px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--nav-ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    border-radius: 2px;
}
.nav-links a:hover { color: var(--nav-ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav .icon-btn {
    background: var(--nav-control);
    border-color: var(--nav-border);
    color: var(--nav-ink);
}
.nav .icon-btn:hover {
    background: var(--nav-ink);
    border-color: var(--nav-ink);
    color: var(--nav-bg);
}
.nav .btn-primary {
    background: var(--nav-ink);
    color: var(--nav-bg);
    box-shadow: none;
}
.nav .btn-primary:hover { box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 0 0 120px;
    overflow: hidden;
    background: var(--bg);
}

/* Wave banner across the top, echoing the PayBox business card */
.hero-wave {
    width: 100%;
    height: clamp(60px, 8vw, 128px);
    line-height: 0;
}
.hero-wave svg { width: 100%; height: 100%; display: block; }
.hero-wave path { fill: var(--text); animation: wave-breathe 7s ease-in-out infinite; transform-origin: center top; }
@keyframes wave-breathe {
    0%, 100% { transform: scaleY(1) translateY(0); }
    50% { transform: scaleY(1.04) translateY(-3px); }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--grad-hero);
    pointer-events: none;
}
.ring-shape {
    position: absolute;
    bottom: -120px;
    right: -100px;
    width: clamp(280px, 32vw, 460px);
    aspect-ratio: 1 / 1;
    animation: ring-spin 50s linear infinite;
}
.ring-shape svg { width: 100%; height: 100%; }
.ring-shape circle {
    fill: none;
    stroke: var(--text);
    stroke-width: 44;
    stroke-dasharray: 6 34;
    opacity: 0.14;
}
@keyframes ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1.1fr;
    gap: 60px;
    align-items: center;
    padding-top: 56px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 10px;
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 26px;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(28, 122, 76, 0.18);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(28, 122, 76, 0.18); }
    50% { box-shadow: 0 0 0 8px transparent; }
}

.hero h1 {
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 28px;
    color: var(--text);
}
.pill-highlight {
    display: inline-block;
    background: var(--text);
    color: var(--bg);
    padding: 2px 22px 0px;
    border-radius: 999px;
    margin-top: 8px;
}

.lead {
    font-size: 18px;
    color: var(--text-soft);
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
}
.meta-item { display: inline-flex; align-items: center; gap: 10px; }
.meta-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--text);
    color: var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

/* ---------- Hero visual: light POS / kassa screen mockup ---------- */
.hero-visual { position: relative; }

.pos-mock {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.pos-device {
    width: 100%;
    background: #1d2023;
    border-radius: 18px 18px 10px 10px;
    padding: 6px;
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.45);
    position: relative;
    z-index: 2;
}
.pos-screen {
    --pos-bg: #f4f6f7;
    --pos-panel: #ffffff;
    --pos-panel-soft: #f1f3f4;
    --pos-line: #e9ecef;
    --pos-ink: #202428;
    --pos-muted: #899198;
    --pos-green: #278a43;
    background: var(--pos-bg);
    color: var(--pos-ink);
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Inter', system-ui, sans-serif;
}
.pos-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    gap: 14px;
    padding: 8px 12px;
    background: var(--pos-panel);
    border-bottom: 1px solid var(--pos-line);
}
.pos-system-actions { display: flex; gap: 8px; }
.pos-system-actions span {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: transparent;
    border: 0;
    color: #677078;
    font-size: 15px;
}
.pos-clock { display: flex; align-items: flex-end; gap: 10px; text-align: right; }
.pos-clock b { font-size: 18px; line-height: 1; letter-spacing: 0.02em; color: var(--pos-ink); }
.pos-clock small { color: var(--pos-muted); font-size: 9px; font-weight: 600; white-space: nowrap; }
.pos-clock small i { margin-right: 3px; }

.pos-workspace {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 6px;
    padding: 6px;
    min-height: 316px;
}
.pos-sale-panel,
.pos-control-panel { min-width: 0; }
.pos-sale-panel {
    display: flex;
    flex-direction: column;
    background: var(--pos-panel);
    border: 0;
    border-radius: 9px;
    overflow: hidden;
}
.pos-ticket-head {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 11px 7px;
    border-bottom: 0;
}
.pos-ticket-head span {
    padding: 4px 10px;
    background: #f0f2f3;
    color: #5f676e;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
}
.pos-ticket-head i { color: var(--pos-muted); font-size: 12px; }
.pos-ticket-head span i { color: inherit; font-size: 9px; margin-right: 2px; }
.pos-ticket-lines {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 5px 12px;
}
.pos-ticket-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--pos-line);
    border-radius: 5px;
    transition: background 0.4s ease;
}
.pos-ticket-line.is-scanning { background: #e8f4eb; }
.pos-ticket-line.is-scanning > span > i { color: var(--pos-green); }
.pos-ticket-line > span { min-width: 0; display: flex; align-items: center; gap: 7px; }
.pos-ticket-line > span > i { color: #98a0a6; font-size: 10px; flex-shrink: 0; }
.pos-ticket-line b,
.pos-ticket-line small { display: block; }
.pos-ticket-line b { font-size: 9px; color: var(--pos-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-ticket-line small { color: var(--pos-muted); font-size: 7.5px; margin-top: 2px; }
.pos-ticket-line strong { color: var(--pos-ink); font-size: 9px; white-space: nowrap; }
.pos-total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: #f0f2f3;
    border-top: 0;
    color: var(--pos-ink);
}
.pos-total-bar span { font-size: 8px; font-weight: 800; text-transform: uppercase; }
.pos-total-bar small { display: block; color: var(--pos-muted); font-size: 6.5px; }
.pos-total-bar strong { font-size: 15px; }
.pos-total-bar > div { display: flex; align-items: center; gap: 7px; }
.pos-total-bar > div > i { color: #7f878e; font-size: 12px; }
.pos-action-bar {
    display: grid;
    grid-template-columns: 0.9fr 1fr 1fr 1.4fr;
    gap: 3px;
    padding: 5px 0 0;
    background: var(--pos-bg);
}
.pos-action-bar span {
    min-height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 7px;
    background: transparent;
    transition: background 0.35s ease, color 0.35s ease;
    border: 0;
    color: var(--pos-muted);
}
.pos-action-bar span.active { background: #e8f4eb; color: var(--pos-green); }
.pos-action-bar i { font-size: 11px; }
.pos-action-bar b { font-size: 6.5px; text-transform: uppercase; }

.pos-control-panel { display: flex; flex-direction: column; gap: 7px; }
.pos-product-picker { display: grid; grid-template-columns: 1fr 40px; gap: 4px; }
.pos-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.pos-category-grid span {
    min-height: 47px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 7px;
    color: #5f676d;
    background: #eff1f2;
    text-align: center;
}
.pos-category-grid i { font-size: 14px; }
.pos-category-grid b { font-size: 5.6px; text-transform: uppercase; }
.pos-category-grid span i { color: #717980; }
.pos-vat-stack { display: grid; grid-template-rows: repeat(4, 1fr); gap: 4px; }
.pos-vat-stack span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #eef0f1;
    border: 0;
    border-radius: 6px;
}
.pos-vat-stack b { font-size: 8px; color: var(--pos-ink); }
.pos-vat-stack small { font-size: 5.5px; color: var(--pos-muted); font-weight: 700; }
.pos-vat-stack i { color: #858d93; font-size: 6px; margin-bottom: 1px; }
.pos-keypad {
    flex: 1;
    padding: 6px;
    border-radius: 9px;
    background: var(--pos-panel);
    border: 0;
}
.pos-keypad-display {
    height: 27px;
    display: flex;
    align-items: center;
    padding: 0 9px;
    margin-bottom: 6px;
    background: var(--pos-panel-soft);
    border: 0;
    border-radius: 6px;
    color: #a2a9b0;
    font-size: 6.5px;
}
.pos-keypad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 27px);
    gap: 4px;
}
.pos-keypad-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pos-panel-soft);
    border: 0;
    border-radius: 6px;
    color: var(--pos-ink);
    font-size: 10px;
    font-weight: 800;
}
.pos-keypad-grid span.key-soft { background: #e7eaec; color: #606a73; }
.pos-keypad-grid span.key-enter {
    grid-column: 4;
    grid-row: 3 / span 2;
    background: #272c30;
    color: #fff;
}
.pos-register-base {
    width: 91%;
    height: 42px;
    margin-top: -1px;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, #292d30 0%, #17191b 100%);
    clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%);
    box-shadow: 0 18px 28px -20px rgba(0, 0, 0, 0.7);
}
.pos-register-base::before {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    top: 10px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}
.pos-register-base::after {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #0e1011 0 12%, transparent 12% 88%, #0e1011 88% 100%);
}
.pos-receipt-slot {
    position: absolute;
    top: 19px;
    right: 8%;
    width: 56px;
    height: 5px;
    border-radius: 999px;
    background: #090a0b;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.pos-register-label {
    position: absolute;
    top: 16px;
    left: 8%;
    color: rgba(255, 255, 255, 0.42);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

/* Bottom multilingual strip: pick-your-language chips */
.hero-lang {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 20px;
    padding: 28px 0 0;
    margin-top: 56px;
    border-top: 1px solid var(--border);
}
.hero-lang-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    font-family: 'Baloo 2', 'Inter', system-ui, sans-serif;
}
.hero-lang-label i { color: var(--text-muted); font-size: 18px; }

.lang-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 8px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-soft);
    transition: transform 0.2s cubic-bezier(.34, 1.56, .64, 1), background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.lang-chip:hover {
    transform: translateY(-3px) scale(1.04);
    border-color: var(--text);
    box-shadow: var(--shadow-md);
}
.lang-chip.is-active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* Floating chips around the dashboard */
.float-chip {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 10px 16px 10px 10px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow-md);
    animation: float 5s ease-in-out infinite;
    z-index: 2;
}
.chip-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--text);
    color: var(--bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.float-chip b { display: block; font-weight: 700; font-size: 13.5px; color: var(--text); }
.float-chip small { color: var(--text-muted); font-size: 11.5px; font-weight: 500; display: block; }

.chip-1 { top: 26px; right: -24px; animation-delay: 0s; }
.chip-2 { bottom: 32px; left: -32px; animation-delay: 2.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
    display: inline-block;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.kicker.light { color: rgba(255, 255, 255, 0.85); }

.section-head h2,
.why-text h2,
.mobile-text h2 {
    font-size: clamp(32px, 4.5vw, 52px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 20px;
}
.section-head p,
.why-text p,
.mobile-text p {
    font-size: 17px;
    color: var(--text-soft);
}

/* ---------- Feature grid ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 26px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-soft) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-5deg); }
.feature-card > * { position: relative; }

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--grad-brand);
    color: var(--paper);
    border: 1px solid var(--border-strong);
    transition: transform 0.35s cubic-bezier(.34, 1.56, .64, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px -6px var(--brand-glow);
}
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.feature-card p { color: var(--text-soft); font-size: 14.5px; }

/* ---------- Hardware grid ---------- */
.hardware-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.hardware-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}
.hardware-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.hardware-card:hover .hardware-img-icon i { transform: scale(1.12) rotate(-4deg); }

.hardware-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    background: var(--bg-soft);
    margin-bottom: 22px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hardware-img-icon i { transition: transform 0.35s cubic-bezier(.34, 1.56, .64, 1); }
.hardware-img-icon {
    background: var(--grad-soft);
    color: var(--brand);
    font-size: 100px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.hardware-card h3 {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text);
}
.hardware-card p {
    color: var(--text-soft);
    margin-bottom: 18px;
    font-size: 14.5px;
}

.hw-features { display: flex; flex-direction: column; gap: 10px; }
.hw-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}
.hw-features li i {
    width: 22px; height: 22px;
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

/* ---------- Why layout ---------- */
.why-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}
.why-text p { margin-bottom: 32px; }

.why-list { display: flex; flex-direction: column; gap: 18px; }
.why-item {
    display: flex;
    gap: 18px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.why-item:hover { transform: translateX(6px); border-color: var(--brand); }
.why-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.why-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.why-item p { color: var(--text-soft); font-size: 14.5px; }

/* ---------- Mobile section ---------- */
.section-dark {
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-alt) 100%);
}

.mobile-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.mobile-visual { display: flex; justify-content: center; }
.mobile-photo {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    overflow: visible;
}
.mobile-photo > picture > img,
.mobile-photo > img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.mobile-overlay {
    position: absolute;
    bottom: -24px;
    left: -24px;
    right: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-overlay-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: var(--bg-soft);
    border-radius: 12px;
}
.mobile-overlay-row > i:first-child {
    width: 36px; height: 36px;
    background: var(--brand-soft);
    color: var(--brand);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.mobile-overlay-row > div { flex: 1; min-width: 0; }
.mobile-overlay-row b { display: block; font-weight: 700; font-size: 13.5px; color: var(--text); }
.mobile-overlay-row small { color: var(--text-muted); font-size: 12px; }
.mobile-overlay-row > i:last-child { color: var(--success); font-size: 22px; }
.dot-warn {
    width: 10px; height: 10px;
    background: var(--warn);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.mobile-text p { margin-bottom: 28px; }

.check-list { display: flex; flex-direction: column; gap: 18px; }
.check-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.check-list li i {
    color: var(--brand);
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}
.check-list li b {
    display: block;
    font-weight: 700;
    color: var(--text);
    font-size: 16px;
    margin-bottom: 2px;
}
.check-list li span { color: var(--text-soft); font-size: 14.5px; }

/* ---------- Testimonials: infinite carousel ---------- */
.testimonial-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 -24px 80px;
    padding: 4px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.testimonial-track {
    display: flex;
    gap: 24px;
    width: max-content;
    padding: 0 24px;
    animation: carousel-scroll 75s linear infinite;
}
.testimonial-carousel:hover .testimonial-track,
.testimonial-carousel:focus-within .testimonial-track {
    animation-play-state: paused;
}
@keyframes carousel-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .testimonial-track { animation: none; }
}

.testimonial-card {
    flex: 0 0 340px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.stars {
    display: flex;
    gap: 2px;
    color: #f59e0b;
    margin-bottom: 16px;
    font-size: 16px;
}
.testimonial-card p {
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 22px;
    min-height: 100px;
}
.testimonial-meta { display: flex; align-items: center; gap: 12px; }
.avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--grad-brand);
    color: var(--paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.testimonial-meta b { display: block; font-weight: 700; color: var(--text); font-size: 14px; }
.testimonial-meta small { color: var(--text-muted); font-size: 12.5px; }

/* ---------- Customers band ---------- */
.team-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-card);
}
.team-photo img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.team-text h3 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.15;
}
.team-text p { color: var(--text-soft); font-size: 16px; margin-bottom: 22px; }
.team-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.team-pills span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
}
.team-pills i { font-size: 16px; }

/* ---------- CTA ---------- */
.cta-section { padding: 60px 0 110px; }
.cta-card {
    background: var(--ink);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    padding: 64px 56px;
    color: var(--paper);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12), transparent 50%);
    pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 {
    font-size: clamp(32px, 4.5vw, 52px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
    color: #fff;
}
.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    margin-bottom: 32px;
    max-width: 480px;
}
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.cta-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45);
    border: 4px solid rgba(255, 255, 255, 0.25);
}
.cta-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 72px 0 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
    padding-bottom: 56px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 14.5px;
    margin: 18px 0 24px;
    max-width: 320px;
}
.socials { display: flex; gap: 10px; }
.socials a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 18px;
    transition: all 0.2s ease;
}
.socials a:hover { background: var(--brand); color: var(--bg); border-color: var(--brand); transform: translateY(-2px); }

.footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer-col a {
    display: block;
    color: var(--text-soft);
    font-size: 14.5px;
    padding: 6px 0;
    transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 22px 0;
    color: var(--text-muted);
    font-size: 13.5px;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-bottom i { color: var(--brand); }

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- RTL (Urdu, Dari) ---------- */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .pos-mock,
html[dir="rtl"] .hero-wave,
html[dir="rtl"] .ring-shape {
    direction: ltr;
}
html[dir="rtl"] .lang-menu button { text-align: right; }
html[dir="rtl"] .hero-cta,
html[dir="rtl"] .cta-actions,
html[dir="rtl"] .footer-bottom .container {
    direction: rtl;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 60px; }
    .hero-visual { max-width: 540px; margin: 0 auto; width: 100%; }
    .chip-1 { right: 8px; }
    .chip-2 { left: 8px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .hardware-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .why-layout { grid-template-columns: 1fr; gap: 56px; }
    .mobile-layout { grid-template-columns: 1fr; gap: 80px; }
    .mobile-overlay { right: 24px; }
    .testimonial-card { flex-basis: 300px; }
    .team-band { grid-template-columns: 1fr; gap: 32px; padding: 28px; }
    .cta-card { grid-template-columns: 1fr; padding: 48px 36px; }
    .cta-visual { max-width: 320px; margin: 0 auto; aspect-ratio: 4 / 3; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .section { padding: 80px 0; }
    .testimonial-carousel { margin: 0 -20px 64px; }
    .testimonial-card { flex-basis: 260px; padding: 22px; }

    .nav-inner { height: 64px; }
    .brand-logo { height: 24px; }
    .brand-sub { font-size: 12px; padding: 3px 8px; }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - 64px);
        height: calc(100dvh - 64px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        background: var(--nav-bg);
        padding: 32px 28px;
        gap: 4px;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(.16, 1, .3, 1), opacity 0.25s ease, visibility 0s linear 0.35s;
        overflow-y: auto;
        z-index: 99;
    }
    .nav-links.open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        transition: transform 0.35s cubic-bezier(.16, 1, .3, 1), opacity 0.25s ease, visibility 0s;
    }
    .nav-links li a {
        display: flex;
        align-items: center;
        padding: 22px 4px;
        font-size: 22px;
        font-weight: 700;
        color: var(--nav-ink);
        border-bottom: 1px solid var(--nav-border);
    }
    .nav-links li a::after { display: none; }
    .nav-links li:last-child a { border-bottom: none; }
    .nav-links::after {
        content: '';
        display: block;
        margin-top: auto;
        padding-top: 24px;
    }
    .nav-actions .btn { display: none; }
    .menu-toggle { display: inline-flex; z-index: 101; }

    /* Lock body scroll while menu is open */
    body.menu-open { overflow: hidden; }

    .hero { padding: 0 0 96px; }
    .hero-inner { padding-top: 36px; }
    .hero h1 { font-size: 42px; }
    .lead { font-size: 16px; }
    .hero-cta .btn { flex: 1; justify-content: center; }

    .hero-lang { margin-top: 40px; }

    .float-chip { padding: 8px 12px 8px 8px; font-size: 11px; }
    .chip-icon { width: 30px; height: 30px; font-size: 15px; }
    .float-chip b { font-size: 12px; }
    .float-chip small { font-size: 10.5px; }
    .chip-1 { top: 12px; right: 8px; }
    .chip-2 { bottom: 12px; left: 8px; }

    .feature-grid { grid-template-columns: 1fr; }
    .mobile-overlay { position: static; margin-top: 16px; right: 0; left: 0; }

    .footer-cols { grid-template-columns: repeat(2, 1fr); }

    .cta-card { padding: 40px 28px; }
    .cta-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 36px; }
    .footer-cols { grid-template-columns: 1fr; gap: 24px; }
    .hero-meta { gap: 14px; font-size: 13px; }
    .pos-device { padding: 7px; border-radius: 16px 16px 8px 8px; }
    .pos-register-base { width: 93%; height: 34px; }
    .pos-register-base::before { top: 8px; }
    .pos-receipt-slot { top: 15px; width: 40px; height: 4px; }
    .pos-register-label { top: 12px; font-size: 6px; }
    .pos-topbar { min-height: 50px; padding: 7px 9px; }
    .pos-system-actions { gap: 5px; }
    .pos-system-actions span { width: 28px; height: 28px; font-size: 14px; }
    .pos-clock b { font-size: 17px; }
    .pos-clock small { display: none; }
    .pos-workspace { min-height: 280px; gap: 5px; padding: 5px; }
    .pos-ticket-lines { padding: 3px 8px; }
    .pos-ticket-line { padding: 6px 0; }
    .pos-ticket-line:nth-child(n+3) { display: none; }
    .pos-ticket-line b { font-size: 7.5px; }
    .pos-ticket-line small { font-size: 6.5px; }
    .pos-total-bar { padding: 7px 8px; }
    .pos-total-bar strong { font-size: 12px; }
    .pos-action-bar { gap: 3px; padding: 4px; }
    .pos-action-bar span { min-height: 36px; }
    .pos-action-bar b { display: none; }
    .pos-product-picker { grid-template-columns: 1fr 31px; gap: 3px; }
    .pos-category-grid { gap: 3px; }
    .pos-category-grid span { min-height: 42px; border-radius: 6px; }
    .pos-category-grid i { font-size: 13px; }
    .pos-category-grid b { font-size: 4.6px; }
    .pos-vat-stack { gap: 2px; }
    .pos-vat-stack b { font-size: 6.5px; }
    .pos-vat-stack small { display: none; }
    .pos-keypad { padding: 4px; }
    .pos-keypad-display { height: 22px; margin-bottom: 4px; }
    .pos-keypad-grid { grid-template-rows: repeat(4, 23px); gap: 3px; }
    .pos-keypad-grid span { font-size: 8px; }
    .lang-chip { font-size: 12px; padding: 6px 12px 6px 7px; }
}
