/* ============================================
   QUANTUMCASH - Styles
   Colors: Blue, Purple, Pink, White
   Style: Minimalist, Elegant, Crypto, Professional
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    /* Primary Palette */
    --blue: #4F46E5;
    --blue-light: #818CF8;
    --blue-dark: #3730A3;
    --purple: #7C3AED;
    --purple-light: #A78BFA;
    --purple-dark: #5B21B6;
    --pink: #EC4899;
    --pink-light: #F472B6;
    --pink-dark: #BE185D;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --dark: #0B0D17;
    --dark-card: #111328;
    --dark-border: #1E2044;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--blue) 0%, var(--purple) 50%, var(--pink) 100%);
    --gradient-text: linear-gradient(135deg, var(--blue-light) 0%, var(--purple-light) 40%, var(--pink-light) 100%);
    --gradient-glow: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);

    /* Typography */
    --font-primary: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Spacing */
    --section-padding: clamp(64px, 8vw, 120px);
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark);
    color: var(--gray-300);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

/* ---- Particle Canvas ---- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---- Container ---- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ---- Typography Helpers ---- */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--purple-light);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Section ---- */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Below-fold sections: skip rendering until near viewport */
.section-stats,
.section-services,
.section-why,
.section-contact {
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 32px;
    min-height: 48px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--dark-border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--purple-light);
    background: rgba(124, 58, 237, 0.08);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
    border-radius: 14px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(11, 13, 23, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(30, 32, 68, 0.5);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gradient-primary);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--white);
}

.logo-accent {
    color: var(--purple-light);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-400);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition-fast);
    touch-action: manipulation;
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link-cta {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 8px 20px;
}

.nav-link-cta:hover {
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
    background: var(--gradient-primary) !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(100px, 12vh, 140px) 24px clamp(60px, 8vh, 80px);
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float-glow 8s ease-in-out 0.3s infinite;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float-glow 10s ease-in-out 0.5s infinite reverse;
}

.hero-glow-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--pink) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    opacity: 0.15;
    animation: pulse-glow 6s ease-in-out 0.8s infinite;
}

@keyframes float-glow {
    0%, 100% { transform: translate3d(0, 0, 0); }
    33% { transform: translate3d(30px, -30px, 0); }
    66% { transform: translate3d(-20px, 20px, 0); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(1) translateZ(0); }
    50% { opacity: 0.25; transform: translate(-50%, -50%) scale(1.2) translateZ(0); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--purple-light);
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title .gradient-text {
    display: inline-block;
    min-height: 1.2em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray-400);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle strong {
    color: var(--white);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--gray-400);
}

.trust-item svg {
    color: #22C55E;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--purple-light), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.section-about {
    background: linear-gradient(180deg, var(--dark) 0%, rgba(17, 19, 40, 0.5) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
}

.about-text {
    font-size: 1.05rem;
    color: var(--gray-400);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--white);
    font-weight: 600;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 36px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.15);
    color: var(--purple-light);
}

.about-feature strong {
    display: block;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 2px;
}

.about-feature span {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ============================================
   PHONE MOCKUP ILLUSTRATION
   ============================================ */
.about-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
}

.phone-mockup-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-glow {
    position: absolute;
    width: 300px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(124,58,237,0.12) 0%, rgba(236,72,153,0.06) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.phone-connect-lines {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* Phone frame */
.phone-frame {
    position: relative;
    z-index: 2;
    width: 260px;
    background: var(--dark-card);
    border: 1.5px solid rgba(167, 139, 250, 0.25);
    border-radius: 28px;
    padding: 12px 16px 10px;
    box-shadow: 0 0 60px rgba(124,58,237,0.08), 0 0 120px rgba(236,72,153,0.04);
    overflow: hidden;
}

.phone-frame::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: 28px;
    padding: 1.5px;
    background: linear-gradient(160deg, rgba(167,139,250,0.3), rgba(124,58,237,0.1), rgba(236,72,153,0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.phone-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-400);
    padding: 4px 4px 8px;
}

.phone-app-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 0 4px 12px;
}

.phone-app-name {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

.phone-app-tab {
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--purple-light);
}

/* Chart */
.phone-chart {
    position: relative;
    background: rgba(11, 13, 23, 0.6);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 14px;
    height: 100px;
    overflow: hidden;
}

.phone-chart-svg {
    width: 100%;
    height: 100%;
}

.phone-chart-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-family: var(--font-primary);
    font-size: 0.68rem;
    font-weight: 700;
    color: #22C55E;
    background: rgba(34, 197, 94, 0.12);
    padding: 2px 8px;
    border-radius: 6px;
    z-index: 1;
}

/* Crypto list */
.phone-crypto-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
}

.phone-crypto-row {
    display: grid;
    grid-template-columns: 28px 36px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    border-bottom: 1px solid rgba(30, 32, 68, 0.5);
}

.phone-crypto-row:last-child {
    border-bottom: none;
}

.phone-crypto-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.phone-crypto-name {
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
}

.phone-crypto-val {
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-300);
    text-align: right;
}

.phone-crypto-change {
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 600;
    text-align: right;
}

.phone-crypto-change.positive {
    color: #22C55E;
}

.phone-crypto-change.neutral {
    color: var(--gray-500);
}

/* Action buttons */
.phone-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.phone-btn {
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 10px 0;
    border-radius: 10px;
    border: none;
    cursor: default;
}

.phone-btn-buy {
    background: var(--gradient-primary);
    color: var(--white);
}

.phone-btn-sell {
    background: transparent;
    color: var(--gray-300);
    border: 1px solid var(--dark-border);
}

.phone-home-bar {
    width: 40%;
    height: 4px;
    background: var(--gray-600);
    border-radius: 4px;
    margin: 6px auto 2px;
    opacity: 0.5;
}

/* Orbiting icons around phone */
.phone-orbit-icon {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    font-weight: 700;
    will-change: transform;
}

.orbit-btc {
    left: -50px;
    top: 25%;
    background: rgba(244,163,58,0.1);
    border: 1px solid rgba(244,163,58,0.25);
    color: #F4A33A;
    font-size: 1.2rem;
    animation: float-orbit 5s ease-in-out infinite;
}

.orbit-menu {
    right: -50px;
    top: 30%;
    background: rgba(167,139,250,0.1);
    border: 1px solid rgba(167,139,250,0.2);
    color: var(--purple-light);
    animation: float-orbit 6s ease-in-out infinite 1s;
}

.orbit-dollar {
    left: -40px;
    bottom: 20%;
    background: rgba(129,140,248,0.1);
    border: 1px solid rgba(129,140,248,0.2);
    color: var(--blue-light);
    font-size: 1.1rem;
    width: 38px;
    height: 38px;
    animation: float-orbit 7s ease-in-out infinite 2s;
}

.orbit-check {
    right: -45px;
    bottom: 25%;
    background: rgba(244,114,182,0.1);
    border: 1px solid rgba(244,114,182,0.2);
    color: var(--pink-light);
    width: 38px;
    height: 38px;
    animation: float-orbit 5.5s ease-in-out infinite 0.5s;
}

@keyframes float-orbit {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   STATS SECTION
   ============================================ */
.section-stats {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-glow {
    position: absolute;
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(124,58,237,0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.stats-header {
    margin-bottom: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: clamp(24px, 3vw, 36px) clamp(16px, 2vw, 28px);
    text-align: center;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.stat-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-4px);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
}

.stat-detail {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.section-services {
    background: linear-gradient(180deg, rgba(17, 19, 40, 0.3) 0%, var(--dark) 100%);
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: clamp(24px, 3vw, 36px);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79,70,229,0.05) 0%, rgba(236,72,153,0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.service-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-6px);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.15);
    color: var(--purple-light);
    margin-bottom: 20px;
    transition: all var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.service-title {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.92rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--blue-light);
    border: 1px solid rgba(79, 70, 229, 0.12);
    letter-spacing: 0.5px;
}

/* ============================================
   P2P EXCHANGE FLOW ILLUSTRATION
   ============================================ */
.exchange-flow {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 60px 0 80px;
    min-height: 240px;
}

.exchange-flow-orbits {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Traveling dots now use SVG animateMotion for cross-browser support */

/* Flow cards (MXN / CRYPTO) */
.flow-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 28px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.flow-card-left {
    border-color: rgba(129, 140, 248, 0.2);
    background: linear-gradient(135deg, rgba(17,19,40,0.9) 0%, rgba(79,70,229,0.08) 100%);
}

.flow-card-right {
    border-color: rgba(244, 114, 182, 0.2);
    background: linear-gradient(135deg, rgba(236,72,153,0.06) 0%, rgba(17,19,40,0.9) 100%);
}

.flow-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
}

.flow-icon-mxn {
    background: rgba(129, 140, 248, 0.12);
    border: 1px solid rgba(129, 140, 248, 0.25);
    color: var(--blue-light);
}

.flow-icon-btc {
    background: rgba(244, 114, 182, 0.12);
    border: 1px solid rgba(244, 114, 182, 0.25);
    color: var(--pink-light);
    font-size: 1.6rem;
}

.flow-card-info strong {
    display: block;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

.flow-card-info span {
    font-size: 0.82rem;
    color: var(--gray-500);
}

/* Center hexagon hub */
.flow-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px;
}

.flow-hexagon {
    width: 100px;
    height: 100px;
}

.flow-hex-glow {
    position: absolute;
    width: 160px;
    height: 160px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
    pointer-events: none;
    animation: hex-pulse 3s ease-in-out infinite;
}

@keyframes hex-pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -60%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); }
}

.flow-label {
    font-family: var(--font-primary);
    font-size: 0.78rem;
    color: var(--gray-500);
    letter-spacing: 1px;
    margin-top: 12px;
    text-transform: lowercase;
}

/* Orbiting mini dots around hexagon - GPU only (transform) */
.flow-orbit-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    will-change: transform;
}

.flow-orbit-dot-1 {
    background: var(--blue-light);
    animation: orbit-hex-1 6s linear infinite;
}

.flow-orbit-dot-2 {
    background: var(--pink-light);
    animation: orbit-hex-2 8s linear infinite;
}

.flow-orbit-dot-3 {
    background: var(--purple-light);
    animation: orbit-hex-3 5s linear infinite;
}

@keyframes orbit-hex-1 {
    0% { transform: translate(-50%, -65px); }
    25% { transform: translate(55px, -5px); }
    50% { transform: translate(-50%, 45px); }
    75% { transform: translate(-65px, -5px); }
    100% { transform: translate(-50%, -65px); }
}

@keyframes orbit-hex-2 {
    0% { transform: translate(-50%, 45px); }
    25% { transform: translate(-65px, -5px); }
    50% { transform: translate(-50%, -65px); }
    75% { transform: translate(55px, -5px); }
    100% { transform: translate(-50%, 45px); }
}

@keyframes orbit-hex-3 {
    0% { transform: translate(55px, -5px); }
    25% { transform: translate(-50%, 45px); }
    50% { transform: translate(-65px, -5px); }
    75% { transform: translate(-50%, -65px); }
    100% { transform: translate(55px, -5px); }
}

/* ============================================
   WHY SECTION
   ============================================ */
.section-why {
    border-top: 1px solid var(--dark-border);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.why-item {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--dark-border);
    transition: transform var(--transition-smooth);
}

.why-item:first-child {
    padding-top: 0;
}

.why-item:hover {
    transform: translateX(12px);
}

.why-number {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
    flex-shrink: 0;
    line-height: 1;
    padding-top: 4px;
}

.why-item:hover .why-number {
    opacity: 1;
}

.why-item h4 {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
}

.why-item p {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.section-contact {
    text-align: left;
    position: relative;
    overflow: hidden;
}

.contact-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
}

.contact-content {
    max-width: 500px;
}

.contact-text {
    font-size: 1.05rem;
    color: var(--gray-400);
    margin-bottom: 36px;
    line-height: 1.8;
}

.contact-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.contact-info-item svg {
    color: var(--purple-light);
}

/* Chat Mockup */
.contact-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-mockup-wrapper {
    position: relative;
}

.chat-glow {
    position: absolute;
    width: 280px;
    height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(124,58,237,0.1) 0%, rgba(236,72,153,0.05) 50%, transparent 70%);
    pointer-events: none;
}

.chat-window {
    position: relative;
    z-index: 2;
    width: 300px;
    background: var(--dark-card);
    border: 1.5px solid rgba(167, 139, 250, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(124,58,237,0.06), 0 0 100px rgba(236,72,153,0.03);
}

.chat-window::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: 20px;
    padding: 1.5px;
    background: linear-gradient(160deg, rgba(167,139,250,0.25), rgba(124,58,237,0.08), rgba(236,72,153,0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--dark-border);
    background: rgba(11, 13, 23, 0.5);
}

.chat-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--white);
}

.chat-header-name {
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--white);
    display: block;
}

.chat-header-status {
    font-size: 0.7rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22C55E;
    display: inline-block;
}

.chat-messages {
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    display: flex;
    flex-direction: column;
}

.chat-msg-user {
    align-items: flex-end;
}

.chat-msg-qc {
    align-items: flex-start;
}

.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.78rem;
    line-height: 1.5;
}

.chat-bubble-user {
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--gray-300);
    border-bottom-right-radius: 4px;
}

.chat-bubble-qc {
    background: rgba(17, 19, 40, 0.8);
    border: 1px solid var(--dark-border);
    color: var(--gray-300);
    border-bottom-left-radius: 4px;
}

.chat-bubble-qc strong {
    color: var(--white);
    font-weight: 600;
}

.chat-small {
    font-size: 0.72rem;
    color: var(--gray-500);
}

.chat-bubble-confirm {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22C55E;
    border-bottom-left-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.chat-bubble-confirm svg {
    color: #22C55E;
    flex-shrink: 0;
}

.chat-time {
    font-size: 0.62rem;
    color: var(--gray-600);
    margin-top: 3px;
    padding: 0 4px;
}

.chat-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--dark-border);
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* Chat floating badge icons */
.chat-badge-icon {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    will-change: transform;
}

.chat-badge-fast {
    top: 15%;
    left: -30px;
    background: rgba(244,163,58,0.1);
    border: 1px solid rgba(244,163,58,0.2);
    color: #F4A33A;
    animation: float-orbit 6s ease-in-out infinite;
}

.chat-badge-lock {
    top: 30%;
    right: -30px;
    background: rgba(167,139,250,0.1);
    border: 1px solid rgba(167,139,250,0.2);
    color: var(--purple-light);
    animation: float-orbit 5s ease-in-out infinite 1s;
}

.chat-badge-check {
    bottom: 15%;
    right: -25px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    color: #22C55E;
    animation: float-orbit 7s ease-in-out infinite 2s;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid var(--dark-border);
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
}

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

.footer-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-top: 16px;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4 {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-links a {
    display: block;
    font-size: 0.88rem;
    color: var(--gray-500);
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--purple-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--dark-border);
    font-size: 0.82rem;
    color: var(--gray-600);
}

.footer-powered a {
    color: var(--purple-light);
}

.footer-powered a:hover {
    color: var(--pink-light);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ---- Large Tablet / Small Desktop (1024px) ---- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 32px;
    }

    .hero-glow-1 {
        width: 450px;
        height: 450px;
    }

    .hero-glow-2 {
        width: 300px;
        height: 300px;
    }
}

/* ---- Tablet (768px) ---- */
@media (max-width: 768px) {
    /* Mobile Nav */
    .nav-toggle {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(11, 13, 23, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        padding: 24px;
        transition: right var(--transition-smooth);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu {
        padding-top: max(80px, calc(24px + env(safe-area-inset-top)));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
        padding-left: max(24px, env(safe-area-inset-left));
        padding-right: max(24px, env(safe-area-inset-right));
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 16px;
        text-align: center;
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-link-cta {
        margin-top: 16px;
        text-align: center;
        justify-content: center;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Hero */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: clamp(1.9rem, 7vw, 2.8rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 340px;
    }

    .hero-trust {
        gap: 12px;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .hero-glow-1 {
        width: 350px;
        height: 350px;
        opacity: 0.3;
    }

    .hero-glow-2 {
        width: 250px;
        height: 250px;
        opacity: 0.25;
    }

    .hero-glow-3 {
        width: 200px;
        height: 200px;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        min-height: 380px;
        order: -1;
    }

    .about-text {
        font-size: 1rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
    }

    .stats-header {
        margin-bottom: 40px;
    }

    .stat-label {
        font-size: 0.88rem;
    }

    .stat-detail {
        font-size: 0.8rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .services-header {
        margin-bottom: 40px;
    }

    .service-desc {
        font-size: 0.88rem;
    }

    /* Why */
    .why-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .why-item {
        gap: 16px;
        padding: 20px 0;
    }

    .why-number {
        font-size: 1.5rem;
    }

    .why-item h4 {
        font-size: 1rem;
    }

    .why-item p {
        font-size: 0.88rem;
    }

    /* Contact */
    .section-contact {
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        max-width: 100%;
    }

    .contact-text {
        font-size: 1rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-buttons .btn {
        width: 100%;
        max-width: 340px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    /* Chat mockup mobile */
    .chat-window {
        width: 270px;
    }

    .chat-badge-icon {
        width: 32px;
        height: 32px;
    }

    .chat-badge-fast {
        left: -20px;
    }

    .chat-badge-lock {
        right: -20px;
    }

    .chat-badge-check {
        right: -18px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* Section Labels */
    .section-label {
        font-size: 0.75rem;
        letter-spacing: 2.5px;
    }
}

/* ---- Small Mobile (480px) ---- */
@media (max-width: 480px) {
    .hero {
        padding: 90px 16px 48px;
    }

    .hero-title {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        margin-bottom: 24px;
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    .hero-glow-1 {
        width: 250px;
        height: 250px;
    }

    .hero-glow-2 {
        width: 180px;
        height: 180px;
    }

    .container {
        padding: 0 16px;
    }

    /* Stats single column on very small */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Phone mockup: further reduce */
    .about-visual {
        min-height: 320px;
    }

    .phone-frame {
        width: 210px;
        border-radius: 22px;
        padding: 8px 12px 6px;
    }

    .phone-frame::before {
        border-radius: 22px;
    }

    .phone-chart {
        height: 72px;
        margin-bottom: 8px;
    }

    .phone-btn {
        padding: 7px 0;
        font-size: 0.68rem;
    }

    /* Orbit icons: compact */
    .phone-orbit-icon {
        width: 28px;
        height: 28px;
    }

    .orbit-btc {
        left: -14px;
        font-size: 0.85rem;
    }

    .orbit-menu {
        right: -14px;
    }

    .orbit-menu svg {
        width: 13px;
        height: 13px;
    }

    .orbit-dollar {
        left: -10px;
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .orbit-check {
        right: -12px;
        width: 24px;
        height: 24px;
    }

    .orbit-check svg {
        width: 12px;
        height: 12px;
    }

    /* Exchange flow: compact */
    .exchange-flow {
        padding: 20px 0 32px;
    }

    .flow-card {
        padding: 12px 18px;
        max-width: 240px;
    }

    .flow-card-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .flow-icon-btc {
        font-size: 1.1rem;
    }

    .flow-card-info strong {
        font-size: 0.9rem;
    }

    .flow-card-info span {
        font-size: 0.75rem;
    }

    .flow-hexagon {
        width: 52px;
        height: 52px;
    }

    .flow-hex-glow {
        width: 74px;
        height: 74px;
    }

    /* Chat mockup: compact */
    .chat-window {
        width: 260px;
    }

    .chat-bubble {
        font-size: 0.74rem;
    }

    .chat-badge-icon {
        width: 26px;
        height: 26px;
    }

    .chat-badge-icon svg {
        width: 11px;
        height: 11px;
    }

    .chat-badge-fast {
        left: -10px;
    }

    .chat-badge-lock {
        right: -10px;
    }

    .chat-badge-check {
        right: -8px;
    }

    /* Footer stacked */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand {
        grid-column: auto;
    }

    /* Why items */
    .why-item {
        gap: 12px;
        padding: 16px 0;
    }

    .why-number {
        font-size: 1.3rem;
    }

    /* Chat mockup smaller */
    .chat-window {
        width: 260px;
    }

    .chat-bubble {
        font-size: 0.72rem;
    }

    .chat-badge-icon {
        width: 28px;
        height: 28px;
    }

    .chat-badge-icon svg {
        width: 12px;
        height: 12px;
    }

    /* Contact buttons full width */
    .contact-buttons .btn,
    .hero-buttons .btn {
        max-width: 100%;
    }

    .btn-lg {
        padding: 16px 28px;
        font-size: 0.95rem;
    }

    /* Feature icons */
    .feature-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .feature-icon svg {
        width: 20px;
        height: 20px;
    }

    .about-feature strong {
        font-size: 0.92rem;
    }

    .about-feature span {
        font-size: 0.82rem;
    }
}

/* ============================================
   VECTOR ART & ANIMATED SVG
   ============================================ */

/* -- Hero Vector Container -- */
.vector-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    contain: layout style;
}

/* -- Orbital Rings -- */
.orbit-ring {
    position: absolute;
    will-change: transform;
}

.orbit-ring-1 {
    width: 700px;
    height: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

.orbit-ring-2 {
    width: 550px;
    height: 550px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(60deg);
    opacity: 0.4;
}

/* -- Geometric Floating Shapes -- */
.geo-shape {
    position: absolute;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

.geo-hexagon {
    width: 160px;
    height: 160px;
    top: 12%;
    right: 8%;
    animation: geo-float 12s ease-in-out infinite, geo-rotate-slow 40s linear infinite;
}

.geo-diamond {
    width: 100px;
    height: 100px;
    bottom: 18%;
    left: 6%;
    animation: geo-float 10s ease-in-out infinite 2s, geo-rotate-slow 35s linear infinite reverse;
}

.geo-triangle {
    width: 90px;
    height: 90px;
    top: 22%;
    left: 12%;
    animation: geo-float 14s ease-in-out infinite 1s;
}

.geo-circle-dots {
    width: 130px;
    height: 130px;
    bottom: 15%;
    right: 12%;
    animation: geo-float 11s ease-in-out infinite 3s;
}

@keyframes geo-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes geo-rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Apply compound transforms for shapes that both float and rotate */
.geo-hexagon {
    animation: geo-hex-move 12s ease-in-out infinite;
}

@keyframes geo-hex-move {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(-25px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-5deg); }
}

.geo-diamond {
    animation: geo-diamond-move 10s ease-in-out infinite 2s;
}

@keyframes geo-diamond-move {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(8deg); }
}

/* -- Circuit Lines -- */
.circuit-lines {
    position: absolute;
    top: 0;
    height: 100%;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

.circuit-left {
    left: 0;
    width: 150px;
}

.circuit-right {
    right: 0;
    width: 150px;
}

/* -- Grid Pattern (Stats) -- */
.vector-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* -- Blockchain Nodes (Services) -- */
.vector-nodes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* -- Contact Orbits -- */
.vector-contact-orbits {
    position: absolute;
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* -- Wave Separator (Why Section) -- */
.vector-wave {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
    z-index: 0;
}

/* -- Why Section Crosses -- */
.section-why {
    position: relative;
    border-top: 1px solid var(--dark-border);
}

.section-why .geo-cross-1 {
    width: 30px;
    height: 30px;
    top: 20%;
    right: 5%;
    animation: geo-float 8s ease-in-out infinite;
}

.section-why .geo-cross-2 {
    width: 22px;
    height: 22px;
    bottom: 25%;
    left: 4%;
    animation: geo-float 9s ease-in-out infinite 2s;
}

/* -- About Section Vectors -- */
.section-about {
    position: relative;
    overflow: hidden;
}

.vector-about-helix {
    position: absolute;
    left: 0;
    top: 0;
    width: 120px;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.vector-about-ring {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    pointer-events: none;
    z-index: 0;
}

.about-geo-hex {
    width: 50px;
    height: 50px;
    top: 8%;
    right: 20%;
    animation: geo-float 9s ease-in-out infinite 1s;
}

.about-geo-dot-ring {
    width: 40px;
    height: 40px;
    bottom: 12%;
    left: 15%;
    animation: geo-float 11s ease-in-out infinite;
}

/* -- Why Section Vectors -- */
.vector-why-circuit {
    position: absolute;
    left: -20px;
    top: 0;
    width: 180px;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.vector-why-mesh {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    height: 400px;
    pointer-events: none;
    z-index: 0;
}

.why-geo-diamond {
    width: 45px;
    height: 45px;
    top: 15%;
    right: 8%;
    animation: geo-diamond-move 9s ease-in-out infinite;
}

.why-geo-tri {
    width: 35px;
    height: 35px;
    bottom: 10%;
    left: 20%;
    animation: geo-float 10s ease-in-out infinite 2s;
}

/* -- Footer Vectors -- */
.footer {
    position: relative;
    overflow: hidden;
}

.vector-footer-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    pointer-events: none;
    z-index: 0;
}

.footer-geo-hex {
    width: 30px;
    height: 30px;
    top: 30%;
    right: 6%;
    animation: geo-float 12s ease-in-out infinite;
}

.footer-geo-plus {
    width: 20px;
    height: 20px;
    bottom: 30%;
    left: 5%;
    animation: geo-float 10s ease-in-out infinite 3s;
}

/* -- Sections need relative for vector positioning -- */
.section-stats,
.section-services,
.section-contact {
    position: relative;
    overflow: hidden;
}

/* -- Parallax-like scroll movement for vectors -- */
@keyframes drift-left {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-10px); }
}

@keyframes drift-right {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.circuit-left {
    animation: drift-left 15s ease-in-out infinite;
}

.circuit-right {
    animation: drift-right 15s ease-in-out infinite;
}

/* -- Responsive Vector Art -- */

/* Tablet - scale down vector art */
@media (max-width: 1024px) {
    .orbit-ring-1 {
        width: 550px;
        height: 550px;
    }

    .orbit-ring-2 {
        width: 420px;
        height: 420px;
    }

    .geo-hexagon {
        width: 120px;
        height: 120px;
    }

    .vector-about-ring {
        width: 260px;
        height: 260px;
    }

    .vector-why-mesh {
        width: 200px;
    }

    .vector-contact-orbits {
        width: 500px;
        height: 500px;
    }
}

/* Mobile vector art block removed - all handled in Mobile Performance block below */

/* Small mobile vector art block removed - all hidden by Mobile Performance block */

/* ============================================
   MOBILE PERFORMANCE & ILLUSTRATION LAYOUT
   Single consolidated block for all mobile overrides
   ============================================ */
@media (max-width: 768px) {
    /* -- Hero: static gradient instead of animated glows -- */
    .hero-glow-1,
    .hero-glow-2,
    .hero-glow-3 {
        display: none !important;
    }

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 60% 30%, rgba(124,58,237,0.12) 0%, transparent 60%),
                    radial-gradient(ellipse at 30% 70%, rgba(79,70,229,0.08) 0%, transparent 50%);
        pointer-events: none;
        z-index: 0;
    }

    /* -- Hide all background vector art SVGs -- */
    .vector-art,
    .vector-about-helix,
    .vector-about-ring,
    .about-geo-hex,
    .about-geo-dot-ring,
    .vector-grid,
    .vector-nodes,
    .vector-wave,
    .vector-why-circuit,
    .vector-why-mesh,
    .vector-contact-orbits,
    .vector-footer-line,
    .geo-cross-1,
    .geo-cross-2,
    .why-geo-diamond,
    .why-geo-tri,
    .footer-geo-hex,
    .footer-geo-plus {
        display: none !important;
    }

    /* Kill background decoration animations */
    .circuit-left,
    .circuit-right,
    .geo-shape {
        animation: none !important;
    }

    /* Lighter navbar blur */
    .navbar.scrolled {
        backdrop-filter: blur(12px) saturate(150%);
        -webkit-backdrop-filter: blur(12px) saturate(150%);
    }

    /* Static glow for contact and stats */
    .stats-glow,
    .contact-glow {
        opacity: 0.5;
    }

    /* -- EXCHANGE FLOW: vertical layout with arrow connectors -- */
    .exchange-flow {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 30px 0 50px;
    }

    .exchange-flow-orbits {
        display: none;
    }

    .flow-center {
        padding: 0;
        order: 0;
    }

    .flow-card-left {
        order: -1;
    }

    .flow-card-right {
        order: 1;
    }

    /* Bigger cards for mobile - fill width nicely */
    .flow-card {
        padding: 16px 24px;
        width: 100%;
        max-width: 280px;
    }

    .flow-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .flow-icon-btc {
        font-size: 1.3rem;
    }

    .flow-card-info strong {
        font-size: 1rem;
    }

    /* Hexagon smaller */
    .flow-hexagon {
        width: 64px;
        height: 64px;
    }

    .flow-hex-glow {
        width: 90px;
        height: 90px;
    }

    /* Orbit dots: smaller radius for mobile hexagon */
    .flow-orbit-dot {
        width: 5px;
        height: 5px;
    }

    .flow-orbit-dot-1 {
        animation-name: orbit-hex-mob-1;
    }
    .flow-orbit-dot-2 {
        animation-name: orbit-hex-mob-2;
    }
    .flow-orbit-dot-3 {
        animation-name: orbit-hex-mob-3;
    }

    .flow-label {
        margin-top: 8px;
        font-size: 0.72rem;
    }

    /* Arrow connectors between cards */
    .flow-center::before,
    .flow-center::after {
        content: '';
        display: block;
        width: 1px;
        height: 20px;
        background: linear-gradient(to bottom, var(--purple-light), transparent);
        margin: 0 auto;
    }
    .flow-center::before {
        margin-bottom: 8px;
        background: linear-gradient(to bottom, transparent, var(--purple-light));
    }
    .flow-center::after {
        margin-top: 8px;
    }

    /* -- PHONE MOCKUP: actual size reduction instead of scale -- */
    .phone-mockup-wrapper {
        transform: none;
    }

    .phone-frame {
        width: 230px;
        border-radius: 24px;
        padding: 10px 14px 8px;
    }

    .phone-frame::before {
        border-radius: 24px;
    }

    .phone-chart {
        height: 85px;
        margin-bottom: 10px;
    }

    .phone-crypto-row {
        padding: 6px 4px;
        gap: 6px;
    }

    .phone-crypto-icon {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .phone-crypto-name {
        font-size: 0.76rem;
    }

    .phone-crypto-val {
        font-size: 0.72rem;
    }

    .phone-actions {
        gap: 6px;
        margin-bottom: 8px;
    }

    .phone-btn {
        padding: 8px 0;
        font-size: 0.72rem;
    }

    /* Orbit icons: tighter to phone */
    .phone-orbit-icon {
        width: 34px;
        height: 34px;
    }

    .orbit-btc {
        left: -22px;
        top: 20%;
        font-size: 1rem;
    }

    .orbit-menu {
        right: -22px;
        top: 25%;
    }

    .orbit-menu svg {
        width: 15px;
        height: 15px;
    }

    .orbit-dollar {
        left: -18px;
        bottom: 25%;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .orbit-check {
        right: -20px;
        bottom: 20%;
        width: 30px;
        height: 30px;
    }

    .orbit-check svg {
        width: 14px;
        height: 14px;
    }

    /* Hide connect lines and heavy glow on mobile */
    .phone-connect-lines,
    .phone-glow {
        display: none;
    }

    /* -- CHAT MOCKUP: properly sized -- */
    .chat-window {
        width: 280px;
    }

    .chat-badge-icon {
        width: 32px;
        height: 32px;
    }

    .chat-badge-fast {
        left: -16px;
        top: 10%;
    }

    .chat-badge-lock {
        right: -16px;
        top: 25%;
    }

    .chat-badge-check {
        right: -14px;
        bottom: 18%;
    }

    .chat-glow {
        display: none;
    }

    /* -- FOOTER: touch-friendly links (48dp minimum) -- */
    .footer-links a {
        padding: 12px 0;
        font-size: 0.92rem;
    }

    /* -- SAFE AREAS for notched devices -- */
    .navbar {
        padding-top: max(16px, env(safe-area-inset-top));
    }

    .navbar.scrolled {
        padding-top: max(10px, env(safe-area-inset-top));
    }

    .footer-bottom {
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    /* -- content-visibility: larger estimate for mobile (taller sections) -- */
    .section-stats,
    .section-services,
    .section-why,
    .section-contact {
        contain-intrinsic-size: auto 1200px;
    }
}

/* Mobile orbit keyframes: smaller radius for 64px hexagon */
@keyframes orbit-hex-mob-1 {
    0% { transform: translate(-50%, -40px); }
    25% { transform: translate(35px, -5px); }
    50% { transform: translate(-50%, 30px); }
    75% { transform: translate(-42px, -5px); }
    100% { transform: translate(-50%, -40px); }
}

@keyframes orbit-hex-mob-2 {
    0% { transform: translate(-50%, 30px); }
    25% { transform: translate(-42px, -5px); }
    50% { transform: translate(-50%, -40px); }
    75% { transform: translate(35px, -5px); }
    100% { transform: translate(-50%, 30px); }
}

@keyframes orbit-hex-mob-3 {
    0% { transform: translate(35px, -5px); }
    25% { transform: translate(-50%, 30px); }
    50% { transform: translate(-42px, -5px); }
    75% { transform: translate(-50%, -40px); }
    100% { transform: translate(35px, -5px); }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}
