:root {
    --bg: #151b1f;
    --surface: #1e252b;
    --surface-2: #2a2f32;
    --text: #f8fafc;
    --muted: #c5b8aa;
    --line: #3a332d;
    --primary: #ff7a00;
    --primary-dark: #d94f00;
    --primary-soft: #ffb15c;
    --ok: #22c55e;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 8px clamp(20px, 5vw, 72px);
    background: #151b1f;
    border-bottom: 0;
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 900;
}

.brand img {
    width: 142px;
    max-width: 58vw;
    height: 58px;
    object-fit: contain;
    object-position: left center;
}

.brand-text {
    font-size: 1.02rem;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary);
    color: #1a0c00;
    font-weight: 950;
}

nav {
    display: flex;
    gap: 18px;
    color: var(--muted);
    font-weight: 800;
}

nav a {
    text-decoration: none;
}

.hero,
.section,
.pricing {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    min-height: calc(100vh - 82px);
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(520px, 1.14fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    padding: 56px 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary-soft);
    font-size: .8rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    letter-spacing: 0;
}

h1 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5.6rem);
    line-height: .98;
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.02;
}

.hero-copy > p:not(.eyebrow),
.pricing p,
.section-title p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.7;
}

.hero-actions,
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 18px;
    text-decoration: none;
    font-weight: 950;
    cursor: pointer;
}

.btn-primary {
    border-color: transparent;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-light {
    background: var(--surface);
    color: var(--text);
}

.hero-panel {
    width: 90%;
    justify-self: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #292923, #171b1d);
    padding: 18px;
    box-shadow: 0 28px 80px rgba(255, 122, 0, .13);
}

.screen-top {
    aspect-ratio: 845 / 551;
    height: auto;
    max-height: 460px;
    border-radius: 12px;
    background: #11181d;
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #2f302d;
}

.screen-top img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
    object-position: center center;
}

.metric-grid,
.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.metric-grid div,
.cards article,
.checkout-card,
.admin-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    padding: 18px;
}

.metric-grid strong,
.metric-grid span {
    display: block;
}

.metric-grid span,
.cards p,
small,
.admin-help {
    color: var(--muted);
}

.section {
    padding: 72px 0;
}

.section-title {
    max-width: 760px;
    margin-bottom: 28px;
}

.cards article h3 {
    margin: 0 0 8px;
}

.showcase {
    padding-top: 36px;
}

.screen-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mock-screen {
    min-height: 300px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 122, 0, .08), transparent 42%),
        var(--surface);
    padding: 16px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .18);
}

.mock-wide {
    grid-column: span 2;
}

.mock-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.mock-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    opacity: .85;
}

.mock-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.mock-header strong,
.mock-header em {
    display: block;
}

.mock-header em {
    color: var(--muted);
    font-size: .78rem;
    font-style: normal;
    font-weight: 850;
    text-transform: uppercase;
}

.mock-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.mock-stats span,
.mock-list span {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #171d21;
    padding: 12px;
    color: var(--muted);
    font-weight: 850;
}

.mock-stats b {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-size: 1.55rem;
}

.mock-table {
    display: grid;
    grid-template-columns: 1.2fr .8fr .9fr .7fr;
    gap: 8px;
}

.mock-table span {
    height: 26px;
    border-radius: 8px;
    background: #11171b;
    border: 1px solid #2d332f;
}

.mock-list {
    display: grid;
    gap: 10px;
}

.mock-list b,
.mock-list small {
    display: block;
}

.mock-list small {
    margin-top: 4px;
    color: var(--primary-soft);
}

.qr-mock {
    width: min(190px, 75%);
    aspect-ratio: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 18px auto 0;
    padding: 12px;
    border-radius: 18px;
    background: #f8fafc;
}

.qr-mock i {
    border-radius: 5px;
    background: #171b1f;
}

.qr-mock i:nth-child(2n),
.qr-mock i:nth-child(5),
.qr-mock i:nth-child(11) {
    background: var(--primary);
}

.keypad-mock {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.keypad-mock span {
    min-height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(180deg, #30363a, #151a1d);
    border: 1px solid #34302b;
    color: var(--text);
    font-weight: 950;
    box-shadow: 0 5px 0 #090d0f;
}

.integrations {
    padding-top: 40px;
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.integration-grid article,
.summary-panel {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    padding: 18px;
}

.integration-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 950;
    margin-bottom: 14px;
}

.integration-grid h3 {
    margin: 0 0 8px;
}

.integration-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.summary-panel {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    color: var(--muted);
    line-height: 1.6;
}

.summary-panel strong {
    color: var(--primary-soft);
    white-space: nowrap;
}

.pricing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    align-items: start;
    padding: 72px 0 96px;
}

.checkout-card {
    display: grid;
    gap: 14px;
}

.checkout-card > span {
    color: var(--muted);
    font-weight: 900;
}

.checkout-card > strong {
    font-size: 2.6rem;
}

label {
    display: grid;
    gap: 8px;
    color: #dbeafe;
    font-weight: 850;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #151a1d;
    color: var(--text);
    padding: 10px 12px;
    font: inherit;
}

select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--primary-soft) 50%),
        linear-gradient(135deg, var(--primary-soft) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #31e177, #20b85c);
    color: #03120a;
    text-decoration: none;
    font-weight: 950;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .34);
}

footer {
    display: grid;
    gap: 4px;
    justify-items: center;
    padding: 20px clamp(18px, 5vw, 64px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    background: rgba(14, 18, 21, .72);
}

.footer-brand {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 950;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
    line-height: 1.25;
    font-size: .9rem;
}

.footer-info span {
    position: relative;
}

.footer-info span + span::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    transform: translateY(-50%);
}

.footer-copy {
    color: #8f8377;
    font-size: .8rem;
}

.admin-body {
    background: #151b1f;
}

.admin-wrap,
.thanks {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
}

.technical-box {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--muted);
    line-height: 1.5;
}

.technical-box strong {
    color: var(--text);
}

.technical-box span {
    display: block;
    overflow-wrap: anywhere;
}

.admin-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.admin-top h1,
.thanks h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.6rem);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.full {
    grid-column: 1 / -1;
}

.check {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.check input {
    width: 18px;
    min-height: 18px;
}

.notice {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    font-weight: 900;
}

.notice.success {
    background: rgba(34, 197, 94, .16);
    color: #86efac;
}

.notice.error {
    background: rgba(239, 68, 68, .16);
    color: #fca5a5;
}

code {
    color: var(--primary-soft);
}

.form-section-title {
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.form-section-title--first {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.form-section-title h2 {
    margin: 0;
    font-size: 1.4rem;
}

.form-section-title p {
    margin: 6px 0 0;
    color: var(--muted);
}

.plan-admin {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr .7fr;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #171d21;
}

.config-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.config-preview {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #171d21;
}

.config-preview strong {
    color: var(--text);
}

.config-preview span {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--muted);
    line-height: 1.45;
}

.gateway-status {
    width: max-content;
    max-width: 100%;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(239, 68, 68, .14);
    color: #fecaca !important;
    font-weight: 950;
}

.gateway-status.is-active {
    background: rgba(34, 197, 94, .16);
    color: #bbf7d0 !important;
}

.test-card {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

@media (max-width: 820px) {
    .site-header,
    .admin-top {
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        flex-wrap: wrap;
        gap: 10px 14px;
        font-size: .94rem;
    }

    .hero,
    .pricing,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 34px 0 48px;
    }

    .hero-panel {
        width: 100%;
    }

    .brand img {
        width: 128px;
        height: 52px;
    }

    .metric-grid,
    .cards,
    .screen-grid,
    .integration-grid {
        grid-template-columns: 1fr;
    }

    .mock-wide {
        grid-column: auto;
    }

    .summary-panel {
        display: block;
    }

    .plan-admin {
        grid-template-columns: 1fr;
    }

    .config-preview-grid {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 17px;
    }

    .footer-info {
        display: grid;
        gap: 4px;
    }

    .footer-info span + span::before {
        display: none;
    }
}

@media (max-width: 520px) {
    .site-header {
        gap: 8px;
        padding: 8px 16px;
    }

    .hero,
    .section,
    .pricing {
        width: min(100% - 24px, 1180px);
    }

    h1 {
        font-size: clamp(2rem, 12vw, 3.2rem);
    }

    h2 {
        font-size: clamp(1.7rem, 9vw, 2.5rem);
    }

    .hero-actions .btn,
    .checkout-card .btn {
        width: 100%;
    }

    .screen-top {
        border-radius: 10px;
    }

    .metric-grid {
        gap: 10px;
    }

    footer {
        padding: 15px 12px;
    }

    .footer-info,
    .footer-copy {
        font-size: .78rem;
    }
}
