/* ============================================================
   PlusPayment - Home page specific styles
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 680px;
    padding: 152px 0 96px;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 30%, rgba(54, 211, 153, 0.10), transparent 45%),
        radial-gradient(circle at 15% 70%, rgba(22, 93, 255, 0.10), transparent 45%),
        linear-gradient(180deg, #F2F6FF 0%, #FFFFFF 100%);
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero__globe {
    position: absolute;
    bottom: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 920px;
    height: 920px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(22, 93, 255, 0.18), transparent 55%),
        radial-gradient(circle at 70% 60%, rgba(54, 211, 153, 0.12), transparent 55%);
    border: 1px solid rgba(22, 93, 255, 0.08);
    box-shadow: inset 0 0 120px rgba(22, 93, 255, 0.08);
    opacity: 0.9;
}

.hero__globe::before,
.hero__globe::after,
.hero__lines {
    content: "";
    position: absolute;
    border: 1px dashed rgba(22, 93, 255, 0.16);
    border-radius: 50%;
}

.hero__globe::before {
    inset: 12%;
    border-style: solid;
    border-color: rgba(22, 93, 255, 0.08);
}

.hero__globe::after {
    inset: 28%;
    border-color: rgba(54, 211, 153, 0.18);
}

.hero__lines {
    inset: -10%;
    border-color: rgba(22, 93, 255, 0.08);
    border-style: solid;
}

.hero__inner {
    position: relative;
    text-align: center;
    z-index: 1;
}

.hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(22, 93, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-1);
    margin-bottom: 28px;
}

.hero__chip-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(54, 211, 153, 0.18);
}

.hero__title {
    font-size: 56px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 auto 24px;
    max-width: 1080px;
    color: var(--color-text-1);
}

.hero__divider {
    color: var(--color-text-4);
    font-weight: 300;
    margin: 0 16px;
}

.hero__highlight {
    background: linear-gradient(120deg, #165DFF 0%, #36D399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__sub {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-3);
    max-width: 760px;
    margin: 0 auto 36px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.hero__highlights {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--color-text-2);
    font-weight: 500;
}

.hero__highlights li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ---------- Module 2: Product Cards ---------- */
.prod-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.prod-card {
    padding: 28px 24px 24px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.prod-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #fff;
}

.prod-card__icon--blue {
    background: linear-gradient(135deg, #165DFF 0%, #2E72FF 100%);
}

.prod-card__icon--green {
    background: linear-gradient(135deg, #36D399 0%, #2BBA85 100%);
}

.prod-card h3 {
    margin-bottom: 10px;
    color: var(--color-text-1);
}

.prod-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-3);
    flex: 1;
}

.prod-card__metric {
    margin-top: 18px;
}

/* ---------- Module 3: Stats ---------- */
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stats__item {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 32px 28px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: var(--transition-default);
}

.stats__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.stats__big {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.stats__label {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-1);
    margin-bottom: 8px;
}

.stats__item p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-3);
    margin-bottom: 20px;
}

.stats__chart {
    width: 100%;
    height: 40px;
    display: block;
}

/* ---------- Module 4: Logo Wall ---------- */
.logo-groups {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.logo-group__title {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-3);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.logo-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.logo-pill {
    height: 72px;
    border: 1px solid var(--color-border-soft);
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-default);
    overflow: hidden;
}

.logo-pill:hover {
    border-color: rgba(22, 93, 255, 0.18);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.payment-logo {
    display: block;
    width: 112px;
    height: 32px;
    object-fit: contain;
}

.payment-logo--jcb {
    width: 112px;
    height: 32px;
}

.payment-logo--apple-pay {
    width: 112px;
    height: 32px;
}

.payment-logo--google-pay {
    width: 112px;
    height: 32px;
}

/* Compensate for source files whose artwork has large transparent margins. */
.payment-logo--amazon-pay {
    width: 144px;
    height: 96px;
}

.payment-logo--bancontact {
    width: 58px;
    height: 58px;
}

.payment-logo--przelewy24 {
    width: 96px;
    height: 96px;
}

.payment-logo--boleto {
    width: 66px;
    height: 66px;
}

.payment-logo--klarna {
    width: 128px;
    height: 40px;
}

.payment-logo--ideal {
    width: 44px;
    height: 44px;
}

.payment-logo--pix {
    width: 40px;
    height: 40px;
}

/* ---------- Module 5: Solutions ---------- */
.solutions__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.solution-card {
    padding: 32px;
    min-height: 220px;
    position: relative;
}

.solution-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.solution-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.solution-card__pain {
    font-size: 14px;
    color: var(--color-text-3);
    line-height: 1.7;
    margin-bottom: 16px;
}

.solution-card__bullets {
    margin-bottom: 20px;
}

.solution-card__bullets li {
    font-size: 14px;
    color: var(--color-text-2);
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.solution-card__bullets li span {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    margin-top: 9px;
}

.solution-card--featured {
    background: linear-gradient(135deg, #0F2A6E 0%, #165DFF 100%);
    color: #fff;
    border: none;
}

.solution-card--featured h3,
.solution-card--featured .solution-card__pain,
.solution-card--featured .solution-card__bullets li {
    color: #fff;
}

.solution-card--featured .solution-card__pain {
    color: rgba(255, 255, 255, 0.78);
}

.solution-card--featured .solution-card__bullets li {
    color: rgba(255, 255, 255, 0.92);
}

.solution-card--featured .solution-card__icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.solution-card--featured .btn--text {
    color: #fff;
}

.solution-card--featured .btn--text:hover {
    color: var(--color-accent);
}

.solution-card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(54, 211, 153, 0.18);
    color: #fff;
    border: 1px solid rgba(54, 211, 153, 0.6);
}

/* ---------- Module 6: Partners + Inline form ---------- */
.partners__wall {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 64px;
}

.partner {
    height: 80px;
    background: #fff;
    border: 1px solid var(--color-border-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-default);
    overflow: hidden;
}

.partner:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(22, 93, 255, 0.16);
}

.partner-logo {
    display: block;
    width: 76%;
    height: 48px;
    object-fit: contain;
}

.partner--dark {
    background: #152B7F;
}

.inline-form {
    background: linear-gradient(135deg, #F2F6FF 0%, #FFFFFF 100%);
    border: 1px solid var(--color-border-soft);
    border-radius: 16px;
    padding: 36px 40px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    align-items: center;
}

.inline-form__intro h3 {
    margin-bottom: 8px;
}

.inline-form__intro p {
    font-size: 14px;
    color: var(--color-text-3);
}

.inline-form__form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    position: relative;
}

.inline-form__form .form-field:first-child,
.inline-form__form .form-field:nth-child(2) {
    grid-column: span 1;
}

.inline-form__form .form-field:nth-child(3),
.inline-form__form .form-field:nth-child(4) {
    grid-column: span 1;
}

.inline-form__form button[type="submit"] {
    grid-column: span 3;
    justify-self: end;
    min-width: 160px;
}

/* Form Field (shared) */
.form-field {
    position: relative;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: var(--color-text-1);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.form-field textarea {
    height: 120px;
    padding: 12px 14px;
    resize: vertical;
}

.form-field select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386909C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 36px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--color-text-3);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(22, 93, 255, 0.12);
}

.form-field.is-ok input,
.form-field.is-ok select,
.form-field.is-ok textarea {
    border-color: var(--color-success);
}

.form-field.is-ok::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 14px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300B42A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / contain;
}

.form-field.is-err input,
.form-field.is-err select,
.form-field.is-err textarea {
    border-color: var(--color-danger);
    background-color: #FFF5F5;
}

.form-field__err {
    display: block;
    min-height: 18px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--color-danger);
}

.form-toast {
    position: absolute;
    left: 0;
    bottom: -36px;
    font-size: 13px;
    color: var(--color-success);
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.3s ease;
}

.form-toast.is-show {
    opacity: 1;
    transform: translateY(0);
}

.btn.is-disabled,
.btn:disabled {
    background: var(--color-text-4);
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    pointer-events: none;
}

/* ============================================================
   Brand Logo Visuals (Pure CSS - no external images)
   保证 file:// 离线运行
   ============================================================ */
.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    user-select: none;
}

/* Visa */
.brand-visa {
    color: #1A1F71;
    font-size: 22px;
    font-style: italic;
    letter-spacing: 0.04em;
}

/* Mastercard */
.brand-mc {
    position: relative;
    width: 56px;
    height: 32px;
    display: inline-flex;
}

.brand-mc span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: absolute;
    top: 0;
}

.brand-mc span:first-child {
    background: #EB001B;
    left: 0;
}

.brand-mc span:last-child {
    background: #F79E1B;
    left: 24px;
    mix-blend-mode: multiply;
}

.logo-pill em {
    font-style: normal;
    font-weight: 500;
    color: #333;
    font-size: 10px;
    margin-left: 8px;
}

/* UnionPay */
.brand-up {
    background: linear-gradient(90deg, #D40026 0%, #003B73 50%, #009A3E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 18px;
}

/* Amex */
.brand-amex {
    background: #006FCF;
    color: #fff;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 3px;
}

/* Discover */
.brand-disc {
    color: #FF6600;
    font-size: 16px;
    letter-spacing: 0.06em;
}

/* Diners */
.brand-diners {
    color: #0079BE;
    font-size: 17px;
}

/* PayPal */
.brand-paypal {
    color: #003087;
    font-size: 18px;
    font-style: italic;
}

.brand-paypal::after {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #009CDE;
    border-radius: 50%;
    margin-left: 2px;
}

/* Klarna */
.brand-klarna {
    background: #FFA8CD;
    color: #17120E;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 4px;
}

/* Alipay */
.brand-alipay {
    color: #00A0E9;
    font-size: 17px;
}

/* WeChat Pay */
.brand-wechat {
    color: #1AAD19;
    font-size: 15px;
}

/* Boleto */
.brand-boleto {
    color: #4DACFE;
    font-size: 14px;
    font-weight: 700;
}

/* OXXO */
.brand-oxxo {
    background: #E60000;
    color: #FFE600;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 3px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

/* iDEAL */
.brand-ideal {
    color: #CC0066;
    font-size: 14px;
    font-style: italic;
}

/* Przelewy24 */
.brand-p24 {
    background: linear-gradient(90deg, #D40000 0%, #D40000 50%, #000 50%, #000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 16px;
}

/* PIX */
.brand-pix {
    color: #32BCAD;
    font-size: 16px;
    font-weight: 800;
}

/* GCash */
.brand-gcash {
    color: #007DFE;
    font-size: 14px;
    font-weight: 700;
}

/* Adyen */
.brand-adyen {
    background: #0ABF53;
    color: #fff;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 3px;
    font-weight: 700;
}

/* DBS */
.brand-dbs {
    background: #BB0011;
    color: #fff;
    padding: 6px 12px;
    font-size: 14px;
    letter-spacing: 0.1em;
    font-weight: 900;
}

/* Verifi */
.brand-verifi {
    color: #00ADBB;
    font-size: 14px;
    font-weight: 700;
}

/* Airwallex */
.brand-airwallex {
    color: #612FFF;
    font-size: 14px;
    font-weight: 700;
}

/* Stripe */
.brand-stripe {
    color: #635BFF;
    font-size: 16px;
    font-weight: 800;
}

/* Payoneer */
.brand-payoneer {
    color: #FF4800;
    font-size: 13px;
    font-weight: 700;
}

/* WorldFirst */
.brand-wfirst {
    color: #003366;
    font-size: 13px;
    font-weight: 700;
}

/* PingPong */
.brand-pingpong {
    color: #FF4F0F;
    font-size: 13px;
    font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
    .prod-cards { grid-template-columns: repeat(2, 1fr); }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .logo-row { grid-template-columns: repeat(4, 1fr); }
    .partners__wall { grid-template-columns: repeat(4, 1fr); }
    .hero__title { font-size: 44px; }
}

@media (max-width: 768px) {
    .hero { min-height: 560px; padding: 120px 0 64px; }
    .hero__title { font-size: 32px; }
    .hero__sub { font-size: 16px; }
    .hero__actions { flex-direction: column; }
    .hero__highlights { gap: 16px; font-size: 13px; }
    .prod-cards { grid-template-columns: 1fr; }
    .stats__grid { grid-template-columns: 1fr 1fr; }
    .stats__big { font-size: 36px; }
    .logo-row { grid-template-columns: repeat(3, 1fr); }
    .solutions__grid { grid-template-columns: 1fr; }
    .partners__wall { grid-template-columns: repeat(3, 1fr); }
    .inline-form { grid-template-columns: 1fr; padding: 24px; }
    .inline-form__form { grid-template-columns: 1fr; }
    .inline-form__form button[type="submit"] { grid-column: span 1; justify-self: stretch; }
}
