/* ============================================================
   CSS — extracted from landing.php
   ============================================================ */

:root {
    --bg-base: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --text-900: #020617;
    --text-700: #334155;
    --text-500: #64748B;
    --text-400: #94A3B8;
    --brand-main: #0EA5E9;
    --brand-glow: #0EA5E930;
    --brand-dark: #000000;
    --brand-white: #FFFFFF;
    --border-light: rgba(0, 0, 0, 0.04);
    --border-med: rgba(0, 0, 0, 0.08);
    --shadow-float: 0 30px 60px -10px rgba(0, 0, 0, .06), 0 20px 30px -10px rgba(0, 0, 0, .04);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, .05), 0 2px 4px -1px rgba(0, 0, 0, .03);
    --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, .8);
    --section-py: 80px;
}

[data-theme="dark"] {
    --bg-base: #0B101E;
    --bg-card: #141B2D;
    --bg-glass: rgba(20, 27, 45, 0.7);
    --text-900: #F8FAFC;
    --text-700: #CBD5E1;
    --text-500: #94A3B8;
    --text-400: #64748B;
    --border-light: rgba(255, 255, 255, .04);
    --border-med: rgba(255, 255, 255, .08);
    --brand-dark: #FFFFFF;
    --brand-white: #000000;
    --shadow-float: 0 30px 60px -10px rgba(0, 0, 0, .4), 0 20px 30px -10px rgba(0, 0, 0, .3);
    --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, .05);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-base);
    color: var(--text-900);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    transition: background-color .4s ease, color .4s ease;
}

header,
.bento-card,
.orbit-card,
.glass-mockup,
.mega-footer,
.marquee {
    transition: background .4s ease, border-color .4s ease, color .4s ease;
}

/* Noise overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: .04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4,
.display-font {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

/* ── Nav ── */
header {
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 64px);
    max-width: 1280px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px 12px 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 100px;
    border: 1px solid var(--border-med);
    box-shadow: var(--shadow-card), var(--shadow-inner);
    z-index: 100;
    transition: padding .4s ease, background .4s ease, box-shadow .4s ease, top .4s ease;
}

header.scrolled {
    top: 0;
    padding: 6px 16px 6px 20px;
    background: var(--bg-glass);
    box-shadow: 0 8px 40px -10px rgba(0, 0, 0, .15), var(--shadow-inner);
}

[data-theme="dark"] header.scrolled {
    box-shadow: 0 8px 40px -10px rgba(0, 0, 0, .5), var(--shadow-inner);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-900);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
}

.logo-icon {
    color: var(--brand-main);
    width: 24px;
    height: 24px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-700);
    font-weight: 500;
    font-size: .95rem;
    transition: color .2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-main);
    border-radius: 2px;
    transition: width .3s cubic-bezier(.16, 1, .3, 1);
}

.nav-links a:hover {
    color: var(--text-900);
}

.nav-links a:hover::after {
    width: 100%;
}

.desktop-ctas {
    display: flex;
    gap: 12px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: transparent;
    border: none;
    z-index: 10002;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-900);
    border-radius: 2px;
    transition: all .3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-base);
    z-index: 10001;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu a {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-500);
    text-decoration: none;
    letter-spacing: -0.02em;
    transform: translateY(20px);
    opacity: 0;
    transition: all .4s cubic-bezier(.16, 1, .3, 1);
}

.mobile-menu.open a {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu a:nth-child(1) {
    transition-delay: .1s;
}

.mobile-menu a:nth-child(2) {
    transition-delay: .15s;
}

.mobile-menu a:nth-child(3) {
    transition-delay: .2s;
}

.mobile-menu a:hover {
    color: var(--text-900);
    transform: translateX(10px);
}

@media (max-width: 768px) {

    .nav-links,
    .desktop-ctas {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    header {
        padding: 10px 16px;
        width: calc(100% - 32px);
    }

    /* Mobile menu - smaller font */
    .mobile-menu a {
        font-size: 2rem;
    }
}

/* Buttons */
.btn {
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all .3s cubic-bezier(.16, 1, .3, 1);
    overflow: hidden;
    position: relative;
}

.btn-primary {
    background: var(--brand-dark);
    color: var(--brand-white);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .5);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, .4);
}

[data-theme="dark"] .btn-primary {
    box-shadow: 0 10px 20px -10px rgba(255, 255, 255, .2);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-900);
    border: 1px solid var(--border-med);
    box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
    border-color: var(--text-400);
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    transform: scale(0);
    animation: rippleAnim .55s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ── Hero ── */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    gap: 48px;
    padding: 120px 40px 60px;
    /* FIX: was 80px top — nav overlapped content */
    position: relative;
    overflow: hidden;
    max-width: 1600px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 120px 24px 60px;
        text-align: center;
        gap: 64px;
        align-items: center;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-tag {
        align-self: center;
    }

    .hero h1 {
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
        width: 100%;
        max-width: 320px;
    }

    .hero-text .trusted-strip {
        margin: 40px auto 0;
        justify-content: center;
    }

    /* FIX: center the visual block on tablet */
    .hero-visual {
        margin: 0 auto;
        width: 100%;
        max-width: 480px;
    }
}

/* Mobile phones - extra centering fixes */
@media (max-width: 600px) {
    .hero {
        padding: 100px 20px 48px;
        gap: 48px;
    }

    .hero-text {
        gap: 16px;
    }

    .hero-tag {
        font-size: .7rem;
        padding: 6px 14px;
        margin-bottom: 16px;
    }

    .hero h1 {
        margin-bottom: 16px;
    }

    .hero-subtitle {
        margin-bottom: 24px;
    }

    .hero-ctas {
        gap: 10px;
        margin-bottom: 32px;
    }

    .trusted-strip {
        gap: 8px;
    }

    .trusted-strip-label {
        width: 100%;
        text-align: center;
    }

    .trusted-logos {
        justify-content: center;
        gap: 8px;
    }
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-grid svg {
    width: 100%;
    height: 100%;
    opacity: .06;
}

[data-theme="dark"] .hero-grid svg {
    opacity: .12;
}

.grid-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: -4px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--brand-main), transparent);
    animation: gridScan 5s ease-in-out infinite;
    z-index: 1;
}

@keyframes gridScan {
    0% {
        top: -4px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-tag {
    background: var(--brand-glow);
    color: var(--brand-main);
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(14, 165, 233, .25);
    animation: fadeSlideUp .7s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-main);
    animation: pulse-green 2s ease-in-out infinite;
}

.hero h1 {
    font-size: clamp(2.2rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--text-900);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    animation: fadeSlideUp .8s cubic-bezier(.16, 1, .3, 1) .12s both;
}

.type-cursor {
    display: inline-block;
    width: 3px;
    background: var(--brand-main);
    border-radius: 2px;
    animation: blink .9s step-end infinite;
    vertical-align: text-bottom;
    height: .85em;
    margin-left: 4px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-500);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 32px;
    animation: fadeSlideUp .8s cubic-bezier(.16, 1, .3, 1) .22s both;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 56px;
    animation: fadeSlideUp .8s cubic-bezier(.16, 1, .3, 1) .32s both;
}

.trusted-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.trusted-strip-label {
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-400);
    font-weight: 600;
    white-space: nowrap;
}

.trusted-logos {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.trusted-logo {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-med);
    background: var(--bg-card);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: .7rem;
    letter-spacing: .04em;
    color: var(--text-500);
    transition: all .2s ease;
}

.trusted-logo:hover {
    border-color: var(--brand-main);
    color: var(--brand-main);
}

/* Hero visual */
.hero-visual {
    position: relative;
    z-index: 2;
    /* FIX: was fixed 560px — use min-height so it doesn't clip pills on small screens */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* FIX: add enough horizontal padding so absolutely-placed pills don't overflow on mobile */
    padding: 60px 80px;
    animation: fadeSlideUp 1s cubic-bezier(.16, 1, .3, 1) .5s both;
}

@media (max-width: 600px) {
    .hero-visual {
        padding: 40px 20px;
        min-height: 380px;
    }

    /* FIX: hide pills on very small screens — they overlap content */
    .hero-pill {
        display: none;
    }

    .dash-card {
        padding: 20px;
        border-radius: 20px;
    }

    .dash-volume {
        margin-bottom: 16px;
    }

    .dash-volume-label {
        font-size: .7rem;
    }

    .dash-volume-value {
        font-size: 1.6rem;
    }

    .dash-volume-sub {
        font-size: .7rem;
    }

    .mini-chart {
        height: 36px;
        margin-bottom: 16px;
    }

    .tx-feed {
        gap: 6px;
    }

    .tx-row {
        padding: 8px 10px;
    }

    .tx-icon {
        width: 28px;
        height: 28px;
        font-size: .65rem;
    }

    .tx-name {
        font-size: .75rem;
    }

    .tx-channel {
        font-size: .65rem;
    }

    .tx-amount {
        font-size: .8rem;
    }
}

.dash-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-glass);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border-med);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow-float), var(--shadow-inner);
    animation: floatDash 7s ease-in-out infinite;
    position: relative;
}

[data-theme="dark"] .dash-card {
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-left: 1px solid rgba(255, 255, 255, .07);
}

@keyframes floatDash {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-20px) rotate(.5deg);
    }
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dash-dots {
    display: flex;
    gap: 6px;
}

.dash-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dash-live {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #10B981;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .05em;
}

.dash-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    animation: pulse-green 1.5s ease-in-out infinite;
}

.dash-volume {
    margin-bottom: 20px;
}

.dash-volume-label {
    font-size: .78rem;
    color: var(--text-500);
    font-weight: 600;
    margin-bottom: 4px;
}

.dash-volume-value {
    font-family: 'Outfit';
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 900;
    color: var(--text-900);
    letter-spacing: -0.04em;
    line-height: 1;
}

.dash-volume-sub {
    font-size: .8rem;
    color: #10B981;
    font-weight: 600;
    margin-top: 4px;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 48px;
    margin-bottom: 20px;
}

.mini-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: var(--brand-glow);
    animation: barGrow 1.2s cubic-bezier(.16, 1, .3, 1) both;
}

.mini-bar.active {
    background: var(--brand-main);
}

@keyframes barGrow {
    from {
        transform: scaleY(0);
        transform-origin: bottom;
    }

    to {
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

.tx-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tx-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    animation: txSlideIn .4s ease both;
}

@keyframes txSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tx-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
    font-weight: 700;
    font-size: .72rem;
}

.tx-info {
    flex: 1;
    min-width: 0;
}

.tx-name {
    font-weight: 700;
    font-size: .83rem;
    color: var(--text-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-channel {
    font-size: .72rem;
    color: var(--text-500);
}

.tx-amount {
    font-family: 'Outfit';
    font-weight: 800;
    font-size: .9rem;
    white-space: nowrap;
}

.tx-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Floating pills — FIX: use position relative to .hero-visual */
.hero-pill {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 14px 20px;
    box-shadow: var(--shadow-float), var(--shadow-inner);
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    z-index: 5;
}

/* FIX: was right:-48px / left:-60px which went offscreen; bring inside viewport */
.pill-top {
    top: 12px;
    right: -20px;
    animation: floatPill1 6s ease-in-out infinite;
}

.pill-bottom {
    bottom: 40px;
    left: -20px;
    animation: floatPill2 8s ease-in-out infinite;
    background: #0EA5E9;
    border: none;
    color: white;
    box-shadow: 0 20px 40px rgba(14, 165, 233, .4);
}

@keyframes floatPill1 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes floatPill2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

.pill-icon {
    font-size: 1.2rem;
}

.pill-label {
    font-family: 'Outfit';
    font-weight: 800;
    font-size: .95rem;
}

.pill-sub {
    font-size: .72rem;
    color: var(--text-500);
    margin-top: 1px;
}

.pill-bottom .pill-sub {
    color: rgba(255, 255, 255, .7);
}

/* ── Sections ── */
.section {
    padding: var(--section-py) 32px;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .bento-card {
        padding: 24px;
        border-radius: 24px;
    }

    .section {
        padding: 60px 16px;
    }

    .container {
        width: calc(100% - 32px);
    }
}

/* ── Marquee ── */
.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 48px 0;
    background: transparent;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    position: relative;
    z-index: 1;
}

.marquee-inner {
    display: inline-block;
    animation: scroller 40s linear infinite;
}

.marquee-inner span {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: clamp(1rem, 3vw, 1.6rem);
    font-weight: 800;
    font-family: 'Outfit';
    color: var(--text-400);
    margin: 0 32px;
    opacity: .5;
    transition: opacity .3s;
}

.marquee-inner span:hover {
    opacity: 1;
    color: var(--text-900);
}

@keyframes scroller {
    100% {
        transform: translateX(-50%);
    }
}

/* ── Bento Grid ── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    /* FIX: was minmax(360px,auto) → too tall on mobile; use auto min */
    grid-auto-rows: minmax(auto, auto);
    gap: 24px;
    margin-top: 80px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 28px;
    padding: 32px 24px;
    box-shadow: var(--shadow-card), var(--shadow-inner);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all .4s cubic-bezier(.16, 1, .3, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
    /* FIX: ensure cards have a minimum sensible height */
    min-height: 280px;
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
}

.bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .06) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform .55s ease;
}

[data-theme="dark"] .bento-card::after {
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .04) 50%, transparent 60%);
}

.bento-card:hover::after {
    transform: translateX(100%);
}

.bento-main {
    grid-column: span 8;
}

.bento-side {
    grid-column: span 4;
}

.bento-half {
    grid-column: span 6;
}

@media (max-width: 1024px) {

    .bento-main,
    .bento-side,
    .bento-half {
        grid-column: span 12;
    }
}

.bento-card h3 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--text-900);
    margin-bottom: 16px;
}

.bento-card p {
    font-size: 0.95rem;
    color: var(--text-500);
    max-width: 400px;
    line-height: 1.6;
}

/* Dev bento animated border */
.bento-card.bento-dev {
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.bento-card.bento-dev::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 42px;
    background: linear-gradient(120deg, #0EA5E9, #6366F1, #10B981, #0EA5E9);
    background-size: 300% 300%;
    animation: borderGradient 4s ease infinite;
    z-index: -1;
}

@keyframes borderGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ── Steps ── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 64px;
    background: var(--border-light);
    border-radius: 32px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.step-item {
    background: var(--bg-card);
    padding: 40px 24px;
    transition: background .3s ease, transform .4s cubic-bezier(.16, 1, .3, 1);
}

.step-item:hover {
    background: var(--bg-glass);
    transform: translateY(-4px);
}

.step-num {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 900;
    color: var(--brand-main);
    opacity: .15;
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -0.05em;
}

.step-item h4 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--text-900);
    margin-bottom: 12px;
}

.step-item p {
    font-size: 1rem;
    color: var(--text-500);
    line-height: 1.7;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--brand-glow);
    color: var(--brand-main);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

/* ── Stats ── */
.stats-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--border-light);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-item {
    background: var(--bg-card);
    padding: 40px 20px;
    text-align: center;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--text-900);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: .8rem;
    color: var(--text-500);
    font-weight: 500;
}

.stat-number.counted {
    animation: statGlow .6s cubic-bezier(.16, 1, .3, 1);
}

@keyframes statGlow {
    0% {
        color: var(--brand-main);
        text-shadow: 0 0 30px rgba(14, 165, 233, .6);
    }

    100% {
        color: var(--text-900);
        text-shadow: none;
    }
}

/* ── Code Showcase ── */
.code-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 900px) {
    .code-showcase {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.code-block {
    background: #0A0A0F;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5);
}

.code-block-header {
    background: #111118;
    padding: 16px 24px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-body {
    padding: 20px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    line-height: 1.8;
    color: #94A3B8;
    overflow-x: auto;
}

.code-body .c-key {
    color: #E879F9;
}

.code-body .c-str {
    color: #4ADE80;
}

.code-body .c-num {
    color: #FB923C;
}

.code-body .c-cmt {
    color: #475569;
}

.code-body .c-fn {
    color: #67E8F9;
}

/* ── Testimonials ── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 80px;
}

@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: all .4s cubic-bezier(.16, 1, .3, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-float);
    border-color: var(--border-med);
}

.testimonial-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .05) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform .55s ease;
}

.testimonial-card:hover::after {
    transform: translateX(100%);
}

.stars {
    color: #F59E0B;
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.testimonial-card blockquote {
    font-size: 0.95rem;
    color: var(--text-700);
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: white;
}

.author-name {
    font-weight: 700;
    color: var(--text-900);
    font-size: .95rem;
}

.author-role {
    font-size: .85rem;
    color: var(--text-500);
}

/* ── FAQ ── */
.faq-list {
    max-width: 800px;
    margin: 80px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-900);
    cursor: pointer;
    gap: 24px;
    transition: color .2s ease;
}

.faq-question:hover {
    color: var(--brand-main);
}

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 1px solid var(--border-med);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    transition: all .3s ease;
    color: var(--text-500);
}

.faq-item.open .faq-icon {
    background: var(--brand-main);
    border-color: var(--brand-main);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    font-size: 1rem;
    color: var(--text-500);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .4s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 28px;
}

/* ── Footer ── */
.mega-footer {
    background: #000000;
    color: #ffffff;
    padding: 80px 20px 48px;
    text-align: center;
    border-radius: 40px 40px 0 0;
    position: relative;
}

.mega-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, .5), rgba(99, 102, 241, .5), rgba(16, 185, 129, .5), transparent);
    animation: footerBorderGlow 5s ease infinite alternate;
}

@keyframes footerBorderGlow {
    0% {
        opacity: .4;
    }

    100% {
        opacity: 1;
    }
}

.mega-footer .btn-primary {
    background: #ffffff;
    color: #000000;
}

.mega-footer .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .2);
}

.mega-footer .btn-secondary:hover {
    border-color: rgba(255, 255, 255, .5);
}

.mega-footer h2 {
    font-size: clamp(2rem, 8vw, 7rem);
    font-weight: 900;
    max-width: 1200px;
    margin: 0 auto 32px;
    color: #ffffff;
    letter-spacing: -0.04em;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto 80px;
    text-align: left;
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

.footer-col h5 {
    font-family: 'Outfit', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    font-size: .95rem;
    transition: color .2s;
}

.footer-col ul a:hover {
    color: #fff;
}

.footer-brand-desc {
    font-size: .95rem;
    color: rgba(255, 255, 255, .4);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin: 0 auto 48px;
    max-width: 1200px;
}

.footer-legal {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
    color: rgba(255, 255, 255, .35);
}

@media (max-width: 640px) {
    .footer-legal {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4ADE80;
    font-size: .82rem;
}

.status-dot::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ADE80;
    display: inline-block;
    animation: pulse-green 2s ease-in-out infinite;
}

/* ── WA float ── */
.wa-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
    z-index: 9998;
    text-decoration: none;
    transition: all .3s cubic-bezier(.16, 1, .3, 1);
    animation: waPulse 3s ease-in-out infinite;
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 16px 32px rgba(37, 211, 102, .5);
}

.wa-float::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, .4);
    animation: waPing 2s ease-out infinite;
}

@keyframes waPulse {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
    }

    50% {
        box-shadow: 0 8px 32px rgba(37, 211, 102, .7);
    }
}

@keyframes waPing {
    0% {
        transform: scale(1);
        opacity: .7;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ── Ambient orbs ── */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    animation: orbReveal 2s ease forwards;
}

@keyframes orbReveal {
    to {
        opacity: 1;
    }
}

.orb-1 {
    width: 800px;
    height: 800px;
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(14, 165, 233, .1) 0%, transparent 70%);
    animation: orbReveal 2s ease forwards, orbDrift1 20s ease-in-out 2s infinite alternate;
}

.orb-2 {
    width: 600px;
    height: 600px;
    top: 40vh;
    right: -150px;
    background: radial-gradient(circle, rgba(99, 102, 241, .08) 0%, transparent 70%);
    animation: orbReveal 2.5s ease forwards, orbDrift2 25s ease-in-out 2.5s infinite alternate;
}

.orb-3 {
    width: 500px;
    height: 500px;
    bottom: 20vh;
    left: 10%;
    background: radial-gradient(circle, rgba(16, 185, 129, .07) 0%, transparent 70%);
    animation: orbReveal 3s ease forwards, orbDrift3 18s ease-in-out 3s infinite alternate;
}

@keyframes orbDrift1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(120px, 80px) scale(1.15);
    }
}

@keyframes orbDrift2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-80px, 120px) scale(.9);
    }
}

@keyframes orbDrift3 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, -100px) scale(1.1);
    }
}

[data-theme="dark"] .orb-1 {
    background: radial-gradient(circle, rgba(14, 165, 233, .18) 0%, transparent 70%);
}

[data-theme="dark"] .orb-2 {
    background: radial-gradient(circle, rgba(99, 102, 241, .14) 0%, transparent 70%);
}

[data-theme="dark"] .orb-3 {
    background: radial-gradient(circle, rgba(16, 185, 129, .12) 0%, transparent 70%);
}

.dot-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .035;
    background-image: radial-gradient(circle, var(--text-900) 1px, transparent 1px);
    background-size: 32px 32px;
    transition: opacity .4s;
}

[data-theme="dark"] .dot-grid {
    opacity: .06;
}

/* ── Ensure all content sits above orbs ── */
header,
section,
footer,
.marquee,
.stats-section,
.mobile-menu {
    position: relative;
    z-index: 1;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: .1s;
}

.reveal-delay-2 {
    transition-delay: .2s;
}

.reveal-delay-3 {
    transition-delay: .3s;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-green {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .4;
    }
}

/* Additional specific landing page styles */
@keyframes circleFill {
    from {
        stroke-dashoffset: 440;
    }

    to {
        stroke-dashoffset: 4.4;
    }
}

/* ── Extra small screens (phones) ── */
@media (max-width: 480px) {
    .hero {
        padding: 100px 16px 40px;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 48px 16px;
    }

    .bento-card {
        padding: 24px 16px;
        min-height: 240px;
    }

    .step-item {
        padding: 32px 16px;
    }

    .testimonial-card {
        padding: 20px 16px;
    }

    .code-block {
        border-radius: 16px;
    }

    .code-block-header {
        padding: 12px 16px;
    }

    .code-body {
        padding: 16px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-brand-desc {
        max-width: 100%;
    }

    .wa-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }

    .faq-question {
        font-size: 0.95rem;
    }

    .faq-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}