:root {
    --primary-color: #0a84ff;
    --primary-dark: #0066cc;
    --dark-color: #111827;
    --text-color: #374151;
    --muted-color: #6b7280;
    --light-bg: #f5f7fb;
    --white-color: #ffffff;
    --border-color: #e5e7eb;
    --soft-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    --card-radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-color);
    background: var(--white-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

::selection {
    background: rgba(10, 132, 255, 0.18);
}

/* Navbar */

.main-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.brand-logo,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-color);
    font-weight: 750;
    letter-spacing: -0.03em;
}

.brand-logo {
    font-size: 1.15rem;
}

.footer-brand {
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #0a84ff, #64d2ff);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(10, 132, 255, 0.25);
}

.navbar .nav-link {
    color: #4b5563;
    font-weight: 600;
    font-size: 0.96rem;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.navbar .nav-link:hover {
    color: var(--primary-color);
}

.nav-button {
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 700;
}

.custom-toggler {
    border: 0;
    box-shadow: none !important;
}

/* Buttons */

.btn {
    border-radius: 999px;
    font-weight: 700;
    border-width: 1px;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 12px 28px rgba(10, 132, 255, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-light {
    background: #ffffff;
    color: var(--dark-color);
    border-color: var(--border-color);
}

.btn-light:hover {
    background: #f3f4f6;
    color: var(--dark-color);
}

.btn-dark {
    background: #111827;
    border-color: #111827;
}

.btn-outline-secondary {
    border-color: #d1d5db;
    color: #374151;
}

.btn-outline-secondary:hover {
    background: #f3f4f6;
    color: #111827;
    border-color: #d1d5db;
}

/* Hero */

.hero-section {
    position: relative;
    padding: 96px 0 70px;
    background:
        radial-gradient(circle at top left, rgba(10, 132, 255, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(10, 132, 255, 0.22);
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.08);
    color: #075dad;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 22px;
}

.hero-title {
    color: var(--dark-color);
    font-size: clamp(2.55rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.075em;
    font-weight: 850;
    max-width: 760px;
    margin-bottom: 24px;
}

.hero-text {
    font-size: 1.18rem;
    line-height: 1.75;
    color: var(--muted-color);
    max-width: 620px;
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-preview-card {
    position: relative;
    max-width: 430px;
    margin-left: auto;
    padding: 22px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(229, 231, 235, 0.95);
    overflow: hidden;
}

.hero-preview-card::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -80px;
    top: -90px;
    border-radius: 50%;
    background: rgba(10, 132, 255, 0.12);
}

.preview-top {
    display: flex;
    gap: 8px;
    margin-bottom: 34px;
    position: relative;
    z-index: 1;
}

.preview-top span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
}

.preview-qr-box {
    position: relative;
    z-index: 1;
    width: 220px;
    height: 220px;
    margin: 0 auto 34px;
    border-radius: 26px;
    background: #f3f7ff;
    border: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a84ff;
    font-size: 8rem;
}

.preview-lines {
    position: relative;
    z-index: 1;
}

.preview-lines div {
    height: 13px;
    border-radius: 999px;
    background: #e5e7eb;
    margin-bottom: 12px;
}

.preview-lines div:nth-child(1) {
    width: 82%;
}

.preview-lines div:nth-child(2) {
    width: 62%;
}

.preview-lines div:nth-child(3) {
    width: 74%;
}

/* Sections */

.section-header {
    max-width: 760px;
    margin: 0 auto 44px;
}

.section-label {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.section-header h2 {
    color: var(--dark-color);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
    font-weight: 850;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--muted-color);
    font-size: 1.08rem;
    line-height: 1.7;
}

/* Ads */

.ad-section {
    padding: 26px 0;
    background: #ffffff;
}

.ad-box,
.side-ad-box {
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 24px;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 700;
    text-align: center;
}

.side-ad-box {
    min-height: 260px;
}

/* Generator */

.generator-section {
    padding: 86px 0;
    background: var(--light-bg);
}

.tool-card,
.result-card,
.feature-card,
.step-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: var(--card-radius);
    box-shadow: var(--soft-shadow);
}

.tool-card {
    padding: 34px;
}

.result-card {
    padding: 30px;
    position: sticky;
    top: 110px;
}

.result-card h3 {
    color: var(--dark-color);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.result-card p {
    color: var(--muted-color);
    margin-bottom: 24px;
}

.form-label {
    font-weight: 750;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border-radius: 16px;
    border-color: #dbe1ea;
    color: var(--dark-color);
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(10, 132, 255, 0.75);
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12) !important;
}

.form-control-lg,
.form-select-lg {
    min-height: 54px;
    font-size: 1rem;
}

textarea.form-control {
    min-height: 130px;
}

.form-control-color {
    width: 100%;
    height: 46px;
    padding: 6px;
}

.qr-result-box {
    position: relative;
    min-height: 360px;
    border-radius: 26px;
    border: 1px solid #e5e7eb;
    background:
        linear-gradient(45deg, #f8fafc 25%, transparent 25%),
        linear-gradient(-45deg, #f8fafc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f8fafc 75%),
        linear-gradient(-45deg, transparent 75%, #f8fafc 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#qrCanvas {
    max-width: 100%;
    height: auto;
    display: none;
    border-radius: 16px;
}

.empty-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-align: center;
    padding: 26px;
}

.empty-state i {
    font-size: 4.2rem;
}

.empty-state span {
    font-weight: 750;
}

/* Features */

.features-section {
    padding: 92px 0;
    background: #ffffff;
}

.feature-card {
    height: 100%;
    padding: 34px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.1);
}

.feature-card i {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #eff6ff;
    color: var(--primary-color);
    font-size: 1.7rem;
    margin-bottom: 22px;
}

.feature-card h3,
.step-card h3 {
    color: var(--dark-color);
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 12px;
}

.feature-card p,
.step-card p {
    color: var(--muted-color);
    line-height: 1.7;
    margin-bottom: 0;
}

/* How */

.how-section {
    padding: 92px 0;
    background: var(--light-bg);
}

.step-card {
    height: 100%;
    padding: 34px;
}

.step-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #111827;
    color: #ffffff;
    font-weight: 850;
    margin-bottom: 22px;
}

/* FAQ */

.faq-section {
    padding: 92px 0;
    background: #ffffff;
}

.faq-accordion {
    max-width: 860px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid #e5e7eb !important;
    border-radius: 22px !important;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.04);
}

.accordion-button {
    color: var(--dark-color);
    font-weight: 800;
    font-size: 1.04rem;
    box-shadow: none !important;
    padding: 22px 24px;
}

.accordion-button:not(.collapsed) {
    color: var(--dark-color);
    background: #f8fafc;
}

.accordion-body {
    color: var(--muted-color);
    line-height: 1.7;
    padding: 0 24px 24px;
}

/* Footer */

.site-footer {
    padding: 70px 0 28px;
    background: #0b1220;
    color: #cbd5e1;
}

.footer-text {
    max-width: 450px;
    color: #94a3b8;
    line-height: 1.75;
    margin-top: 16px;
}

.site-footer h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 10px;
}

.site-footer a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-small {
    color: #94a3b8;
    line-height: 1.7;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 28px;
    margin-top: 48px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-bottom p {
    margin: 0;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

/* Alerts */

.alert {
    border-radius: 18px;
    border: 0;
}

/* Responsive */

@media (max-width: 991px) {
    .main-navbar {
        padding: 12px 0;
    }

    .navbar-collapse {
        padding-top: 16px;
    }

    .navbar .nav-link {
        padding: 12px 0 !important;
    }

    .nav-button {
        width: 100%;
        margin-top: 8px;
    }

    .hero-section {
        padding: 68px 0 48px;
    }

    .hero-preview-card {
        margin: 0;
        max-width: 100%;
    }

    .result-card {
        position: static;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-text {
        font-size: 1.03rem;
    }

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

    .tool-card,
    .result-card,
    .feature-card,
    .step-card {
        padding: 24px;
        border-radius: 24px;
    }

    .qr-result-box {
        min-height: 300px;
    }

    .preview-qr-box {
        width: 190px;
        height: 190px;
        font-size: 6.5rem;
    }

    .generator-section,
    .features-section,
    .how-section,
    .faq-section {
        padding: 66px 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* QR Loading Animation */

.qr-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    z-index: 5;
    color: #111827;
    font-weight: 750;
    border-radius: 26px;
}

.qr-loading.d-none {
    display: none !important;
}

.qr-loader {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 4px solid #dbeafe;
    border-top-color: #0a84ff;
    animation: qrSpin 0.8s linear infinite;
}

@keyframes qrSpin {
    to {
        transform: rotate(360deg);
    }
}