/* ============================================================
   PREMIUM LAYER — refined "expensive" look for TrustCard
   Loaded after style.css. Overrides tokens + polishes surfaces.
   ============================================================ */

/* ---------- 1. Refined design tokens ---------- */
.landing {
    --bg-primary: #f7f7fb;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f2f8;
    --text-primary: #0b0d1a;
    --text-secondary: #565a72;
    --text-muted: #9498ac;
    --border: #e7e8f0;
    --border-light: #f0f1f7;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 1px 2px rgba(16, 18, 46, .05);
    --shadow-md: 0 6px 16px -4px rgba(16, 18, 46, .09), 0 2px 6px -2px rgba(16, 18, 46, .06);
    --shadow-lg: 0 18px 40px -12px rgba(16, 18, 46, .14), 0 6px 16px -8px rgba(16, 18, 46, .10);
    --shadow-xl: 0 40px 80px -20px rgba(16, 18, 46, .22), 0 16px 32px -16px rgba(16, 18, 46, .12);
    --ring: rgba(46, 43, 240, .16);
}

/* ---------- 2. Premium canvas: warm mesh + fine grain ----------
   NOTE: painted as plain background layers on .landing itself.
   Do NOT use fixed full-viewport overlays or mix-blend-mode here —
   a blend layer over the 3D/perspective hero card forces the browser
   to flatten it into an intermediate buffer, which blurs the card. */
.landing {
    background-color: #f7f7fb;
    background-image:
        radial-gradient(58% 42% at 84% 4%, rgba(108, 91, 255, .13) 0%, rgba(108, 91, 255, 0) 60%),
        radial-gradient(50% 38% at 10% 2%, rgba(46, 43, 240, .10) 0%, rgba(46, 43, 240, 0) 58%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat, repeat;
    background-position: 0 0, 0 0, 0 0;
    background-size: 100% 900px, 100% 900px, 160px 160px;
}

/* ---------- 3. Typography refinements ---------- */
.landing {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv11", "ss01", "kern";
}

.hero-title {
    letter-spacing: -.038em;
    font-weight: 750;
    line-height: 1.06;
}

.section-title {
    letter-spacing: -.035em;
    font-weight: 740;
    line-height: 1.12;
}

.hero-desc, .section-desc {
    color: var(--text-secondary);
    letter-spacing: -.006em;
}

/* refined gradient ink where the design already uses it */
.title-gradient {
    background: linear-gradient(120deg, #2E2BF0 0%, #4B3BFF 45%, #6C5BFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- 4. Glass header ---------- */
.header {
    background: rgba(247, 247, 251, .72);
    border-bottom: 1px solid rgba(16, 18, 46, .06);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 24px -18px rgba(16, 18, 46, .35);
}

/* dark "Get Started" pill — refined depth */
.header-cta, .btn-dark {
    box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 8px 20px -8px rgba(11, 13, 26, .5) !important;
    letter-spacing: -.01em;
}

/* ---------- 5. Promo banner — deep & classy, less neon ---------- */
.promo-banner {
    background: linear-gradient(115deg, #1a18b8 0%, #2E2BF0 42%, #4B3BFF 78%, #6C5BFF 100%);
    box-shadow: 0 10px 34px -14px rgba(46, 43, 240, .5);
    overflow: hidden;
}
.promo-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(40% 120% at 88% 0%, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(0deg, rgba(0, 0, 0, .10), rgba(0, 0, 0, 0));
}

/* ---------- 6. Buttons ---------- */
.btn-primary {
    background: linear-gradient(135deg, #4B3BFF 0%, #2E2BF0 55%, #1E1BC4 100%);
    border-radius: 14px;
    letter-spacing: -.01em;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .28) inset,
        0 -1px 0 rgba(0, 0, 0, .14) inset,
        0 12px 26px -10px rgba(46, 43, 240, .6),
        0 4px 10px -4px rgba(46, 43, 240, .42);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .3) inset,
        0 -1px 0 rgba(0, 0, 0, .16) inset,
        0 20px 38px -12px rgba(46, 43, 240, .68),
        0 8px 16px -6px rgba(46, 43, 240, .5);
}

.btn-secondary {
    border-radius: 14px;
    border: 1px solid rgba(16, 18, 46, .12);
    background: rgba(255, 255, 255, .6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    letter-spacing: -.01em;
    box-shadow: var(--shadow-sm);
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
}
.btn-secondary:hover {
    border-color: rgba(46, 43, 240, .35);
    background: #ffffff;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* ---------- 7. Chips / badges ---------- */
.hero-badge, .section-tag {
    background: linear-gradient(180deg, rgba(46, 43, 240, .10), rgba(46, 43, 240, .05));
    border: 1px solid rgba(46, 43, 240, .18);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, var(--shadow-sm);
    letter-spacing: -.005em;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* ---------- 8. Feature / content cards ---------- */
.feature-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfe 100%);
    border: 1px solid rgba(16, 18, 46, .07);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(46, 43, 240, .22);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    background: linear-gradient(150deg, #4B3BFF 0%, #2E2BF0 60%, #1E1BC4 100%);
    border-radius: 15px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .3) inset,
        0 10px 22px -8px rgba(46, 43, 240, .55);
}

/* ---------- 9. Credit card depth (hero + premium sections) ---------- */
.credit-card-surface {
    border-radius: 16px;
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .14),
        inset 0 -1px rgba(0, 0, 0, .3),
        0 0 0 1px rgba(255, 255, 255, .06),
        0 40px 70px -24px rgba(11, 16, 48, .55),
        0 18px 36px -18px rgba(11, 16, 48, .4);
}
.credit-card:hover .credit-card-surface {
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .18),
        inset 0 -1px rgba(0, 0, 0, .32),
        0 0 0 1px rgba(255, 255, 255, .08),
        0 55px 90px -28px rgba(11, 16, 48, .6),
        0 24px 46px -20px rgba(11, 16, 48, .45);
}

/* Brushed-metal black hero card (reference look) */
.credit-card--themed .credit-card-surface {
    position: relative;
    overflow: hidden;
}
/* fine vertical brushed-aluminium grain */
.credit-card--themed .credit-card-surface::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background:
        repeating-linear-gradient(90deg,
            rgba(255, 255, 255, .035) 0px,
            rgba(255, 255, 255, .035) 1px,
            rgba(0, 0, 0, .05) 2px,
            rgba(0, 0, 0, .05) 3px);
    opacity: .6;
}
/* diagonal metallic sheen + top glow */
.credit-card--themed .credit-card-surface::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, .10) 46%, rgba(255, 255, 255, .20) 50%, rgba(255, 255, 255, .08) 55%, rgba(255, 255, 255, 0) 66%),
        radial-gradient(70% 55% at 24% 0%, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 60%);
}

/* whiter, cleaner silver back card */
.credit-card--silver .credit-card-surface {
    background: linear-gradient(150deg, #ffffff 0%, #f1f2f6 40%, #e4e6ee 70%, #f6f7fb 100%) !important;
}

/* ---------- Hero: cards on a white podium ---------- */

/* softer, misty premium backdrop for the showcase */
.cards-showcase-new {
    position: relative;
    height: 360px !important;
}
/* the white pedestal the cards stand on */
.cards-showcase-new::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 26px;
    width: 470px;
    height: 104px;
    transform: translateX(-50%);
    background:
        radial-gradient(ellipse 50% 52% at 50% 34%, #ffffff 0%, #eef0f6 46%, rgba(238, 240, 246, .55) 66%, rgba(238, 240, 246, 0) 78%);
    border-radius: 50%;
    box-shadow: 0 34px 54px -22px rgba(24, 34, 66, .28);
    z-index: 0;
}
/* soft contact shadow directly beneath the cards */
.cards-showcase-new::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 44px;
    width: 340px;
    height: 40px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at 50% 50%, rgba(20, 28, 56, .28) 0%, rgba(20, 28, 56, 0) 70%);
    filter: blur(6px);
    z-index: 0;
}
.card-stack-wrapper { z-index: 1; }

/* ---------- 10. Floating hero badges ----------
   Target the actual badge chips only. Do NOT add backdrop-filter to the
   .floating-* wrapper containers — they are large transparent boxes that
   fully overlap the 3D card, so blurring their backdrop blurs the card. */
.stat-card, .payment-badge, .audited-badge {
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid rgba(16, 18, 46, .07) !important;
}

/* ---------- 11. Footer polish ---------- */
.footer {
    border-top: 1px solid rgba(16, 18, 46, .07);
    background: linear-gradient(180deg, rgba(247, 247, 251, 0) 0%, rgba(241, 242, 248, .8) 100%);
}

/* ---------- 12. Reward progress bars ---------- */
.rewards [class*="track"], .rewards [class*="progress"] {
    border-radius: 100px;
    overflow: hidden;
}
.rewards [class*="fill"], .rewards [class*="bar"] > [style*="width"] {
    background: linear-gradient(90deg, #2E2BF0 0%, #4B3BFF 60%, #6C5BFF 100%) !important;
    box-shadow: 0 2px 10px -2px rgba(46, 43, 240, .5);
    border-radius: 100px;
}

/* ---------- 13. Focus states (accessibility + polish) ---------- */
.landing a:focus-visible,
.landing button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--ring), var(--shadow-md);
}


/* ---------- Mobile: bring the card onto the first screen (compact) ---------- */
@media (max-width: 640px) {
    .promo-inner { padding-top: 8px !important; padding-bottom: 8px !important; }
    .hero { padding-top: 14px !important; padding-bottom: 78px !important; }
    .hero-inner { row-gap: 24px !important; gap: 24px !important; }
    .hero-badge { margin-bottom: 10px !important; }
    .hero-title { font-size: 28px !important; line-height: 1.1 !important; margin-bottom: 10px !important; }
    .hero-desc { font-size: 14px !important; line-height: 1.45 !important; margin-bottom: 13px !important; }
    .hero-actions { gap: 10px !important; margin-bottom: 6px !important; }
    .hero-actions > * { padding: 13px 20px !important; }
    .hero-trust { margin-top: 20px !important; }
    /* shrink the empty space around the card so it lifts into view */
    .cards-showcase, .cards-showcase-new { height: 205px !important; }
}


/* ---------- Promo banner removed (hero clears the fixed header itself) ---------- */
.promo-banner, #promoBanner { display: none !important; }
.hero { margin-top: 73px !important; }
