/* =========================================
   WORDPRESS GALAXY ANIMATION (CSS ONLY)
   ========================================= */

.wp-galaxy-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transform: perspective(1000px) rotateX(10deg) rotateY(-10deg);
    transform-style: preserve-3d;
}

.wp-core-logo {
    position: absolute;
    z-index: 10;
    font-size: 5.5rem;
    color: white;
    background: #0f172a;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.core-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,0.4) 0%, transparent 70%);
    animation: corePulse 3s ease-in-out infinite;
    z-index: -1;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.ring-inner  { width: 160px; height: 160px; animation: orbitSpin 10s linear infinite; z-index: 3; }
.ring-middle { width: 260px; height: 260px; animation: orbitSpin 18s linear infinite reverse; z-index: 2; }
.ring-outer  { width: 360px; height: 360px; animation: orbitSpin 28s linear infinite; z-index: 1; }

.orbit-object {
    position: absolute;
    top: 50%; left: 50%; width: 0; height: 0;
}

.ring-inner .obj-database { transform: translateX(80px); }
.ring-middle .obj-shield  { transform: translateX(130px); }
.ring-middle .obj-bolt    { transform: rotate(180deg) translateX(130px); }
.ring-outer .obj-cloud    { transform: translateX(180px); }
.ring-outer .obj-code     { transform: rotate(120deg) translateX(180px); }
.ring-outer .obj-user     { transform: rotate(240deg) translateX(180px); }

.icon-bubble {
    width: 44px; height: 44px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    animation: counterSpin inherit linear infinite; 
}

.ring-inner .icon-bubble  { animation: counterSpin 10s linear infinite reverse; }
.ring-middle .icon-bubble { animation: counterSpin 18s linear infinite; }
.ring-outer .icon-bubble  { animation: counterSpin 28s linear infinite reverse; }

@keyframes orbitSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes counterSpin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes corePulse { 0%, 100% { transform: scale(0.9); opacity: 0.5; } 50% { transform: scale(1.1); opacity: 0.8; } }

@media (max-width: 900px) {
    .wp-galaxy-wrapper { width: 280px; height: 280px; transform: none; margin-top: 2rem; }
    .ring-outer { display: none; }
    .ring-middle { width: 220px; height: 220px; }
    .ring-middle .obj-shield { transform: translateX(110px); }
    .ring-middle .obj-bolt   { transform: rotate(180deg) translateX(110px); }
    @media (prefers-reduced-motion: reduce) { .orbit-ring, .icon-bubble, .core-glow { animation: none !important; } }
}

/* =========================================
   TECH STACK STRIP
   ========================================= */
.tech-stack-strip {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    text-align: center;
}
.tech-stack-strip p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.tech-logos { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; align-items: center; }
.tech-logos span { color: rgba(255, 255, 255, 0.4); font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; }
.tech-logos span:hover { color: white; transform: translateY(-2px); text-shadow: 0 0 15px rgba(255,255,255,0.3); }
@media (max-width: 768px) { .tech-logos { gap: 1.5rem; } .tech-logos span { font-size: 1rem; } }

/* =========================================
   OTHER PAGE STYLES (Hero Badge etc)
   ========================================= */
.badge-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(6, 182, 212, 0.1); color: var(--primary); padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.2rem; border: 1px solid rgba(6, 182, 212, 0.2); }
.wp-mini-features { display: flex; gap: 1.5rem; margin-top: 1.5rem; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.text-accent { color: var(--primary); }

/* Pricing Toggle */
.pricing-toggle-wrapper { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 2rem 0; }
.toggle-label { font-weight: 700; color: white; display: flex; align-items: center; gap: 8px; }
.badge-save { background: var(--accent); font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; color: white; }
.toggle-switch { position: relative; display: inline-block; width: 54px; height: 28px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255,255,255,0.1); transition: .4s; border: 1px solid rgba(255,255,255,0.1); }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: var(--primary); }
input:focus + .slider { box-shadow: 0 0 1px var(--primary); }
input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* Mobile Tweaks */
@media(max-width: 768px) { .wp-mini-features { flex-direction: column; gap: 0.5rem; } }

/* =========================================
   PLAN CARD UPDATES & MOBILE TOGGLE
   ========================================= */
.plan-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; margin-top: -0.5rem; }
.plan-renewal { color: #94a3b8; font-size: 0.8rem; margin-top: -5px; margin-bottom: 1.2rem; }
.plan-divider { display: flex; align-items: center; text-align: center; margin: 1.2rem 0 0.8rem 0; color: var(--text-muted); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.plan-divider::before, .plan-divider::after { content: ''; flex: 1; border-bottom: 1px solid rgba(255,255,255,0.1); }
.plan-divider span { padding: 0 10px; }

.plans-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; justify-content: center; max-width: 1200px; margin: 0 auto; }
.plan-card .btn { margin-top: 1.5rem; margin-bottom: 0.5rem; }

.mobile-more-btn { display: none; width: 100%; background: transparent; border: none; color: var(--text-muted); font-size: 0.9rem; padding: 10px; cursor: pointer; margin-top: 10px; transition: color 0.3s ease; }
.mobile-more-btn:hover { color: var(--primary); }
.mobile-more-btn i { margin-left: 5px; transition: transform 0.3s ease; }
.mobile-more-btn.active i { transform: rotate(180deg); }
.plan-extras { display: block; }

@media (max-width: 768px) {
    .plans-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
    .mobile-more-btn { display: block; }
    .plan-extras { display: none; padding-top: 10px; animation: fadeIn 0.3s ease-in-out; }
    .plan-extras.is-visible { display: block; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   SPEED CHART SECTION
   ========================================= */
.section--speed { background: linear-gradient(90deg, rgba(2,6,23,1) 0%, rgba(15,23,42,1) 100%); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.speed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.badge-green { border-color: #10b981; color: #10b981; background: rgba(16, 185, 129, 0.1); }
.speed-stat-box { margin-top: 2rem; background: rgba(255,255,255,0.03); border-left: 4px solid var(--primary); padding: 1rem 1.5rem; border-radius: 0 12px 12px 0; }
.big-stat { font-size: 2.5rem; font-weight: 800; color: white; display: block; line-height: 1; margin-bottom: 5px; }
.stat-desc { color: var(--text-muted); font-size: 0.9rem; }

.speed-chart-wrapper { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); padding: 2.5rem; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.chart-header { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.chart-row { margin-bottom: 1.8rem; }
.chart-label { color: white; margin-bottom: 0.6rem; font-weight: 600; display: flex; justify-content: space-between; }
.chart-bar-container { display: flex; align-items: center; gap: 15px; }
.chart-bar { height: 12px; border-radius: 6px; position: relative; width: 0; animation: growBar 1.5s ease-out forwards; animation-delay: 0.5s; }
.bar-slow { background: #475569; max-width: 85%; --target-width: 85%; } 
.bar-fast { background: linear-gradient(90deg, #06b6d4, #3b82f6); max-width: 20%; --target-width: 20%; box-shadow: 0 0 15px rgba(6, 182, 212, 0.5); }
.chart-value { color: white; font-weight: 700; min-width: 40px; }
.chart-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 1rem; font-style: italic; }
@keyframes growBar { to { width: var(--target-width); } }
@media (max-width: 768px) { .speed-grid { grid-template-columns: 1fr; gap: 2.5rem; } .speed-chart-wrapper { padding: 1.5rem; } }

/* =========================================
   MODULAR GRID FEATURES
   ========================================= */
.section--modules { position: relative; background: radial-gradient(circle at center, #0f172a 0%, #020617 100%); overflow: hidden; }
.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }
.module-card { background: rgba(30, 41, 59, 0.4); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 16px; padding: 1.8rem; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; position: relative; overflow: hidden; height: 100%; }
.module-card:hover { transform: translateY(-5px); border-color: rgba(6, 182, 212, 0.3); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); background: rgba(30, 41, 59, 0.6); }
.module-card::after { content: ''; position: absolute; top: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 40px 40px 0; border-color: transparent rgba(255, 255, 255, 0.03) transparent transparent; transition: border-color 0.3s ease; }
.module-card:hover::after { border-color: transparent var(--primary) transparent transparent; }
.module-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.module-header h4 { color: white; font-size: 1.25rem; font-weight: 700; margin: 0; }
.module-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); }
.icon-cyan { color: #06b6d4; box-shadow: 0 0 15px rgba(6, 182, 212, 0.1); }
.icon-purple { color: #a855f7; box-shadow: 0 0 15px rgba(168, 85, 247, 0.1); }
.icon-blue { color: #3b82f6; box-shadow: 0 0 15px rgba(59, 130, 246, 0.1); }
.icon-orange { color: #f97316; box-shadow: 0 0 15px rgba(249, 115, 22, 0.1); }
.icon-pink { color: #ec4899; box-shadow: 0 0 15px rgba(236, 72, 153, 0.1); }
.icon-green { color: #10b981; box-shadow: 0 0 15px rgba(16, 185, 129, 0.1); }
.module-body ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.module-body li { color: var(--text-muted); font-size: 0.95rem; display: flex; align-items: center; gap: 12px; transition: color 0.2s ease; }
.module-body li i { color: rgba(255, 255, 255, 0.2); font-size: 0.9rem; width: 20px; text-align: center; transition: color 0.2s ease; }
.module-card:hover .module-body li i { color: var(--primary); }
.module-body li:hover { color: white; }
@media (max-width: 768px) { .modules-grid { grid-template-columns: 1fr; } }

/* =========================================
   MIGRATION TRUCK ANIMATION
   ========================================= */
.mig-loader { width: 200px; height: 100px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transform-origin: center left; }
.mig-truck-wrapper { width: 200px; height: 100px; display: flex; flex-direction: column; position: relative; align-items: center; justify-content: flex-end; overflow-x: hidden; }
.mig-truck-body { width: 130px; height: fit-content; margin-bottom: 6px; animation: mig-motion 1s linear infinite; }
@keyframes mig-motion { 0% { transform: translateY(0px); } 50% { transform: translateY(3px); } 100% { transform: translateY(0px); } }
.mig-truck-tires { width: 130px; height: fit-content; display: flex; align-items: center; justify-content: space-between; padding: 0px 10px 0px 15px; position: absolute; bottom: 0; }
.mig-truck-tires svg { width: 24px; }
.mig-road { width: 100%; height: 2px; background-color: #020617; position: relative; bottom: 0; align-self: flex-end; border-radius: 3px; }
.mig-road::before { content: ""; position: absolute; width: 20px; height: 100%; background-color: #020617; right: -50%; border-radius: 3px; animation: mig-road-anim 1.4s linear infinite; border-left: 10px solid transparent; }
.mig-road::after { content: ""; position: absolute; width: 10px; height: 100%; background-color: #020617; right: -65%; border-radius: 3px; animation: mig-road-anim 1.4s linear infinite; border-left: 4px solid transparent; }
.mig-lamp-post { position: absolute; bottom: 0; right: -90%; height: 90px; animation: mig-road-anim 1.4s linear infinite; z-index: -1; }
@keyframes mig-road-anim { 0% { transform: translateX(0px); } 100% { transform: translateX(-350px); } }

/* Migration Section & Pre-Footer */
.migration-banner { background: var(--primary); padding: 2rem 0; position: relative; overflow: hidden; }
.migration-banner::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(rgba(255,255,255,0.2) 1px, transparent 1px); background-size: 20px 20px; opacity: 0.3; }
.migration-flex { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.migration-text { display: flex; align-items: center; gap: 1.5rem; color: #020617; }
.migration-text h3 { font-size: 1.5rem; margin-bottom: 0.2rem; font-weight: 800; }
.migration-text p { font-weight: 600; opacity: 0.85; }
@media (max-width: 768px) { .migration-flex { flex-direction: column; text-align: center; gap: 1.5rem; } .migration-text { flex-direction: column; gap: 1rem; } .mig-loader { transform: scale(0.85); margin-bottom: 10px; } }
@media (max-width: 480px) { .mig-loader { transform: scale(0.75); transform-origin: center; width: 150px; } }

.pre-footer-box { background: linear-gradient(180deg, rgba(6,182,212,0.05) 0%, rgba(2,6,23,0) 100%); border: 1px solid rgba(6,182,212,0.1); border-radius: 20px; padding: 3rem 1.5rem; max-width: 900px; margin: 0 auto; }
.why-choose-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; margin: 2rem 0; list-style: none; }
.why-choose-list li { font-size: 1.1rem; color: white; display: flex; align-items: center; gap: 10px; }
.why-choose-list li i { color: var(--primary); }
.btn--large { padding: 1rem 2.5rem; font-size: 1.1rem; }
@media (max-width: 768px) { .why-choose-list { flex-direction: column; gap: 1rem; align-items: center; } }