:root {
    --bagly-dark: #121b2f;
    --bagly-text: #243047;
    --bagly-muted: #667085;
    --bagly-primary: #1467ff;
    --bagly-primary-dark: #0d47c7;
    --bagly-accent: #00c2a8;
    --bagly-soft: #f5f8fc;
    --bagly-border: rgba(18, 27, 47, 0.1);
    --bagly-shadow: 0 24px 70px rgba(18, 27, 47, 0.12);
    --bagly-footer: #0e1628;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--bagly-text);
    background: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: inherit; }

.page-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid var(--bagly-border);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--bagly-dark);
    font-weight: 900;
    font-size: 1.45rem;
    letter-spacing: -0.05em;
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-block;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--bagly-primary), var(--bagly-accent));
    box-shadow: 0 12px 28px rgba(20, 103, 255, 0.24);
    flex: 0 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: auto;
    height: 58px;
    padding-top:10px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.95rem;
    font-weight: 700;
}

.header-nav a {
    color: var(--bagly-muted);
    text-decoration: none;
}

.header-nav a:hover { color: var(--bagly-primary); }

.header-cta {
    padding: 10px 16px;
    border-radius: 999px;
    color: #ffffff !important;
    background: var(--bagly-primary);
    box-shadow: 0 12px 26px rgba(20, 103, 255, 0.22);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 92px 0 86px;
    background:
        radial-gradient(circle at 8% 8%, rgba(20, 103, 255, 0.16), transparent 30%),
        radial-gradient(circle at 92% 4%, rgba(0, 194, 168, 0.18), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    align-items: center;
    gap: 72px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--bagly-primary);
    background: rgba(20, 103, 255, 0.09);
    border: 1px solid rgba(20, 103, 255, 0.12);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
    max-width: 720px;
    margin-bottom: 22px;
    color: var(--bagly-dark);
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.075em;
}

h2 {
    color: var(--bagly-dark);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.06em;
}

h3 {
    color: var(--bagly-dark);
    font-size: 1.1rem;
    line-height: 1.25;
    font-weight: 850;
    letter-spacing: -0.025em;
}

.hero-text {
    max-width: 590px;
    margin-bottom: 30px;
    color: var(--bagly-muted);
    font-size: 1.18rem;
}

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

.btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    color: #ffffff;
    background: var(--bagly-primary);
    box-shadow: 0 18px 36px rgba(20, 103, 255, 0.26);
}

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

.btn-secondary {
    color: var(--bagly-dark);
    background: #ffffff;
    border: 1px solid var(--bagly-border);
    box-shadow: 0 12px 30px rgba(18, 27, 47, 0.07);
}

.btn-light {
    color: var(--bagly-dark);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    color: var(--bagly-muted);
    font-size: 0.95rem;
    font-weight: 750;
}

.trust-row span::before {
    content: "✓";
    margin-right: 8px;
    color: var(--bagly-accent);
    font-weight: 900;
}

.preview-shell {
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 54px;
    border-radius: 42px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--bagly-shadow);
}

.tag-preview {
    position: relative;
    width: min(100%, 390px);
    aspect-ratio: 1.66 / 1;
    border-radius: 34px;
    transform: rotate(-5deg);
    background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
    border: 1px solid rgba(20, 103, 255, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.95),
        0 30px 60px rgba(20, 103, 255, 0.2);
}

.tag-preview::after {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(20, 103, 255, 0.12);
    border-radius: 24px;
    pointer-events: none;
}

.tag-hole {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #dceaff;
    box-shadow: inset 0 3px 10px rgba(18, 27, 47, 0.2);
    z-index: 2;
}

.tag-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
}

.tag-label {
    margin-bottom: 10px;
    color: var(--bagly-primary);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tag-inner strong {
    max-width: 260px;
    color: var(--bagly-dark);
    font-size: 2rem;
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.tag-subline {
    margin-top: 16px;
    color: var(--bagly-muted);
    font-size: 0.95rem;
}

.qr-placeholder {
    position: absolute;
    right: 32px;
    bottom: 32px;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    opacity: 0.18;
    background:
        linear-gradient(90deg, var(--bagly-dark) 50%, transparent 50%) 0 0 / 16px 16px,
        linear-gradient(var(--bagly-dark) 50%, transparent 50%) 0 0 / 16px 16px;
}

.section {
    padding: 96px 0;
}

.section-white { background: #ffffff; }
.section-soft { background: var(--bagly-soft); }

.section-head {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-head p,
.split-copy p {
    color: var(--bagly-muted);
    font-size: 1.05rem;
}

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

.feature-card,
.step-card {
    min-height: 220px;
    padding: 30px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--bagly-border);
    box-shadow: 0 18px 44px rgba(18, 27, 47, 0.065);
}

.feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 58px rgba(18, 27, 47, 0.11);
}

.card-number,
.step-card span {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 15px;
    color: var(--bagly-primary);
    background: rgba(20, 103, 255, 0.09);
    font-weight: 900;
    font-size: 0.86rem;
}

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

.split-section {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 52px;
    align-items: center;
}

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

.step-card span {
    color: #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bagly-primary), var(--bagly-accent));
}

.buy-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 44px;
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.22), transparent 28%),
        linear-gradient(135deg, var(--bagly-primary), var(--bagly-dark));
    box-shadow: 0 32px 76px rgba(18, 27, 47, 0.22);
}

.buy-label {
    display: inline-block;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.76);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.buy-copy h2 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.buy-copy p {
    margin-bottom: 0;
    color: rgba(255,255,255,0.78);
}

.buy-action {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
}

.price {
    color: #ffffff;
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.06em;
    white-space: nowrap;
}

.checkout-note {
    margin: 18px 0 0;
    color: var(--bagly-muted);
    font-size: 0.92rem;
    text-align: center;
}

.site-footer {
    padding: 64px 0;
    color: #b7c0d0;
    background: var(--bagly-footer);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand,
.site-footer h3 {
    color: #ffffff;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.footer-logo-img {
    display: block;
    width: auto;
    height: 150px;

}

.site-footer h3 {
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 850;
}

.site-footer p {
    margin-bottom: 0;
}

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

.site-footer li + li { margin-top: 9px; }
.site-footer a { color: #b7c0d0; text-decoration: none; }
.site-footer a:hover { color: #ffffff; }

@media (max-width: 980px) {
    .hero-grid,
    .split-section {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-section { padding: 72px 0; }
    .preview-shell { min-height: 390px; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .page-container { width: min(100% - 28px, 1120px); }
    .header-inner { min-height: 68px; }
    .header-nav a:not(.header-cta) { display: none; }
    .header-cta { padding: 9px 13px; font-size: 0.9rem; }
    .brand { font-size: 1.25rem; }
    .brand-mark { width: 34px; height: 34px; border-radius: 11px; }

    .hero-section { padding: 56px 0 48px; text-align: center; }
    .hero-copy .eyebrow { margin-left: auto; margin-right: auto; }
    .hero-text { margin-left: auto; margin-right: auto; font-size: 1.05rem; }
    .hero-actions { flex-direction: column; }
    .trust-row { justify-content: center; }
    .preview-shell { min-height: 310px; padding: 26px; border-radius: 30px; }
    .tag-preview { width: min(100%, 320px); border-radius: 27px; }
    .tag-inner { padding: 30px; text-align: left; }
    .tag-inner strong { font-size: 1.45rem; }
    .qr-placeholder { display: none; }

    .section { padding: 68px 0; }
    .section-head { margin-bottom: 34px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card,
    .step-card { min-height: auto; padding: 24px; border-radius: 24px; }
    .buy-box { flex-direction: column; align-items: stretch; padding: 28px; text-align: center; border-radius: 28px; }
    .buy-action { flex-direction: column; align-items: stretch; }
    .buy-action .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }

    .brand-logo {
        height: 30px;
    }
}

.legal-hero {
    padding: 72px 0 36px;
    background:
        radial-gradient(circle at top right, rgba(0, 184, 217, 0.16), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
}

.legal-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.06em;
    color: var(--bagly-dark);
}

.legal-hero p {
    margin: 0;
    color: var(--bagly-muted);
    font-size: 1.1rem;
}

.legal-section {
    padding: 48px 0 88px;
    background: #ffffff;
}

.legal-card {
    max-width: 860px;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--bagly-border);
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.legal-card h2 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    color: var(--bagly-dark);
}

.legal-card h2:not(:first-child) {
    margin-top: 34px;
}

.legal-card p {
    margin: 0;
    color: var(--bagly-muted);
    line-height: 1.75;
}

.legal-card a {
    color: var(--bagly-primary);
    font-weight: 700;
    text-decoration: none;
}

.legal-card a:hover {
    text-decoration: underline;
}

.legal-list {
    margin: 12px 0 0;
    padding-left: 22px;
    color: var(--bagly-muted);
    line-height: 1.75;
}

.legal-list li + li {
    margin-top: 10px;
}

.legal-card p + p {
    margin-top: 14px;
}

.withdrawal-box {
    margin-top: 18px;
    padding: 24px;
    border-radius: 22px;
    background: #f5f8fc;
    border: 1px solid var(--bagly-border);
}

.withdrawal-box p {
    margin: 0;
}

.withdrawal-box p + p {
    margin-top: 16px;
}
