:root {
    --primary: #0054ae;
    --primary-light: #0875e1;
    --primary-dark: #0d47a1;
    --text: #1f2933;
    --muted: #52606d;
    --bg: #f5f7fb;
    --card: #ffffff;
    --border: #d9e2ec;
    --success: #0f7b3a;
    --error: #b42318;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--primary);
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 3.5rem 1.5rem 5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 84, 174, 0.2);
}

.hero-brand-wrap {
    position: relative;
    display: inline-block;
    width: min(420px, 92vw);
    margin: 0 auto 1rem;
    --hero-loader-inset-y: 14%;
}

.hero-brand {
    display: block;
    width: min(420px, 92vw);
    height: auto;
    margin: 0 auto 1rem;
}

.hero-brand-wrap .hero-brand {
    width: 100%;
    margin: 0;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 560px;
    margin: 0 auto;
}

.hero-loader {
    position: absolute;
    left: calc(2.5% + 2.4%);
    top: var(--hero-loader-inset-y);
    height: calc(100% - 2 * var(--hero-loader-inset-y));
    width: auto;
    aspect-ratio: 1;
    z-index: 1;
    pointer-events: none;
}

.hero-loader svg {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

main {
    max-width: 980px;
    margin: -2.5rem auto 3rem;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.demo-banner {
    background: var(--card);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.demo-banner > p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.demo-video {
    background: var(--card);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.demo-video > p {
    color: var(--muted);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.steps {
    display: grid;
    gap: 1.25rem;
}

.step {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fbfdff;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.step-number {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.step h3 {
    font-size: 1.05rem;
    color: var(--primary-dark);
}

.step p {
    color: var(--muted);
    font-size: 0.95rem;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.qr-wrap img {
    width: min(220px, 100%);
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 0.5rem;
}

.step-app-brand {
    display: flex;
    justify-content: center;
}

.step-app-brand img {
    width: min(96px, 40vw);
    height: auto;
}

.qr-mobile-config {
    display: block;
    text-align: center;
    font-size: 0.88rem;
    color: var(--muted);
    max-width: 260px;
    line-height: 1.45;
}

.qr-mobile-config a {
    font-weight: 600;
}

@media (min-width: 768px) {
    .qr-mobile-config {
        display: none;
    }
}

.credentials {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.credentials th,
.credentials td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.credentials th {
    color: var(--muted);
    font-weight: 600;
    width: 40%;
}

.credentials code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--primary-dark);
}

.cards {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 1.5rem;
}

.card {
    background: var(--card);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border);
}

.card h2 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.contact-section {
    background: var(--card);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border);
}

.contact-section > p {
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.form-row label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.field-optional {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.85rem;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    background: #fff;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: 2px solid rgba(0, 84, 174, 0.25);
    border-color: var(--primary);
}

.form-row textarea {
    min-height: 140px;
    resize: vertical;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-status {
    min-height: 1.25rem;
    font-size: 0.92rem;
}

.form-status.success {
    color: var(--success);
}

.form-status.error {
    color: var(--error);
}

footer {
    text-align: center;
    padding: 2rem 1.5rem 3rem;
    color: var(--muted);
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .step {
        grid-template-rows: auto 1fr;
    }
}

@media (max-width: 767px) {
    .hero {
        padding-bottom: 4rem;
    }
}
